Remove variables and tests that were specific to the now defunct
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LLVM 1.4.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='LLVM'
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430 ac_subdirs_all="$ac_subdirs_all projects/sample"
431 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
432 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
438 ac_subdirs_all="$ac_subdirs_all ${i}"
439 # Factoring default headers for most tests.
440 ac_includes_default="\
441 #include <stdio.h>
442 #if HAVE_SYS_TYPES_H
443 # include <sys/types.h>
444 #endif
445 #if HAVE_SYS_STAT_H
446 # include <sys/stat.h>
447 #endif
448 #if STDC_HEADERS
449 # include <stdlib.h>
450 # include <stddef.h>
451 #else
452 # if HAVE_STDLIB_H
453 #  include <stdlib.h>
454 # endif
455 #endif
456 #if HAVE_STRING_H
457 # if !STDC_HEADERS && HAVE_MEMORY_H
458 #  include <memory.h>
459 # endif
460 # include <string.h>
461 #endif
462 #if HAVE_STRINGS_H
463 # include <strings.h>
464 #endif
465 #if HAVE_INTTYPES_H
466 # include <inttypes.h>
467 #else
468 # if HAVE_STDINT_H
469 #  include <stdint.h>
470 # endif
471 #endif
472 #if HAVE_UNISTD_H
473 # include <unistd.h>
474 #endif"
475
476 ac_unique_file=""Makefile.config.in""
477 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT 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 JIT LLVMCC1 LLVMCC1PLUS PAPIDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
478 ac_subst_files=''
479
480 # Initialize some variables set by options.
481 ac_init_help=
482 ac_init_version=false
483 # The variables have the same names as the options, with
484 # dashes changed to underlines.
485 cache_file=/dev/null
486 exec_prefix=NONE
487 no_create=
488 no_recursion=
489 prefix=NONE
490 program_prefix=NONE
491 program_suffix=NONE
492 program_transform_name=s,x,x,
493 silent=
494 site=
495 srcdir=
496 verbose=
497 x_includes=NONE
498 x_libraries=NONE
499
500 # Installation directory options.
501 # These are left unexpanded so users can "make install exec_prefix=/foo"
502 # and all the variables that are supposed to be based on exec_prefix
503 # by default will actually change.
504 # Use braces instead of parens because sh, perl, etc. also accept them.
505 bindir='${exec_prefix}/bin'
506 sbindir='${exec_prefix}/sbin'
507 libexecdir='${exec_prefix}/libexec'
508 datadir='${prefix}/share'
509 sysconfdir='${prefix}/etc'
510 sharedstatedir='${prefix}/com'
511 localstatedir='${prefix}/var'
512 libdir='${exec_prefix}/lib'
513 includedir='${prefix}/include'
514 oldincludedir='/usr/include'
515 infodir='${prefix}/info'
516 mandir='${prefix}/man'
517
518 ac_prev=
519 for ac_option
520 do
521   # If the previous option needs an argument, assign it.
522   if test -n "$ac_prev"; then
523     eval "$ac_prev=\$ac_option"
524     ac_prev=
525     continue
526   fi
527
528   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529
530   # Accept the important Cygnus configure options, so we can diagnose typos.
531
532   case $ac_option in
533
534   -bindir | --bindir | --bindi | --bind | --bin | --bi)
535     ac_prev=bindir ;;
536   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
537     bindir=$ac_optarg ;;
538
539   -build | --build | --buil | --bui | --bu)
540     ac_prev=build_alias ;;
541   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542     build_alias=$ac_optarg ;;
543
544   -cache-file | --cache-file | --cache-fil | --cache-fi \
545   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546     ac_prev=cache_file ;;
547   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549     cache_file=$ac_optarg ;;
550
551   --config-cache | -C)
552     cache_file=config.cache ;;
553
554   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555     ac_prev=datadir ;;
556   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557   | --da=*)
558     datadir=$ac_optarg ;;
559
560   -disable-* | --disable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     eval "enable_$ac_feature=no" ;;
568
569   -enable-* | --enable-*)
570     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571     # Reject names that are not valid shell variable names.
572     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574    { (exit 1); exit 1; }; }
575     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576     case $ac_option in
577       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
578       *) ac_optarg=yes ;;
579     esac
580     eval "enable_$ac_feature='$ac_optarg'" ;;
581
582   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584   | --exec | --exe | --ex)
585     ac_prev=exec_prefix ;;
586   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588   | --exec=* | --exe=* | --ex=*)
589     exec_prefix=$ac_optarg ;;
590
591   -gas | --gas | --ga | --g)
592     # Obsolete; use --with-gas.
593     with_gas=yes ;;
594
595   -help | --help | --hel | --he | -h)
596     ac_init_help=long ;;
597   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598     ac_init_help=recursive ;;
599   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600     ac_init_help=short ;;
601
602   -host | --host | --hos | --ho)
603     ac_prev=host_alias ;;
604   -host=* | --host=* | --hos=* | --ho=*)
605     host_alias=$ac_optarg ;;
606
607   -includedir | --includedir | --includedi | --included | --include \
608   | --includ | --inclu | --incl | --inc)
609     ac_prev=includedir ;;
610   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611   | --includ=* | --inclu=* | --incl=* | --inc=*)
612     includedir=$ac_optarg ;;
613
614   -infodir | --infodir | --infodi | --infod | --info | --inf)
615     ac_prev=infodir ;;
616   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617     infodir=$ac_optarg ;;
618
619   -libdir | --libdir | --libdi | --libd)
620     ac_prev=libdir ;;
621   -libdir=* | --libdir=* | --libdi=* | --libd=*)
622     libdir=$ac_optarg ;;
623
624   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625   | --libexe | --libex | --libe)
626     ac_prev=libexecdir ;;
627   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628   | --libexe=* | --libex=* | --libe=*)
629     libexecdir=$ac_optarg ;;
630
631   -localstatedir | --localstatedir | --localstatedi | --localstated \
632   | --localstate | --localstat | --localsta | --localst \
633   | --locals | --local | --loca | --loc | --lo)
634     ac_prev=localstatedir ;;
635   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638     localstatedir=$ac_optarg ;;
639
640   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641     ac_prev=mandir ;;
642   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
643     mandir=$ac_optarg ;;
644
645   -nfp | --nfp | --nf)
646     # Obsolete; use --without-fp.
647     with_fp=no ;;
648
649   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650   | --no-cr | --no-c | -n)
651     no_create=yes ;;
652
653   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
655     no_recursion=yes ;;
656
657   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659   | --oldin | --oldi | --old | --ol | --o)
660     ac_prev=oldincludedir ;;
661   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664     oldincludedir=$ac_optarg ;;
665
666   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667     ac_prev=prefix ;;
668   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
669     prefix=$ac_optarg ;;
670
671   -program-prefix | --program-prefix | --program-prefi | --program-pref \
672   | --program-pre | --program-pr | --program-p)
673     ac_prev=program_prefix ;;
674   -program-prefix=* | --program-prefix=* | --program-prefi=* \
675   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676     program_prefix=$ac_optarg ;;
677
678   -program-suffix | --program-suffix | --program-suffi | --program-suff \
679   | --program-suf | --program-su | --program-s)
680     ac_prev=program_suffix ;;
681   -program-suffix=* | --program-suffix=* | --program-suffi=* \
682   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683     program_suffix=$ac_optarg ;;
684
685   -program-transform-name | --program-transform-name \
686   | --program-transform-nam | --program-transform-na \
687   | --program-transform-n | --program-transform- \
688   | --program-transform | --program-transfor \
689   | --program-transfo | --program-transf \
690   | --program-trans | --program-tran \
691   | --progr-tra | --program-tr | --program-t)
692     ac_prev=program_transform_name ;;
693   -program-transform-name=* | --program-transform-name=* \
694   | --program-transform-nam=* | --program-transform-na=* \
695   | --program-transform-n=* | --program-transform-=* \
696   | --program-transform=* | --program-transfor=* \
697   | --program-transfo=* | --program-transf=* \
698   | --program-trans=* | --program-tran=* \
699   | --progr-tra=* | --program-tr=* | --program-t=*)
700     program_transform_name=$ac_optarg ;;
701
702   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703   | -silent | --silent | --silen | --sile | --sil)
704     silent=yes ;;
705
706   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707     ac_prev=sbindir ;;
708   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709   | --sbi=* | --sb=*)
710     sbindir=$ac_optarg ;;
711
712   -sharedstatedir | --sharedstatedir | --sharedstatedi \
713   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714   | --sharedst | --shareds | --shared | --share | --shar \
715   | --sha | --sh)
716     ac_prev=sharedstatedir ;;
717   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720   | --sha=* | --sh=*)
721     sharedstatedir=$ac_optarg ;;
722
723   -site | --site | --sit)
724     ac_prev=site ;;
725   -site=* | --site=* | --sit=*)
726     site=$ac_optarg ;;
727
728   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729     ac_prev=srcdir ;;
730   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
731     srcdir=$ac_optarg ;;
732
733   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734   | --syscon | --sysco | --sysc | --sys | --sy)
735     ac_prev=sysconfdir ;;
736   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738     sysconfdir=$ac_optarg ;;
739
740   -target | --target | --targe | --targ | --tar | --ta | --t)
741     ac_prev=target_alias ;;
742   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743     target_alias=$ac_optarg ;;
744
745   -v | -verbose | --verbose | --verbos | --verbo | --verb)
746     verbose=yes ;;
747
748   -version | --version | --versio | --versi | --vers | -V)
749     ac_init_version=: ;;
750
751   -with-* | --with-*)
752     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753     # Reject names that are not valid shell variable names.
754     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755       { echo "$as_me: error: invalid package name: $ac_package" >&2
756    { (exit 1); exit 1; }; }
757     ac_package=`echo $ac_package| sed 's/-/_/g'`
758     case $ac_option in
759       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
760       *) ac_optarg=yes ;;
761     esac
762     eval "with_$ac_package='$ac_optarg'" ;;
763
764   -without-* | --without-*)
765     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766     # Reject names that are not valid shell variable names.
767     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768       { echo "$as_me: error: invalid package name: $ac_package" >&2
769    { (exit 1); exit 1; }; }
770     ac_package=`echo $ac_package | sed 's/-/_/g'`
771     eval "with_$ac_package=no" ;;
772
773   --x)
774     # Obsolete; use --with-x.
775     with_x=yes ;;
776
777   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778   | --x-incl | --x-inc | --x-in | --x-i)
779     ac_prev=x_includes ;;
780   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782     x_includes=$ac_optarg ;;
783
784   -x-libraries | --x-libraries | --x-librarie | --x-librari \
785   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786     ac_prev=x_libraries ;;
787   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789     x_libraries=$ac_optarg ;;
790
791   -*) { echo "$as_me: error: unrecognized option: $ac_option
792 Try \`$0 --help' for more information." >&2
793    { (exit 1); exit 1; }; }
794     ;;
795
796   *=*)
797     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798     # Reject names that are not valid shell variable names.
799     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801    { (exit 1); exit 1; }; }
802     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803     eval "$ac_envvar='$ac_optarg'"
804     export $ac_envvar ;;
805
806   *)
807     # FIXME: should be removed in autoconf 3.0.
808     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812     ;;
813
814   esac
815 done
816
817 if test -n "$ac_prev"; then
818   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819   { echo "$as_me: error: missing argument to $ac_option" >&2
820    { (exit 1); exit 1; }; }
821 fi
822
823 # Be sure to have absolute paths.
824 for ac_var in exec_prefix prefix
825 do
826   eval ac_val=$`echo $ac_var`
827   case $ac_val in
828     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830    { (exit 1); exit 1; }; };;
831   esac
832 done
833
834 # Be sure to have absolute paths.
835 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
836               localstatedir libdir includedir oldincludedir infodir mandir
837 do
838   eval ac_val=$`echo $ac_var`
839   case $ac_val in
840     [\\/$]* | ?:[\\/]* ) ;;
841     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842    { (exit 1); exit 1; }; };;
843   esac
844 done
845
846 # There might be people who depend on the old broken behavior: `$host'
847 # used to hold the argument of --host etc.
848 # FIXME: To remove some day.
849 build=$build_alias
850 host=$host_alias
851 target=$target_alias
852
853 # FIXME: To remove some day.
854 if test "x$host_alias" != x; then
855   if test "x$build_alias" = x; then
856     cross_compiling=maybe
857     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858     If a cross compiler is detected then cross compile mode will be used." >&2
859   elif test "x$build_alias" != "x$host_alias"; then
860     cross_compiling=yes
861   fi
862 fi
863
864 ac_tool_prefix=
865 test -n "$host_alias" && ac_tool_prefix=$host_alias-
866
867 test "$silent" = yes && exec 6>/dev/null
868
869
870 # Find the source files, if location was not specified.
871 if test -z "$srcdir"; then
872   ac_srcdir_defaulted=yes
873   # Try the directory containing this script, then its parent.
874   ac_confdir=`(dirname "$0") 2>/dev/null ||
875 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
876          X"$0" : 'X\(//\)[^/]' \| \
877          X"$0" : 'X\(//\)$' \| \
878          X"$0" : 'X\(/\)' \| \
879          .     : '\(.\)' 2>/dev/null ||
880 echo X"$0" |
881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883           /^X\(\/\/\)$/{ s//\1/; q; }
884           /^X\(\/\).*/{ s//\1/; q; }
885           s/.*/./; q'`
886   srcdir=$ac_confdir
887   if test ! -r $srcdir/$ac_unique_file; then
888     srcdir=..
889   fi
890 else
891   ac_srcdir_defaulted=no
892 fi
893 if test ! -r $srcdir/$ac_unique_file; then
894   if test "$ac_srcdir_defaulted" = yes; then
895     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896    { (exit 1); exit 1; }; }
897   else
898     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899    { (exit 1); exit 1; }; }
900   fi
901 fi
902 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904    { (exit 1); exit 1; }; }
905 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906 ac_env_build_alias_set=${build_alias+set}
907 ac_env_build_alias_value=$build_alias
908 ac_cv_env_build_alias_set=${build_alias+set}
909 ac_cv_env_build_alias_value=$build_alias
910 ac_env_host_alias_set=${host_alias+set}
911 ac_env_host_alias_value=$host_alias
912 ac_cv_env_host_alias_set=${host_alias+set}
913 ac_cv_env_host_alias_value=$host_alias
914 ac_env_target_alias_set=${target_alias+set}
915 ac_env_target_alias_value=$target_alias
916 ac_cv_env_target_alias_set=${target_alias+set}
917 ac_cv_env_target_alias_value=$target_alias
918 ac_env_CXX_set=${CXX+set}
919 ac_env_CXX_value=$CXX
920 ac_cv_env_CXX_set=${CXX+set}
921 ac_cv_env_CXX_value=$CXX
922 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
923 ac_env_CXXFLAGS_value=$CXXFLAGS
924 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
925 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
926 ac_env_LDFLAGS_set=${LDFLAGS+set}
927 ac_env_LDFLAGS_value=$LDFLAGS
928 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_cv_env_LDFLAGS_value=$LDFLAGS
930 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931 ac_env_CPPFLAGS_value=$CPPFLAGS
932 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934 ac_env_CC_set=${CC+set}
935 ac_env_CC_value=$CC
936 ac_cv_env_CC_set=${CC+set}
937 ac_cv_env_CC_value=$CC
938 ac_env_CFLAGS_set=${CFLAGS+set}
939 ac_env_CFLAGS_value=$CFLAGS
940 ac_cv_env_CFLAGS_set=${CFLAGS+set}
941 ac_cv_env_CFLAGS_value=$CFLAGS
942 ac_env_CPP_set=${CPP+set}
943 ac_env_CPP_value=$CPP
944 ac_cv_env_CPP_set=${CPP+set}
945 ac_cv_env_CPP_value=$CPP
946 ac_env_CXXCPP_set=${CXXCPP+set}
947 ac_env_CXXCPP_value=$CXXCPP
948 ac_cv_env_CXXCPP_set=${CXXCPP+set}
949 ac_cv_env_CXXCPP_value=$CXXCPP
950 ac_env_F77_set=${F77+set}
951 ac_env_F77_value=$F77
952 ac_cv_env_F77_set=${F77+set}
953 ac_cv_env_F77_value=$F77
954 ac_env_FFLAGS_set=${FFLAGS+set}
955 ac_env_FFLAGS_value=$FFLAGS
956 ac_cv_env_FFLAGS_set=${FFLAGS+set}
957 ac_cv_env_FFLAGS_value=$FFLAGS
958
959 #
960 # Report the --help message.
961 #
962 if test "$ac_init_help" = "long"; then
963   # Omit some internal or obsolete options to make the list less imposing.
964   # This message is too long to be a string in the A/UX 3.1 sh.
965   cat <<_ACEOF
966 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
967
968 Usage: $0 [OPTION]... [VAR=VALUE]...
969
970 To assign environment variables (e.g., CC, CFLAGS...), specify them as
971 VAR=VALUE.  See below for descriptions of some of the useful variables.
972
973 Defaults for the options are specified in brackets.
974
975 Configuration:
976   -h, --help              display this help and exit
977       --help=short        display options specific to this package
978       --help=recursive    display the short help of all the included packages
979   -V, --version           display version information and exit
980   -q, --quiet, --silent   do not print \`checking...' messages
981       --cache-file=FILE   cache test results in FILE [disabled]
982   -C, --config-cache      alias for \`--cache-file=config.cache'
983   -n, --no-create         do not create output files
984       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
985
986 _ACEOF
987
988   cat <<_ACEOF
989 Installation directories:
990   --prefix=PREFIX         install architecture-independent files in PREFIX
991                           [$ac_default_prefix]
992   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
993                           [PREFIX]
994
995 By default, \`make install' will install all the files in
996 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
997 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998 for instance \`--prefix=\$HOME'.
999
1000 For better control, use the options below.
1001
1002 Fine tuning of the installation directories:
1003   --bindir=DIR           user executables [EPREFIX/bin]
1004   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1005   --libexecdir=DIR       program executables [EPREFIX/libexec]
1006   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1007   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1008   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1009   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1010   --libdir=DIR           object code libraries [EPREFIX/lib]
1011   --includedir=DIR       C header files [PREFIX/include]
1012   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1013   --infodir=DIR          info documentation [PREFIX/info]
1014   --mandir=DIR           man documentation [PREFIX/man]
1015 _ACEOF
1016
1017   cat <<\_ACEOF
1018
1019 System types:
1020   --build=BUILD     configure for building on BUILD [guessed]
1021   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1022   --target=TARGET   configure for building compilers for TARGET [HOST]
1023 _ACEOF
1024 fi
1025
1026 if test -n "$ac_init_help"; then
1027   case $ac_init_help in
1028      short | recursive ) echo "Configuration of LLVM 1.4:";;
1029    esac
1030   cat <<\_ACEOF
1031
1032 Optional Features:
1033   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1034   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1035   --enable-shared[=PKGS]
1036                           build shared libraries [default=yes]
1037   --enable-static[=PKGS]
1038                           build static libraries [default=yes]
1039   --enable-fast-install[=PKGS]
1040                           optimize for fast installation [default=yes]
1041   --disable-libtool-lock  avoid locking (might break parallel builds)
1042   --enable-optimized      Compile with optimizations enabled (default is NO)
1043   --enable-jit            Enable Just In Time Compiling (default is YES)
1044
1045 Optional Packages:
1046   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1047   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1048   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1049   --with-pic              try to use only PIC/non-PIC objects [default=use
1050                           both]
1051   --with-tags[=TAGS]
1052                           include additional configurations [automatic]
1053   --with-llvmgccdir       Location of LLVM GCC front-end
1054   --with-papi             Location of PAPI
1055
1056 Some influential environment variables:
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   CPP         C preprocessor
1066   CXXCPP      C++ preprocessor
1067   F77         Fortran 77 compiler command
1068   FFLAGS      Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107
1108 # Do not use `cd foo && pwd` to compute absolute paths, because
1109 # the directories may not exist.
1110 case `pwd` in
1111 .) ac_abs_builddir="$ac_dir";;
1112 *)
1113   case "$ac_dir" in
1114   .) ac_abs_builddir=`pwd`;;
1115   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1117   esac;;
1118 esac
1119 case $ac_abs_builddir in
1120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *)
1122   case ${ac_top_builddir}. in
1123   .) ac_abs_top_builddir=$ac_abs_builddir;;
1124   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1126   esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_srcdir=$ac_srcdir;;
1130 *)
1131   case $ac_srcdir in
1132   .) ac_abs_srcdir=$ac_abs_builddir;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1135   esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *)
1140   case $ac_top_srcdir in
1141   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1142   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144   esac;;
1145 esac
1146
1147     cd $ac_dir
1148     # Check for guested configure; otherwise get Cygnus style configure.
1149     if test -f $ac_srcdir/configure.gnu; then
1150       echo
1151       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1152     elif test -f $ac_srcdir/configure; then
1153       echo
1154       $SHELL $ac_srcdir/configure  --help=recursive
1155     elif test -f $ac_srcdir/configure.ac ||
1156            test -f $ac_srcdir/configure.in; then
1157       echo
1158       $ac_configure --help
1159     else
1160       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1161     fi
1162     cd $ac_popdir
1163   done
1164 fi
1165
1166 test -n "$ac_init_help" && exit 0
1167 if $ac_init_version; then
1168   cat <<\_ACEOF
1169 LLVM configure 1.4
1170 generated by GNU Autoconf 2.59
1171
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1175 _ACEOF
1176   exit 0
1177 fi
1178 exec 5>config.log
1179 cat >&5 <<_ACEOF
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1182
1183 It was created by LLVM $as_me 1.4, which was
1184 generated by GNU Autoconf 2.59.  Invocation command line was
1185
1186   $ $0 $@
1187
1188 _ACEOF
1189 {
1190 cat <<_ASUNAME
1191 ## --------- ##
1192 ## Platform. ##
1193 ## --------- ##
1194
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1203
1204 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1205 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1208 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1209 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1210 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1211
1212 _ASUNAME
1213
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 for as_dir in $PATH
1216 do
1217   IFS=$as_save_IFS
1218   test -z "$as_dir" && as_dir=.
1219   echo "PATH: $as_dir"
1220 done
1221
1222 } >&5
1223
1224 cat >&5 <<_ACEOF
1225
1226
1227 ## ----------- ##
1228 ## Core tests. ##
1229 ## ----------- ##
1230
1231 _ACEOF
1232
1233
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_configure_args=
1240 ac_configure_args0=
1241 ac_configure_args1=
1242 ac_sep=
1243 ac_must_keep_next=false
1244 for ac_pass in 1 2
1245 do
1246   for ac_arg
1247   do
1248     case $ac_arg in
1249     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251     | -silent | --silent | --silen | --sile | --sil)
1252       continue ;;
1253     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255     esac
1256     case $ac_pass in
1257     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258     2)
1259       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260       if test $ac_must_keep_next = true; then
1261         ac_must_keep_next=false # Got value, back to normal.
1262       else
1263         case $ac_arg in
1264           *=* | --config-cache | -C | -disable-* | --disable-* \
1265           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267           | -with-* | --with-* | -without-* | --without-* | --x)
1268             case "$ac_configure_args0 " in
1269               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270             esac
1271             ;;
1272           -* ) ac_must_keep_next=true ;;
1273         esac
1274       fi
1275       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276       # Get rid of the leading space.
1277       ac_sep=" "
1278       ;;
1279     esac
1280   done
1281 done
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log.  We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291   # Save into config.log some information that might help in debugging.
1292   {
1293     echo
1294
1295     cat <<\_ASBOX
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1299 _ASBOX
1300     echo
1301     # The following way of writing the cache mishandles newlines in values,
1302 {
1303   (set) 2>&1 |
1304     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305     *ac_space=\ *)
1306       sed -n \
1307         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309       ;;
1310     *)
1311       sed -n \
1312         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313       ;;
1314     esac;
1315 }
1316     echo
1317
1318     cat <<\_ASBOX
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1322 _ASBOX
1323     echo
1324     for ac_var in $ac_subst_vars
1325     do
1326       eval ac_val=$`echo $ac_var`
1327       echo "$ac_var='"'"'$ac_val'"'"'"
1328     done | sort
1329     echo
1330
1331     if test -n "$ac_subst_files"; then
1332       cat <<\_ASBOX
1333 ## ------------- ##
1334 ## Output files. ##
1335 ## ------------- ##
1336 _ASBOX
1337       echo
1338       for ac_var in $ac_subst_files
1339       do
1340         eval ac_val=$`echo $ac_var`
1341         echo "$ac_var='"'"'$ac_val'"'"'"
1342       done | sort
1343       echo
1344     fi
1345
1346     if test -s confdefs.h; then
1347       cat <<\_ASBOX
1348 ## ----------- ##
1349 ## confdefs.h. ##
1350 ## ----------- ##
1351 _ASBOX
1352       echo
1353       sed "/^$/d" confdefs.h | sort
1354       echo
1355     fi
1356     test "$ac_signal" != 0 &&
1357       echo "$as_me: caught signal $ac_signal"
1358     echo "$as_me: exit $exit_status"
1359   } >&5
1360   rm -f core *.core &&
1361   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362     exit $exit_status
1363      ' 0
1364 for ac_signal in 1 2 13 15; do
1365   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 done
1367 ac_signal=0
1368
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 echo >confdefs.h
1373
1374 # Predefined preprocessor variables.
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 _ACEOF
1399
1400
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404   if test "x$prefix" != xNONE; then
1405     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406   else
1407     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408   fi
1409 fi
1410 for ac_site_file in $CONFIG_SITE; do
1411   if test -r "$ac_site_file"; then
1412     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414     sed 's/^/| /' "$ac_site_file" >&5
1415     . "$ac_site_file"
1416   fi
1417 done
1418
1419 if test -r "$cache_file"; then
1420   # Some versions of bash will fail to source /dev/null (special
1421   # files actually), so we avoid doing that.
1422   if test -f "$cache_file"; then
1423     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1425     case $cache_file in
1426       [\\/]* | ?:[\\/]* ) . $cache_file;;
1427       *)                      . ./$cache_file;;
1428     esac
1429   fi
1430 else
1431   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1433   >$cache_file
1434 fi
1435
1436 # Check that the precious variables saved in the cache have kept the same
1437 # value.
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442   eval ac_new_set=\$ac_env_${ac_var}_set
1443   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444   eval ac_new_val="\$ac_env_${ac_var}_value"
1445   case $ac_old_set,$ac_new_set in
1446     set,)
1447       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449       ac_cache_corrupted=: ;;
1450     ,set)
1451       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453       ac_cache_corrupted=: ;;
1454     ,);;
1455     *)
1456       if test "x$ac_old_val" != "x$ac_new_val"; then
1457         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1460 echo "$as_me:   former value:  $ac_old_val" >&2;}
1461         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1462 echo "$as_me:   current value: $ac_new_val" >&2;}
1463         ac_cache_corrupted=:
1464       fi;;
1465   esac
1466   # Pass precious variables to config.status.
1467   if test "$ac_new_set" = set; then
1468     case $ac_new_val in
1469     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471     *) ac_arg=$ac_var=$ac_new_val ;;
1472     esac
1473     case " $ac_configure_args " in
1474       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1475       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476     esac
1477   fi
1478 done
1479 if $ac_cache_corrupted; then
1480   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484    { (exit 1); exit 1; }; }
1485 fi
1486
1487 ac_ext=c
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520 ac_aux_dir=
1521 for ac_dir in autoconf $srcdir/autoconf; do
1522   if test -f $ac_dir/install-sh; then
1523     ac_aux_dir=$ac_dir
1524     ac_install_sh="$ac_aux_dir/install-sh -c"
1525     break
1526   elif test -f $ac_dir/install.sh; then
1527     ac_aux_dir=$ac_dir
1528     ac_install_sh="$ac_aux_dir/install.sh -c"
1529     break
1530   elif test -f $ac_dir/shtool; then
1531     ac_aux_dir=$ac_dir
1532     ac_install_sh="$ac_aux_dir/shtool install -c"
1533     break
1534   fi
1535 done
1536 if test -z "$ac_aux_dir"; then
1537   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1538 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1539    { (exit 1); exit 1; }; }
1540 fi
1541 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544
1545
1546 if test ${srcdir} != "."
1547 then
1548         if test -f ${srcdir}/include/llvm/Config/config.h
1549         then
1550                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1551 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1552    { (exit 1); exit 1; }; }
1553         fi
1554 fi
1555
1556 for i in `ls ${srcdir}/projects`
1557 do
1558   if test -d ${srcdir}/projects/${i} ; then
1559     case ${i} in
1560       "CVS") ;;
1561       "sample")
1562
1563 subdirs="$subdirs projects/sample"
1564     ;;
1565       "Stacker")
1566
1567 subdirs="$subdirs projects/Stacker"
1568    ;;
1569       "llvm-test")
1570
1571 subdirs="$subdirs projects/llvm-test"
1572  ;;
1573       "llvm-reopt")
1574
1575 subdirs="$subdirs projects/llvm-reopt"
1576 ;;
1577       "llvm-gcc")
1578
1579 subdirs="$subdirs projects/llvm-gcc"
1580   ;;
1581       "llvm-java")
1582
1583 subdirs="$subdirs projects/llvm-java"
1584  ;;
1585       "llvm-tv")
1586
1587 subdirs="$subdirs projects/llvm-tv"
1588    ;;
1589       "llvm-fefw")
1590
1591 subdirs="$subdirs projects/llvm-fefw"
1592  ;;
1593       *)
1594
1595 subdirs="$subdirs ${i}"
1596  ;;
1597     esac
1598   fi
1599 done
1600
1601           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1602
1603
1604                                                             ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1605
1606
1607           ac_config_commands="$ac_config_commands Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands Makefile.common"
1611
1612
1613           ac_config_commands="$ac_config_commands examples/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands lib/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands runtime/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands test/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands test/Makefile.tests"
1626
1627
1628           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1629
1630
1631           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1632
1633
1634           ac_config_commands="$ac_config_commands tools/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands utils/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands projects/Makefile"
1641
1642
1643
1644 # Find a good install program.  We prefer a C program (faster),
1645 # so one script is as good as another.  But avoid the broken or
1646 # incompatible versions:
1647 # SysV /etc/install, /usr/sbin/install
1648 # SunOS /usr/etc/install
1649 # IRIX /sbin/install
1650 # AIX /bin/install
1651 # AmigaOS /C/install, which installs bootblocks on floppy discs
1652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1655 # OS/2's system install, which has a completely different semantic
1656 # ./install, which can be erroneously created by make from ./install.sh.
1657 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1658 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1659 if test -z "$INSTALL"; then
1660 if test "${ac_cv_path_install+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666   IFS=$as_save_IFS
1667   test -z "$as_dir" && as_dir=.
1668   # Account for people who put trailing slashes in PATH elements.
1669 case $as_dir/ in
1670   ./ | .// | /cC/* | \
1671   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1672   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1673   /usr/ucb/* ) ;;
1674   *)
1675     # OSF1 and SCO ODT 3.0 have their own names for install.
1676     # Don't use installbsd from OSF since it installs stuff as root
1677     # by default.
1678     for ac_prog in ginstall scoinst install; do
1679       for ac_exec_ext in '' $ac_executable_extensions; do
1680         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1681           if test $ac_prog = install &&
1682             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1683             # AIX install.  It has an incompatible calling convention.
1684             :
1685           elif test $ac_prog = install &&
1686             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1687             # program-specific install script used by HP pwplus--don't use.
1688             :
1689           else
1690             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1691             break 3
1692           fi
1693         fi
1694       done
1695     done
1696     ;;
1697 esac
1698 done
1699
1700
1701 fi
1702   if test "${ac_cv_path_install+set}" = set; then
1703     INSTALL=$ac_cv_path_install
1704   else
1705     # As a last resort, use the slow shell script.  We don't cache a
1706     # path for INSTALL within a source directory, because that will
1707     # break other packages using the cache if that directory is
1708     # removed, or if the path is relative.
1709     INSTALL=$ac_install_sh
1710   fi
1711 fi
1712 echo "$as_me:$LINENO: result: $INSTALL" >&5
1713 echo "${ECHO_T}$INSTALL" >&6
1714
1715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1716 # It thinks the first close brace ends the variable substitution.
1717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1718
1719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1720
1721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1722
1723
1724 # Make sure we can run config.sub.
1725 $ac_config_sub sun4 >/dev/null 2>&1 ||
1726   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1727 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1728    { (exit 1); exit 1; }; }
1729
1730 echo "$as_me:$LINENO: checking build system type" >&5
1731 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1732 if test "${ac_cv_build+set}" = set; then
1733   echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735   ac_cv_build_alias=$build_alias
1736 test -z "$ac_cv_build_alias" &&
1737   ac_cv_build_alias=`$ac_config_guess`
1738 test -z "$ac_cv_build_alias" &&
1739   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1740 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1741    { (exit 1); exit 1; }; }
1742 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1743   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1744 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1745    { (exit 1); exit 1; }; }
1746
1747 fi
1748 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1749 echo "${ECHO_T}$ac_cv_build" >&6
1750 build=$ac_cv_build
1751 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754
1755
1756 echo "$as_me:$LINENO: checking host system type" >&5
1757 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1758 if test "${ac_cv_host+set}" = set; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   ac_cv_host_alias=$host_alias
1762 test -z "$ac_cv_host_alias" &&
1763   ac_cv_host_alias=$ac_cv_build_alias
1764 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1765   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1766 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1767    { (exit 1); exit 1; }; }
1768
1769 fi
1770 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1771 echo "${ECHO_T}$ac_cv_host" >&6
1772 host=$ac_cv_host
1773 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776
1777
1778 echo "$as_me:$LINENO: checking target system type" >&5
1779 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1780 if test "${ac_cv_target+set}" = set; then
1781   echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783   ac_cv_target_alias=$target_alias
1784 test "x$ac_cv_target_alias" = "x" &&
1785   ac_cv_target_alias=$ac_cv_host_alias
1786 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1787   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1788 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1789    { (exit 1); exit 1; }; }
1790
1791 fi
1792 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1793 echo "${ECHO_T}$ac_cv_target" >&6
1794 target=$ac_cv_target
1795 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1796 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1797 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1798
1799
1800 # The aliases save the names the user supplied, while $host etc.
1801 # will get canonicalized.
1802 test -n "$target_alias" &&
1803   test "$program_prefix$program_suffix$program_transform_name" = \
1804     NONENONEs,x,x, &&
1805   program_prefix=${target_alias}-
1806
1807
1808 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1809 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1810 case $build in
1811         *-*-aix*)
1812              OS=AIX
1813
1814              platform_type="AIX"
1815              ;;
1816         *-*-cygwin*)
1817              OS=Cygwin
1818
1819              platform_type="Cygwin"
1820              ;;
1821         *-*-darwin*)
1822              OS=Darwin
1823
1824              platform_type="Darwin"
1825              ;;
1826         *-*-freebsd*)
1827              OS=Linux
1828
1829              platform_type="FreeBSD"
1830              ;;
1831         *-*-interix*)
1832              OS=SunOS
1833
1834              platform_type="Interix"
1835              ;;
1836         *-*-linux*)
1837              OS=Linux
1838
1839              platform_type="Linux"
1840              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1841              then
1842                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1843
1844              fi
1845              ;;
1846         *-*-solaris*)
1847              OS=SunOS
1848
1849              platform_type="SunOS"
1850              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1851              then
1852                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1853
1854              fi
1855              ;;
1856         *-*-win32*)
1857              OS=Win32
1858
1859              platform_type="Win32"
1860              ;;
1861         *)
1862              OS=Unknown
1863
1864              platform_type="Unknown"
1865              ;;
1866 esac
1867
1868 if test "$platform_type" = "Unknown" ; then
1869   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1870 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1875
1876
1877 echo "$as_me:$LINENO: result: $platform_type" >&5
1878 echo "${ECHO_T}$platform_type" >&6
1879
1880 echo "$as_me:$LINENO: checking target architecture" >&5
1881 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1882 case $target in
1883         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1884
1885                             ;;
1886 esac
1887
1888 case $target in
1889         i*86-*)
1890           ARCH="x86"
1891           ARCH=x86
1892
1893           ;;
1894         sparc*-*)
1895           ARCH="Sparc"
1896           ARCH=Sparc
1897
1898           ;;
1899         powerpc*-*)
1900           ARCH="PowerPC"
1901           ARCH=PowerPC
1902
1903           ;;
1904         *)
1905           ARCH="Unknown"
1906           ARCH=Unknown
1907
1908           ;;
1909 esac
1910
1911 echo "$as_me:$LINENO: result: $ARCH" >&5
1912 echo "${ECHO_T}$ARCH" >&6
1913
1914 ac_ext=cc
1915 ac_cpp='$CXXCPP $CPPFLAGS'
1916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1919 if test -n "$ac_tool_prefix"; then
1920   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1921   do
1922     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CXX+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   if test -n "$CXX"; then
1930   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935   IFS=$as_save_IFS
1936   test -z "$as_dir" && as_dir=.
1937   for ac_exec_ext in '' $ac_executable_extensions; do
1938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941     break 2
1942   fi
1943 done
1944 done
1945
1946 fi
1947 fi
1948 CXX=$ac_cv_prog_CXX
1949 if test -n "$CXX"; then
1950   echo "$as_me:$LINENO: result: $CXX" >&5
1951 echo "${ECHO_T}$CXX" >&6
1952 else
1953   echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 fi
1956
1957     test -n "$CXX" && break
1958   done
1959 fi
1960 if test -z "$CXX"; then
1961   ac_ct_CXX=$CXX
1962   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1963 do
1964   # Extract the first word of "$ac_prog", so it can be a program name with args.
1965 set dummy $ac_prog; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1969   echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971   if test -n "$ac_ct_CXX"; then
1972   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979   for ac_exec_ext in '' $ac_executable_extensions; do
1980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981     ac_cv_prog_ac_ct_CXX="$ac_prog"
1982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983     break 2
1984   fi
1985 done
1986 done
1987
1988 fi
1989 fi
1990 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1991 if test -n "$ac_ct_CXX"; then
1992   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1993 echo "${ECHO_T}$ac_ct_CXX" >&6
1994 else
1995   echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
1997 fi
1998
1999   test -n "$ac_ct_CXX" && break
2000 done
2001 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2002
2003   CXX=$ac_ct_CXX
2004 fi
2005
2006
2007 # Provide some information about the compiler.
2008 echo "$as_me:$LINENO:" \
2009      "checking for C++ compiler version" >&5
2010 ac_compiler=`set X $ac_compile; echo $2`
2011 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2012   (eval $ac_compiler --version </dev/null >&5) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }
2016 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2017   (eval $ac_compiler -v </dev/null >&5) 2>&5
2018   ac_status=$?
2019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020   (exit $ac_status); }
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2022   (eval $ac_compiler -V </dev/null >&5) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }
2026
2027 cat >conftest.$ac_ext <<_ACEOF
2028 /* confdefs.h.  */
2029 _ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h.  */
2033
2034 int
2035 main ()
2036 {
2037
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 ac_clean_files_save=$ac_clean_files
2043 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2044 # Try to create an executable without -o first, disregard a.out.
2045 # It will help us diagnose broken compilers, and finding out an intuition
2046 # of exeext.
2047 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2048 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2049 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2050 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2051   (eval $ac_link_default) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }; then
2055   # Find the output, starting from the most likely.  This scheme is
2056 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2057 # resort.
2058
2059 # Be careful to initialize this variable, since it used to be cached.
2060 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2061 ac_cv_exeext=
2062 # b.out is created by i960 compilers.
2063 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2064 do
2065   test -f "$ac_file" || continue
2066   case $ac_file in
2067     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2068         ;;
2069     conftest.$ac_ext )
2070         # This is the source file.
2071         ;;
2072     [ab].out )
2073         # We found the default executable, but exeext='' is most
2074         # certainly right.
2075         break;;
2076     *.* )
2077         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2078         # FIXME: I believe we export ac_cv_exeext for Libtool,
2079         # but it would be cool to find out if it's true.  Does anybody
2080         # maintain Libtool? --akim.
2081         export ac_cv_exeext
2082         break;;
2083     * )
2084         break;;
2085   esac
2086 done
2087 else
2088   echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2090
2091 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: C++ compiler cannot create executables
2094 See \`config.log' for more details." >&2;}
2095    { (exit 77); exit 77; }; }
2096 fi
2097
2098 ac_exeext=$ac_cv_exeext
2099 echo "$as_me:$LINENO: result: $ac_file" >&5
2100 echo "${ECHO_T}$ac_file" >&6
2101
2102 # Check the compiler produces executables we can run.  If not, either
2103 # the compiler is broken, or we cross compile.
2104 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2105 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2106 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2107 # If not cross compiling, check that we can run a simple program.
2108 if test "$cross_compiling" != yes; then
2109   if { ac_try='./$ac_file'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; }; then
2115     cross_compiling=no
2116   else
2117     if test "$cross_compiling" = maybe; then
2118         cross_compiling=yes
2119     else
2120         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2121 If you meant to cross compile, use \`--host'.
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: cannot run C++ compiled programs.
2124 If you meant to cross compile, use \`--host'.
2125 See \`config.log' for more details." >&2;}
2126    { (exit 1); exit 1; }; }
2127     fi
2128   fi
2129 fi
2130 echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6
2132
2133 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2134 ac_clean_files=$ac_clean_files_save
2135 # Check the compiler produces executables we can run.  If not, either
2136 # the compiler is broken, or we cross compile.
2137 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2139 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140 echo "${ECHO_T}$cross_compiling" >&6
2141
2142 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2145   (eval $ac_link) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2151 # work properly (i.e., refer to `conftest.exe'), while it won't with
2152 # `rm'.
2153 for ac_file in conftest.exe conftest conftest.*; do
2154   test -f "$ac_file" || continue
2155   case $ac_file in
2156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2157     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2158           export ac_cv_exeext
2159           break;;
2160     * ) break;;
2161   esac
2162 done
2163 else
2164   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2167 See \`config.log' for more details." >&2;}
2168    { (exit 1); exit 1; }; }
2169 fi
2170
2171 rm -f conftest$ac_cv_exeext
2172 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2173 echo "${ECHO_T}$ac_cv_exeext" >&6
2174
2175 rm -f conftest.$ac_ext
2176 EXEEXT=$ac_cv_exeext
2177 ac_exeext=$EXEEXT
2178 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2179 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2180 if test "${ac_cv_objext+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   cat >conftest.$ac_ext <<_ACEOF
2184 /* confdefs.h.  */
2185 _ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h.  */
2189
2190 int
2191 main ()
2192 {
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 rm -f conftest.o conftest.obj
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200   (eval $ac_compile) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; then
2204   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205   case $ac_file in
2206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2207     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2208        break;;
2209   esac
2210 done
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2218 See \`config.log' for more details." >&2;}
2219    { (exit 1); exit 1; }; }
2220 fi
2221
2222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223 fi
2224 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2225 echo "${ECHO_T}$ac_cv_objext" >&6
2226 OBJEXT=$ac_cv_objext
2227 ac_objext=$OBJEXT
2228 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2229 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2230 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   cat >conftest.$ac_ext <<_ACEOF
2234 /* confdefs.h.  */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h.  */
2239
2240 int
2241 main ()
2242 {
2243 #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>conftest.er1
2254   ac_status=$?
2255   grep -v '^ *+' conftest.er1 >conftest.err
2256   rm -f conftest.er1
2257   cat conftest.err >&5
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); } &&
2260          { ac_try='test -z "$ac_cxx_werror_flag"
2261                          || test ! -s conftest.err'
2262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263   (eval $ac_try) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   ac_compiler_gnu=yes
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 ac_compiler_gnu=no
2279 fi
2280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2282
2283 fi
2284 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2285 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2286 GXX=`test $ac_compiler_gnu = yes && echo yes`
2287 ac_test_CXXFLAGS=${CXXFLAGS+set}
2288 ac_save_CXXFLAGS=$CXXFLAGS
2289 CXXFLAGS="-g"
2290 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2291 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2292 if test "${ac_cv_prog_cxx_g+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312   (eval $ac_compile) 2>conftest.er1
2313   ac_status=$?
2314   grep -v '^ *+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } &&
2319          { ac_try='test -z "$ac_cxx_werror_flag"
2320                          || test ! -s conftest.err'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   ac_cv_prog_cxx_g=yes
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 ac_cv_prog_cxx_g=no
2338 fi
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 fi
2341 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2342 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2343 if test "$ac_test_CXXFLAGS" = set; then
2344   CXXFLAGS=$ac_save_CXXFLAGS
2345 elif test $ac_cv_prog_cxx_g = yes; then
2346   if test "$GXX" = yes; then
2347     CXXFLAGS="-g -O2"
2348   else
2349     CXXFLAGS="-g"
2350   fi
2351 else
2352   if test "$GXX" = yes; then
2353     CXXFLAGS="-O2"
2354   else
2355     CXXFLAGS=
2356   fi
2357 fi
2358 for ac_declaration in \
2359    '' \
2360    'extern "C" void std::exit (int) throw (); using std::exit;' \
2361    'extern "C" void std::exit (int); using std::exit;' \
2362    'extern "C" void exit (int) throw ();' \
2363    'extern "C" void exit (int);' \
2364    'void exit (int);'
2365 do
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372 $ac_declaration
2373 #include <stdlib.h>
2374 int
2375 main ()
2376 {
2377 exit (42);
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384   (eval $ac_compile) 2>conftest.er1
2385   ac_status=$?
2386   grep -v '^ *+' conftest.er1 >conftest.err
2387   rm -f conftest.er1
2388   cat conftest.err >&5
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } &&
2391          { ac_try='test -z "$ac_cxx_werror_flag"
2392                          || test ! -s conftest.err'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; } &&
2398          { ac_try='test -s conftest.$ac_objext'
2399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400   (eval $ac_try) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; }; then
2404   :
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 continue
2410 fi
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412   cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h.  */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h.  */
2418 $ac_declaration
2419 int
2420 main ()
2421 {
2422 exit (42);
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429   (eval $ac_compile) 2>conftest.er1
2430   ac_status=$?
2431   grep -v '^ *+' conftest.er1 >conftest.err
2432   rm -f conftest.er1
2433   cat conftest.err >&5
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); } &&
2436          { ac_try='test -z "$ac_cxx_werror_flag"
2437                          || test ! -s conftest.err'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; } &&
2443          { ac_try='test -s conftest.$ac_objext'
2444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445   (eval $ac_try) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; }; then
2449   break
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 fi
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 done
2457 rm -f conftest*
2458 if test -n "$ac_declaration"; then
2459   echo '#ifdef __cplusplus' >>confdefs.h
2460   echo $ac_declaration      >>confdefs.h
2461   echo '#endif'             >>confdefs.h
2462 fi
2463
2464 ac_ext=c
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469
2470 ac_ext=c
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475 if test -n "$ac_tool_prefix"; then
2476   for ac_prog in gcc
2477   do
2478     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$CC"; then
2486   ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501
2502 fi
2503 fi
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506   echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6
2508 else
2509   echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2511 fi
2512
2513     test -n "$CC" && break
2514   done
2515 fi
2516 if test -z "$CC"; then
2517   ac_ct_CC=$CC
2518   for ac_prog in gcc
2519 do
2520   # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$ac_ct_CC"; then
2528   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     ac_cv_prog_ac_ct_CC="$ac_prog"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543
2544 fi
2545 fi
2546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547 if test -n "$ac_ct_CC"; then
2548   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2549 echo "${ECHO_T}$ac_ct_CC" >&6
2550 else
2551   echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2553 fi
2554
2555   test -n "$ac_ct_CC" && break
2556 done
2557
2558   CC=$ac_ct_CC
2559 fi
2560
2561
2562 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: no acceptable C compiler found in \$PATH
2565 See \`config.log' for more details." >&2;}
2566    { (exit 1); exit 1; }; }
2567
2568 # Provide some information about the compiler.
2569 echo "$as_me:$LINENO:" \
2570      "checking for C compiler version" >&5
2571 ac_compiler=`set X $ac_compile; echo $2`
2572 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2573   (eval $ac_compiler --version </dev/null >&5) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2578   (eval $ac_compiler -v </dev/null >&5) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }
2582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2583   (eval $ac_compiler -V </dev/null >&5) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }
2587
2588 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591   echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593   cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h.  */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h.  */
2599
2600 int
2601 main ()
2602 {
2603 #ifndef __GNUC__
2604        choke me
2605 #endif
2606
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613   (eval $ac_compile) 2>conftest.er1
2614   ac_status=$?
2615   grep -v '^ *+' conftest.er1 >conftest.err
2616   rm -f conftest.er1
2617   cat conftest.err >&5
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -z "$ac_c_werror_flag"
2621                          || test ! -s conftest.err'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; } &&
2627          { ac_try='test -s conftest.$ac_objext'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; }; then
2633   ac_compiler_gnu=yes
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 ac_compiler_gnu=no
2639 fi
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2642
2643 fi
2644 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646 GCC=`test $ac_compiler_gnu = yes && echo yes`
2647 ac_test_CFLAGS=${CFLAGS+set}
2648 ac_save_CFLAGS=$CFLAGS
2649 CFLAGS="-g"
2650 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652 if test "${ac_cv_prog_cc_g+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h.  */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h.  */
2661
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672   (eval $ac_compile) 2>conftest.er1
2673   ac_status=$?
2674   grep -v '^ *+' conftest.er1 >conftest.err
2675   rm -f conftest.er1
2676   cat conftest.err >&5
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -z "$ac_c_werror_flag"
2680                          || test ! -s conftest.err'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; } &&
2686          { ac_try='test -s conftest.$ac_objext'
2687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }; }; then
2692   ac_cv_prog_cc_g=yes
2693 else
2694   echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697 ac_cv_prog_cc_g=no
2698 fi
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2700 fi
2701 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703 if test "$ac_test_CFLAGS" = set; then
2704   CFLAGS=$ac_save_CFLAGS
2705 elif test $ac_cv_prog_cc_g = yes; then
2706   if test "$GCC" = yes; then
2707     CFLAGS="-g -O2"
2708   else
2709     CFLAGS="-g"
2710   fi
2711 else
2712   if test "$GCC" = yes; then
2713     CFLAGS="-O2"
2714   else
2715     CFLAGS=
2716   fi
2717 fi
2718 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   ac_cv_prog_cc_stdc=no
2724 ac_save_CC=$CC
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h.  */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h.  */
2731 #include <stdarg.h>
2732 #include <stdio.h>
2733 #include <sys/types.h>
2734 #include <sys/stat.h>
2735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2736 struct buf { int x; };
2737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738 static char *e (p, i)
2739      char **p;
2740      int i;
2741 {
2742   return p[i];
2743 }
2744 static char *f (char * (*g) (char **, int), char **p, ...)
2745 {
2746   char *s;
2747   va_list v;
2748   va_start (v,p);
2749   s = g (p, va_arg (v,int));
2750   va_end (v);
2751   return s;
2752 }
2753
2754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2755    function prototypes and stuff, but not '\xHH' hex character constants.
2756    These don't provoke an error unfortunately, instead are silently treated
2757    as 'x'.  The following induces an error, until -std1 is added to get
2758    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2759    array size at least.  It's necessary to write '\x00'==0 to get something
2760    that's true only with -std1.  */
2761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2762
2763 int test (int i, double x);
2764 struct s1 {int (*f) (int a);};
2765 struct s2 {int (*f) (double a);};
2766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2767 int argc;
2768 char **argv;
2769 int
2770 main ()
2771 {
2772 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 # Don't try gcc -ansi; that turns off useful extensions and
2778 # breaks some systems' header files.
2779 # AIX                   -qlanglvl=ansi
2780 # Ultrix and OSF/1      -std1
2781 # HP-UX 10.20 and later -Ae
2782 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2783 # SVR4                  -Xc -D__EXTENSIONS__
2784 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2785 do
2786   CC="$ac_save_CC $ac_arg"
2787   rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_c_werror_flag"
2797                          || test ! -s conftest.err'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; }; then
2809   ac_cv_prog_cc_stdc=$ac_arg
2810 break
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 fi
2816 rm -f conftest.err conftest.$ac_objext
2817 done
2818 rm -f conftest.$ac_ext conftest.$ac_objext
2819 CC=$ac_save_CC
2820
2821 fi
2822
2823 case "x$ac_cv_prog_cc_stdc" in
2824   x|xno)
2825     echo "$as_me:$LINENO: result: none needed" >&5
2826 echo "${ECHO_T}none needed" >&6 ;;
2827   *)
2828     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830     CC="$CC $ac_cv_prog_cc_stdc" ;;
2831 esac
2832
2833 # Some people use a C++ compiler to compile C.  Since we use `exit',
2834 # in C++ we need to declare it.  In case someone uses the same compiler
2835 # for both compiling C and C++ we need to have the C++ compiler decide
2836 # the declaration of exit, since it's the most demanding environment.
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #ifndef __cplusplus
2839   choke me
2840 #endif
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844   (eval $ac_compile) 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851          { ac_try='test -z "$ac_c_werror_flag"
2852                          || test ! -s conftest.err'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   for ac_declaration in \
2865    '' \
2866    'extern "C" void std::exit (int) throw (); using std::exit;' \
2867    'extern "C" void std::exit (int); using std::exit;' \
2868    'extern "C" void exit (int) throw ();' \
2869    'extern "C" void exit (int);' \
2870    'void exit (int);'
2871 do
2872   cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h.  */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h.  */
2878 $ac_declaration
2879 #include <stdlib.h>
2880 int
2881 main ()
2882 {
2883 exit (42);
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890   (eval $ac_compile) 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } &&
2897          { ac_try='test -z "$ac_c_werror_flag"
2898                          || test ! -s conftest.err'
2899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900   (eval $ac_try) 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; } &&
2904          { ac_try='test -s conftest.$ac_objext'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; }; then
2910   :
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 continue
2916 fi
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924 $ac_declaration
2925 int
2926 main ()
2927 {
2928 exit (42);
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935   (eval $ac_compile) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } &&
2942          { ac_try='test -z "$ac_c_werror_flag"
2943                          || test ! -s conftest.err'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; } &&
2949          { ac_try='test -s conftest.$ac_objext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   break
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 fi
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 done
2963 rm -f conftest*
2964 if test -n "$ac_declaration"; then
2965   echo '#ifdef __cplusplus' >>confdefs.h
2966   echo $ac_declaration      >>confdefs.h
2967   echo '#endif'             >>confdefs.h
2968 fi
2969
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974 fi
2975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981
2982 ac_ext=c
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2988 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2989 # On Suns, sometimes $CPP names a directory.
2990 if test -n "$CPP" && test -d "$CPP"; then
2991   CPP=
2992 fi
2993 if test -z "$CPP"; then
2994   if test "${ac_cv_prog_CPP+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997       # Double quotes because CPP needs to be expanded
2998     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2999     do
3000       ac_preproc_ok=false
3001 for ac_c_preproc_warn_flag in '' yes
3002 do
3003   # Use a header file that comes with gcc, so configuring glibc
3004   # with a fresh cross-compiler works.
3005   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006   # <limits.h> exists even on freestanding compilers.
3007   # On the NeXT, cc -E runs the code through the compiler's parser,
3008   # not just through cpp. "Syntax error" is here to catch this case.
3009   cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #ifdef __STDC__
3016 # include <limits.h>
3017 #else
3018 # include <assert.h>
3019 #endif
3020                      Syntax error
3021 _ACEOF
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } >/dev/null; then
3030   if test -s conftest.err; then
3031     ac_cpp_err=$ac_c_preproc_warn_flag
3032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3033   else
3034     ac_cpp_err=
3035   fi
3036 else
3037   ac_cpp_err=yes
3038 fi
3039 if test -z "$ac_cpp_err"; then
3040   :
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045   # Broken: fails on valid input.
3046 continue
3047 fi
3048 rm -f conftest.err conftest.$ac_ext
3049
3050   # OK, works on sane cases.  Now check whether non-existent headers
3051   # can be detected and how.
3052   cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h.  */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h.  */
3058 #include <ac_nonexistent.h>
3059 _ACEOF
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062   ac_status=$?
3063   grep -v '^ *+' conftest.er1 >conftest.err
3064   rm -f conftest.er1
3065   cat conftest.err >&5
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); } >/dev/null; then
3068   if test -s conftest.err; then
3069     ac_cpp_err=$ac_c_preproc_warn_flag
3070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071   else
3072     ac_cpp_err=
3073   fi
3074 else
3075   ac_cpp_err=yes
3076 fi
3077 if test -z "$ac_cpp_err"; then
3078   # Broken: success on invalid input.
3079 continue
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084   # Passes both tests.
3085 ac_preproc_ok=:
3086 break
3087 fi
3088 rm -f conftest.err conftest.$ac_ext
3089
3090 done
3091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092 rm -f conftest.err conftest.$ac_ext
3093 if $ac_preproc_ok; then
3094   break
3095 fi
3096
3097     done
3098     ac_cv_prog_CPP=$CPP
3099
3100 fi
3101   CPP=$ac_cv_prog_CPP
3102 else
3103   ac_cv_prog_CPP=$CPP
3104 fi
3105 echo "$as_me:$LINENO: result: $CPP" >&5
3106 echo "${ECHO_T}$CPP" >&6
3107 ac_preproc_ok=false
3108 for ac_c_preproc_warn_flag in '' yes
3109 do
3110   # Use a header file that comes with gcc, so configuring glibc
3111   # with a fresh cross-compiler works.
3112   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113   # <limits.h> exists even on freestanding compilers.
3114   # On the NeXT, cc -E runs the code through the compiler's parser,
3115   # not just through cpp. "Syntax error" is here to catch this case.
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 #ifdef __STDC__
3123 # include <limits.h>
3124 #else
3125 # include <assert.h>
3126 #endif
3127                      Syntax error
3128 _ACEOF
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } >/dev/null; then
3137   if test -s conftest.err; then
3138     ac_cpp_err=$ac_c_preproc_warn_flag
3139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3140   else
3141     ac_cpp_err=
3142   fi
3143 else
3144   ac_cpp_err=yes
3145 fi
3146 if test -z "$ac_cpp_err"; then
3147   :
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152   # Broken: fails on valid input.
3153 continue
3154 fi
3155 rm -f conftest.err conftest.$ac_ext
3156
3157   # OK, works on sane cases.  Now check whether non-existent headers
3158   # can be detected and how.
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #include <ac_nonexistent.h>
3166 _ACEOF
3167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3169   ac_status=$?
3170   grep -v '^ *+' conftest.er1 >conftest.err
3171   rm -f conftest.er1
3172   cat conftest.err >&5
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } >/dev/null; then
3175   if test -s conftest.err; then
3176     ac_cpp_err=$ac_c_preproc_warn_flag
3177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3178   else
3179     ac_cpp_err=
3180   fi
3181 else
3182   ac_cpp_err=yes
3183 fi
3184 if test -z "$ac_cpp_err"; then
3185   # Broken: success on invalid input.
3186 continue
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191   # Passes both tests.
3192 ac_preproc_ok=:
3193 break
3194 fi
3195 rm -f conftest.err conftest.$ac_ext
3196
3197 done
3198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199 rm -f conftest.err conftest.$ac_ext
3200 if $ac_preproc_ok; then
3201   :
3202 else
3203   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3204 See \`config.log' for more details." >&5
3205 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3206 See \`config.log' for more details." >&2;}
3207    { (exit 1); exit 1; }; }
3208 fi
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
3216
3217 if test "$GCC" != "yes"
3218 then
3219         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3220 echo "$as_me: error: gcc required but not found" >&2;}
3221    { (exit 1); exit 1; }; }
3222 fi
3223 if test "$GXX" != "yes"
3224 then
3225         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3226 echo "$as_me: error: g++ required but not found" >&2;}
3227    { (exit 1); exit 1; }; }
3228 fi
3229
3230 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3231 if test "$gccmajor" -lt "3"
3232 then
3233         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3234 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3235    { (exit 1); exit 1; }; }
3236 fi
3237
3238  echo "$as_me:$LINENO: checking for GNU make" >&5
3239 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3240 if test "${_cv_gnu_make_command+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243   _cv_gnu_make_command='' ;
3244                 for a in "$MAKE" make gmake gnumake ; do
3245                         if test -z "$a" ; then continue ; fi ;
3246                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3247                                 _cv_gnu_make_command=$a ;
3248                                 break;
3249                         fi
3250                 done ;
3251
3252 fi
3253 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3254 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3255         if test  "x$_cv_gnu_make_command" != "x"  ; then
3256                 ifGNUmake='' ;
3257         else
3258                 ifGNUmake='#' ;
3259                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3260 echo "${ECHO_T}\"Not found\"" >&6;
3261         fi
3262
3263
3264 if test -z "$_cv_gnu_make_command"
3265 then
3266         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3267 echo "$as_me: error: GNU Make required but not found" >&2;}
3268    { (exit 1); exit 1; }; }
3269 fi
3270
3271
3272 echo "$as_me:$LINENO: checking " >&5
3273 echo $ECHO_N "checking ... $ECHO_C" >&6
3274 if test "${ac_cv_has_flex+set}" = set; then
3275   echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277   for ac_prog in flex lex
3278 do
3279   # Extract the first word of "$ac_prog", so it can be a program name with args.
3280 set dummy $ac_prog; ac_word=$2
3281 echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283 if test "${ac_cv_prog_LEX+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   if test -n "$LEX"; then
3287   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   for ac_exec_ext in '' $ac_executable_extensions; do
3295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296     ac_cv_prog_LEX="$ac_prog"
3297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298     break 2
3299   fi
3300 done
3301 done
3302
3303 fi
3304 fi
3305 LEX=$ac_cv_prog_LEX
3306 if test -n "$LEX"; then
3307   echo "$as_me:$LINENO: result: $LEX" >&5
3308 echo "${ECHO_T}$LEX" >&6
3309 else
3310   echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 fi
3313
3314   test -n "$LEX" && break
3315 done
3316 test -n "$LEX" || LEX=":"
3317
3318 if test -z "$LEXLIB"
3319 then
3320   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3321 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3322 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   ac_check_lib_save_LIBS=$LIBS
3326 LIBS="-lfl  $LIBS"
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333
3334 /* Override any gcc2 internal prototype to avoid an error.  */
3335 #ifdef __cplusplus
3336 extern "C"
3337 #endif
3338 /* We use char because int might match the return type of a gcc2
3339    builtin and then its argument prototype would still apply.  */
3340 char yywrap ();
3341 int
3342 main ()
3343 {
3344 yywrap ();
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 rm -f conftest.$ac_objext conftest$ac_exeext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3351   (eval $ac_link) 2>conftest.er1
3352   ac_status=$?
3353   grep -v '^ *+' conftest.er1 >conftest.err
3354   rm -f conftest.er1
3355   cat conftest.err >&5
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); } &&
3358          { ac_try='test -z "$ac_c_werror_flag"
3359                          || test ! -s conftest.err'
3360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361   (eval $ac_try) 2>&5
3362   ac_status=$?
3363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364   (exit $ac_status); }; } &&
3365          { ac_try='test -s conftest$ac_exeext'
3366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367   (eval $ac_try) 2>&5
3368   ac_status=$?
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); }; }; then
3371   ac_cv_lib_fl_yywrap=yes
3372 else
3373   echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 ac_cv_lib_fl_yywrap=no
3377 fi
3378 rm -f conftest.err conftest.$ac_objext \
3379       conftest$ac_exeext conftest.$ac_ext
3380 LIBS=$ac_check_lib_save_LIBS
3381 fi
3382 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3383 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3384 if test $ac_cv_lib_fl_yywrap = yes; then
3385   LEXLIB="-lfl"
3386 else
3387   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3388 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3389 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   ac_check_lib_save_LIBS=$LIBS
3393 LIBS="-ll  $LIBS"
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h.  */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h.  */
3400
3401 /* Override any gcc2 internal prototype to avoid an error.  */
3402 #ifdef __cplusplus
3403 extern "C"
3404 #endif
3405 /* We use char because int might match the return type of a gcc2
3406    builtin and then its argument prototype would still apply.  */
3407 char yywrap ();
3408 int
3409 main ()
3410 {
3411 yywrap ();
3412   ;
3413   return 0;
3414 }
3415 _ACEOF
3416 rm -f conftest.$ac_objext conftest$ac_exeext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3418   (eval $ac_link) 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } &&
3425          { ac_try='test -z "$ac_c_werror_flag"
3426                          || test ! -s conftest.err'
3427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428   (eval $ac_try) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; } &&
3432          { ac_try='test -s conftest$ac_exeext'
3433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434   (eval $ac_try) 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; }; then
3438   ac_cv_lib_l_yywrap=yes
3439 else
3440   echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 ac_cv_lib_l_yywrap=no
3444 fi
3445 rm -f conftest.err conftest.$ac_objext \
3446       conftest$ac_exeext conftest.$ac_ext
3447 LIBS=$ac_check_lib_save_LIBS
3448 fi
3449 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3450 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3451 if test $ac_cv_lib_l_yywrap = yes; then
3452   LEXLIB="-ll"
3453 fi
3454
3455 fi
3456
3457 fi
3458
3459 if test "x$LEX" != "x:"; then
3460   echo "$as_me:$LINENO: checking lex output file root" >&5
3461 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3462 if test "${ac_cv_prog_lex_root+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   # The minimal lex program is just a single line: %%.  But some broken lexes
3466 # (Solaris, I think it was) want two %% lines, so accommodate them.
3467 cat >conftest.l <<_ACEOF
3468 %%
3469 %%
3470 _ACEOF
3471 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3472   (eval $LEX conftest.l) 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }
3476 if test -f lex.yy.c; then
3477   ac_cv_prog_lex_root=lex.yy
3478 elif test -f lexyy.c; then
3479   ac_cv_prog_lex_root=lexyy
3480 else
3481   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3482 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3483    { (exit 1); exit 1; }; }
3484 fi
3485 fi
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3487 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3488 rm -f conftest.l
3489 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3490
3491 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3492 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3493 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   # POSIX says lex can declare yytext either as a pointer or an array; the
3497 # default is implementation-dependent. Figure out which it is, since
3498 # not all implementations provide the %pointer and %array declarations.
3499 ac_cv_prog_lex_yytext_pointer=no
3500 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3501 ac_save_LIBS=$LIBS
3502 LIBS="$LIBS $LEXLIB"
3503 cat >conftest.$ac_ext <<_ACEOF
3504 `cat $LEX_OUTPUT_ROOT.c`
3505 _ACEOF
3506 rm -f conftest.$ac_objext conftest$ac_exeext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3508   (eval $ac_link) 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } &&
3515          { ac_try='test -z "$ac_c_werror_flag"
3516                          || test ! -s conftest.err'
3517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518   (eval $ac_try) 2>&5
3519   ac_status=$?
3520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); }; } &&
3522          { ac_try='test -s conftest$ac_exeext'
3523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524   (eval $ac_try) 2>&5
3525   ac_status=$?
3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); }; }; then
3528   ac_cv_prog_lex_yytext_pointer=yes
3529 else
3530   echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 fi
3534 rm -f conftest.err conftest.$ac_objext \
3535       conftest$ac_exeext conftest.$ac_ext
3536 LIBS=$ac_save_LIBS
3537 rm -f "${LEX_OUTPUT_ROOT}.c"
3538
3539 fi
3540 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3541 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3542 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3543
3544 cat >>confdefs.h <<\_ACEOF
3545 #define YYTEXT_POINTER 1
3546 _ACEOF
3547
3548 fi
3549
3550 fi
3551
3552 fi
3553 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3554 echo "${ECHO_T}$ac_cv_has_flex" >&6
3555 if test "$LEX" != "flex"; then
3556   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3557 echo "$as_me: error: flex not found but required" >&2;}
3558    { (exit 1); exit 1; }; }
3559 fi
3560
3561 echo "$as_me:$LINENO: checking " >&5
3562 echo $ECHO_N "checking ... $ECHO_C" >&6
3563 if test "${ac_cv_has_bison+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   for ac_prog in 'bison -y' byacc
3567 do
3568   # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 echo "$as_me:$LINENO: checking for $ac_word" >&5
3571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3572 if test "${ac_cv_prog_YACC+set}" = set; then
3573   echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575   if test -n "$YACC"; then
3576   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581   IFS=$as_save_IFS
3582   test -z "$as_dir" && as_dir=.
3583   for ac_exec_ext in '' $ac_executable_extensions; do
3584   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585     ac_cv_prog_YACC="$ac_prog"
3586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587     break 2
3588   fi
3589 done
3590 done
3591
3592 fi
3593 fi
3594 YACC=$ac_cv_prog_YACC
3595 if test -n "$YACC"; then
3596   echo "$as_me:$LINENO: result: $YACC" >&5
3597 echo "${ECHO_T}$YACC" >&6
3598 else
3599   echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601 fi
3602
3603   test -n "$YACC" && break
3604 done
3605 test -n "$YACC" || YACC="yacc"
3606
3607
3608 fi
3609 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3610 echo "${ECHO_T}$ac_cv_has_bison" >&6
3611 if test "$YACC" != "bison -y"; then
3612   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3613 echo "$as_me: error: bison not found but required" >&2;}
3614    { (exit 1); exit 1; }; }
3615 else
3616   BISON=bison
3617
3618 fi
3619
3620 # Check whether --enable-shared or --disable-shared was given.
3621 if test "${enable_shared+set}" = set; then
3622   enableval="$enable_shared"
3623   p=${PACKAGE-default}
3624     case $enableval in
3625     yes) enable_shared=yes ;;
3626     no) enable_shared=no ;;
3627     *)
3628       enable_shared=no
3629       # Look at the argument we got.  We use all the common list separators.
3630       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3631       for pkg in $enableval; do
3632         IFS="$lt_save_ifs"
3633         if test "X$pkg" = "X$p"; then
3634           enable_shared=yes
3635         fi
3636       done
3637       IFS="$lt_save_ifs"
3638       ;;
3639     esac
3640 else
3641   enable_shared=yes
3642 fi;
3643
3644 # Check whether --enable-static or --disable-static was given.
3645 if test "${enable_static+set}" = set; then
3646   enableval="$enable_static"
3647   p=${PACKAGE-default}
3648     case $enableval in
3649     yes) enable_static=yes ;;
3650     no) enable_static=no ;;
3651     *)
3652      enable_static=no
3653       # Look at the argument we got.  We use all the common list separators.
3654       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3655       for pkg in $enableval; do
3656         IFS="$lt_save_ifs"
3657         if test "X$pkg" = "X$p"; then
3658           enable_static=yes
3659         fi
3660       done
3661       IFS="$lt_save_ifs"
3662       ;;
3663     esac
3664 else
3665   enable_static=yes
3666 fi;
3667
3668 # Check whether --enable-fast-install or --disable-fast-install was given.
3669 if test "${enable_fast_install+set}" = set; then
3670   enableval="$enable_fast_install"
3671   p=${PACKAGE-default}
3672     case $enableval in
3673     yes) enable_fast_install=yes ;;
3674     no) enable_fast_install=no ;;
3675     *)
3676       enable_fast_install=no
3677       # Look at the argument we got.  We use all the common list separators.
3678       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3679       for pkg in $enableval; do
3680         IFS="$lt_save_ifs"
3681         if test "X$pkg" = "X$p"; then
3682           enable_fast_install=yes
3683         fi
3684       done
3685       IFS="$lt_save_ifs"
3686       ;;
3687     esac
3688 else
3689   enable_fast_install=yes
3690 fi;
3691
3692 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3693 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3694 if test "${lt_cv_path_SED+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   # Loop through the user's path and test for sed and gsed.
3698 # Then use that list of sed's as ones to test for truncation.
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704   for lt_ac_prog in sed gsed; do
3705     for ac_exec_ext in '' $ac_executable_extensions; do
3706       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3707         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3708       fi
3709     done
3710   done
3711 done
3712 lt_ac_max=0
3713 lt_ac_count=0
3714 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3715 # along with /bin/sed that truncates output.
3716 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3717   test ! -f $lt_ac_sed && break
3718   cat /dev/null > conftest.in
3719   lt_ac_count=0
3720   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3721   # Check for GNU sed and select it if it is found.
3722   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3723     lt_cv_path_SED=$lt_ac_sed
3724     break
3725   fi
3726   while true; do
3727     cat conftest.in conftest.in >conftest.tmp
3728     mv conftest.tmp conftest.in
3729     cp conftest.in conftest.nl
3730     echo >>conftest.nl
3731     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3732     cmp -s conftest.out conftest.nl || break
3733     # 10000 chars as input seems more than enough
3734     test $lt_ac_count -gt 10 && break
3735     lt_ac_count=`expr $lt_ac_count + 1`
3736     if test $lt_ac_count -gt $lt_ac_max; then
3737       lt_ac_max=$lt_ac_count
3738       lt_cv_path_SED=$lt_ac_sed
3739     fi
3740   done
3741 done
3742 SED=$lt_cv_path_SED
3743
3744 fi
3745
3746 echo "$as_me:$LINENO: result: $SED" >&5
3747 echo "${ECHO_T}$SED" >&6
3748
3749 echo "$as_me:$LINENO: checking for egrep" >&5
3750 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3751 if test "${ac_cv_prog_egrep+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3755     then ac_cv_prog_egrep='grep -E'
3756     else ac_cv_prog_egrep='egrep'
3757     fi
3758 fi
3759 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3760 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3761  EGREP=$ac_cv_prog_egrep
3762
3763
3764
3765 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3766 if test "${with_gnu_ld+set}" = set; then
3767   withval="$with_gnu_ld"
3768   test "$withval" = no || with_gnu_ld=yes
3769 else
3770   with_gnu_ld=no
3771 fi;
3772 ac_prog=ld
3773 if test "$GCC" = yes; then
3774   # Check if gcc -print-prog-name=ld gives a path.
3775   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3776 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3777   case $host in
3778   *-*-mingw*)
3779     # gcc leaves a trailing carriage return which upsets mingw
3780     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3781   *)
3782     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3783   esac
3784   case $ac_prog in
3785     # Accept absolute paths.
3786     [\\/]* | ?:[\\/]*)
3787       re_direlt='/[^/][^/]*/\.\./'
3788       # Canonicalize the path of ld
3789       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3790       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3791         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3792       done
3793       test -z "$LD" && LD="$ac_prog"
3794       ;;
3795   "")
3796     # If it fails, then pretend we aren't using GCC.
3797     ac_prog=ld
3798     ;;
3799   *)
3800     # If it is relative, then search for the first ld in PATH.
3801     with_gnu_ld=unknown
3802     ;;
3803   esac
3804 elif test "$with_gnu_ld" = yes; then
3805   echo "$as_me:$LINENO: checking for GNU ld" >&5
3806 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3807 else
3808   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3809 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3810 fi
3811 if test "${lt_cv_path_LD+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   if test -z "$LD"; then
3815   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3816   for ac_dir in $PATH; do
3817     IFS="$lt_save_ifs"
3818     test -z "$ac_dir" && ac_dir=.
3819     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3820       lt_cv_path_LD="$ac_dir/$ac_prog"
3821       # Check to see if the program is GNU ld.  I'd rather use --version,
3822       # but apparently some GNU ld's only accept -v.
3823       # Break only if it was the GNU/non-GNU ld that we prefer.
3824       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3825       *GNU* | *'with BFD'*)
3826         test "$with_gnu_ld" != no && break
3827         ;;
3828       *)
3829         test "$with_gnu_ld" != yes && break
3830         ;;
3831       esac
3832     fi
3833   done
3834   IFS="$lt_save_ifs"
3835 else
3836   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3837 fi
3838 fi
3839
3840 LD="$lt_cv_path_LD"
3841 if test -n "$LD"; then
3842   echo "$as_me:$LINENO: result: $LD" >&5
3843 echo "${ECHO_T}$LD" >&6
3844 else
3845   echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3847 fi
3848 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3849 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3850    { (exit 1); exit 1; }; }
3851 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3852 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3853 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3857 case `"$LD" -v 2>&1 </dev/null` in
3858 *GNU* | *'with BFD'*)
3859   lt_cv_prog_gnu_ld=yes
3860   ;;
3861 *)
3862   lt_cv_prog_gnu_ld=no
3863   ;;
3864 esac
3865 fi
3866 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3867 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3868 with_gnu_ld=$lt_cv_prog_gnu_ld
3869
3870
3871 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3872 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3873 if test "${lt_cv_ld_reload_flag+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   lt_cv_ld_reload_flag='-r'
3877 fi
3878 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3879 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3880 reload_flag=$lt_cv_ld_reload_flag
3881 case $reload_flag in
3882 "" | " "*) ;;
3883 *) reload_flag=" $reload_flag" ;;
3884 esac
3885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3886
3887 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3888 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3889 if test "${lt_cv_path_NM+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   if test -n "$NM"; then
3893   # Let the user override the test.
3894   lt_cv_path_NM="$NM"
3895 else
3896   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3897   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3898     IFS="$lt_save_ifs"
3899     test -z "$ac_dir" && ac_dir=.
3900     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3901     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3902       # Check to see if the nm accepts a BSD-compat flag.
3903       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3904       #   nm: unknown option "B" ignored
3905       # Tru64's nm complains that /dev/null is an invalid object file
3906       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3907       */dev/null* | *'Invalid file or object type'*)
3908         lt_cv_path_NM="$tmp_nm -B"
3909         break
3910         ;;
3911       *)
3912         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3913         */dev/null*)
3914           lt_cv_path_NM="$tmp_nm -p"
3915           break
3916           ;;
3917         *)
3918           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3919           continue # so that we can try to find one that supports BSD flags
3920           ;;
3921         esac
3922       esac
3923     fi
3924   done
3925   IFS="$lt_save_ifs"
3926   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3927 fi
3928 fi
3929 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3930 echo "${ECHO_T}$lt_cv_path_NM" >&6
3931 NM="$lt_cv_path_NM"
3932
3933 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3934 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3935 LN_S=$as_ln_s
3936 if test "$LN_S" = "ln -s"; then
3937   echo "$as_me:$LINENO: result: yes" >&5
3938 echo "${ECHO_T}yes" >&6
3939 else
3940   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3941 echo "${ECHO_T}no, using $LN_S" >&6
3942 fi
3943
3944 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3945 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3946 if test "${lt_cv_deplibs_check_method+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   lt_cv_file_magic_cmd='$MAGIC_CMD'
3950 lt_cv_file_magic_test_file=
3951 lt_cv_deplibs_check_method='unknown'
3952 # Need to set the preceding variable on all platforms that support
3953 # interlibrary dependencies.
3954 # 'none' -- dependencies not supported.
3955 # `unknown' -- same as none, but documents that we really don't know.
3956 # 'pass_all' -- all dependencies passed with no checks.
3957 # 'test_compile' -- check by making test program.
3958 # 'file_magic [[regex]]' -- check by looking for files in library path
3959 # which responds to the $file_magic_cmd with a given extended regex.
3960 # If you have `file' or equivalent on your system and you're not sure
3961 # whether `pass_all' will *always* work, you probably want this one.
3962
3963 case $host_os in
3964 aix4* | aix5*)
3965   lt_cv_deplibs_check_method=pass_all
3966   ;;
3967
3968 beos*)
3969   lt_cv_deplibs_check_method=pass_all
3970   ;;
3971
3972 bsdi4*)
3973   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3974   lt_cv_file_magic_cmd='/usr/bin/file -L'
3975   lt_cv_file_magic_test_file=/shlib/libc.so
3976   ;;
3977
3978 cygwin* | mingw* | pw32*)
3979   # win32_libid is a shell function defined in ltmain.sh
3980   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3981   lt_cv_file_magic_cmd='win32_libid'
3982   ;;
3983
3984 darwin* | rhapsody*)
3985   # this will be overwritten by pass_all, but leave it in just in case
3986   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3987   lt_cv_file_magic_cmd='/usr/bin/file -L'
3988   case "$host_os" in
3989   rhapsody* | darwin1.[012])
3990     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3991     ;;
3992   *) # Darwin 1.3 on
3993     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3994     ;;
3995   esac
3996   lt_cv_deplibs_check_method=pass_all
3997   ;;
3998
3999 freebsd*)
4000   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4001     case $host_cpu in
4002     i*86 )
4003       # Not sure whether the presence of OpenBSD here was a mistake.
4004       # Let's accept both of them until this is cleared up.
4005       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4006       lt_cv_file_magic_cmd=/usr/bin/file
4007       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4008       ;;
4009     esac
4010   else
4011     lt_cv_deplibs_check_method=pass_all
4012   fi
4013   ;;
4014
4015 gnu*)
4016   lt_cv_deplibs_check_method=pass_all
4017   ;;
4018
4019 hpux10.20* | hpux11*)
4020   lt_cv_file_magic_cmd=/usr/bin/file
4021   case "$host_cpu" in
4022   ia64*)
4023     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4024     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4025     ;;
4026   hppa*64*)
4027     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]'
4028     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4029     ;;
4030   *)
4031     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4032     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4033     ;;
4034   esac
4035   ;;
4036
4037 irix5* | irix6* | nonstopux*)
4038   case $host_os in
4039   irix5* | nonstopux*)
4040     # this will be overridden with pass_all, but let us keep it just in case
4041     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4042     ;;
4043   *)
4044     case $LD in
4045     *-32|*"-32 ") libmagic=32-bit;;
4046     *-n32|*"-n32 ") libmagic=N32;;
4047     *-64|*"-64 ") libmagic=64-bit;;
4048     *) libmagic=never-match;;
4049     esac
4050     # this will be overridden with pass_all, but let us keep it just in case
4051     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4052     ;;
4053   esac
4054   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4055   lt_cv_deplibs_check_method=pass_all
4056   ;;
4057
4058 # This must be Linux ELF.
4059 linux*)
4060   case $host_cpu in
4061   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4062     lt_cv_deplibs_check_method=pass_all ;;
4063   *)
4064     # glibc up to 2.1.1 does not perform some relocations on ARM
4065     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4066   esac
4067   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4068   ;;
4069
4070 netbsd*)
4071   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4072     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4073   else
4074     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4075   fi
4076   ;;
4077
4078 newos6*)
4079   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4080   lt_cv_file_magic_cmd=/usr/bin/file
4081   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4082   ;;
4083
4084 nto-qnx)
4085   lt_cv_deplibs_check_method=unknown
4086   ;;
4087
4088 openbsd*)
4089   lt_cv_file_magic_cmd=/usr/bin/file
4090   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4091   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4092     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4093   else
4094     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4095   fi
4096   ;;
4097
4098 osf3* | osf4* | osf5*)
4099   # this will be overridden with pass_all, but let us keep it just in case
4100   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4101   lt_cv_file_magic_test_file=/shlib/libc.so
4102   lt_cv_deplibs_check_method=pass_all
4103   ;;
4104
4105 sco3.2v5*)
4106   lt_cv_deplibs_check_method=pass_all
4107   ;;
4108
4109 solaris*)
4110   lt_cv_deplibs_check_method=pass_all
4111   lt_cv_file_magic_test_file=/lib/libc.so
4112   ;;
4113
4114 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4115   case $host_vendor in
4116   motorola)
4117     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]'
4118     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4119     ;;
4120   ncr)
4121     lt_cv_deplibs_check_method=pass_all
4122     ;;
4123   sequent)
4124     lt_cv_file_magic_cmd='/bin/file'
4125     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4126     ;;
4127   sni)
4128     lt_cv_file_magic_cmd='/bin/file'
4129     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4130     lt_cv_file_magic_test_file=/lib/libc.so
4131     ;;
4132   siemens)
4133     lt_cv_deplibs_check_method=pass_all
4134     ;;
4135   esac
4136   ;;
4137
4138 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4139   lt_cv_deplibs_check_method=pass_all
4140   ;;
4141 esac
4142
4143 fi
4144 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4145 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4146 file_magic_cmd=$lt_cv_file_magic_cmd
4147 deplibs_check_method=$lt_cv_deplibs_check_method
4148 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4149
4150
4151
4152
4153 # If no C compiler was specified, use CC.
4154 LTCC=${LTCC-"$CC"}
4155
4156 # Allow CC to be a program name with arguments.
4157 compiler=$CC
4158
4159 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4160 if test "${enable_libtool_lock+set}" = set; then
4161   enableval="$enable_libtool_lock"
4162
4163 fi;
4164 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4165
4166 # Some flags need to be propagated to the compiler or linker for good
4167 # libtool support.
4168 case $host in
4169 ia64-*-hpux*)
4170   # Find out which ABI we are using.
4171   echo 'int i;' > conftest.$ac_ext
4172   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173   (eval $ac_compile) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; then
4177     case `/usr/bin/file conftest.$ac_objext` in
4178     *ELF-32*)
4179       HPUX_IA64_MODE="32"
4180       ;;
4181     *ELF-64*)
4182       HPUX_IA64_MODE="64"
4183       ;;
4184     esac
4185   fi
4186   rm -rf conftest*
4187   ;;
4188 *-*-irix6*)
4189   # Find out which ABI we are using.
4190   echo '#line 4190 "configure"' > conftest.$ac_ext
4191   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192   (eval $ac_compile) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; then
4196    if test "$lt_cv_prog_gnu_ld" = yes; then
4197     case `/usr/bin/file conftest.$ac_objext` in
4198     *32-bit*)
4199       LD="${LD-ld} -melf32bsmip"
4200       ;;
4201     *N32*)
4202       LD="${LD-ld} -melf32bmipn32"
4203       ;;
4204     *64-bit*)
4205       LD="${LD-ld} -melf64bmip"
4206       ;;
4207     esac
4208    else
4209     case `/usr/bin/file conftest.$ac_objext` in
4210     *32-bit*)
4211       LD="${LD-ld} -32"
4212       ;;
4213     *N32*)
4214       LD="${LD-ld} -n32"
4215       ;;
4216     *64-bit*)
4217       LD="${LD-ld} -64"
4218       ;;
4219     esac
4220    fi
4221   fi
4222   rm -rf conftest*
4223   ;;
4224
4225 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4226   # Find out which ABI we are using.
4227   echo 'int i;' > conftest.$ac_ext
4228   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229   (eval $ac_compile) 2>&5
4230   ac_status=$?
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); }; then
4233     case "`/usr/bin/file conftest.o`" in
4234     *32-bit*)
4235       case $host in
4236         x86_64-*linux*)
4237           LD="${LD-ld} -m elf_i386"
4238           ;;
4239         ppc64-*linux*)
4240           LD="${LD-ld} -m elf32ppclinux"
4241           ;;
4242         s390x-*linux*)
4243           LD="${LD-ld} -m elf_s390"
4244           ;;
4245         sparc64-*linux*)
4246           LD="${LD-ld} -m elf32_sparc"
4247           ;;
4248       esac
4249       ;;
4250     *64-bit*)
4251       case $host in
4252         x86_64-*linux*)
4253           LD="${LD-ld} -m elf_x86_64"
4254           ;;
4255         ppc*-*linux*|powerpc*-*linux*)
4256           LD="${LD-ld} -m elf64ppc"
4257           ;;
4258         s390*-*linux*)
4259           LD="${LD-ld} -m elf64_s390"
4260           ;;
4261         sparc*-*linux*)
4262           LD="${LD-ld} -m elf64_sparc"
4263           ;;
4264       esac
4265       ;;
4266     esac
4267   fi
4268   rm -rf conftest*
4269   ;;
4270
4271 *-*-sco3.2v5*)
4272   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4273   SAVE_CFLAGS="$CFLAGS"
4274   CFLAGS="$CFLAGS -belf"
4275   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4276 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4277 if test "${lt_cv_cc_needs_belf+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   ac_ext=c
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285
4286      cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h.  */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h.  */
4292
4293 int
4294 main ()
4295 {
4296
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.$ac_objext conftest$ac_exeext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4303   (eval $ac_link) 2>conftest.er1
4304   ac_status=$?
4305   grep -v '^ *+' conftest.er1 >conftest.err
4306   rm -f conftest.er1
4307   cat conftest.err >&5
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); } &&
4310          { ac_try='test -z "$ac_c_werror_flag"
4311                          || test ! -s conftest.err'
4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313   (eval $ac_try) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; } &&
4317          { ac_try='test -s conftest$ac_exeext'
4318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319   (eval $ac_try) 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; }; then
4323   lt_cv_cc_needs_belf=yes
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328 lt_cv_cc_needs_belf=no
4329 fi
4330 rm -f conftest.err conftest.$ac_objext \
4331       conftest$ac_exeext conftest.$ac_ext
4332      ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338 fi
4339 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4340 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4341   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4342     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4343     CFLAGS="$SAVE_CFLAGS"
4344   fi
4345   ;;
4346
4347 esac
4348
4349 need_locks="$enable_libtool_lock"
4350
4351
4352
4353 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4354 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4355 if test "${ac_cv_header_stdc+set}" = set; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358   cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h.  */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h.  */
4364 #include <stdlib.h>
4365 #include <stdarg.h>
4366 #include <string.h>
4367 #include <float.h>
4368
4369 int
4370 main ()
4371 {
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379   (eval $ac_compile) 2>conftest.er1
4380   ac_status=$?
4381   grep -v '^ *+' conftest.er1 >conftest.err
4382   rm -f conftest.er1
4383   cat conftest.err >&5
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); } &&
4386          { ac_try='test -z "$ac_c_werror_flag"
4387                          || test ! -s conftest.err'
4388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389   (eval $ac_try) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; } &&
4393          { ac_try='test -s conftest.$ac_objext'
4394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395   (eval $ac_try) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; }; then
4399   ac_cv_header_stdc=yes
4400 else
4401   echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 ac_cv_header_stdc=no
4405 fi
4406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4407
4408 if test $ac_cv_header_stdc = yes; then
4409   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4410   cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h.  */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h.  */
4416 #include <string.h>
4417
4418 _ACEOF
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420   $EGREP "memchr" >/dev/null 2>&1; then
4421   :
4422 else
4423   ac_cv_header_stdc=no
4424 fi
4425 rm -f conftest*
4426
4427 fi
4428
4429 if test $ac_cv_header_stdc = yes; then
4430   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431   cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h.  */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h.  */
4437 #include <stdlib.h>
4438
4439 _ACEOF
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441   $EGREP "free" >/dev/null 2>&1; then
4442   :
4443 else
4444   ac_cv_header_stdc=no
4445 fi
4446 rm -f conftest*
4447
4448 fi
4449
4450 if test $ac_cv_header_stdc = yes; then
4451   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452   if test "$cross_compiling" = yes; then
4453   :
4454 else
4455   cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461 #include <ctype.h>
4462 #if ((' ' & 0x0FF) == 0x020)
4463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4465 #else
4466 # define ISLOWER(c) \
4467                    (('a' <= (c) && (c) <= 'i') \
4468                      || ('j' <= (c) && (c) <= 'r') \
4469                      || ('s' <= (c) && (c) <= 'z'))
4470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4471 #endif
4472
4473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4474 int
4475 main ()
4476 {
4477   int i;
4478   for (i = 0; i < 256; i++)
4479     if (XOR (islower (i), ISLOWER (i))
4480         || toupper (i) != TOUPPER (i))
4481       exit(2);
4482   exit (0);
4483 }
4484 _ACEOF
4485 rm -f conftest$ac_exeext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487   (eval $ac_link) 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492   (eval $ac_try) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }; }; then
4496   :
4497 else
4498   echo "$as_me: program exited with status $ac_status" >&5
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 ( exit $ac_status )
4503 ac_cv_header_stdc=no
4504 fi
4505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4506 fi
4507 fi
4508 fi
4509 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4510 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4511 if test $ac_cv_header_stdc = yes; then
4512
4513 cat >>confdefs.h <<\_ACEOF
4514 #define STDC_HEADERS 1
4515 _ACEOF
4516
4517 fi
4518
4519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4530                   inttypes.h stdint.h unistd.h
4531 do
4532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 echo "$as_me:$LINENO: checking for $ac_header" >&5
4534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538   cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h.  */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h.  */
4544 $ac_includes_default
4545
4546 #include <$ac_header>
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550   (eval $ac_compile) 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } &&
4557          { ac_try='test -z "$ac_c_werror_flag"
4558                          || test ! -s conftest.err'
4559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560   (eval $ac_try) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; } &&
4564          { ac_try='test -s conftest.$ac_objext'
4565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566   (eval $ac_try) 2>&5
4567   ac_status=$?
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); }; }; then
4570   eval "$as_ac_Header=yes"
4571 else
4572   echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 eval "$as_ac_Header=no"
4576 fi
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578 fi
4579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4582   cat >>confdefs.h <<_ACEOF
4583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584 _ACEOF
4585
4586 fi
4587
4588 done
4589
4590
4591
4592 for ac_header in dlfcn.h
4593 do
4594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4596   echo "$as_me:$LINENO: checking for $ac_header" >&5
4597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 fi
4601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4603 else
4604   # Is the header compilable?
4605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h.  */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h.  */
4613 $ac_includes_default
4614 #include <$ac_header>
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618   (eval $ac_compile) 2>conftest.er1
4619   ac_status=$?
4620   grep -v '^ *+' conftest.er1 >conftest.err
4621   rm -f conftest.er1
4622   cat conftest.err >&5
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); } &&
4625          { ac_try='test -z "$ac_c_werror_flag"
4626                          || test ! -s conftest.err'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; } &&
4632          { ac_try='test -s conftest.$ac_objext'
4633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634   (eval $ac_try) 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }; }; then
4638   ac_header_compiler=yes
4639 else
4640   echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 ac_header_compiler=no
4644 fi
4645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4647 echo "${ECHO_T}$ac_header_compiler" >&6
4648
4649 # Is the header present?
4650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h.  */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h.  */
4658 #include <$ac_header>
4659 _ACEOF
4660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4662   ac_status=$?
4663   grep -v '^ *+' conftest.er1 >conftest.err
4664   rm -f conftest.er1
4665   cat conftest.err >&5
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); } >/dev/null; then
4668   if test -s conftest.err; then
4669     ac_cpp_err=$ac_c_preproc_warn_flag
4670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4671   else
4672     ac_cpp_err=
4673   fi
4674 else
4675   ac_cpp_err=yes
4676 fi
4677 if test -z "$ac_cpp_err"; then
4678   ac_header_preproc=yes
4679 else
4680   echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4682
4683   ac_header_preproc=no
4684 fi
4685 rm -f conftest.err conftest.$ac_ext
4686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4687 echo "${ECHO_T}$ac_header_preproc" >&6
4688
4689 # So?  What about this header?
4690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4691   yes:no: )
4692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4696     ac_header_preproc=yes
4697     ;;
4698   no:yes:* )
4699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4711     (
4712       cat <<\_ASBOX
4713 ## ----------------------------------- ##
4714 ## Report this to llvmbugs@cs.uiuc.edu ##
4715 ## ----------------------------------- ##
4716 _ASBOX
4717     ) |
4718       sed "s/^/$as_me: WARNING:     /" >&2
4719     ;;
4720 esac
4721 echo "$as_me:$LINENO: checking for $ac_header" >&5
4722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   eval "$as_ac_Header=\$ac_header_preproc"
4727 fi
4728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4730
4731 fi
4732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4733   cat >>confdefs.h <<_ACEOF
4734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4735 _ACEOF
4736
4737 fi
4738
4739 done
4740
4741 ac_ext=cc
4742 ac_cpp='$CXXCPP $CPPFLAGS'
4743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4746 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4747 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4748 if test -z "$CXXCPP"; then
4749   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752       # Double quotes because CXXCPP needs to be expanded
4753     for CXXCPP in "$CXX -E" "/lib/cpp"
4754     do
4755       ac_preproc_ok=false
4756 for ac_cxx_preproc_warn_flag in '' yes
4757 do
4758   # Use a header file that comes with gcc, so configuring glibc
4759   # with a fresh cross-compiler works.
4760   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761   # <limits.h> exists even on freestanding compilers.
4762   # On the NeXT, cc -E runs the code through the compiler's parser,
4763   # not just through cpp. "Syntax error" is here to catch this case.
4764   cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h.  */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h.  */
4770 #ifdef __STDC__
4771 # include <limits.h>
4772 #else
4773 # include <assert.h>
4774 #endif
4775                      Syntax error
4776 _ACEOF
4777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4779   ac_status=$?
4780   grep -v '^ *+' conftest.er1 >conftest.err
4781   rm -f conftest.er1
4782   cat conftest.err >&5
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } >/dev/null; then
4785   if test -s conftest.err; then
4786     ac_cpp_err=$ac_cxx_preproc_warn_flag
4787     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4788   else
4789     ac_cpp_err=
4790   fi
4791 else
4792   ac_cpp_err=yes
4793 fi
4794 if test -z "$ac_cpp_err"; then
4795   :
4796 else
4797   echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800   # Broken: fails on valid input.
4801 continue
4802 fi
4803 rm -f conftest.err conftest.$ac_ext
4804
4805   # OK, works on sane cases.  Now check whether non-existent headers
4806   # can be detected and how.
4807   cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h.  */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h.  */
4813 #include <ac_nonexistent.h>
4814 _ACEOF
4815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4817   ac_status=$?
4818   grep -v '^ *+' conftest.er1 >conftest.err
4819   rm -f conftest.er1
4820   cat conftest.err >&5
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); } >/dev/null; then
4823   if test -s conftest.err; then
4824     ac_cpp_err=$ac_cxx_preproc_warn_flag
4825     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4826   else
4827     ac_cpp_err=
4828   fi
4829 else
4830   ac_cpp_err=yes
4831 fi
4832 if test -z "$ac_cpp_err"; then
4833   # Broken: success on invalid input.
4834 continue
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839   # Passes both tests.
4840 ac_preproc_ok=:
4841 break
4842 fi
4843 rm -f conftest.err conftest.$ac_ext
4844
4845 done
4846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4847 rm -f conftest.err conftest.$ac_ext
4848 if $ac_preproc_ok; then
4849   break
4850 fi
4851
4852     done
4853     ac_cv_prog_CXXCPP=$CXXCPP
4854
4855 fi
4856   CXXCPP=$ac_cv_prog_CXXCPP
4857 else
4858   ac_cv_prog_CXXCPP=$CXXCPP
4859 fi
4860 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4861 echo "${ECHO_T}$CXXCPP" >&6
4862 ac_preproc_ok=false
4863 for ac_cxx_preproc_warn_flag in '' yes
4864 do
4865   # Use a header file that comes with gcc, so configuring glibc
4866   # with a fresh cross-compiler works.
4867   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868   # <limits.h> exists even on freestanding compilers.
4869   # On the NeXT, cc -E runs the code through the compiler's parser,
4870   # not just through cpp. "Syntax error" is here to catch this case.
4871   cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h.  */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h.  */
4877 #ifdef __STDC__
4878 # include <limits.h>
4879 #else
4880 # include <assert.h>
4881 #endif
4882                      Syntax error
4883 _ACEOF
4884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4885   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4886   ac_status=$?
4887   grep -v '^ *+' conftest.er1 >conftest.err
4888   rm -f conftest.er1
4889   cat conftest.err >&5
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } >/dev/null; then
4892   if test -s conftest.err; then
4893     ac_cpp_err=$ac_cxx_preproc_warn_flag
4894     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4895   else
4896     ac_cpp_err=
4897   fi
4898 else
4899   ac_cpp_err=yes
4900 fi
4901 if test -z "$ac_cpp_err"; then
4902   :
4903 else
4904   echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907   # Broken: fails on valid input.
4908 continue
4909 fi
4910 rm -f conftest.err conftest.$ac_ext
4911
4912   # OK, works on sane cases.  Now check whether non-existent headers
4913   # can be detected and how.
4914   cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920 #include <ac_nonexistent.h>
4921 _ACEOF
4922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4924   ac_status=$?
4925   grep -v '^ *+' conftest.er1 >conftest.err
4926   rm -f conftest.er1
4927   cat conftest.err >&5
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); } >/dev/null; then
4930   if test -s conftest.err; then
4931     ac_cpp_err=$ac_cxx_preproc_warn_flag
4932     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4933   else
4934     ac_cpp_err=
4935   fi
4936 else
4937   ac_cpp_err=yes
4938 fi
4939 if test -z "$ac_cpp_err"; then
4940   # Broken: success on invalid input.
4941 continue
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946   # Passes both tests.
4947 ac_preproc_ok=:
4948 break
4949 fi
4950 rm -f conftest.err conftest.$ac_ext
4951
4952 done
4953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954 rm -f conftest.err conftest.$ac_ext
4955 if $ac_preproc_ok; then
4956   :
4957 else
4958   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4959 See \`config.log' for more details." >&5
4960 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4961 See \`config.log' for more details." >&2;}
4962    { (exit 1); exit 1; }; }
4963 fi
4964
4965 ac_ext=cc
4966 ac_cpp='$CXXCPP $CPPFLAGS'
4967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4970
4971
4972 ac_ext=f
4973 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4974 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4976 if test -n "$ac_tool_prefix"; then
4977   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4978   do
4979     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983 if test "${ac_cv_prog_F77+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   if test -n "$F77"; then
4987   ac_cv_prog_F77="$F77" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002
5003 fi
5004 fi
5005 F77=$ac_cv_prog_F77
5006 if test -n "$F77"; then
5007   echo "$as_me:$LINENO: result: $F77" >&5
5008 echo "${ECHO_T}$F77" >&6
5009 else
5010   echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5012 fi
5013
5014     test -n "$F77" && break
5015   done
5016 fi
5017 if test -z "$F77"; then
5018   ac_ct_F77=$F77
5019   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5020 do
5021   # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy $ac_prog; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   if test -n "$ac_ct_F77"; then
5029   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036   for ac_exec_ext in '' $ac_executable_extensions; do
5037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038     ac_cv_prog_ac_ct_F77="$ac_prog"
5039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043 done
5044
5045 fi
5046 fi
5047 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5048 if test -n "$ac_ct_F77"; then
5049   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5050 echo "${ECHO_T}$ac_ct_F77" >&6
5051 else
5052   echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5054 fi
5055
5056   test -n "$ac_ct_F77" && break
5057 done
5058
5059   F77=$ac_ct_F77
5060 fi
5061
5062
5063 # Provide some information about the compiler.
5064 echo "$as_me:5064:" \
5065      "checking for Fortran 77 compiler version" >&5
5066 ac_compiler=`set X $ac_compile; echo $2`
5067 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5068   (eval $ac_compiler --version </dev/null >&5) 2>&5
5069   ac_status=$?
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); }
5072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5073   (eval $ac_compiler -v </dev/null >&5) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); }
5077 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5078   (eval $ac_compiler -V </dev/null >&5) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); }
5082 rm -f a.out
5083
5084 # If we don't use `.F' as extension, the preprocessor is not run on the
5085 # input file.  (Note that this only needs to work for GNU compilers.)
5086 ac_save_ext=$ac_ext
5087 ac_ext=F
5088 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5089 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5090 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   cat >conftest.$ac_ext <<_ACEOF
5094       program main
5095 #ifndef __GNUC__
5096        choke me
5097 #endif
5098
5099       end
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103   (eval $ac_compile) 2>conftest.er1
5104   ac_status=$?
5105   grep -v '^ *+' conftest.er1 >conftest.err
5106   rm -f conftest.er1
5107   cat conftest.err >&5
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } &&
5110          { ac_try='test -z "$ac_f77_werror_flag"
5111                          || test ! -s conftest.err'
5112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113   (eval $ac_try) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); }; } &&
5117          { ac_try='test -s conftest.$ac_objext'
5118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   ac_compiler_gnu=yes
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 ac_compiler_gnu=no
5129 fi
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5131 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5132
5133 fi
5134 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5135 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5136 ac_ext=$ac_save_ext
5137 ac_test_FFLAGS=${FFLAGS+set}
5138 ac_save_FFLAGS=$FFLAGS
5139 FFLAGS=
5140 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5141 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5142 if test "${ac_cv_prog_f77_g+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   FFLAGS=-g
5146 cat >conftest.$ac_ext <<_ACEOF
5147       program main
5148
5149       end
5150 _ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153   (eval $ac_compile) 2>conftest.er1
5154   ac_status=$?
5155   grep -v '^ *+' conftest.er1 >conftest.err
5156   rm -f conftest.er1
5157   cat conftest.err >&5
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); } &&
5160          { ac_try='test -z "$ac_f77_werror_flag"
5161                          || test ! -s conftest.err'
5162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163   (eval $ac_try) 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }; } &&
5167          { ac_try='test -s conftest.$ac_objext'
5168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169   (eval $ac_try) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); }; }; then
5173   ac_cv_prog_f77_g=yes
5174 else
5175   echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178 ac_cv_prog_f77_g=no
5179 fi
5180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5181
5182 fi
5183 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5184 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5185 if test "$ac_test_FFLAGS" = set; then
5186   FFLAGS=$ac_save_FFLAGS
5187 elif test $ac_cv_prog_f77_g = yes; then
5188   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5189     FFLAGS="-g -O2"
5190   else
5191     FFLAGS="-g"
5192   fi
5193 else
5194   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5195     FFLAGS="-O2"
5196   else
5197     FFLAGS=
5198   fi
5199 fi
5200
5201 G77=`test $ac_compiler_gnu = yes && echo yes`
5202 ac_ext=c
5203 ac_cpp='$CPP $CPPFLAGS'
5204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5207
5208
5209
5210 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5211
5212 # find the maximum length of command line arguments
5213 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5214 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5215 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218     i=0
5219   testring="ABCD"
5220
5221   case $build_os in
5222   msdosdjgpp*)
5223     # On DJGPP, this test can blow up pretty badly due to problems in libc
5224     # (any single argument exceeding 2000 bytes causes a buffer overrun
5225     # during glob expansion).  Even if it were fixed, the result of this
5226     # check would be larger than it should be.
5227     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5228     ;;
5229
5230   gnu*)
5231     # Under GNU Hurd, this test is not required because there is
5232     # no limit to the length of command line arguments.
5233     # Libtool will interpret -1 as no limit whatsoever
5234     lt_cv_sys_max_cmd_len=-1;
5235     ;;
5236
5237   cygwin* | mingw*)
5238     # On Win9x/ME, this test blows up -- it succeeds, but takes
5239     # about 5 minutes as the teststring grows exponentially.
5240     # Worse, since 9x/ME are not pre-emptively multitasking,
5241     # you end up with a "frozen" computer, even though with patience
5242     # the test eventually succeeds (with a max line length of 256k).
5243     # Instead, let's just punt: use the minimum linelength reported by
5244     # all of the supported platforms: 8192 (on NT/2K/XP).
5245     lt_cv_sys_max_cmd_len=8192;
5246     ;;
5247
5248  *)
5249     # If test is not a shell built-in, we'll probably end up computing a
5250     # maximum length that is only half of the actual maximum length, but
5251     # we can't tell.
5252     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5253                = "XX$testring") >/dev/null 2>&1 &&
5254             new_result=`expr "X$testring" : ".*" 2>&1` &&
5255             lt_cv_sys_max_cmd_len=$new_result &&
5256             test $i != 17 # 1/2 MB should be enough
5257     do
5258       i=`expr $i + 1`
5259       testring=$testring$testring
5260     done
5261     testring=
5262     # Add a significant safety factor because C++ compilers can tack on massive
5263     # amounts of additional arguments before passing them to the linker.
5264     # It appears as though 1/2 is a usable value.
5265     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5266     ;;
5267   esac
5268
5269 fi
5270
5271 if test -n $lt_cv_sys_max_cmd_len ; then
5272   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5273 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5274 else
5275   echo "$as_me:$LINENO: result: none" >&5
5276 echo "${ECHO_T}none" >&6
5277 fi
5278
5279
5280
5281
5282 # Check for command to grab the raw symbol name followed by C symbol from nm.
5283 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5284 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5285 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288
5289 # These are sane defaults that work on at least a few old systems.
5290 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5291
5292 # Character class describing NM global symbol codes.
5293 symcode='[BCDEGRST]'
5294
5295 # Regexp to match symbols that can be accessed directly from C.
5296 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5297
5298 # Transform the above into a raw symbol and a C symbol.
5299 symxfrm='\1 \2\3 \3'
5300
5301 # Transform an extracted symbol line into a proper C declaration
5302 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5303
5304 # Transform an extracted symbol line into symbol name and symbol address
5305 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'"
5306
5307 # Define system-specific variables.
5308 case $host_os in
5309 aix*)
5310   symcode='[BCDT]'
5311   ;;
5312 cygwin* | mingw* | pw32*)
5313   symcode='[ABCDGISTW]'
5314   ;;
5315 hpux*) # Its linker distinguishes data from code symbols
5316   if test "$host_cpu" = ia64; then
5317     symcode='[ABCDEGRST]'
5318   fi
5319   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5320   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'"
5321   ;;
5322 irix* | nonstopux*)
5323   symcode='[BCDEGRST]'
5324   ;;
5325 osf*)
5326   symcode='[BCDEGQRST]'
5327   ;;
5328 solaris* | sysv5*)
5329   symcode='[BDT]'
5330   ;;
5331 sysv4)
5332   symcode='[DFNSTU]'
5333   ;;
5334 esac
5335
5336 # Handle CRLF in mingw tool chain
5337 opt_cr=
5338 case $build_os in
5339 mingw*)
5340   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5341   ;;
5342 esac
5343
5344 # If we're using GNU nm, then use its standard symbol codes.
5345 case `$NM -V 2>&1` in
5346 *GNU* | *'with BFD'*)
5347   symcode='[ABCDGISTW]' ;;
5348 esac
5349
5350 # Try without a prefix undercore, then with it.
5351 for ac_symprfx in "" "_"; do
5352
5353   # Write the raw and C identifiers.
5354   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5355
5356   # Check to see that the pipe works correctly.
5357   pipe_works=no
5358
5359   rm -f conftest*
5360   cat > conftest.$ac_ext <<EOF
5361 #ifdef __cplusplus
5362 extern "C" {
5363 #endif
5364 char nm_test_var;
5365 void nm_test_func(){}
5366 #ifdef __cplusplus
5367 }
5368 #endif
5369 int main(){nm_test_var='a';nm_test_func();return(0);}
5370 EOF
5371
5372   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373   (eval $ac_compile) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; then
5377     # Now try to grab the symbols.
5378     nlist=conftest.nm
5379     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5380   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); } && test -s "$nlist"; then
5384       # Try sorting and uniquifying the output.
5385       if sort "$nlist" | uniq > "$nlist"T; then
5386         mv -f "$nlist"T "$nlist"
5387       else
5388         rm -f "$nlist"T
5389       fi
5390
5391       # Make sure that we snagged all the symbols we need.
5392       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5393         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5394           cat <<EOF > conftest.$ac_ext
5395 #ifdef __cplusplus
5396 extern "C" {
5397 #endif
5398
5399 EOF
5400           # Now generate the symbol file.
5401           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5402
5403           cat <<EOF >> conftest.$ac_ext
5404 #if defined (__STDC__) && __STDC__
5405 # define lt_ptr_t void *
5406 #else
5407 # define lt_ptr_t char *
5408 # define const
5409 #endif
5410
5411 /* The mapping between symbol names and symbols. */
5412 const struct {
5413   const char *name;
5414   lt_ptr_t address;
5415 }
5416 lt_preloaded_symbols[] =
5417 {
5418 EOF
5419           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5420           cat <<\EOF >> conftest.$ac_ext
5421   {0, (lt_ptr_t) 0}
5422 };
5423
5424 #ifdef __cplusplus
5425 }
5426 #endif
5427 EOF
5428           # Now try linking the two files.
5429           mv conftest.$ac_objext conftstm.$ac_objext
5430           lt_save_LIBS="$LIBS"
5431           lt_save_CFLAGS="$CFLAGS"
5432           LIBS="conftstm.$ac_objext"
5433           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5434           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435   (eval $ac_link) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5439             pipe_works=yes
5440           fi
5441           LIBS="$lt_save_LIBS"
5442           CFLAGS="$lt_save_CFLAGS"
5443         else
5444           echo "cannot find nm_test_func in $nlist" >&5
5445         fi
5446       else
5447         echo "cannot find nm_test_var in $nlist" >&5
5448       fi
5449     else
5450       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5451     fi
5452   else
5453     echo "$progname: failed program was:" >&5
5454     cat conftest.$ac_ext >&5
5455   fi
5456   rm -f conftest* conftst*
5457
5458   # Do not use the global_symbol_pipe unless it works.
5459   if test "$pipe_works" = yes; then
5460     break
5461   else
5462     lt_cv_sys_global_symbol_pipe=
5463   fi
5464 done
5465
5466 fi
5467
5468 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5469   lt_cv_sys_global_symbol_to_cdecl=
5470 fi
5471 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5472   echo "$as_me:$LINENO: result: failed" >&5
5473 echo "${ECHO_T}failed" >&6
5474 else
5475   echo "$as_me:$LINENO: result: ok" >&5
5476 echo "${ECHO_T}ok" >&6
5477 fi
5478
5479 echo "$as_me:$LINENO: checking for objdir" >&5
5480 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5481 if test "${lt_cv_objdir+set}" = set; then
5482   echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484   rm -f .libs 2>/dev/null
5485 mkdir .libs 2>/dev/null
5486 if test -d .libs; then
5487   lt_cv_objdir=.libs
5488 else
5489   # MS-DOS does not allow filenames that begin with a dot.
5490   lt_cv_objdir=_libs
5491 fi
5492 rmdir .libs 2>/dev/null
5493 fi
5494 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5495 echo "${ECHO_T}$lt_cv_objdir" >&6
5496 objdir=$lt_cv_objdir
5497
5498
5499
5500
5501
5502 case $host_os in
5503 aix3*)
5504   # AIX sometimes has problems with the GCC collect2 program.  For some
5505   # reason, if we set the COLLECT_NAMES environment variable, the problems
5506   # vanish in a puff of smoke.
5507   if test "X${COLLECT_NAMES+set}" != Xset; then
5508     COLLECT_NAMES=
5509     export COLLECT_NAMES
5510   fi
5511   ;;
5512 esac
5513
5514 # Sed substitution that helps us do robust quoting.  It backslashifies
5515 # metacharacters that are still active within double-quoted strings.
5516 Xsed='sed -e s/^X//'
5517 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5518
5519 # Same as above, but do not quote variable references.
5520 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5521
5522 # Sed substitution to delay expansion of an escaped shell variable in a
5523 # double_quote_subst'ed string.
5524 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5525
5526 # Sed substitution to avoid accidental globbing in evaled expressions
5527 no_glob_subst='s/\*/\\\*/g'
5528
5529 # Constants:
5530 rm="rm -f"
5531
5532 # Global variables:
5533 default_ofile=mklib
5534 can_build_shared=yes
5535
5536 # All known linkers require a `.a' archive for static linking (except M$VC,
5537 # which needs '.lib').
5538 libext=a
5539 ltmain="$ac_aux_dir/ltmain.sh"
5540 ofile="$default_ofile"
5541 with_gnu_ld="$lt_cv_prog_gnu_ld"
5542
5543 if test -n "$ac_tool_prefix"; then
5544   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5545 set dummy ${ac_tool_prefix}ar; ac_word=$2
5546 echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548 if test "${ac_cv_prog_AR+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   if test -n "$AR"; then
5552   ac_cv_prog_AR="$AR" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557   IFS=$as_save_IFS
5558   test -z "$as_dir" && as_dir=.
5559   for ac_exec_ext in '' $ac_executable_extensions; do
5560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561     ac_cv_prog_AR="${ac_tool_prefix}ar"
5562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563     break 2
5564   fi
5565 done
5566 done
5567
5568 fi
5569 fi
5570 AR=$ac_cv_prog_AR
5571 if test -n "$AR"; then
5572   echo "$as_me:$LINENO: result: $AR" >&5
5573 echo "${ECHO_T}$AR" >&6
5574 else
5575   echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6
5577 fi
5578
5579 fi
5580 if test -z "$ac_cv_prog_AR"; then
5581   ac_ct_AR=$AR
5582   # Extract the first word of "ar", so it can be a program name with args.
5583 set dummy ar; ac_word=$2
5584 echo "$as_me:$LINENO: checking for $ac_word" >&5
5585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589   if test -n "$ac_ct_AR"; then
5590   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595   IFS=$as_save_IFS
5596   test -z "$as_dir" && as_dir=.
5597   for ac_exec_ext in '' $ac_executable_extensions; do
5598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599     ac_cv_prog_ac_ct_AR="ar"
5600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601     break 2
5602   fi
5603 done
5604 done
5605
5606   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5607 fi
5608 fi
5609 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5610 if test -n "$ac_ct_AR"; then
5611   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5612 echo "${ECHO_T}$ac_ct_AR" >&6
5613 else
5614   echo "$as_me:$LINENO: result: no" >&5
5615 echo "${ECHO_T}no" >&6
5616 fi
5617
5618   AR=$ac_ct_AR
5619 else
5620   AR="$ac_cv_prog_AR"
5621 fi
5622
5623 if test -n "$ac_tool_prefix"; then
5624   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5626 echo "$as_me:$LINENO: checking for $ac_word" >&5
5627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628 if test "${ac_cv_prog_RANLIB+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   if test -n "$RANLIB"; then
5632   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5633 else
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637   IFS=$as_save_IFS
5638   test -z "$as_dir" && as_dir=.
5639   for ac_exec_ext in '' $ac_executable_extensions; do
5640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643     break 2
5644   fi
5645 done
5646 done
5647
5648 fi
5649 fi
5650 RANLIB=$ac_cv_prog_RANLIB
5651 if test -n "$RANLIB"; then
5652   echo "$as_me:$LINENO: result: $RANLIB" >&5
5653 echo "${ECHO_T}$RANLIB" >&6
5654 else
5655   echo "$as_me:$LINENO: result: no" >&5
5656 echo "${ECHO_T}no" >&6
5657 fi
5658
5659 fi
5660 if test -z "$ac_cv_prog_RANLIB"; then
5661   ac_ct_RANLIB=$RANLIB
5662   # Extract the first word of "ranlib", so it can be a program name with args.
5663 set dummy ranlib; ac_word=$2
5664 echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5666 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669   if test -n "$ac_ct_RANLIB"; then
5670   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677   for ac_exec_ext in '' $ac_executable_extensions; do
5678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679     ac_cv_prog_ac_ct_RANLIB="ranlib"
5680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684 done
5685
5686   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5687 fi
5688 fi
5689 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5690 if test -n "$ac_ct_RANLIB"; then
5691   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5692 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5693 else
5694   echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6
5696 fi
5697
5698   RANLIB=$ac_ct_RANLIB
5699 else
5700   RANLIB="$ac_cv_prog_RANLIB"
5701 fi
5702
5703 if test -n "$ac_tool_prefix"; then
5704   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5705 set dummy ${ac_tool_prefix}strip; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_prog_STRIP+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   if test -n "$STRIP"; then
5712   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719   for ac_exec_ext in '' $ac_executable_extensions; do
5720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726 done
5727
5728 fi
5729 fi
5730 STRIP=$ac_cv_prog_STRIP
5731 if test -n "$STRIP"; then
5732   echo "$as_me:$LINENO: result: $STRIP" >&5
5733 echo "${ECHO_T}$STRIP" >&6
5734 else
5735   echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6
5737 fi
5738
5739 fi
5740 if test -z "$ac_cv_prog_STRIP"; then
5741   ac_ct_STRIP=$STRIP
5742   # Extract the first word of "strip", so it can be a program name with args.
5743 set dummy strip; ac_word=$2
5744 echo "$as_me:$LINENO: checking for $ac_word" >&5
5745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5746 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   if test -n "$ac_ct_STRIP"; then
5750   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755   IFS=$as_save_IFS
5756   test -z "$as_dir" && as_dir=.
5757   for ac_exec_ext in '' $ac_executable_extensions; do
5758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759     ac_cv_prog_ac_ct_STRIP="strip"
5760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761     break 2
5762   fi
5763 done
5764 done
5765
5766   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5767 fi
5768 fi
5769 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5770 if test -n "$ac_ct_STRIP"; then
5771   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5772 echo "${ECHO_T}$ac_ct_STRIP" >&6
5773 else
5774   echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5776 fi
5777
5778   STRIP=$ac_ct_STRIP
5779 else
5780   STRIP="$ac_cv_prog_STRIP"
5781 fi
5782
5783
5784 old_CC="$CC"
5785 old_CFLAGS="$CFLAGS"
5786
5787 # Set sane defaults for various variables
5788 test -z "$AR" && AR=ar
5789 test -z "$AR_FLAGS" && AR_FLAGS=cru
5790 test -z "$AS" && AS=as
5791 test -z "$CC" && CC=cc
5792 test -z "$LTCC" && LTCC=$CC
5793 test -z "$DLLTOOL" && DLLTOOL=dlltool
5794 test -z "$LD" && LD=ld
5795 test -z "$LN_S" && LN_S="ln -s"
5796 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5797 test -z "$NM" && NM=nm
5798 test -z "$SED" && SED=sed
5799 test -z "$OBJDUMP" && OBJDUMP=objdump
5800 test -z "$RANLIB" && RANLIB=:
5801 test -z "$STRIP" && STRIP=:
5802 test -z "$ac_objext" && ac_objext=o
5803
5804 # Determine commands to create old-style static archives.
5805 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5806 old_postinstall_cmds='chmod 644 $oldlib'
5807 old_postuninstall_cmds=
5808
5809 if test -n "$RANLIB"; then
5810   case $host_os in
5811   openbsd*)
5812     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5813     ;;
5814   *)
5815     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5816     ;;
5817   esac
5818   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5819 fi
5820
5821 # Only perform the check for file, if the check method requires it
5822 case $deplibs_check_method in
5823 file_magic*)
5824   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5825     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5826 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5827 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   case $MAGIC_CMD in
5831 [\\/*] |  ?:[\\/]*)
5832   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5833   ;;
5834 *)
5835   lt_save_MAGIC_CMD="$MAGIC_CMD"
5836   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5837   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5838   for ac_dir in $ac_dummy; do
5839     IFS="$lt_save_ifs"
5840     test -z "$ac_dir" && ac_dir=.
5841     if test -f $ac_dir/${ac_tool_prefix}file; then
5842       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5843       if test -n "$file_magic_test_file"; then
5844         case $deplibs_check_method in
5845         "file_magic "*)
5846           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5847           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5848           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5849             $EGREP "$file_magic_regex" > /dev/null; then
5850             :
5851           else
5852             cat <<EOF 1>&2
5853
5854 *** Warning: the command libtool uses to detect shared libraries,
5855 *** $file_magic_cmd, produces output that libtool cannot recognize.
5856 *** The result is that libtool may fail to recognize shared libraries
5857 *** as such.  This will affect the creation of libtool libraries that
5858 *** depend on shared libraries, but programs linked with such libtool
5859 *** libraries will work regardless of this problem.  Nevertheless, you
5860 *** may want to report the problem to your system manager and/or to
5861 *** bug-libtool@gnu.org
5862
5863 EOF
5864           fi ;;
5865         esac
5866       fi
5867       break
5868     fi
5869   done
5870   IFS="$lt_save_ifs"
5871   MAGIC_CMD="$lt_save_MAGIC_CMD"
5872   ;;
5873 esac
5874 fi
5875
5876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5877 if test -n "$MAGIC_CMD"; then
5878   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5879 echo "${ECHO_T}$MAGIC_CMD" >&6
5880 else
5881   echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5883 fi
5884
5885 if test -z "$lt_cv_path_MAGIC_CMD"; then
5886   if test -n "$ac_tool_prefix"; then
5887     echo "$as_me:$LINENO: checking for file" >&5
5888 echo $ECHO_N "checking for file... $ECHO_C" >&6
5889 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   case $MAGIC_CMD in
5893 [\\/*] |  ?:[\\/]*)
5894   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5895   ;;
5896 *)
5897   lt_save_MAGIC_CMD="$MAGIC_CMD"
5898   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5899   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5900   for ac_dir in $ac_dummy; do
5901     IFS="$lt_save_ifs"
5902     test -z "$ac_dir" && ac_dir=.
5903     if test -f $ac_dir/file; then
5904       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5905       if test -n "$file_magic_test_file"; then
5906         case $deplibs_check_method in
5907         "file_magic "*)
5908           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5909           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5910           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5911             $EGREP "$file_magic_regex" > /dev/null; then
5912             :
5913           else
5914             cat <<EOF 1>&2
5915
5916 *** Warning: the command libtool uses to detect shared libraries,
5917 *** $file_magic_cmd, produces output that libtool cannot recognize.
5918 *** The result is that libtool may fail to recognize shared libraries
5919 *** as such.  This will affect the creation of libtool libraries that
5920 *** depend on shared libraries, but programs linked with such libtool
5921 *** libraries will work regardless of this problem.  Nevertheless, you
5922 *** may want to report the problem to your system manager and/or to
5923 *** bug-libtool@gnu.org
5924
5925 EOF
5926           fi ;;
5927         esac
5928       fi
5929       break
5930     fi
5931   done
5932   IFS="$lt_save_ifs"
5933   MAGIC_CMD="$lt_save_MAGIC_CMD"
5934   ;;
5935 esac
5936 fi
5937
5938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5939 if test -n "$MAGIC_CMD"; then
5940   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5941 echo "${ECHO_T}$MAGIC_CMD" >&6
5942 else
5943   echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945 fi
5946
5947   else
5948     MAGIC_CMD=:
5949   fi
5950 fi
5951
5952   fi
5953   ;;
5954 esac
5955
5956 enable_dlopen=no
5957 enable_win32_dll=no
5958
5959 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5960 if test "${enable_libtool_lock+set}" = set; then
5961   enableval="$enable_libtool_lock"
5962
5963 fi;
5964 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5965
5966
5967 # Check whether --with-pic or --without-pic was given.
5968 if test "${with_pic+set}" = set; then
5969   withval="$with_pic"
5970   pic_mode="$withval"
5971 else
5972   pic_mode=default
5973 fi;
5974 test -z "$pic_mode" && pic_mode=default
5975
5976 # Use C for the default configuration in the libtool script
5977 tagname=
5978 lt_save_CC="$CC"
5979 ac_ext=c
5980 ac_cpp='$CPP $CPPFLAGS'
5981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5984
5985
5986 # Source file extension for C test sources.
5987 ac_ext=c
5988
5989 # Object file extension for compiled C test sources.
5990 objext=o
5991 objext=$objext
5992
5993 # Code to be used in simple compile tests
5994 lt_simple_compile_test_code="int some_variable = 0;\n"
5995
5996 # Code to be used in simple link tests
5997 lt_simple_link_test_code='int main(){return(0);}\n'
5998
5999
6000 # If no C compiler was specified, use CC.
6001 LTCC=${LTCC-"$CC"}
6002
6003 # Allow CC to be a program name with arguments.
6004 compiler=$CC
6005
6006
6007 #
6008 # Check for any special shared library compilation flags.
6009 #
6010 lt_prog_cc_shlib=
6011 if test "$GCC" = no; then
6012   case $host_os in
6013   sco3.2v5*)
6014     lt_prog_cc_shlib='-belf'
6015     ;;
6016   esac
6017 fi
6018 if test -n "$lt_prog_cc_shlib"; then
6019   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6020 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6021   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6022   else
6023     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6024 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6025     lt_cv_prog_cc_can_build_shared=no
6026   fi
6027 fi
6028
6029
6030 #
6031 # Check to make sure the static flag actually works.
6032 #
6033 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6034 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6035 if test "${lt_prog_compiler_static_works+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   lt_prog_compiler_static_works=no
6039    save_LDFLAGS="$LDFLAGS"
6040    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6041    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6042    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6043      # The compiler can only warn and ignore the option if not recognized
6044      # So say no if there are warnings
6045      if test -s conftest.err; then
6046        # Append any errors to the config.log.
6047        cat conftest.err 1>&5
6048      else
6049        lt_prog_compiler_static_works=yes
6050      fi
6051    fi
6052    $rm conftest*
6053    LDFLAGS="$save_LDFLAGS"
6054
6055 fi
6056 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6057 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6058
6059 if test x"$lt_prog_compiler_static_works" = xyes; then
6060     :
6061 else
6062     lt_prog_compiler_static=
6063 fi
6064
6065
6066
6067 ## CAVEAT EMPTOR:
6068 ## There is no encapsulation within the following macros, do not change
6069 ## the running order or otherwise move them around unless you know exactly
6070 ## what you are doing...
6071
6072 lt_prog_compiler_no_builtin_flag=
6073
6074 if test "$GCC" = yes; then
6075   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6076
6077   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6078 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6079 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   lt_cv_prog_compiler_rtti_exceptions=no
6083   ac_outfile=conftest.$ac_objext
6084    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6085    lt_compiler_flag="-fno-rtti -fno-exceptions"
6086    # Insert the option either (1) after the last *FLAGS variable, or
6087    # (2) before a word containing "conftest.", or (3) at the end.
6088    # Note that $ac_compile itself does not contain backslashes and begins
6089    # with a dollar sign (not a hyphen), so the echo should work correctly.
6090    # The option is referenced via a variable to avoid confusing sed.
6091    lt_compile=`echo "$ac_compile" | $SED \
6092    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6093    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6094    -e 's:$: $lt_compiler_flag:'`
6095    (eval echo "\"\$as_me:6095: $lt_compile\"" >&5)
6096    (eval "$lt_compile" 2>conftest.err)
6097    ac_status=$?
6098    cat conftest.err >&5
6099    echo "$as_me:6099: \$? = $ac_status" >&5
6100    if (exit $ac_status) && test -s "$ac_outfile"; then
6101      # The compiler can only warn and ignore the option if not recognized
6102      # So say no if there are warnings
6103      if test ! -s conftest.err; then
6104        lt_cv_prog_compiler_rtti_exceptions=yes
6105      fi
6106    fi
6107    $rm conftest*
6108
6109 fi
6110 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6111 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6112
6113 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6114     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6115 else
6116     :
6117 fi
6118
6119 fi
6120
6121 lt_prog_compiler_wl=
6122 lt_prog_compiler_pic=
6123 lt_prog_compiler_static=
6124
6125 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6126 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6127
6128   if test "$GCC" = yes; then
6129     lt_prog_compiler_wl='-Wl,'
6130     lt_prog_compiler_static='-static'
6131
6132     case $host_os in
6133       aix*)
6134       # All AIX code is PIC.
6135       if test "$host_cpu" = ia64; then
6136         # AIX 5 now supports IA64 processor
6137         lt_prog_compiler_static='-Bstatic'
6138       fi
6139       ;;
6140
6141     amigaos*)
6142       # FIXME: we need at least 68020 code to build shared libraries, but
6143       # adding the `-m68020' flag to GCC prevents building anything better,
6144       # like `-m68040'.
6145       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6146       ;;
6147
6148     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6149       # PIC is the default for these OSes.
6150       ;;
6151
6152     mingw* | pw32* | os2*)
6153       # This hack is so that the source file can tell whether it is being
6154       # built for inclusion in a dll (and should export symbols for example).
6155       lt_prog_compiler_pic='-DDLL_EXPORT'
6156       ;;
6157
6158     darwin* | rhapsody*)
6159       # PIC is the default on this platform
6160       # Common symbols not allowed in MH_DYLIB files
6161       lt_prog_compiler_pic='-fno-common'
6162       ;;
6163
6164     msdosdjgpp*)
6165       # Just because we use GCC doesn't mean we suddenly get shared libraries
6166       # on systems that don't support them.
6167       lt_prog_compiler_can_build_shared=no
6168       enable_shared=no
6169       ;;
6170
6171     sysv4*MP*)
6172       if test -d /usr/nec; then
6173         lt_prog_compiler_pic=-Kconform_pic
6174       fi
6175       ;;
6176
6177     hpux*)
6178       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6179       # not for PA HP-UX.
6180       case "$host_cpu" in
6181       hppa*64*|ia64*)
6182         # +Z the default
6183         ;;
6184       *)
6185         lt_prog_compiler_pic='-fPIC'
6186         ;;
6187       esac
6188       ;;
6189
6190     *)
6191       lt_prog_compiler_pic='-fPIC'
6192       ;;
6193     esac
6194   else
6195     # PORTME Check for flag to pass linker flags through the system compiler.
6196     case $host_os in
6197     aix*)
6198       lt_prog_compiler_wl='-Wl,'
6199       if test "$host_cpu" = ia64; then
6200         # AIX 5 now supports IA64 processor
6201         lt_prog_compiler_static='-Bstatic'
6202       else
6203         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6204       fi
6205       ;;
6206
6207     mingw* | pw32* | os2*)
6208       # This hack is so that the source file can tell whether it is being
6209       # built for inclusion in a dll (and should export symbols for example).
6210       lt_prog_compiler_pic='-DDLL_EXPORT'
6211       ;;
6212
6213     hpux9* | hpux10* | hpux11*)
6214       lt_prog_compiler_wl='-Wl,'
6215       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6216       # not for PA HP-UX.
6217       case "$host_cpu" in
6218       hppa*64*|ia64*)
6219         # +Z the default
6220         ;;
6221       *)
6222         lt_prog_compiler_pic='+Z'
6223         ;;
6224       esac
6225       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6226       lt_prog_compiler_static='${wl}-a ${wl}archive'
6227       ;;
6228
6229     irix5* | irix6* | nonstopux*)
6230       lt_prog_compiler_wl='-Wl,'
6231       # PIC (with -KPIC) is the default.
6232       lt_prog_compiler_static='-non_shared'
6233       ;;
6234
6235     newsos6)
6236       lt_prog_compiler_pic='-KPIC'
6237       lt_prog_compiler_static='-Bstatic'
6238       ;;
6239
6240     linux*)
6241       case $CC in
6242       icc|ecc)
6243         lt_prog_compiler_wl='-Wl,'
6244         lt_prog_compiler_pic='-KPIC'
6245         lt_prog_compiler_static='-static'
6246         ;;
6247       ccc)
6248         lt_prog_compiler_wl='-Wl,'
6249         # All Alpha code is PIC.
6250         lt_prog_compiler_static='-non_shared'
6251         ;;
6252       esac
6253       ;;
6254
6255     osf3* | osf4* | osf5*)
6256       lt_prog_compiler_wl='-Wl,'
6257       # All OSF/1 code is PIC.
6258       lt_prog_compiler_static='-non_shared'
6259       ;;
6260
6261     sco3.2v5*)
6262       lt_prog_compiler_pic='-Kpic'
6263       lt_prog_compiler_static='-dn'
6264       ;;
6265
6266     solaris*)
6267       lt_prog_compiler_wl='-Wl,'
6268       lt_prog_compiler_pic='-KPIC'
6269       lt_prog_compiler_static='-Bstatic'
6270       ;;
6271
6272     sunos4*)
6273       lt_prog_compiler_wl='-Qoption ld '
6274       lt_prog_compiler_pic='-PIC'
6275       lt_prog_compiler_static='-Bstatic'
6276       ;;
6277
6278     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6279       lt_prog_compiler_wl='-Wl,'
6280       lt_prog_compiler_pic='-KPIC'
6281       lt_prog_compiler_static='-Bstatic'
6282       ;;
6283
6284     sysv4*MP*)
6285       if test -d /usr/nec ;then
6286         lt_prog_compiler_pic='-Kconform_pic'
6287         lt_prog_compiler_static='-Bstatic'
6288       fi
6289       ;;
6290
6291     uts4*)
6292       lt_prog_compiler_pic='-pic'
6293       lt_prog_compiler_static='-Bstatic'
6294       ;;
6295
6296     *)
6297       lt_prog_compiler_can_build_shared=no
6298       ;;
6299     esac
6300   fi
6301
6302 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6303 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6304
6305 #
6306 # Check to make sure the PIC flag actually works.
6307 #
6308 if test -n "$lt_prog_compiler_pic"; then
6309   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6310 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6311 if test "${lt_prog_compiler_pic_works+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   lt_prog_compiler_pic_works=no
6315   ac_outfile=conftest.$ac_objext
6316    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6317    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6318    # Insert the option either (1) after the last *FLAGS variable, or
6319    # (2) before a word containing "conftest.", or (3) at the end.
6320    # Note that $ac_compile itself does not contain backslashes and begins
6321    # with a dollar sign (not a hyphen), so the echo should work correctly.
6322    # The option is referenced via a variable to avoid confusing sed.
6323    lt_compile=`echo "$ac_compile" | $SED \
6324    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6325    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6326    -e 's:$: $lt_compiler_flag:'`
6327    (eval echo "\"\$as_me:6327: $lt_compile\"" >&5)
6328    (eval "$lt_compile" 2>conftest.err)
6329    ac_status=$?
6330    cat conftest.err >&5
6331    echo "$as_me:6331: \$? = $ac_status" >&5
6332    if (exit $ac_status) && test -s "$ac_outfile"; then
6333      # The compiler can only warn and ignore the option if not recognized
6334      # So say no if there are warnings
6335      if test ! -s conftest.err; then
6336        lt_prog_compiler_pic_works=yes
6337      fi
6338    fi
6339    $rm conftest*
6340
6341 fi
6342 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6343 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6344
6345 if test x"$lt_prog_compiler_pic_works" = xyes; then
6346     case $lt_prog_compiler_pic in
6347      "" | " "*) ;;
6348      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6349      esac
6350 else
6351     lt_prog_compiler_pic=
6352      lt_prog_compiler_can_build_shared=no
6353 fi
6354
6355 fi
6356 case "$host_os" in
6357   # For platforms which do not support PIC, -DPIC is meaningless:
6358   *djgpp*)
6359     lt_prog_compiler_pic=
6360     ;;
6361   *)
6362     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6363     ;;
6364 esac
6365
6366 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6367 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6368 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6369   echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371   lt_cv_prog_compiler_c_o=no
6372    $rm -r conftest 2>/dev/null
6373    mkdir conftest
6374    cd conftest
6375    mkdir out
6376    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6377
6378    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6379    # that will create temporary files in the current directory regardless of
6380    # the output directory.  Thus, making CWD read-only will cause this test
6381    # to fail, enabling locking or at least warning the user not to do parallel
6382    # builds.
6383    chmod -w .
6384
6385    lt_compiler_flag="-o out/conftest2.$ac_objext"
6386    # Insert the option either (1) after the last *FLAGS variable, or
6387    # (2) before a word containing "conftest.", or (3) at the end.
6388    # Note that $ac_compile itself does not contain backslashes and begins
6389    # with a dollar sign (not a hyphen), so the echo should work correctly.
6390    lt_compile=`echo "$ac_compile" | $SED \
6391    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6393    -e 's:$: $lt_compiler_flag:'`
6394    (eval echo "\"\$as_me:6394: $lt_compile\"" >&5)
6395    (eval "$lt_compile" 2>out/conftest.err)
6396    ac_status=$?
6397    cat out/conftest.err >&5
6398    echo "$as_me:6398: \$? = $ac_status" >&5
6399    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6400    then
6401      # The compiler can only warn and ignore the option if not recognized
6402      # So say no if there are warnings
6403      if test ! -s out/conftest.err; then
6404        lt_cv_prog_compiler_c_o=yes
6405      fi
6406    fi
6407    chmod u+w .
6408    $rm conftest* out/*
6409    rmdir out
6410    cd ..
6411    rmdir conftest
6412    $rm conftest*
6413
6414 fi
6415 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6416 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6417
6418
6419 hard_links="nottested"
6420 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6421   # do not overwrite the value of need_locks provided by the user
6422   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6423 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6424   hard_links=yes
6425   $rm conftest*
6426   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6427   touch conftest.a
6428   ln conftest.a conftest.b 2>&5 || hard_links=no
6429   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6430   echo "$as_me:$LINENO: result: $hard_links" >&5
6431 echo "${ECHO_T}$hard_links" >&6
6432   if test "$hard_links" = no; then
6433     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6434 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6435     need_locks=warn
6436   fi
6437 else
6438   need_locks=no
6439 fi
6440
6441 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6442 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6443
6444   runpath_var=
6445   allow_undefined_flag=
6446   enable_shared_with_static_runtimes=no
6447   archive_cmds=
6448   archive_expsym_cmds=
6449   old_archive_From_new_cmds=
6450   old_archive_from_expsyms_cmds=
6451   export_dynamic_flag_spec=
6452   whole_archive_flag_spec=
6453   thread_safe_flag_spec=
6454   hardcode_libdir_flag_spec=
6455   hardcode_libdir_flag_spec_ld=
6456   hardcode_libdir_separator=
6457   hardcode_direct=no
6458   hardcode_minus_L=no
6459   hardcode_shlibpath_var=unsupported
6460   link_all_deplibs=unknown
6461   hardcode_automatic=no
6462   module_cmds=
6463   module_expsym_cmds=
6464   always_export_symbols=no
6465   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6466   # include_expsyms should be a list of space-separated symbols to be *always*
6467   # included in the symbol list
6468   include_expsyms=
6469   # exclude_expsyms can be an extended regexp of symbols to exclude
6470   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6471   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6472   # as well as any symbol that contains `d'.
6473   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6474   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6475   # platforms (ab)use it in PIC code, but their linkers get confused if
6476   # the symbol is explicitly referenced.  Since portable code cannot
6477   # rely on this symbol name, it's probably fine to never include it in
6478   # preloaded symbol tables.
6479   extract_expsyms_cmds=
6480
6481   case $host_os in
6482   cygwin* | mingw* | pw32*)
6483     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6484     # When not using gcc, we currently assume that we are using
6485     # Microsoft Visual C++.
6486     if test "$GCC" != yes; then
6487       with_gnu_ld=no
6488     fi
6489     ;;
6490   openbsd*)
6491     with_gnu_ld=no
6492     ;;
6493   esac
6494
6495   ld_shlibs=yes
6496   if test "$with_gnu_ld" = yes; then
6497     # If archive_cmds runs LD, not CC, wlarc should be empty
6498     wlarc='${wl}'
6499
6500     # See if GNU ld supports shared libraries.
6501     case $host_os in
6502     aix3* | aix4* | aix5*)
6503       # On AIX/PPC, the GNU linker is very broken
6504       if test "$host_cpu" != ia64; then
6505         ld_shlibs=no
6506         cat <<EOF 1>&2
6507
6508 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6509 *** to be unable to reliably create shared libraries on AIX.
6510 *** Therefore, libtool is disabling shared libraries support.  If you
6511 *** really care for shared libraries, you may want to modify your PATH
6512 *** so that a non-GNU linker is found, and then restart.
6513
6514 EOF
6515       fi
6516       ;;
6517
6518     amigaos*)
6519       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)'
6520       hardcode_libdir_flag_spec='-L$libdir'
6521       hardcode_minus_L=yes
6522
6523       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6524       # that the semantics of dynamic libraries on AmigaOS, at least up
6525       # to version 4, is to share data among multiple programs linked
6526       # with the same dynamic library.  Since this doesn't match the
6527       # behavior of shared libraries on other platforms, we can't use
6528       # them.
6529       ld_shlibs=no
6530       ;;
6531
6532     beos*)
6533       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6534         allow_undefined_flag=unsupported
6535         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6536         # support --undefined.  This deserves some investigation.  FIXME
6537         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6538       else
6539         ld_shlibs=no
6540       fi
6541       ;;
6542
6543     cygwin* | mingw* | pw32*)
6544       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6545       # as there is no search path for DLLs.
6546       hardcode_libdir_flag_spec='-L$libdir'
6547       allow_undefined_flag=unsupported
6548       always_export_symbols=no
6549       enable_shared_with_static_runtimes=yes
6550       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6551
6552       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6553         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6554         # If the export-symbols file already is a .def file (1st line
6555         # is EXPORTS), use it as is; otherwise, prepend...
6556         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6557           cp $export_symbols $output_objdir/$soname.def;
6558         else
6559           echo EXPORTS > $output_objdir/$soname.def;
6560           cat $export_symbols >> $output_objdir/$soname.def;
6561         fi~
6562         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6563       else
6564         ld_shlibs=no
6565       fi
6566       ;;
6567
6568     netbsd*)
6569       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6570         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6571         wlarc=
6572       else
6573         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6574         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6575       fi
6576       ;;
6577
6578     solaris* | sysv5*)
6579       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6580         ld_shlibs=no
6581         cat <<EOF 1>&2
6582
6583 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6584 *** create shared libraries on Solaris systems.  Therefore, libtool
6585 *** is disabling shared libraries support.  We urge you to upgrade GNU
6586 *** binutils to release 2.9.1 or newer.  Another option is to modify
6587 *** your PATH or compiler configuration so that the native linker is
6588 *** used, and then restart.
6589
6590 EOF
6591       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6592         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6593         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6594       else
6595         ld_shlibs=no
6596       fi
6597       ;;
6598
6599     sunos4*)
6600       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6601       wlarc=
6602       hardcode_direct=yes
6603       hardcode_shlibpath_var=no
6604       ;;
6605
6606     *)
6607       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6608         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6609         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6610       else
6611         ld_shlibs=no
6612       fi
6613       ;;
6614     esac
6615
6616     if test "$ld_shlibs" = yes; then
6617       runpath_var=LD_RUN_PATH
6618       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6619       export_dynamic_flag_spec='${wl}--export-dynamic'
6620       # ancient GNU ld didn't support --whole-archive et. al.
6621       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6622         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6623       else
6624         whole_archive_flag_spec=
6625       fi
6626     fi
6627   else
6628     # PORTME fill in a description of your system's linker (not GNU ld)
6629     case $host_os in
6630     aix3*)
6631       allow_undefined_flag=unsupported
6632       always_export_symbols=yes
6633       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'
6634       # Note: this linker hardcodes the directories in LIBPATH if there
6635       # are no directories specified by -L.
6636       hardcode_minus_L=yes
6637       if test "$GCC" = yes && test -z "$link_static_flag"; then
6638         # Neither direct hardcoding nor static linking is supported with a
6639         # broken collect2.
6640         hardcode_direct=unsupported
6641       fi
6642       ;;
6643
6644     aix4* | aix5*)
6645       if test "$host_cpu" = ia64; then
6646         # On IA64, the linker does run time linking by default, so we don't
6647         # have to do anything special.
6648         aix_use_runtimelinking=no
6649         exp_sym_flag='-Bexport'
6650         no_entry_flag=""
6651       else
6652         # If we're using GNU nm, then we don't want the "-C" option.
6653         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6654         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6655           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'
6656         else
6657           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'
6658         fi
6659         aix_use_runtimelinking=no
6660
6661         # Test if we are trying to use run time linking or normal
6662         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6663         # need to do runtime linking.
6664         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6665           for ld_flag in $LDFLAGS; do
6666           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6667             aix_use_runtimelinking=yes
6668             break
6669           fi
6670           done
6671         esac
6672
6673         exp_sym_flag='-bexport'
6674         no_entry_flag='-bnoentry'
6675       fi
6676
6677       # When large executables or shared objects are built, AIX ld can
6678       # have problems creating the table of contents.  If linking a library
6679       # or program results in "error TOC overflow" add -mminimal-toc to
6680       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6681       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6682
6683       archive_cmds=''
6684       hardcode_direct=yes
6685       hardcode_libdir_separator=':'
6686       link_all_deplibs=yes
6687
6688       if test "$GCC" = yes; then
6689         case $host_os in aix4.012|aix4.012.*)
6690         # We only want to do this on AIX 4.2 and lower, the check
6691         # below for broken collect2 doesn't work under 4.3+
6692           collect2name=`${CC} -print-prog-name=collect2`
6693           if test -f "$collect2name" && \
6694            strings "$collect2name" | grep resolve_lib_name >/dev/null
6695           then
6696           # We have reworked collect2
6697           hardcode_direct=yes
6698           else
6699           # We have old collect2
6700           hardcode_direct=unsupported
6701           # It fails to find uninstalled libraries when the uninstalled
6702           # path is not listed in the libpath.  Setting hardcode_minus_L
6703           # to unsupported forces relinking
6704           hardcode_minus_L=yes
6705           hardcode_libdir_flag_spec='-L$libdir'
6706           hardcode_libdir_separator=
6707           fi
6708         esac
6709         shared_flag='-shared'
6710       else
6711         # not using gcc
6712         if test "$host_cpu" = ia64; then
6713         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6714         # chokes on -Wl,-G. The following line is correct:
6715           shared_flag='-G'
6716         else
6717         if test "$aix_use_runtimelinking" = yes; then
6718             shared_flag='${wl}-G'
6719           else
6720             shared_flag='${wl}-bM:SRE'
6721         fi
6722         fi
6723       fi
6724
6725       # It seems that -bexpall does not export symbols beginning with
6726       # underscore (_), so it is better to generate a list of symbols to export.
6727       always_export_symbols=yes
6728       if test "$aix_use_runtimelinking" = yes; then
6729         # Warning - without using the other runtime loading flags (-brtl),
6730         # -berok will link without error, but may produce a broken library.
6731         allow_undefined_flag='-berok'
6732        # Determine the default libpath from the value encoded in an empty executable.
6733        cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h.  */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h.  */
6739
6740 int
6741 main ()
6742 {
6743
6744   ;
6745   return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750   (eval $ac_link) 2>conftest.er1
6751   ac_status=$?
6752   grep -v '^ *+' conftest.er1 >conftest.err
6753   rm -f conftest.er1
6754   cat conftest.err >&5
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } &&
6757          { ac_try='test -z "$ac_c_werror_flag"
6758                          || test ! -s conftest.err'
6759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760   (eval $ac_try) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); }; } &&
6764          { ac_try='test -s conftest$ac_exeext'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; }; then
6770
6771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6772 }'`
6773 # Check for a 64-bit object if we didn't find anything.
6774 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; }
6775 }'`; fi
6776 else
6777   echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780 fi
6781 rm -f conftest.err conftest.$ac_objext \
6782       conftest$ac_exeext conftest.$ac_ext
6783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6784
6785        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6786         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"
6787        else
6788         if test "$host_cpu" = ia64; then
6789           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6790           allow_undefined_flag="-z nodefs"
6791           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"
6792         else
6793          # Determine the default libpath from the value encoded in an empty executable.
6794          cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h.  */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h.  */
6800
6801 int
6802 main ()
6803 {
6804
6805   ;
6806   return 0;
6807 }
6808 _ACEOF
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811   (eval $ac_link) 2>conftest.er1
6812   ac_status=$?
6813   grep -v '^ *+' conftest.er1 >conftest.err
6814   rm -f conftest.er1
6815   cat conftest.err >&5
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); } &&
6818          { ac_try='test -z "$ac_c_werror_flag"
6819                          || test ! -s conftest.err'
6820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821   (eval $ac_try) 2>&5
6822   ac_status=$?
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); }; } &&
6825          { ac_try='test -s conftest$ac_exeext'
6826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827   (eval $ac_try) 2>&5
6828   ac_status=$?
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); }; }; then
6831
6832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6833 }'`
6834 # Check for a 64-bit object if we didn't find anything.
6835 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; }
6836 }'`; fi
6837 else
6838   echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 fi
6842 rm -f conftest.err conftest.$ac_objext \
6843       conftest$ac_exeext conftest.$ac_ext
6844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6845
6846          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6847           # Warning - without using the other run time loading flags,
6848           # -berok will link without error, but may produce a broken library.
6849           no_undefined_flag=' ${wl}-bernotok'
6850           allow_undefined_flag=' ${wl}-berok'
6851           # -bexpall does not export symbols beginning with underscore (_)
6852           always_export_symbols=yes
6853           # Exported symbols can be pulled into shared objects from archives
6854           whole_archive_flag_spec=' '
6855           archive_cmds_need_lc=yes
6856           # This is similar to how AIX traditionally builds it's shared libraries.
6857           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'
6858         fi
6859       fi
6860       ;;
6861
6862     amigaos*)
6863       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)'
6864       hardcode_libdir_flag_spec='-L$libdir'
6865       hardcode_minus_L=yes
6866       # see comment about different semantics on the GNU ld section
6867       ld_shlibs=no
6868       ;;
6869
6870     bsdi4*)
6871       export_dynamic_flag_spec=-rdynamic
6872       ;;
6873
6874     cygwin* | mingw* | pw32*)
6875       # When not using gcc, we currently assume that we are using
6876       # Microsoft Visual C++.
6877       # hardcode_libdir_flag_spec is actually meaningless, as there is
6878       # no search path for DLLs.
6879       hardcode_libdir_flag_spec=' '
6880       allow_undefined_flag=unsupported
6881       # Tell ltmain to make .lib files, not .a files.
6882       libext=lib
6883       # Tell ltmain to make .dll files, not .so files.
6884       shrext=".dll"
6885       # FIXME: Setting linknames here is a bad hack.
6886       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6887       # The linker will automatically build a .lib file if we build a DLL.
6888       old_archive_From_new_cmds='true'
6889       # FIXME: Should let the user specify the lib program.
6890       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6891       fix_srcfile_path='`cygpath -w "$srcfile"`'
6892       enable_shared_with_static_runtimes=yes
6893       ;;
6894
6895     darwin* | rhapsody*)
6896     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6897       archive_cmds_need_lc=no
6898       case "$host_os" in
6899       rhapsody* | darwin1.[012])
6900         allow_undefined_flag='-undefined suppress'
6901         ;;
6902       *) # Darwin 1.3 on
6903         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6904         ;;
6905       esac
6906       # FIXME: Relying on posixy $() will cause problems for
6907       #        cross-compilation, but unfortunately the echo tests do not
6908       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6909       #        `"' quotes if we put them in here... so don't!
6910         lt_int_apple_cc_single_mod=no
6911         output_verbose_link_cmd='echo'
6912         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6913           lt_int_apple_cc_single_mod=yes
6914         fi
6915         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6916           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6917         else
6918         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'
6919       fi
6920       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6921       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6922         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6923           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}'
6924         else
6925           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}'
6926         fi
6927           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}'
6928       hardcode_direct=no
6929       hardcode_automatic=yes
6930       hardcode_shlibpath_var=unsupported
6931       whole_archive_flag_spec='-all_load $convenience'
6932       link_all_deplibs=yes
6933     fi
6934       ;;
6935
6936     dgux*)
6937       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6938       hardcode_libdir_flag_spec='-L$libdir'
6939       hardcode_shlibpath_var=no
6940       ;;
6941
6942     freebsd1*)
6943       ld_shlibs=no
6944       ;;
6945
6946     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6947     # support.  Future versions do this automatically, but an explicit c++rt0.o
6948     # does not break anything, and helps significantly (at the cost of a little
6949     # extra space).
6950     freebsd2.2*)
6951       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6952       hardcode_libdir_flag_spec='-R$libdir'
6953       hardcode_direct=yes
6954       hardcode_shlibpath_var=no
6955       ;;
6956
6957     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6958     freebsd2*)
6959       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6960       hardcode_direct=yes
6961       hardcode_minus_L=yes
6962       hardcode_shlibpath_var=no
6963       ;;
6964
6965     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6966     freebsd*)
6967       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6968       hardcode_libdir_flag_spec='-R$libdir'
6969       hardcode_direct=yes
6970       hardcode_shlibpath_var=no
6971       ;;
6972
6973     hpux9*)
6974       if test "$GCC" = yes; then
6975         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'
6976       else
6977         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'
6978       fi
6979       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6980       hardcode_libdir_separator=:
6981       hardcode_direct=yes
6982
6983       # hardcode_minus_L: Not really in the search PATH,
6984       # but as the default location of the library.
6985       hardcode_minus_L=yes
6986       export_dynamic_flag_spec='${wl}-E'
6987       ;;
6988
6989     hpux10* | hpux11*)
6990       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6991         case "$host_cpu" in
6992         hppa*64*|ia64*)
6993           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6994           ;;
6995         *)
6996           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6997           ;;
6998         esac
6999       else
7000         case "$host_cpu" in
7001         hppa*64*|ia64*)
7002           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7003           ;;
7004         *)
7005           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7006           ;;
7007         esac
7008       fi
7009       if test "$with_gnu_ld" = no; then
7010         case "$host_cpu" in
7011         hppa*64*)
7012           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7013           hardcode_libdir_flag_spec_ld='+b $libdir'
7014           hardcode_libdir_separator=:
7015           hardcode_direct=no
7016           hardcode_shlibpath_var=no
7017           ;;
7018         ia64*)
7019           hardcode_libdir_flag_spec='-L$libdir'
7020           hardcode_direct=no
7021           hardcode_shlibpath_var=no
7022
7023           # hardcode_minus_L: Not really in the search PATH,
7024           # but as the default location of the library.
7025           hardcode_minus_L=yes
7026           ;;
7027         *)
7028           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7029           hardcode_libdir_separator=:
7030           hardcode_direct=yes
7031           export_dynamic_flag_spec='${wl}-E'
7032
7033           # hardcode_minus_L: Not really in the search PATH,
7034           # but as the default location of the library.
7035           hardcode_minus_L=yes
7036           ;;
7037         esac
7038       fi
7039       ;;
7040
7041     irix5* | irix6* | nonstopux*)
7042       if test "$GCC" = yes; then
7043         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'
7044       else
7045         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'
7046         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7047       fi
7048       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7049       hardcode_libdir_separator=:
7050       link_all_deplibs=yes
7051       ;;
7052
7053     netbsd*)
7054       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7055         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7056       else
7057         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7058       fi
7059       hardcode_libdir_flag_spec='-R$libdir'
7060       hardcode_direct=yes
7061       hardcode_shlibpath_var=no
7062       ;;
7063
7064     newsos6)
7065       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7066       hardcode_direct=yes
7067       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7068       hardcode_libdir_separator=:
7069       hardcode_shlibpath_var=no
7070       ;;
7071
7072     openbsd*)
7073       hardcode_direct=yes
7074       hardcode_shlibpath_var=no
7075       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7076         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7077         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7078         export_dynamic_flag_spec='${wl}-E'
7079       else
7080        case $host_os in
7081          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7082            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7083            hardcode_libdir_flag_spec='-R$libdir'
7084            ;;
7085          *)
7086            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7087            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7088            ;;
7089        esac
7090       fi
7091       ;;
7092
7093     os2*)
7094       hardcode_libdir_flag_spec='-L$libdir'
7095       hardcode_minus_L=yes
7096       allow_undefined_flag=unsupported
7097       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'
7098       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7099       ;;
7100
7101     osf3*)
7102       if test "$GCC" = yes; then
7103         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7104         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'
7105       else
7106         allow_undefined_flag=' -expect_unresolved \*'
7107         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'
7108       fi
7109       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7110       hardcode_libdir_separator=:
7111       ;;
7112
7113     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7114       if test "$GCC" = yes; then
7115         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7116         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'
7117         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7118       else
7119         allow_undefined_flag=' -expect_unresolved \*'
7120         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'
7121         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7122         $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'
7123
7124         # Both c and cxx compiler support -rpath directly
7125         hardcode_libdir_flag_spec='-rpath $libdir'
7126       fi
7127       hardcode_libdir_separator=:
7128       ;;
7129
7130     sco3.2v5*)
7131       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7132       hardcode_shlibpath_var=no
7133       export_dynamic_flag_spec='${wl}-Bexport'
7134       runpath_var=LD_RUN_PATH
7135       hardcode_runpath_var=yes
7136       ;;
7137
7138     solaris*)
7139       no_undefined_flag=' -z text'
7140       if test "$GCC" = yes; then
7141         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7142         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7143           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7144       else
7145         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7146         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7147         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7148       fi
7149       hardcode_libdir_flag_spec='-R$libdir'
7150       hardcode_shlibpath_var=no
7151       case $host_os in
7152       solaris2.[0-5] | solaris2.[0-5].*) ;;
7153       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7154         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7155       esac
7156       link_all_deplibs=yes
7157       ;;
7158
7159     sunos4*)
7160       if test "x$host_vendor" = xsequent; then
7161         # Use $CC to link under sequent, because it throws in some extra .o
7162         # files that make .init and .fini sections work.
7163         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7164       else
7165         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7166       fi
7167       hardcode_libdir_flag_spec='-L$libdir'
7168       hardcode_direct=yes
7169       hardcode_minus_L=yes
7170       hardcode_shlibpath_var=no
7171       ;;
7172
7173     sysv4)
7174       case $host_vendor in
7175         sni)
7176           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7177           hardcode_direct=yes # is this really true???
7178         ;;
7179         siemens)
7180           ## LD is ld it makes a PLAMLIB
7181           ## CC just makes a GrossModule.
7182           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7183           reload_cmds='$CC -r -o $output$reload_objs'
7184           hardcode_direct=no
7185         ;;
7186         motorola)
7187           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7188           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7189         ;;
7190       esac
7191       runpath_var='LD_RUN_PATH'
7192       hardcode_shlibpath_var=no
7193       ;;
7194
7195     sysv4.3*)
7196       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7197       hardcode_shlibpath_var=no
7198       export_dynamic_flag_spec='-Bexport'
7199       ;;
7200
7201     sysv4*MP*)
7202       if test -d /usr/nec; then
7203         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7204         hardcode_shlibpath_var=no
7205         runpath_var=LD_RUN_PATH
7206         hardcode_runpath_var=yes
7207         ld_shlibs=yes
7208       fi
7209       ;;
7210
7211     sysv4.2uw2*)
7212       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7213       hardcode_direct=yes
7214       hardcode_minus_L=no
7215       hardcode_shlibpath_var=no
7216       hardcode_runpath_var=yes
7217       runpath_var=LD_RUN_PATH
7218       ;;
7219
7220    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7221       no_undefined_flag='${wl}-z ${wl}text'
7222       if test "$GCC" = yes; then
7223         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7224       else
7225         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7226       fi
7227       runpath_var='LD_RUN_PATH'
7228       hardcode_shlibpath_var=no
7229       ;;
7230
7231     sysv5*)
7232       no_undefined_flag=' -z text'
7233       # $CC -shared without GNU ld will not create a library from C++
7234       # object files and a static libstdc++, better avoid it by now
7235       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7236       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7237                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7238       hardcode_libdir_flag_spec=
7239       hardcode_shlibpath_var=no
7240       runpath_var='LD_RUN_PATH'
7241       ;;
7242
7243     uts4*)
7244       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7245       hardcode_libdir_flag_spec='-L$libdir'
7246       hardcode_shlibpath_var=no
7247       ;;
7248
7249     *)
7250       ld_shlibs=no
7251       ;;
7252     esac
7253   fi
7254
7255 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7256 echo "${ECHO_T}$ld_shlibs" >&6
7257 test "$ld_shlibs" = no && can_build_shared=no
7258
7259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7260 if test "$GCC" = yes; then
7261   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7262 fi
7263
7264 #
7265 # Do we need to explicitly link libc?
7266 #
7267 case "x$archive_cmds_need_lc" in
7268 x|xyes)
7269   # Assume -lc should be added
7270   archive_cmds_need_lc=yes
7271
7272   if test "$enable_shared" = yes && test "$GCC" = yes; then
7273     case $archive_cmds in
7274     *'~'*)
7275       # FIXME: we may have to deal with multi-command sequences.
7276       ;;
7277     '$CC '*)
7278       # Test whether the compiler implicitly links with -lc since on some
7279       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7280       # to ld, don't add -lc before -lgcc.
7281       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7282 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7283       $rm conftest*
7284       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7285
7286       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287   (eval $ac_compile) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } 2>conftest.err; then
7291         soname=conftest
7292         lib=conftest
7293         libobjs=conftest.$ac_objext
7294         deplibs=
7295         wl=$lt_prog_compiler_wl
7296         compiler_flags=-v
7297         linker_flags=-v
7298         verstring=
7299         output_objdir=.
7300         libname=conftest
7301         lt_save_allow_undefined_flag=$allow_undefined_flag
7302         allow_undefined_flag=
7303         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7304   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); }
7308         then
7309           archive_cmds_need_lc=no
7310         else
7311           archive_cmds_need_lc=yes
7312         fi
7313         allow_undefined_flag=$lt_save_allow_undefined_flag
7314       else
7315         cat conftest.err 1>&5
7316       fi
7317       $rm conftest*
7318       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7319 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7320       ;;
7321     esac
7322   fi
7323   ;;
7324 esac
7325
7326 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7327 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7328 hardcode_action=
7329 if test -n "$hardcode_libdir_flag_spec" || \
7330    test -n "$runpath_var " || \
7331    test "X$hardcode_automatic"="Xyes" ; then
7332
7333   # We can hardcode non-existant directories.
7334   if test "$hardcode_direct" != no &&
7335      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7336      # have to relink, otherwise we might link with an installed library
7337      # when we should be linking with a yet-to-be-installed one
7338      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7339      test "$hardcode_minus_L" != no; then
7340     # Linking always hardcodes the temporary library directory.
7341     hardcode_action=relink
7342   else
7343     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7344     hardcode_action=immediate
7345   fi
7346 else
7347   # We cannot hardcode anything, or else we can only hardcode existing
7348   # directories.
7349   hardcode_action=unsupported
7350 fi
7351 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7352 echo "${ECHO_T}$hardcode_action" >&6
7353
7354 if test "$hardcode_action" = relink; then
7355   # Fast installation is not supported
7356   enable_fast_install=no
7357 elif test "$shlibpath_overrides_runpath" = yes ||
7358      test "$enable_shared" = no; then
7359   # Fast installation is not necessary
7360   enable_fast_install=needless
7361 fi
7362
7363 striplib=
7364 old_striplib=
7365 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7366 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7367 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7368   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7369   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7370   echo "$as_me:$LINENO: result: yes" >&5
7371 echo "${ECHO_T}yes" >&6
7372 else
7373 # FIXME - insert some real tests, host_os isn't really good enough
7374   case $host_os in
7375    darwin*)
7376        if test -n "$STRIP" ; then
7377          striplib="$STRIP -x"
7378          echo "$as_me:$LINENO: result: yes" >&5
7379 echo "${ECHO_T}yes" >&6
7380        else
7381   echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6
7383 fi
7384        ;;
7385    *)
7386   echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6
7388     ;;
7389   esac
7390 fi
7391
7392 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7393 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7394 library_names_spec=
7395 libname_spec='lib$name'
7396 soname_spec=
7397 shrext=".so"
7398 postinstall_cmds=
7399 postuninstall_cmds=
7400 finish_cmds=
7401 finish_eval=
7402 shlibpath_var=
7403 shlibpath_overrides_runpath=unknown
7404 version_type=none
7405 dynamic_linker="$host_os ld.so"
7406 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7407 if test "$GCC" = yes; then
7408   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7409   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7410     # if the path contains ";" then we assume it to be the separator
7411     # otherwise default to the standard path separator (i.e. ":") - it is
7412     # assumed that no part of a normal pathname contains ";" but that should
7413     # okay in the real world where ";" in dirpaths is itself problematic.
7414     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7415   else
7416     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7417   fi
7418 else
7419   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7420 fi
7421 need_lib_prefix=unknown
7422 hardcode_into_libs=no
7423
7424 # when you set need_version to no, make sure it does not cause -set_version
7425 # flags to be left without arguments
7426 need_version=unknown
7427
7428 case $host_os in
7429 aix3*)
7430   version_type=linux
7431   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7432   shlibpath_var=LIBPATH
7433
7434   # AIX 3 has no versioning support, so we append a major version to the name.
7435   soname_spec='${libname}${release}${shared_ext}$major'
7436   ;;
7437
7438 aix4* | aix5*)
7439   version_type=linux
7440   need_lib_prefix=no
7441   need_version=no
7442   hardcode_into_libs=yes
7443   if test "$host_cpu" = ia64; then
7444     # AIX 5 supports IA64
7445     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7446     shlibpath_var=LD_LIBRARY_PATH
7447   else
7448     # With GCC up to 2.95.x, collect2 would create an import file
7449     # for dependence libraries.  The import file would start with
7450     # the line `#! .'.  This would cause the generated library to
7451     # depend on `.', always an invalid library.  This was fixed in
7452     # development snapshots of GCC prior to 3.0.
7453     case $host_os in
7454       aix4 | aix4.[01] | aix4.[01].*)
7455       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7456            echo ' yes '
7457            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7458         :
7459       else
7460         can_build_shared=no
7461       fi
7462       ;;
7463     esac
7464     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7465     # soname into executable. Probably we can add versioning support to
7466     # collect2, so additional links can be useful in future.
7467     if test "$aix_use_runtimelinking" = yes; then
7468       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7469       # instead of lib<name>.a to let people know that these are not
7470       # typical AIX shared libraries.
7471       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7472     else
7473       # We preserve .a as extension for shared libraries through AIX4.2
7474       # and later when we are not doing run time linking.
7475       library_names_spec='${libname}${release}.a $libname.a'
7476       soname_spec='${libname}${release}${shared_ext}$major'
7477     fi
7478     shlibpath_var=LIBPATH
7479   fi
7480   ;;
7481
7482 amigaos*)
7483   library_names_spec='$libname.ixlibrary $libname.a'
7484   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7485   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'
7486   ;;
7487
7488 beos*)
7489   library_names_spec='${libname}${shared_ext}'
7490   dynamic_linker="$host_os ld.so"
7491   shlibpath_var=LIBRARY_PATH
7492   ;;
7493
7494 bsdi4*)
7495   version_type=linux
7496   need_version=no
7497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7498   soname_spec='${libname}${release}${shared_ext}$major'
7499   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7500   shlibpath_var=LD_LIBRARY_PATH
7501   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7502   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7503   # the default ld.so.conf also contains /usr/contrib/lib and
7504   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7505   # libtool to hard-code these into programs
7506   ;;
7507
7508 cygwin* | mingw* | pw32*)
7509   version_type=windows
7510   shrext=".dll"
7511   need_version=no
7512   need_lib_prefix=no
7513
7514   case $GCC,$host_os in
7515   yes,cygwin* | yes,mingw* | yes,pw32*)
7516     library_names_spec='$libname.dll.a'
7517     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7518     postinstall_cmds='base_file=`basename \${file}`~
7519       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7520       dldir=$destdir/`dirname \$dlpath`~
7521       test -d \$dldir || mkdir -p \$dldir~
7522       $install_prog $dir/$dlname \$dldir/$dlname'
7523     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7524       dlpath=$dir/\$dldll~
7525        $rm \$dlpath'
7526     shlibpath_overrides_runpath=yes
7527
7528     case $host_os in
7529     cygwin*)
7530       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7531       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7532       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7533       ;;
7534     mingw*)
7535       # MinGW DLLs use traditional 'lib' prefix
7536       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7537       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7538       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7539         # It is most probably a Windows format PATH printed by
7540         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7541         # path with ; separators, and with drive letters. We can handle the
7542         # drive letters (cygwin fileutils understands them), so leave them,
7543         # especially as we might pass files found there to a mingw objdump,
7544         # which wouldn't understand a cygwinified path. Ahh.
7545         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7546       else
7547         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7548       fi
7549       ;;
7550     pw32*)
7551       # pw32 DLLs use 'pw' prefix rather than 'lib'
7552       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7553       ;;
7554     esac
7555     ;;
7556
7557   *)
7558     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7559     ;;
7560   esac
7561   dynamic_linker='Win32 ld.exe'
7562   # FIXME: first we should search . and the directory the executable is in
7563   shlibpath_var=PATH
7564   ;;
7565
7566 darwin* | rhapsody*)
7567   dynamic_linker="$host_os dyld"
7568   version_type=darwin
7569   need_lib_prefix=no
7570   need_version=no
7571   # FIXME: Relying on posixy $() will cause problems for
7572   #        cross-compilation, but unfortunately the echo tests do not
7573   #        yet detect zsh echo's removal of \ escapes.
7574   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7575   soname_spec='${libname}${release}${major}$shared_ext'
7576   shlibpath_overrides_runpath=yes
7577   shlibpath_var=DYLD_LIBRARY_PATH
7578   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7579   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7580   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7581   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7582   fi
7583   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7584   ;;
7585
7586 dgux*)
7587   version_type=linux
7588   need_lib_prefix=no
7589   need_version=no
7590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7591   soname_spec='${libname}${release}${shared_ext}$major'
7592   shlibpath_var=LD_LIBRARY_PATH
7593   ;;
7594
7595 freebsd1*)
7596   dynamic_linker=no
7597   ;;
7598
7599 freebsd*)
7600   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7601   version_type=freebsd-$objformat
7602   case $version_type in
7603     freebsd-elf*)
7604       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7605       need_version=no
7606       need_lib_prefix=no
7607       ;;
7608     freebsd-*)
7609       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7610       need_version=yes
7611       ;;
7612   esac
7613   shlibpath_var=LD_LIBRARY_PATH
7614   case $host_os in
7615   freebsd2*)
7616     shlibpath_overrides_runpath=yes
7617     ;;
7618   freebsd3.01* | freebsdelf3.01*)
7619     shlibpath_overrides_runpath=yes
7620     hardcode_into_libs=yes
7621     ;;
7622   *) # from 3.2 on
7623     shlibpath_overrides_runpath=no
7624     hardcode_into_libs=yes
7625     ;;
7626   esac
7627   ;;
7628
7629 gnu*)
7630   version_type=linux
7631   need_lib_prefix=no
7632   need_version=no
7633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7634   soname_spec='${libname}${release}${shared_ext}$major'
7635   shlibpath_var=LD_LIBRARY_PATH
7636   hardcode_into_libs=yes
7637   ;;
7638
7639 hpux9* | hpux10* | hpux11*)
7640   # Give a soname corresponding to the major version so that dld.sl refuses to
7641   # link against other versions.
7642   version_type=sunos
7643   need_lib_prefix=no
7644   need_version=no
7645   case "$host_cpu" in
7646   ia64*)
7647     shrext='.so'
7648     hardcode_into_libs=yes
7649     dynamic_linker="$host_os dld.so"
7650     shlibpath_var=LD_LIBRARY_PATH
7651     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7653     soname_spec='${libname}${release}${shared_ext}$major'
7654     if test "X$HPUX_IA64_MODE" = X32; then
7655       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7656     else
7657       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7658     fi
7659     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7660     ;;
7661    hppa*64*)
7662      shrext='.sl'
7663      hardcode_into_libs=yes
7664      dynamic_linker="$host_os dld.sl"
7665      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7666      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7667      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7668      soname_spec='${libname}${release}${shared_ext}$major'
7669      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7670      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7671      ;;
7672    *)
7673     shrext='.sl'
7674     dynamic_linker="$host_os dld.sl"
7675     shlibpath_var=SHLIB_PATH
7676     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678     soname_spec='${libname}${release}${shared_ext}$major'
7679     ;;
7680   esac
7681   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7682   postinstall_cmds='chmod 555 $lib'
7683   ;;
7684
7685 irix5* | irix6* | nonstopux*)
7686   case $host_os in
7687     nonstopux*) version_type=nonstopux ;;
7688     *)
7689         if test "$lt_cv_prog_gnu_ld" = yes; then
7690                 version_type=linux
7691         else
7692                 version_type=irix
7693         fi ;;
7694   esac
7695   need_lib_prefix=no
7696   need_version=no
7697   soname_spec='${libname}${release}${shared_ext}$major'
7698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7699   case $host_os in
7700   irix5* | nonstopux*)
7701     libsuff= shlibsuff=
7702     ;;
7703   *)
7704     case $LD in # libtool.m4 will add one of these switches to LD
7705     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7706       libsuff= shlibsuff= libmagic=32-bit;;
7707     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7708       libsuff=32 shlibsuff=N32 libmagic=N32;;
7709     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7710       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7711     *) libsuff= shlibsuff= libmagic=never-match;;
7712     esac
7713     ;;
7714   esac
7715   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7716   shlibpath_overrides_runpath=no
7717   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7718   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7719   hardcode_into_libs=yes
7720   ;;
7721
7722 # No shared lib support for Linux oldld, aout, or coff.
7723 linux*oldld* | linux*aout* | linux*coff*)
7724   dynamic_linker=no
7725   ;;
7726
7727 # This must be Linux ELF.
7728 linux*)
7729   version_type=linux
7730   need_lib_prefix=no
7731   need_version=no
7732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7733   soname_spec='${libname}${release}${shared_ext}$major'
7734   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7735   shlibpath_var=LD_LIBRARY_PATH
7736   shlibpath_overrides_runpath=no
7737   # This implies no fast_install, which is unacceptable.
7738   # Some rework will be needed to allow for fast_install
7739   # before this can be enabled.
7740   hardcode_into_libs=yes
7741
7742   # We used to test for /lib/ld.so.1 and disable shared libraries on
7743   # powerpc, because MkLinux only supported shared libraries with the
7744   # GNU dynamic linker.  Since this was broken with cross compilers,
7745   # most powerpc-linux boxes support dynamic linking these days and
7746   # people can always --disable-shared, the test was removed, and we
7747   # assume the GNU/Linux dynamic linker is in use.
7748   dynamic_linker='GNU/Linux ld.so'
7749   ;;
7750
7751 netbsd*)
7752   version_type=sunos
7753   need_lib_prefix=no
7754   need_version=no
7755   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7757     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7758     dynamic_linker='NetBSD (a.out) ld.so'
7759   else
7760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7761     soname_spec='${libname}${release}${shared_ext}$major'
7762     dynamic_linker='NetBSD ld.elf_so'
7763   fi
7764   shlibpath_var=LD_LIBRARY_PATH
7765   shlibpath_overrides_runpath=yes
7766   hardcode_into_libs=yes
7767   ;;
7768
7769 newsos6)
7770   version_type=linux
7771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7772   shlibpath_var=LD_LIBRARY_PATH
7773   shlibpath_overrides_runpath=yes
7774   ;;
7775
7776 nto-qnx)
7777   version_type=linux
7778   need_lib_prefix=no
7779   need_version=no
7780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7781   soname_spec='${libname}${release}${shared_ext}$major'
7782   shlibpath_var=LD_LIBRARY_PATH
7783   shlibpath_overrides_runpath=yes
7784   ;;
7785
7786 openbsd*)
7787   version_type=sunos
7788   need_lib_prefix=no
7789   need_version=no
7790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7791   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7792   shlibpath_var=LD_LIBRARY_PATH
7793   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7794     case $host_os in
7795       openbsd2.[89] | openbsd2.[89].*)
7796         shlibpath_overrides_runpath=no
7797         ;;
7798       *)
7799         shlibpath_overrides_runpath=yes
7800         ;;
7801       esac
7802   else
7803     shlibpath_overrides_runpath=yes
7804   fi
7805   ;;
7806
7807 os2*)
7808   libname_spec='$name'
7809   shrext=".dll"
7810   need_lib_prefix=no
7811   library_names_spec='$libname${shared_ext} $libname.a'
7812   dynamic_linker='OS/2 ld.exe'
7813   shlibpath_var=LIBPATH
7814   ;;
7815
7816 osf3* | osf4* | osf5*)
7817   version_type=osf
7818   need_lib_prefix=no
7819   need_version=no
7820   soname_spec='${libname}${release}${shared_ext}$major'
7821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7822   shlibpath_var=LD_LIBRARY_PATH
7823   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7824   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7825   ;;
7826
7827 sco3.2v5*)
7828   version_type=osf
7829   soname_spec='${libname}${release}${shared_ext}$major'
7830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7831   shlibpath_var=LD_LIBRARY_PATH
7832   ;;
7833
7834 solaris*)
7835   version_type=linux
7836   need_lib_prefix=no
7837   need_version=no
7838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7839   soname_spec='${libname}${release}${shared_ext}$major'
7840   shlibpath_var=LD_LIBRARY_PATH
7841   shlibpath_overrides_runpath=yes
7842   hardcode_into_libs=yes
7843   # ldd complains unless libraries are executable
7844   postinstall_cmds='chmod +x $lib'
7845   ;;
7846
7847 sunos4*)
7848   version_type=sunos
7849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7850   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7851   shlibpath_var=LD_LIBRARY_PATH
7852   shlibpath_overrides_runpath=yes
7853   if test "$with_gnu_ld" = yes; then
7854     need_lib_prefix=no
7855   fi
7856   need_version=yes
7857   ;;
7858
7859 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7860   version_type=linux
7861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862   soname_spec='${libname}${release}${shared_ext}$major'
7863   shlibpath_var=LD_LIBRARY_PATH
7864   case $host_vendor in
7865     sni)
7866       shlibpath_overrides_runpath=no
7867       need_lib_prefix=no
7868       export_dynamic_flag_spec='${wl}-Blargedynsym'
7869       runpath_var=LD_RUN_PATH
7870       ;;
7871     siemens)
7872       need_lib_prefix=no
7873       ;;
7874     motorola)
7875       need_lib_prefix=no
7876       need_version=no
7877       shlibpath_overrides_runpath=no
7878       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7879       ;;
7880   esac
7881   ;;
7882
7883 sysv4*MP*)
7884   if test -d /usr/nec ;then
7885     version_type=linux
7886     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7887     soname_spec='$libname${shared_ext}.$major'
7888     shlibpath_var=LD_LIBRARY_PATH
7889   fi
7890   ;;
7891
7892 uts4*)
7893   version_type=linux
7894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7895   soname_spec='${libname}${release}${shared_ext}$major'
7896   shlibpath_var=LD_LIBRARY_PATH
7897   ;;
7898
7899 *)
7900   dynamic_linker=no
7901   ;;
7902 esac
7903 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7904 echo "${ECHO_T}$dynamic_linker" >&6
7905 test "$dynamic_linker" = no && can_build_shared=no
7906
7907 if test "x$enable_dlopen" != xyes; then
7908   enable_dlopen=unknown
7909   enable_dlopen_self=unknown
7910   enable_dlopen_self_static=unknown
7911 else
7912   lt_cv_dlopen=no
7913   lt_cv_dlopen_libs=
7914
7915   case $host_os in
7916   beos*)
7917     lt_cv_dlopen="load_add_on"
7918     lt_cv_dlopen_libs=
7919     lt_cv_dlopen_self=yes
7920     ;;
7921
7922   mingw* | pw32*)
7923     lt_cv_dlopen="LoadLibrary"
7924     lt_cv_dlopen_libs=
7925    ;;
7926
7927   cygwin*)
7928     lt_cv_dlopen="dlopen"
7929     lt_cv_dlopen_libs=
7930    ;;
7931
7932   darwin*)
7933   # if libdl is installed we need to link against it
7934     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7935 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   ac_check_lib_save_LIBS=$LIBS
7940 LIBS="-ldl  $LIBS"
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h.  */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h.  */
7947
7948 /* Override any gcc2 internal prototype to avoid an error.  */
7949 #ifdef __cplusplus
7950 extern "C"
7951 #endif
7952 /* We use char because int might match the return type of a gcc2
7953    builtin and then its argument prototype would still apply.  */
7954 char dlopen ();
7955 int
7956 main ()
7957 {
7958 dlopen ();
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965   (eval $ac_link) 2>conftest.er1
7966   ac_status=$?
7967   grep -v '^ *+' conftest.er1 >conftest.err
7968   rm -f conftest.er1
7969   cat conftest.err >&5
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); } &&
7972          { ac_try='test -z "$ac_c_werror_flag"
7973                          || test ! -s conftest.err'
7974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975   (eval $ac_try) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; } &&
7979          { ac_try='test -s conftest$ac_exeext'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; }; then
7985   ac_cv_lib_dl_dlopen=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 ac_cv_lib_dl_dlopen=no
7991 fi
7992 rm -f conftest.err conftest.$ac_objext \
7993       conftest$ac_exeext conftest.$ac_ext
7994 LIBS=$ac_check_lib_save_LIBS
7995 fi
7996 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7997 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7998 if test $ac_cv_lib_dl_dlopen = yes; then
7999   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8000 else
8001
8002     lt_cv_dlopen="dyld"
8003     lt_cv_dlopen_libs=
8004     lt_cv_dlopen_self=yes
8005
8006 fi
8007
8008    ;;
8009
8010   *)
8011     echo "$as_me:$LINENO: checking for shl_load" >&5
8012 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8013 if test "${ac_cv_func_shl_load+set}" = set; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8024 #define shl_load innocuous_shl_load
8025
8026 /* System header to define __stub macros and hopefully few prototypes,
8027     which can conflict with char shl_load (); below.
8028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8029     <limits.h> exists even on freestanding compilers.  */
8030
8031 #ifdef __STDC__
8032 # include <limits.h>
8033 #else
8034 # include <assert.h>
8035 #endif
8036
8037 #undef shl_load
8038
8039 /* Override any gcc2 internal prototype to avoid an error.  */
8040 #ifdef __cplusplus
8041 extern "C"
8042 {
8043 #endif
8044 /* We use char because int might match the return type of a gcc2
8045    builtin and then its argument prototype would still apply.  */
8046 char shl_load ();
8047 /* The GNU C library defines this for functions which it implements
8048     to always fail with ENOSYS.  Some functions are actually named
8049     something starting with __ and the normal name is an alias.  */
8050 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8051 choke me
8052 #else
8053 char (*f) () = shl_load;
8054 #endif
8055 #ifdef __cplusplus
8056 }
8057 #endif
8058
8059 int
8060 main ()
8061 {
8062 return f != shl_load;
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext conftest$ac_exeext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8069   (eval $ac_link) 2>conftest.er1
8070   ac_status=$?
8071   grep -v '^ *+' conftest.er1 >conftest.err
8072   rm -f conftest.er1
8073   cat conftest.err >&5
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } &&
8076          { ac_try='test -z "$ac_c_werror_flag"
8077                          || test ! -s conftest.err'
8078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079   (eval $ac_try) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; } &&
8083          { ac_try='test -s conftest$ac_exeext'
8084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085   (eval $ac_try) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089   ac_cv_func_shl_load=yes
8090 else
8091   echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 ac_cv_func_shl_load=no
8095 fi
8096 rm -f conftest.err conftest.$ac_objext \
8097       conftest$ac_exeext conftest.$ac_ext
8098 fi
8099 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8100 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8101 if test $ac_cv_func_shl_load = yes; then
8102   lt_cv_dlopen="shl_load"
8103 else
8104   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8105 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8106 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   ac_check_lib_save_LIBS=$LIBS
8110 LIBS="-ldld  $LIBS"
8111 cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h.  */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h.  */
8117
8118 /* Override any gcc2 internal prototype to avoid an error.  */
8119 #ifdef __cplusplus
8120 extern "C"
8121 #endif
8122 /* We use char because int might match the return type of a gcc2
8123    builtin and then its argument prototype would still apply.  */
8124 char shl_load ();
8125 int
8126 main ()
8127 {
8128 shl_load ();
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 rm -f conftest.$ac_objext conftest$ac_exeext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135   (eval $ac_link) 2>conftest.er1
8136   ac_status=$?
8137   grep -v '^ *+' conftest.er1 >conftest.err
8138   rm -f conftest.er1
8139   cat conftest.err >&5
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); } &&
8142          { ac_try='test -z "$ac_c_werror_flag"
8143                          || test ! -s conftest.err'
8144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145   (eval $ac_try) 2>&5
8146   ac_status=$?
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); }; } &&
8149          { ac_try='test -s conftest$ac_exeext'
8150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151   (eval $ac_try) 2>&5
8152   ac_status=$?
8153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   (exit $ac_status); }; }; then
8155   ac_cv_lib_dld_shl_load=yes
8156 else
8157   echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160 ac_cv_lib_dld_shl_load=no
8161 fi
8162 rm -f conftest.err conftest.$ac_objext \
8163       conftest$ac_exeext conftest.$ac_ext
8164 LIBS=$ac_check_lib_save_LIBS
8165 fi
8166 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8167 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8168 if test $ac_cv_lib_dld_shl_load = yes; then
8169   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8170 else
8171   echo "$as_me:$LINENO: checking for dlopen" >&5
8172 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8173 if test "${ac_cv_func_dlopen+set}" = set; then
8174   echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176   cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8184 #define dlopen innocuous_dlopen
8185
8186 /* System header to define __stub macros and hopefully few prototypes,
8187     which can conflict with char dlopen (); below.
8188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8189     <limits.h> exists even on freestanding compilers.  */
8190
8191 #ifdef __STDC__
8192 # include <limits.h>
8193 #else
8194 # include <assert.h>
8195 #endif
8196
8197 #undef dlopen
8198
8199 /* Override any gcc2 internal prototype to avoid an error.  */
8200 #ifdef __cplusplus
8201 extern "C"
8202 {
8203 #endif
8204 /* We use char because int might match the return type of a gcc2
8205    builtin and then its argument prototype would still apply.  */
8206 char dlopen ();
8207 /* The GNU C library defines this for functions which it implements
8208     to always fail with ENOSYS.  Some functions are actually named
8209     something starting with __ and the normal name is an alias.  */
8210 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8211 choke me
8212 #else
8213 char (*f) () = dlopen;
8214 #endif
8215 #ifdef __cplusplus
8216 }
8217 #endif
8218
8219 int
8220 main ()
8221 {
8222 return f != dlopen;
8223   ;
8224   return 0;
8225 }
8226 _ACEOF
8227 rm -f conftest.$ac_objext conftest$ac_exeext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229   (eval $ac_link) 2>conftest.er1
8230   ac_status=$?
8231   grep -v '^ *+' conftest.er1 >conftest.err
8232   rm -f conftest.er1
8233   cat conftest.err >&5
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); } &&
8236          { ac_try='test -z "$ac_c_werror_flag"
8237                          || test ! -s conftest.err'
8238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239   (eval $ac_try) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; } &&
8243          { ac_try='test -s conftest$ac_exeext'
8244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245   (eval $ac_try) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; }; then
8249   ac_cv_func_dlopen=yes
8250 else
8251   echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 ac_cv_func_dlopen=no
8255 fi
8256 rm -f conftest.err conftest.$ac_objext \
8257       conftest$ac_exeext conftest.$ac_ext
8258 fi
8259 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8260 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8261 if test $ac_cv_func_dlopen = yes; then
8262   lt_cv_dlopen="dlopen"
8263 else
8264   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   ac_check_lib_save_LIBS=$LIBS
8270 LIBS="-ldl  $LIBS"
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277
8278 /* Override any gcc2 internal prototype to avoid an error.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 /* We use char because int might match the return type of a gcc2
8283    builtin and then its argument prototype would still apply.  */
8284 char dlopen ();
8285 int
8286 main ()
8287 {
8288 dlopen ();
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295   (eval $ac_link) 2>conftest.er1
8296   ac_status=$?
8297   grep -v '^ *+' conftest.er1 >conftest.err
8298   rm -f conftest.er1
8299   cat conftest.err >&5
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } &&
8302          { ac_try='test -z "$ac_c_werror_flag"
8303                          || test ! -s conftest.err'
8304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305   (eval $ac_try) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; } &&
8309          { ac_try='test -s conftest$ac_exeext'
8310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311   (eval $ac_try) 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); }; }; then
8315   ac_cv_lib_dl_dlopen=yes
8316 else
8317   echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8319
8320 ac_cv_lib_dl_dlopen=no
8321 fi
8322 rm -f conftest.err conftest.$ac_objext \
8323       conftest$ac_exeext conftest.$ac_ext
8324 LIBS=$ac_check_lib_save_LIBS
8325 fi
8326 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8327 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8328 if test $ac_cv_lib_dl_dlopen = yes; then
8329   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8330 else
8331   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8332 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8333 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8334   echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336   ac_check_lib_save_LIBS=$LIBS
8337 LIBS="-lsvld  $LIBS"
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h.  */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h.  */
8344
8345 /* Override any gcc2 internal prototype to avoid an error.  */
8346 #ifdef __cplusplus
8347 extern "C"
8348 #endif
8349 /* We use char because int might match the return type of a gcc2
8350    builtin and then its argument prototype would still apply.  */
8351 char dlopen ();
8352 int
8353 main ()
8354 {
8355 dlopen ();
8356   ;
8357   return 0;
8358 }
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362   (eval $ac_link) 2>conftest.er1
8363   ac_status=$?
8364   grep -v '^ *+' conftest.er1 >conftest.err
8365   rm -f conftest.er1
8366   cat conftest.err >&5
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); } &&
8369          { ac_try='test -z "$ac_c_werror_flag"
8370                          || test ! -s conftest.err'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; } &&
8376          { ac_try='test -s conftest$ac_exeext'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; }; then
8382   ac_cv_lib_svld_dlopen=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 ac_cv_lib_svld_dlopen=no
8388 fi
8389 rm -f conftest.err conftest.$ac_objext \
8390       conftest$ac_exeext conftest.$ac_ext
8391 LIBS=$ac_check_lib_save_LIBS
8392 fi
8393 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8394 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8395 if test $ac_cv_lib_svld_dlopen = yes; then
8396   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8397 else
8398   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8399 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8400 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8401   echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403   ac_check_lib_save_LIBS=$LIBS
8404 LIBS="-ldld  $LIBS"
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h.  */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h.  */
8411
8412 /* Override any gcc2 internal prototype to avoid an error.  */
8413 #ifdef __cplusplus
8414 extern "C"
8415 #endif
8416 /* We use char because int might match the return type of a gcc2
8417    builtin and then its argument prototype would still apply.  */
8418 char dld_link ();
8419 int
8420 main ()
8421 {
8422 dld_link ();
8423   ;
8424   return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429   (eval $ac_link) 2>conftest.er1
8430   ac_status=$?
8431   grep -v '^ *+' conftest.er1 >conftest.err
8432   rm -f conftest.er1
8433   cat conftest.err >&5
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); } &&
8436          { ac_try='test -z "$ac_c_werror_flag"
8437                          || test ! -s conftest.err'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; } &&
8443          { ac_try='test -s conftest$ac_exeext'
8444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445   (eval $ac_try) 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; }; then
8449   ac_cv_lib_dld_dld_link=yes
8450 else
8451   echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454 ac_cv_lib_dld_dld_link=no
8455 fi
8456 rm -f conftest.err conftest.$ac_objext \
8457       conftest$ac_exeext conftest.$ac_ext
8458 LIBS=$ac_check_lib_save_LIBS
8459 fi
8460 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8461 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8462 if test $ac_cv_lib_dld_dld_link = yes; then
8463   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8464 fi
8465
8466
8467 fi
8468
8469
8470 fi
8471
8472
8473 fi
8474
8475
8476 fi
8477
8478
8479 fi
8480
8481     ;;
8482   esac
8483
8484   if test "x$lt_cv_dlopen" != xno; then
8485     enable_dlopen=yes
8486   else
8487     enable_dlopen=no
8488   fi
8489
8490   case $lt_cv_dlopen in
8491   dlopen)
8492     save_CPPFLAGS="$CPPFLAGS"
8493     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8494
8495     save_LDFLAGS="$LDFLAGS"
8496     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8497
8498     save_LIBS="$LIBS"
8499     LIBS="$lt_cv_dlopen_libs $LIBS"
8500
8501     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8502 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8503 if test "${lt_cv_dlopen_self+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506           if test "$cross_compiling" = yes; then :
8507   lt_cv_dlopen_self=cross
8508 else
8509   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8510   lt_status=$lt_dlunknown
8511   cat > conftest.$ac_ext <<EOF
8512 #line 8512 "configure"
8513 #include "confdefs.h"
8514
8515 #if HAVE_DLFCN_H
8516 #include <dlfcn.h>
8517 #endif
8518
8519 #include <stdio.h>
8520
8521 #ifdef RTLD_GLOBAL
8522 #  define LT_DLGLOBAL           RTLD_GLOBAL
8523 #else
8524 #  ifdef DL_GLOBAL
8525 #    define LT_DLGLOBAL         DL_GLOBAL
8526 #  else
8527 #    define LT_DLGLOBAL         0
8528 #  endif
8529 #endif
8530
8531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8532    find out it does not work in some platform. */
8533 #ifndef LT_DLLAZY_OR_NOW
8534 #  ifdef RTLD_LAZY
8535 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8536 #  else
8537 #    ifdef DL_LAZY
8538 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8539 #    else
8540 #      ifdef RTLD_NOW
8541 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8542 #      else
8543 #        ifdef DL_NOW
8544 #          define LT_DLLAZY_OR_NOW      DL_NOW
8545 #        else
8546 #          define LT_DLLAZY_OR_NOW      0
8547 #        endif
8548 #      endif
8549 #    endif
8550 #  endif
8551 #endif
8552
8553 #ifdef __cplusplus
8554 extern "C" void exit (int);
8555 #endif
8556
8557 void fnord() { int i=42;}
8558 int main ()
8559 {
8560   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8561   int status = $lt_dlunknown;
8562
8563   if (self)
8564     {
8565       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8566       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8567       /* dlclose (self); */
8568     }
8569
8570     exit (status);
8571 }
8572 EOF
8573   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574   (eval $ac_link) 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8578     (./conftest; exit; ) 2>/dev/null
8579     lt_status=$?
8580     case x$lt_status in
8581       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8582       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8583       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8584     esac
8585   else :
8586     # compilation failed
8587     lt_cv_dlopen_self=no
8588   fi
8589 fi
8590 rm -fr conftest*
8591
8592
8593 fi
8594 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8595 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8596
8597     if test "x$lt_cv_dlopen_self" = xyes; then
8598       LDFLAGS="$LDFLAGS $link_static_flag"
8599       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8600 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8601 if test "${lt_cv_dlopen_self_static+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604           if test "$cross_compiling" = yes; then :
8605   lt_cv_dlopen_self_static=cross
8606 else
8607   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8608   lt_status=$lt_dlunknown
8609   cat > conftest.$ac_ext <<EOF
8610 #line 8610 "configure"
8611 #include "confdefs.h"
8612
8613 #if HAVE_DLFCN_H
8614 #include <dlfcn.h>
8615 #endif
8616
8617 #include <stdio.h>
8618
8619 #ifdef RTLD_GLOBAL
8620 #  define LT_DLGLOBAL           RTLD_GLOBAL
8621 #else
8622 #  ifdef DL_GLOBAL
8623 #    define LT_DLGLOBAL         DL_GLOBAL
8624 #  else
8625 #    define LT_DLGLOBAL         0
8626 #  endif
8627 #endif
8628
8629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8630    find out it does not work in some platform. */
8631 #ifndef LT_DLLAZY_OR_NOW
8632 #  ifdef RTLD_LAZY
8633 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8634 #  else
8635 #    ifdef DL_LAZY
8636 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8637 #    else
8638 #      ifdef RTLD_NOW
8639 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8640 #      else
8641 #        ifdef DL_NOW
8642 #          define LT_DLLAZY_OR_NOW      DL_NOW
8643 #        else
8644 #          define LT_DLLAZY_OR_NOW      0
8645 #        endif
8646 #      endif
8647 #    endif
8648 #  endif
8649 #endif
8650
8651 #ifdef __cplusplus
8652 extern "C" void exit (int);
8653 #endif
8654
8655 void fnord() { int i=42;}
8656 int main ()
8657 {
8658   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8659   int status = $lt_dlunknown;
8660
8661   if (self)
8662     {
8663       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8664       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8665       /* dlclose (self); */
8666     }
8667
8668     exit (status);
8669 }
8670 EOF
8671   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672   (eval $ac_link) 2>&5
8673   ac_status=$?
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8676     (./conftest; exit; ) 2>/dev/null
8677     lt_status=$?
8678     case x$lt_status in
8679       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8680       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8681       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8682     esac
8683   else :
8684     # compilation failed
8685     lt_cv_dlopen_self_static=no
8686   fi
8687 fi
8688 rm -fr conftest*
8689
8690
8691 fi
8692 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8693 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8694     fi
8695
8696     CPPFLAGS="$save_CPPFLAGS"
8697     LDFLAGS="$save_LDFLAGS"
8698     LIBS="$save_LIBS"
8699     ;;
8700   esac
8701
8702   case $lt_cv_dlopen_self in
8703   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8704   *) enable_dlopen_self=unknown ;;
8705   esac
8706
8707   case $lt_cv_dlopen_self_static in
8708   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8709   *) enable_dlopen_self_static=unknown ;;
8710   esac
8711 fi
8712
8713
8714 # Report which librarie types wil actually be built
8715 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8716 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8717 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8718 echo "${ECHO_T}$can_build_shared" >&6
8719
8720 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8721 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8722 test "$can_build_shared" = "no" && enable_shared=no
8723
8724 # On AIX, shared libraries and static libraries use the same namespace, and
8725 # are all built from PIC.
8726 case "$host_os" in
8727 aix3*)
8728   test "$enable_shared" = yes && enable_static=no
8729   if test -n "$RANLIB"; then
8730     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8731     postinstall_cmds='$RANLIB $lib'
8732   fi
8733   ;;
8734
8735 aix4*)
8736   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8737     test "$enable_shared" = yes && enable_static=no
8738   fi
8739   ;;
8740   darwin* | rhapsody*)
8741   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8742     archive_cmds_need_lc=no
8743     case "$host_os" in
8744     rhapsody* | darwin1.[012])
8745       allow_undefined_flag='-undefined suppress'
8746       ;;
8747     *) # Darwin 1.3 on
8748       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8749       ;;
8750     esac
8751     # FIXME: Relying on posixy $() will cause problems for
8752     #        cross-compilation, but unfortunately the echo tests do not
8753     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8754     #          `"' quotes if we put them in here... so don't!
8755                 output_verbose_link_cmd='echo'
8756     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8757     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8758     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8759                   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}'
8760                   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}'
8761     hardcode_direct=no
8762     hardcode_automatic=yes
8763     hardcode_shlibpath_var=unsupported
8764     whole_archive_flag_spec='-all_load $convenience'
8765     link_all_deplibs=yes
8766     fi
8767     ;;
8768 esac
8769 echo "$as_me:$LINENO: result: $enable_shared" >&5
8770 echo "${ECHO_T}$enable_shared" >&6
8771
8772 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8773 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8774 # Make sure either enable_shared or enable_static is yes.
8775 test "$enable_shared" = yes || enable_static=yes
8776 echo "$as_me:$LINENO: result: $enable_static" >&5
8777 echo "${ECHO_T}$enable_static" >&6
8778
8779 # The else clause should only fire when bootstrapping the
8780 # libtool distribution, otherwise you forgot to ship ltmain.sh
8781 # with your package, and you will get complaints that there are
8782 # no rules to generate ltmain.sh.
8783 if test -f "$ltmain"; then
8784   # See if we are running on zsh, and set the options which allow our commands through
8785   # without removal of \ escapes.
8786   if test -n "${ZSH_VERSION+set}" ; then
8787     setopt NO_GLOB_SUBST
8788   fi
8789   # Now quote all the things that may contain metacharacters while being
8790   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8791   # variables and quote the copies for generation of the libtool script.
8792   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8793     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8794     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8795     deplibs_check_method reload_flag reload_cmds need_locks \
8796     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8797     lt_cv_sys_global_symbol_to_c_name_address \
8798     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8799     old_postinstall_cmds old_postuninstall_cmds \
8800     compiler \
8801     CC \
8802     LD \
8803     lt_prog_compiler_wl \
8804     lt_prog_compiler_pic \
8805     lt_prog_compiler_static \
8806     lt_prog_compiler_no_builtin_flag \
8807     export_dynamic_flag_spec \
8808     thread_safe_flag_spec \
8809     whole_archive_flag_spec \
8810     enable_shared_with_static_runtimes \
8811     old_archive_cmds \
8812     old_archive_from_new_cmds \
8813     predep_objects \
8814     postdep_objects \
8815     predeps \
8816     postdeps \
8817     compiler_lib_search_path \
8818     archive_cmds \
8819     archive_expsym_cmds \
8820     postinstall_cmds \
8821     postuninstall_cmds \
8822     old_archive_from_expsyms_cmds \
8823     allow_undefined_flag \
8824     no_undefined_flag \
8825     export_symbols_cmds \
8826     hardcode_libdir_flag_spec \
8827     hardcode_libdir_flag_spec_ld \
8828     hardcode_libdir_separator \
8829     hardcode_automatic \
8830     module_cmds \
8831     module_expsym_cmds \
8832     lt_cv_prog_compiler_c_o \
8833     exclude_expsyms \
8834     include_expsyms; do
8835
8836     case $var in
8837     old_archive_cmds | \
8838     old_archive_from_new_cmds | \
8839     archive_cmds | \
8840     archive_expsym_cmds | \
8841     module_cmds | \
8842     module_expsym_cmds | \
8843     old_archive_from_expsyms_cmds | \
8844     export_symbols_cmds | \
8845     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8846     postinstall_cmds | postuninstall_cmds | \
8847     old_postinstall_cmds | old_postuninstall_cmds | \
8848     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8849       # Double-quote double-evaled strings.
8850       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8851       ;;
8852     *)
8853       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8854       ;;
8855     esac
8856   done
8857
8858   case $lt_echo in
8859   *'\$0 --fallback-echo"')
8860     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8861     ;;
8862   esac
8863
8864 cfgfile="${ofile}T"
8865   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8866   $rm -f "$cfgfile"
8867   { echo "$as_me:$LINENO: creating $ofile" >&5
8868 echo "$as_me: creating $ofile" >&6;}
8869
8870   cat <<__EOF__ >> "$cfgfile"
8871 #! $SHELL
8872
8873 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8874 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8875 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8876 #
8877 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8878 # Free Software Foundation, Inc.
8879 #
8880 # This file is part of GNU Libtool:
8881 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8882 #
8883 # This program is free software; you can redistribute it and/or modify
8884 # it under the terms of the GNU General Public License as published by
8885 # the Free Software Foundation; either version 2 of the License, or
8886 # (at your option) any later version.
8887 #
8888 # This program is distributed in the hope that it will be useful, but
8889 # WITHOUT ANY WARRANTY; without even the implied warranty of
8890 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8891 # General Public License for more details.
8892 #
8893 # You should have received a copy of the GNU General Public License
8894 # along with this program; if not, write to the Free Software
8895 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8896 #
8897 # As a special exception to the GNU General Public License, if you
8898 # distribute this file as part of a program that contains a
8899 # configuration script generated by Autoconf, you may include it under
8900 # the same distribution terms that you use for the rest of that program.
8901
8902 # A sed program that does not truncate output.
8903 SED=$lt_SED
8904
8905 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8906 Xsed="$SED -e s/^X//"
8907
8908 # The HP-UX ksh and POSIX shell print the target directory to stdout
8909 # if CDPATH is set.
8910 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8911
8912 # The names of the tagged configurations supported by this script.
8913 available_tags=
8914
8915 # ### BEGIN LIBTOOL CONFIG
8916
8917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8918
8919 # Shell to use when invoking shell scripts.
8920 SHELL=$lt_SHELL
8921
8922 # Whether or not to build shared libraries.
8923 build_libtool_libs=$enable_shared
8924
8925 # Whether or not to build static libraries.
8926 build_old_libs=$enable_static
8927
8928 # Whether or not to add -lc for building shared libraries.
8929 build_libtool_need_lc=$archive_cmds_need_lc
8930
8931 # Whether or not to disallow shared libs when runtime libs are static
8932 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8933
8934 # Whether or not to optimize for fast installation.
8935 fast_install=$enable_fast_install
8936
8937 # The host system.
8938 host_alias=$host_alias
8939 host=$host
8940
8941 # An echo program that does not interpret backslashes.
8942 echo=$lt_echo
8943
8944 # The archiver.
8945 AR=$lt_AR
8946 AR_FLAGS=$lt_AR_FLAGS
8947
8948 # A C compiler.
8949 LTCC=$lt_LTCC
8950
8951 # A language-specific compiler.
8952 CC=$lt_compiler
8953
8954 # Is the compiler the GNU C compiler?
8955 with_gcc=$GCC
8956
8957 # An ERE matcher.
8958 EGREP=$lt_EGREP
8959
8960 # The linker used to build libraries.
8961 LD=$lt_LD
8962
8963 # Whether we need hard or soft links.
8964 LN_S=$lt_LN_S
8965
8966 # A BSD-compatible nm program.
8967 NM=$lt_NM
8968
8969 # A symbol stripping program
8970 STRIP=$STRIP
8971
8972 # Used to examine libraries when file_magic_cmd begins "file"
8973 MAGIC_CMD=$MAGIC_CMD
8974
8975 # Used on cygwin: DLL creation program.
8976 DLLTOOL="$DLLTOOL"
8977
8978 # Used on cygwin: object dumper.
8979 OBJDUMP="$OBJDUMP"
8980
8981 # Used on cygwin: assembler.
8982 AS="$AS"
8983
8984 # The name of the directory that contains temporary libtool files.
8985 objdir=$objdir
8986
8987 # How to create reloadable object files.
8988 reload_flag=$lt_reload_flag
8989 reload_cmds=$lt_reload_cmds
8990
8991 # How to pass a linker flag through the compiler.
8992 wl=$lt_lt_prog_compiler_wl
8993
8994 # Object file suffix (normally "o").
8995 objext="$ac_objext"
8996
8997 # Old archive suffix (normally "a").
8998 libext="$libext"
8999
9000 # Shared library suffix (normally ".so").
9001 shrext='$shrext'
9002
9003 # Executable file suffix (normally "").
9004 exeext="$exeext"
9005
9006 # Additional compiler flags for building library objects.
9007 pic_flag=$lt_lt_prog_compiler_pic
9008 pic_mode=$pic_mode
9009
9010 # What is the maximum length of a command?
9011 max_cmd_len=$lt_cv_sys_max_cmd_len
9012
9013 # Does compiler simultaneously support -c and -o options?
9014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9015
9016 # Must we lock files when doing compilation ?
9017 need_locks=$lt_need_locks
9018
9019 # Do we need the lib prefix for modules?
9020 need_lib_prefix=$need_lib_prefix
9021
9022 # Do we need a version for libraries?
9023 need_version=$need_version
9024
9025 # Whether dlopen is supported.
9026 dlopen_support=$enable_dlopen
9027
9028 # Whether dlopen of programs is supported.
9029 dlopen_self=$enable_dlopen_self
9030
9031 # Whether dlopen of statically linked programs is supported.
9032 dlopen_self_static=$enable_dlopen_self_static
9033
9034 # Compiler flag to prevent dynamic linking.
9035 link_static_flag=$lt_lt_prog_compiler_static
9036
9037 # Compiler flag to turn off builtin functions.
9038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9039
9040 # Compiler flag to allow reflexive dlopens.
9041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9042
9043 # Compiler flag to generate shared objects directly from archives.
9044 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9045
9046 # Compiler flag to generate thread-safe objects.
9047 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9048
9049 # Library versioning type.
9050 version_type=$version_type
9051
9052 # Format of library name prefix.
9053 libname_spec=$lt_libname_spec
9054
9055 # List of archive names.  First name is the real one, the rest are links.
9056 # The last name is the one that the linker finds with -lNAME.
9057 library_names_spec=$lt_library_names_spec
9058
9059 # The coded name of the library, if different from the real name.
9060 soname_spec=$lt_soname_spec
9061
9062 # Commands used to build and install an old-style archive.
9063 RANLIB=$lt_RANLIB
9064 old_archive_cmds=$lt_old_archive_cmds
9065 old_postinstall_cmds=$lt_old_postinstall_cmds
9066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9067
9068 # Create an old-style archive from a shared archive.
9069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9070
9071 # Create a temporary old-style archive to link instead of a shared archive.
9072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9073
9074 # Commands used to build and install a shared archive.
9075 archive_cmds=$lt_archive_cmds
9076 archive_expsym_cmds=$lt_archive_expsym_cmds
9077 postinstall_cmds=$lt_postinstall_cmds
9078 postuninstall_cmds=$lt_postuninstall_cmds
9079
9080 # Commands used to build a loadable module (assumed same as above if empty)
9081 module_cmds=$lt_module_cmds
9082 module_expsym_cmds=$lt_module_expsym_cmds
9083
9084 # Commands to strip libraries.
9085 old_striplib=$lt_old_striplib
9086 striplib=$lt_striplib
9087
9088 # Dependencies to place before the objects being linked to create a
9089 # shared library.
9090 predep_objects=$lt_predep_objects
9091
9092 # Dependencies to place after the objects being linked to create a
9093 # shared library.
9094 postdep_objects=$lt_postdep_objects
9095
9096 # Dependencies to place before the objects being linked to create a
9097 # shared library.
9098 predeps=$lt_predeps
9099
9100 # Dependencies to place after the objects being linked to create a
9101 # shared library.
9102 postdeps=$lt_postdeps
9103
9104 # The library search path used internally by the compiler when linking
9105 # a shared library.
9106 compiler_lib_search_path=$lt_compiler_lib_search_path
9107
9108 # Method to check whether dependent libraries are shared objects.
9109 deplibs_check_method=$lt_deplibs_check_method
9110
9111 # Command to use when deplibs_check_method == file_magic.
9112 file_magic_cmd=$lt_file_magic_cmd
9113
9114 # Flag that allows shared libraries with undefined symbols to be built.
9115 allow_undefined_flag=$lt_allow_undefined_flag
9116
9117 # Flag that forces no undefined symbols.
9118 no_undefined_flag=$lt_no_undefined_flag
9119
9120 # Commands used to finish a libtool library installation in a directory.
9121 finish_cmds=$lt_finish_cmds
9122
9123 # Same as above, but a single script fragment to be evaled but not shown.
9124 finish_eval=$lt_finish_eval
9125
9126 # Take the output of nm and produce a listing of raw symbols and C names.
9127 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9128
9129 # Transform the output of nm in a proper C declaration
9130 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9131
9132 # Transform the output of nm in a C name address pair
9133 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9134
9135 # This is the shared library runtime path variable.
9136 runpath_var=$runpath_var
9137
9138 # This is the shared library path variable.
9139 shlibpath_var=$shlibpath_var
9140
9141 # Is shlibpath searched before the hard-coded library search path?
9142 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9143
9144 # How to hardcode a shared library path into an executable.
9145 hardcode_action=$hardcode_action
9146
9147 # Whether we should hardcode library paths into libraries.
9148 hardcode_into_libs=$hardcode_into_libs
9149
9150 # Flag to hardcode \$libdir into a binary during linking.
9151 # This must work even if \$libdir does not exist.
9152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9153
9154 # If ld is used when linking, flag to hardcode \$libdir into
9155 # a binary during linking. This must work even if \$libdir does
9156 # not exist.
9157 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9158
9159 # Whether we need a single -rpath flag with a separated argument.
9160 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9161
9162 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9163 # resulting binary.
9164 hardcode_direct=$hardcode_direct
9165
9166 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9167 # resulting binary.
9168 hardcode_minus_L=$hardcode_minus_L
9169
9170 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9171 # the resulting binary.
9172 hardcode_shlibpath_var=$hardcode_shlibpath_var
9173
9174 # Set to yes if building a shared library automatically hardcodes DIR into the library
9175 # and all subsequent libraries and executables linked against it.
9176 hardcode_automatic=$hardcode_automatic
9177
9178 # Variables whose values should be saved in libtool wrapper scripts and
9179 # restored at relink time.
9180 variables_saved_for_relink="$variables_saved_for_relink"
9181
9182 # Whether libtool must link a program against all its dependency libraries.
9183 link_all_deplibs=$link_all_deplibs
9184
9185 # Compile-time system search path for libraries
9186 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9187
9188 # Run-time system search path for libraries
9189 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9190
9191 # Fix the shell variable \$srcfile for the compiler.
9192 fix_srcfile_path="$fix_srcfile_path"
9193
9194 # Set to yes if exported symbols are required.
9195 always_export_symbols=$always_export_symbols
9196
9197 # The commands to list exported symbols.
9198 export_symbols_cmds=$lt_export_symbols_cmds
9199
9200 # The commands to extract the exported symbol list from a shared archive.
9201 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9202
9203 # Symbols that should not be listed in the preloaded symbols.
9204 exclude_expsyms=$lt_exclude_expsyms
9205
9206 # Symbols that must always be exported.
9207 include_expsyms=$lt_include_expsyms
9208
9209 # ### END LIBTOOL CONFIG
9210
9211 __EOF__
9212
9213
9214   case $host_os in
9215   aix3*)
9216     cat <<\EOF >> "$cfgfile"
9217
9218 # AIX sometimes has problems with the GCC collect2 program.  For some
9219 # reason, if we set the COLLECT_NAMES environment variable, the problems
9220 # vanish in a puff of smoke.
9221 if test "X${COLLECT_NAMES+set}" != Xset; then
9222   COLLECT_NAMES=
9223   export COLLECT_NAMES
9224 fi
9225 EOF
9226     ;;
9227   esac
9228
9229   # We use sed instead of cat because bash on DJGPP gets confused if
9230   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9231   # text mode, it properly converts lines to CR/LF.  This bash problem
9232   # is reportedly fixed, but why not run on old versions too?
9233   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9234
9235   mv -f "$cfgfile" "$ofile" || \
9236     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9237   chmod +x "$ofile"
9238
9239 else
9240   # If there is no Makefile yet, we rely on a make rule to execute
9241   # `config.status --recheck' to rerun these tests and create the
9242   # libtool script then.
9243   test -f Makefile && make "$ltmain"
9244 fi
9245
9246
9247 ac_ext=c
9248 ac_cpp='$CPP $CPPFLAGS'
9249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9252
9253 CC="$lt_save_CC"
9254
9255
9256 # Check whether --with-tags or --without-tags was given.
9257 if test "${with_tags+set}" = set; then
9258   withval="$with_tags"
9259   tagnames="$withval"
9260 fi;
9261
9262 if test -f "$ltmain" && test -n "$tagnames"; then
9263   if test ! -f "${ofile}"; then
9264     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9265 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9266   fi
9267
9268   if test -z "$LTCC"; then
9269     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9270     if test -z "$LTCC"; then
9271       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9272 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9273     else
9274       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9275 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9276     fi
9277   fi
9278
9279   # Extract list of available tagged configurations in $ofile.
9280   # Note that this assumes the entire list is on one line.
9281   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9282
9283   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9284   for tagname in $tagnames; do
9285     IFS="$lt_save_ifs"
9286     # Check whether tagname contains only valid characters
9287     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9288     "") ;;
9289     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9290 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9291    { (exit 1); exit 1; }; }
9292         ;;
9293     esac
9294
9295     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9296     then
9297       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9298 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9299    { (exit 1); exit 1; }; }
9300     fi
9301
9302     # Update the list of available tags.
9303     if test -n "$tagname"; then
9304       echo appending configuration tag \"$tagname\" to $ofile
9305
9306       case $tagname in
9307       CXX)
9308         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9309           ac_ext=cc
9310 ac_cpp='$CXXCPP $CPPFLAGS'
9311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9314
9315
9316
9317
9318 archive_cmds_need_lc_CXX=no
9319 allow_undefined_flag_CXX=
9320 always_export_symbols_CXX=no
9321 archive_expsym_cmds_CXX=
9322 export_dynamic_flag_spec_CXX=
9323 hardcode_direct_CXX=no
9324 hardcode_libdir_flag_spec_CXX=
9325 hardcode_libdir_flag_spec_ld_CXX=
9326 hardcode_libdir_separator_CXX=
9327 hardcode_minus_L_CXX=no
9328 hardcode_automatic_CXX=no
9329 module_cmds_CXX=
9330 module_expsym_cmds_CXX=
9331 link_all_deplibs_CXX=unknown
9332 old_archive_cmds_CXX=$old_archive_cmds
9333 no_undefined_flag_CXX=
9334 whole_archive_flag_spec_CXX=
9335 enable_shared_with_static_runtimes_CXX=no
9336
9337 # Dependencies to place before and after the object being linked:
9338 predep_objects_CXX=
9339 postdep_objects_CXX=
9340 predeps_CXX=
9341 postdeps_CXX=
9342 compiler_lib_search_path_CXX=
9343
9344 # Source file extension for C++ test sources.
9345 ac_ext=cc
9346
9347 # Object file extension for compiled C++ test sources.
9348 objext=o
9349 objext_CXX=$objext
9350
9351 # Code to be used in simple compile tests
9352 lt_simple_compile_test_code="int some_variable = 0;\n"
9353
9354 # Code to be used in simple link tests
9355 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9356
9357 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9358
9359 # If no C compiler was specified, use CC.
9360 LTCC=${LTCC-"$CC"}
9361
9362 # Allow CC to be a program name with arguments.
9363 compiler=$CC
9364
9365
9366 # Allow CC to be a program name with arguments.
9367 lt_save_CC=$CC
9368 lt_save_LD=$LD
9369 lt_save_GCC=$GCC
9370 GCC=$GXX
9371 lt_save_with_gnu_ld=$with_gnu_ld
9372 lt_save_path_LD=$lt_cv_path_LD
9373 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9374   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9375 else
9376   unset lt_cv_prog_gnu_ld
9377 fi
9378 if test -n "${lt_cv_path_LDCXX+set}"; then
9379   lt_cv_path_LD=$lt_cv_path_LDCXX
9380 else
9381   unset lt_cv_path_LD
9382 fi
9383 test -z "${LDCXX+set}" || LD=$LDCXX
9384 CC=${CXX-"c++"}
9385 compiler=$CC
9386 compiler_CXX=$CC
9387 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9388
9389 # We don't want -fno-exception wen compiling C++ code, so set the
9390 # no_builtin_flag separately
9391 if test "$GXX" = yes; then
9392   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9393 else
9394   lt_prog_compiler_no_builtin_flag_CXX=
9395 fi
9396
9397 if test "$GXX" = yes; then
9398   # Set up default GNU C++ configuration
9399
9400
9401 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9402 if test "${with_gnu_ld+set}" = set; then
9403   withval="$with_gnu_ld"
9404   test "$withval" = no || with_gnu_ld=yes
9405 else
9406   with_gnu_ld=no
9407 fi;
9408 ac_prog=ld
9409 if test "$GCC" = yes; then
9410   # Check if gcc -print-prog-name=ld gives a path.
9411   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9412 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9413   case $host in
9414   *-*-mingw*)
9415     # gcc leaves a trailing carriage return which upsets mingw
9416     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9417   *)
9418     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9419   esac
9420   case $ac_prog in
9421     # Accept absolute paths.
9422     [\\/]* | ?:[\\/]*)
9423       re_direlt='/[^/][^/]*/\.\./'
9424       # Canonicalize the path of ld
9425       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9426       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9427         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9428       done
9429       test -z "$LD" && LD="$ac_prog"
9430       ;;
9431   "")
9432     # If it fails, then pretend we aren't using GCC.
9433     ac_prog=ld
9434     ;;
9435   *)
9436     # If it is relative, then search for the first ld in PATH.
9437     with_gnu_ld=unknown
9438     ;;
9439   esac
9440 elif test "$with_gnu_ld" = yes; then
9441   echo "$as_me:$LINENO: checking for GNU ld" >&5
9442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9443 else
9444   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9446 fi
9447 if test "${lt_cv_path_LD+set}" = set; then
9448   echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450   if test -z "$LD"; then
9451   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9452   for ac_dir in $PATH; do
9453     IFS="$lt_save_ifs"
9454     test -z "$ac_dir" && ac_dir=.
9455     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9456       lt_cv_path_LD="$ac_dir/$ac_prog"
9457       # Check to see if the program is GNU ld.  I'd rather use --version,
9458       # but apparently some GNU ld's only accept -v.
9459       # Break only if it was the GNU/non-GNU ld that we prefer.
9460       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9461       *GNU* | *'with BFD'*)
9462         test "$with_gnu_ld" != no && break
9463         ;;
9464       *)
9465         test "$with_gnu_ld" != yes && break
9466         ;;
9467       esac
9468     fi
9469   done
9470   IFS="$lt_save_ifs"
9471 else
9472   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9473 fi
9474 fi
9475
9476 LD="$lt_cv_path_LD"
9477 if test -n "$LD"; then
9478   echo "$as_me:$LINENO: result: $LD" >&5
9479 echo "${ECHO_T}$LD" >&6
9480 else
9481   echo "$as_me:$LINENO: result: no" >&5
9482 echo "${ECHO_T}no" >&6
9483 fi
9484 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9485 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9486    { (exit 1); exit 1; }; }
9487 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9488 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9489 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9490   echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9493 case `"$LD" -v 2>&1 </dev/null` in
9494 *GNU* | *'with BFD'*)
9495   lt_cv_prog_gnu_ld=yes
9496   ;;
9497 *)
9498   lt_cv_prog_gnu_ld=no
9499   ;;
9500 esac
9501 fi
9502 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9503 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9504 with_gnu_ld=$lt_cv_prog_gnu_ld
9505
9506
9507
9508   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9509   # archiving commands below assume that GNU ld is being used.
9510   if test "$with_gnu_ld" = yes; then
9511     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512     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'
9513
9514     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9515     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9516
9517     # If archive_cmds runs LD, not CC, wlarc should be empty
9518     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9519     #     investigate it a little bit more. (MM)
9520     wlarc='${wl}'
9521
9522     # ancient GNU ld didn't support --whole-archive et. al.
9523     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9524         grep 'no-whole-archive' > /dev/null; then
9525       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9526     else
9527       whole_archive_flag_spec_CXX=
9528     fi
9529   else
9530     with_gnu_ld=no
9531     wlarc=
9532
9533     # A generic and very simple default shared library creation
9534     # command for GNU C++ for the case where it uses the native
9535     # linker, instead of GNU ld.  If possible, this setting should
9536     # overridden to take advantage of the native linker features on
9537     # the platform it is being used on.
9538     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9539   fi
9540
9541   # Commands to make compiler produce verbose output that lists
9542   # what "hidden" libraries, object files and flags are used when
9543   # linking a shared library.
9544   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9545
9546 else
9547   GXX=no
9548   with_gnu_ld=no
9549   wlarc=
9550 fi
9551
9552 # PORTME: fill in a description of your system's C++ link characteristics
9553 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9555 ld_shlibs_CXX=yes
9556 case $host_os in
9557   aix3*)
9558     # FIXME: insert proper C++ library support
9559     ld_shlibs_CXX=no
9560     ;;
9561   aix4* | aix5*)
9562     if test "$host_cpu" = ia64; then
9563       # On IA64, the linker does run time linking by default, so we don't
9564       # have to do anything special.
9565       aix_use_runtimelinking=no
9566       exp_sym_flag='-Bexport'
9567       no_entry_flag=""
9568     else
9569       aix_use_runtimelinking=no
9570
9571       # Test if we are trying to use run time linking or normal
9572       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9573       # need to do runtime linking.
9574       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9575         for ld_flag in $LDFLAGS; do
9576           case $ld_flag in
9577           *-brtl*)
9578             aix_use_runtimelinking=yes
9579             break
9580             ;;
9581           esac
9582         done
9583       esac
9584
9585       exp_sym_flag='-bexport'
9586       no_entry_flag='-bnoentry'
9587     fi
9588
9589     # When large executables or shared objects are built, AIX ld can
9590     # have problems creating the table of contents.  If linking a library
9591     # or program results in "error TOC overflow" add -mminimal-toc to
9592     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9593     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9594
9595     archive_cmds_CXX=''
9596     hardcode_direct_CXX=yes
9597     hardcode_libdir_separator_CXX=':'
9598     link_all_deplibs_CXX=yes
9599
9600     if test "$GXX" = yes; then
9601       case $host_os in aix4.012|aix4.012.*)
9602       # We only want to do this on AIX 4.2 and lower, the check
9603       # below for broken collect2 doesn't work under 4.3+
9604         collect2name=`${CC} -print-prog-name=collect2`
9605         if test -f "$collect2name" && \
9606            strings "$collect2name" | grep resolve_lib_name >/dev/null
9607         then
9608           # We have reworked collect2
9609           hardcode_direct_CXX=yes
9610         else
9611           # We have old collect2
9612           hardcode_direct_CXX=unsupported
9613           # It fails to find uninstalled libraries when the uninstalled
9614           # path is not listed in the libpath.  Setting hardcode_minus_L
9615           # to unsupported forces relinking
9616           hardcode_minus_L_CXX=yes
9617           hardcode_libdir_flag_spec_CXX='-L$libdir'
9618           hardcode_libdir_separator_CXX=
9619         fi
9620       esac
9621       shared_flag='-shared'
9622     else
9623       # not using gcc
9624       if test "$host_cpu" = ia64; then
9625         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9626         # chokes on -Wl,-G. The following line is correct:
9627         shared_flag='-G'
9628       else
9629         if test "$aix_use_runtimelinking" = yes; then
9630           shared_flag='${wl}-G'
9631         else
9632           shared_flag='${wl}-bM:SRE'
9633         fi
9634       fi
9635     fi
9636
9637     # It seems that -bexpall does not export symbols beginning with
9638     # underscore (_), so it is better to generate a list of symbols to export.
9639     always_export_symbols_CXX=yes
9640     if test "$aix_use_runtimelinking" = yes; then
9641       # Warning - without using the other runtime loading flags (-brtl),
9642       # -berok will link without error, but may produce a broken library.
9643       allow_undefined_flag_CXX='-berok'
9644       # Determine the default libpath from the value encoded in an empty executable.
9645       cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h.  */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h.  */
9651
9652 int
9653 main ()
9654 {
9655
9656   ;
9657   return 0;
9658 }
9659 _ACEOF
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662   (eval $ac_link) 2>conftest.er1
9663   ac_status=$?
9664   grep -v '^ *+' conftest.er1 >conftest.err
9665   rm -f conftest.er1
9666   cat conftest.err >&5
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); } &&
9669          { ac_try='test -z "$ac_cxx_werror_flag"
9670                          || test ! -s conftest.err'
9671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672   (eval $ac_try) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; } &&
9676          { ac_try='test -s conftest$ac_exeext'
9677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678   (eval $ac_try) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; }; then
9682
9683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9684 }'`
9685 # Check for a 64-bit object if we didn't find anything.
9686 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; }
9687 }'`; fi
9688 else
9689   echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 fi
9693 rm -f conftest.err conftest.$ac_objext \
9694       conftest$ac_exeext conftest.$ac_ext
9695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9696
9697       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9698
9699       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"
9700      else
9701       if test "$host_cpu" = ia64; then
9702         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9703         allow_undefined_flag_CXX="-z nodefs"
9704         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"
9705       else
9706         # Determine the default libpath from the value encoded in an empty executable.
9707         cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h.  */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h.  */
9713
9714 int
9715 main ()
9716 {
9717
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724   (eval $ac_link) 2>conftest.er1
9725   ac_status=$?
9726   grep -v '^ *+' conftest.er1 >conftest.err
9727   rm -f conftest.er1
9728   cat conftest.err >&5
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } &&
9731          { ac_try='test -z "$ac_cxx_werror_flag"
9732                          || test ! -s conftest.err'
9733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734   (eval $ac_try) 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); }; } &&
9738          { ac_try='test -s conftest$ac_exeext'
9739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740   (eval $ac_try) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); }; }; then
9744
9745 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9746 }'`
9747 # Check for a 64-bit object if we didn't find anything.
9748 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; }
9749 }'`; fi
9750 else
9751   echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9753
9754 fi
9755 rm -f conftest.err conftest.$ac_objext \
9756       conftest$ac_exeext conftest.$ac_ext
9757 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9758
9759         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9760         # Warning - without using the other run time loading flags,
9761         # -berok will link without error, but may produce a broken library.
9762         no_undefined_flag_CXX=' ${wl}-bernotok'
9763         allow_undefined_flag_CXX=' ${wl}-berok'
9764         # -bexpall does not export symbols beginning with underscore (_)
9765         always_export_symbols_CXX=yes
9766         # Exported symbols can be pulled into shared objects from archives
9767         whole_archive_flag_spec_CXX=' '
9768         archive_cmds_need_lc_CXX=yes
9769         # This is similar to how AIX traditionally builds it's shared libraries.
9770         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'
9771       fi
9772     fi
9773     ;;
9774   chorus*)
9775     case $cc_basename in
9776       *)
9777         # FIXME: insert proper C++ library support
9778         ld_shlibs_CXX=no
9779         ;;
9780     esac
9781     ;;
9782
9783   cygwin* | mingw* | pw32*)
9784     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9785     # as there is no search path for DLLs.
9786     hardcode_libdir_flag_spec_CXX='-L$libdir'
9787     allow_undefined_flag_CXX=unsupported
9788     always_export_symbols_CXX=no
9789     enable_shared_with_static_runtimes_CXX=yes
9790
9791     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9792       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'
9793       # If the export-symbols file already is a .def file (1st line
9794       # is EXPORTS), use it as is; otherwise, prepend...
9795       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9796         cp $export_symbols $output_objdir/$soname.def;
9797       else
9798         echo EXPORTS > $output_objdir/$soname.def;
9799         cat $export_symbols >> $output_objdir/$soname.def;
9800       fi~
9801       $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'
9802     else
9803       ld_shlibs_CXX=no
9804     fi
9805   ;;
9806
9807   darwin* | rhapsody*)
9808    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9809     archive_cmds_need_lc_CXX=no
9810     case "$host_os" in
9811     rhapsody* | darwin1.[012])
9812       allow_undefined_flag_CXX='-undefined suppress'
9813       ;;
9814     *) # Darwin 1.3 on
9815       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9816       ;;
9817     esac
9818         lt_int_apple_cc_single_mod=no
9819         output_verbose_link_cmd='echo'
9820         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9821           lt_int_apple_cc_single_mod=yes
9822         fi
9823         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9824           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9825         else
9826         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'
9827       fi
9828       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9829
9830     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9831       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9832         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}'
9833       else
9834         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}'
9835       fi
9836         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}'
9837     hardcode_direct_CXX=no
9838     hardcode_automatic_CXX=yes
9839     hardcode_shlibpath_var_CXX=unsupported
9840     whole_archive_flag_spec_CXX='-all_load $convenience'
9841     link_all_deplibs_CXX=yes
9842    fi
9843     ;;
9844
9845   dgux*)
9846     case $cc_basename in
9847       ec++)
9848         # FIXME: insert proper C++ library support
9849         ld_shlibs_CXX=no
9850         ;;
9851       ghcx)
9852         # Green Hills C++ Compiler
9853         # FIXME: insert proper C++ library support
9854         ld_shlibs_CXX=no
9855         ;;
9856       *)
9857         # FIXME: insert proper C++ library support
9858         ld_shlibs_CXX=no
9859         ;;
9860     esac
9861     ;;
9862   freebsd12*)
9863     # C++ shared libraries reported to be fairly broken before switch to ELF
9864     ld_shlibs_CXX=no
9865     ;;
9866   freebsd-elf*)
9867     archive_cmds_need_lc_CXX=no
9868     ;;
9869   freebsd*)
9870     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9871     # conventions
9872     ld_shlibs_CXX=yes
9873     ;;
9874   gnu*)
9875     ;;
9876   hpux9*)
9877     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9878     hardcode_libdir_separator_CXX=:
9879     export_dynamic_flag_spec_CXX='${wl}-E'
9880     hardcode_direct_CXX=yes
9881     hardcode_minus_L_CXX=yes # Not in the search PATH,
9882                                 # but as the default
9883                                 # location of the library.
9884
9885     case $cc_basename in
9886     CC)
9887       # FIXME: insert proper C++ library support
9888       ld_shlibs_CXX=no
9889       ;;
9890     aCC)
9891       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'
9892       # Commands to make compiler produce verbose output that lists
9893       # what "hidden" libraries, object files and flags are used when
9894       # linking a shared library.
9895       #
9896       # There doesn't appear to be a way to prevent this compiler from
9897       # explicitly linking system object files so we need to strip them
9898       # from the output so that they don't get included in the library
9899       # dependencies.
9900       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'
9901       ;;
9902     *)
9903       if test "$GXX" = yes; then
9904         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'
9905       else
9906         # FIXME: insert proper C++ library support
9907         ld_shlibs_CXX=no
9908       fi
9909       ;;
9910     esac
9911     ;;
9912   hpux10*|hpux11*)
9913     if test $with_gnu_ld = no; then
9914       case "$host_cpu" in
9915       hppa*64*)
9916         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9917         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9918         hardcode_libdir_separator_CXX=:
9919         ;;
9920       ia64*)
9921         hardcode_libdir_flag_spec_CXX='-L$libdir'
9922         ;;
9923       *)
9924         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9925         hardcode_libdir_separator_CXX=:
9926         export_dynamic_flag_spec_CXX='${wl}-E'
9927         ;;
9928       esac
9929     fi
9930     case "$host_cpu" in
9931     hppa*64*)
9932       hardcode_direct_CXX=no
9933       hardcode_shlibpath_var_CXX=no
9934       ;;
9935     ia64*)
9936       hardcode_direct_CXX=no
9937       hardcode_shlibpath_var_CXX=no
9938       hardcode_minus_L_CXX=yes # Not in the search PATH,
9939                                               # but as the default
9940                                               # location of the library.
9941       ;;
9942     *)
9943       hardcode_direct_CXX=yes
9944       hardcode_minus_L_CXX=yes # Not in the search PATH,
9945                                               # but as the default
9946                                               # location of the library.
9947       ;;
9948     esac
9949
9950     case $cc_basename in
9951       CC)
9952         # FIXME: insert proper C++ library support
9953         ld_shlibs_CXX=no
9954         ;;
9955       aCC)
9956         case "$host_cpu" in
9957         hppa*64*|ia64*)
9958           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9959           ;;
9960         *)
9961           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9962           ;;
9963         esac
9964         # Commands to make compiler produce verbose output that lists
9965         # what "hidden" libraries, object files and flags are used when
9966         # linking a shared library.
9967         #
9968         # There doesn't appear to be a way to prevent this compiler from
9969         # explicitly linking system object files so we need to strip them
9970         # from the output so that they don't get included in the library
9971         # dependencies.
9972         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'
9973         ;;
9974       *)
9975         if test "$GXX" = yes; then
9976           if test $with_gnu_ld = no; then
9977             case "$host_cpu" in
9978             ia64*|hppa*64*)
9979               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9980               ;;
9981             *)
9982               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'
9983               ;;
9984             esac
9985           fi
9986         else
9987           # FIXME: insert proper C++ library support
9988           ld_shlibs_CXX=no
9989         fi
9990         ;;
9991     esac
9992     ;;
9993   irix5* | irix6*)
9994     case $cc_basename in
9995       CC)
9996         # SGI C++
9997         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'
9998
9999         # Archives containing C++ object files must be created using
10000         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10001         # necessary to make sure instantiated templates are included
10002         # in the archive.
10003         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10004         ;;
10005       *)
10006         if test "$GXX" = yes; then
10007           if test "$with_gnu_ld" = no; then
10008             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'
10009           else
10010             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'
10011           fi
10012         fi
10013         link_all_deplibs_CXX=yes
10014         ;;
10015     esac
10016     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10017     hardcode_libdir_separator_CXX=:
10018     ;;
10019   linux*)
10020     case $cc_basename in
10021       KCC)
10022         # Kuck and Associates, Inc. (KAI) C++ Compiler
10023
10024         # KCC will only create a shared library if the output file
10025         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10026         # to its proper name (with version) after linking.
10027         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'
10028         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'
10029         # Commands to make compiler produce verbose output that lists
10030         # what "hidden" libraries, object files and flags are used when
10031         # linking a shared library.
10032         #
10033         # There doesn't appear to be a way to prevent this compiler from
10034         # explicitly linking system object files so we need to strip them
10035         # from the output so that they don't get included in the library
10036         # dependencies.
10037         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'
10038
10039         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10040         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10041
10042         # Archives containing C++ object files must be created using
10043         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10044         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10045         ;;
10046       icpc)
10047         # Intel C++
10048         with_gnu_ld=yes
10049         archive_cmds_need_lc_CXX=no
10050         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10051         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'
10052         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10053         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10054         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10055         ;;
10056       cxx)
10057         # Compaq C++
10058         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10059         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'
10060
10061         runpath_var=LD_RUN_PATH
10062         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10063         hardcode_libdir_separator_CXX=:
10064
10065         # Commands to make compiler produce verbose output that lists
10066         # what "hidden" libraries, object files and flags are used when
10067         # linking a shared library.
10068         #
10069         # There doesn't appear to be a way to prevent this compiler from
10070         # explicitly linking system object files so we need to strip them
10071         # from the output so that they don't get included in the library
10072         # dependencies.
10073         output_verbose_link_cmd='templist=`$CC -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'
10074         ;;
10075     esac
10076     ;;
10077   lynxos*)
10078     # FIXME: insert proper C++ library support
10079     ld_shlibs_CXX=no
10080     ;;
10081   m88k*)
10082     # FIXME: insert proper C++ library support
10083     ld_shlibs_CXX=no
10084     ;;
10085   mvs*)
10086     case $cc_basename in
10087       cxx)
10088         # FIXME: insert proper C++ library support
10089         ld_shlibs_CXX=no
10090         ;;
10091       *)
10092         # FIXME: insert proper C++ library support
10093         ld_shlibs_CXX=no
10094         ;;
10095     esac
10096     ;;
10097   netbsd*)
10098     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10099       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10100       wlarc=
10101       hardcode_libdir_flag_spec_CXX='-R$libdir'
10102       hardcode_direct_CXX=yes
10103       hardcode_shlibpath_var_CXX=no
10104     fi
10105     # Workaround some broken pre-1.5 toolchains
10106     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10107     ;;
10108   osf3*)
10109     case $cc_basename in
10110       KCC)
10111         # Kuck and Associates, Inc. (KAI) C++ Compiler
10112
10113         # KCC will only create a shared library if the output file
10114         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10115         # to its proper name (with version) after linking.
10116         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'
10117
10118         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10119         hardcode_libdir_separator_CXX=:
10120
10121         # Archives containing C++ object files must be created using
10122         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10123         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10124
10125         ;;
10126       RCC)
10127         # Rational C++ 2.4.1
10128         # FIXME: insert proper C++ library support
10129         ld_shlibs_CXX=no
10130         ;;
10131       cxx)
10132         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10133         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'
10134
10135         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10136         hardcode_libdir_separator_CXX=:
10137
10138         # Commands to make compiler produce verbose output that lists
10139         # what "hidden" libraries, object files and flags are used when
10140         # linking a shared library.
10141         #
10142         # There doesn't appear to be a way to prevent this compiler from
10143         # explicitly linking system object files so we need to strip them
10144         # from the output so that they don't get included in the library
10145         # dependencies.
10146         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'
10147         ;;
10148       *)
10149         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10150           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10151           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'
10152
10153           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10154           hardcode_libdir_separator_CXX=:
10155
10156           # Commands to make compiler produce verbose output that lists
10157           # what "hidden" libraries, object files and flags are used when
10158           # linking a shared library.
10159           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10160
10161         else
10162           # FIXME: insert proper C++ library support
10163           ld_shlibs_CXX=no
10164         fi
10165         ;;
10166     esac
10167     ;;
10168   osf4* | osf5*)
10169     case $cc_basename in
10170       KCC)
10171         # Kuck and Associates, Inc. (KAI) C++ Compiler
10172
10173         # KCC will only create a shared library if the output file
10174         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10175         # to its proper name (with version) after linking.
10176         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'
10177
10178         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10179         hardcode_libdir_separator_CXX=:
10180
10181         # Archives containing C++ object files must be created using
10182         # the KAI C++ compiler.
10183         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10184         ;;
10185       RCC)
10186         # Rational C++ 2.4.1
10187         # FIXME: insert proper C++ library support
10188         ld_shlibs_CXX=no
10189         ;;
10190       cxx)
10191         allow_undefined_flag_CXX=' -expect_unresolved \*'
10192         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'
10193         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10194           echo "-hidden">> $lib.exp~
10195           $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~
10196           $rm $lib.exp'
10197
10198         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10199         hardcode_libdir_separator_CXX=:
10200
10201         # Commands to make compiler produce verbose output that lists
10202         # what "hidden" libraries, object files and flags are used when
10203         # linking a shared library.
10204         #
10205         # There doesn't appear to be a way to prevent this compiler from
10206         # explicitly linking system object files so we need to strip them
10207         # from the output so that they don't get included in the library
10208         # dependencies.
10209         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'
10210         ;;
10211       *)
10212         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10213           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10214          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'
10215
10216           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10217           hardcode_libdir_separator_CXX=:
10218
10219           # Commands to make compiler produce verbose output that lists
10220           # what "hidden" libraries, object files and flags are used when
10221           # linking a shared library.
10222           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10223
10224         else
10225           # FIXME: insert proper C++ library support
10226           ld_shlibs_CXX=no
10227         fi
10228         ;;
10229     esac
10230     ;;
10231   psos*)
10232     # FIXME: insert proper C++ library support
10233     ld_shlibs_CXX=no
10234     ;;
10235   sco*)
10236     archive_cmds_need_lc_CXX=no
10237     case $cc_basename in
10238       CC)
10239         # FIXME: insert proper C++ library support
10240         ld_shlibs_CXX=no
10241         ;;
10242       *)
10243         # FIXME: insert proper C++ library support
10244         ld_shlibs_CXX=no
10245         ;;
10246     esac
10247     ;;
10248   sunos4*)
10249     case $cc_basename in
10250       CC)
10251         # Sun C++ 4.x
10252         # FIXME: insert proper C++ library support
10253         ld_shlibs_CXX=no
10254         ;;
10255       lcc)
10256         # Lucid
10257         # FIXME: insert proper C++ library support
10258         ld_shlibs_CXX=no
10259         ;;
10260       *)
10261         # FIXME: insert proper C++ library support
10262         ld_shlibs_CXX=no
10263         ;;
10264     esac
10265     ;;
10266   solaris*)
10267     case $cc_basename in
10268       CC)
10269         # Sun C++ 4.2, 5.x and Centerline C++
10270         no_undefined_flag_CXX=' -zdefs'
10271         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10272         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10273         $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'
10274
10275         hardcode_libdir_flag_spec_CXX='-R$libdir'
10276         hardcode_shlibpath_var_CXX=no
10277         case $host_os in
10278           solaris2.0-5 | solaris2.0-5.*) ;;
10279           *)
10280             # The C++ compiler is used as linker so we must use $wl
10281             # flag to pass the commands to the underlying system
10282             # linker.
10283             # Supported since Solaris 2.6 (maybe 2.5.1?)
10284             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10285             ;;
10286         esac
10287         link_all_deplibs_CXX=yes
10288
10289         # Commands to make compiler produce verbose output that lists
10290         # what "hidden" libraries, object files and flags are used when
10291         # linking a shared library.
10292         #
10293         # There doesn't appear to be a way to prevent this compiler from
10294         # explicitly linking system object files so we need to strip them
10295         # from the output so that they don't get included in the library
10296         # dependencies.
10297         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'
10298
10299         # Archives containing C++ object files must be created using
10300         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10301         # necessary to make sure instantiated templates are included
10302         # in the archive.
10303         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10304         ;;
10305       gcx)
10306         # Green Hills C++ Compiler
10307         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10308
10309         # The C++ compiler must be used to create the archive.
10310         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10311         ;;
10312       *)
10313         # GNU C++ compiler with Solaris linker
10314         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10315           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10316           if $CC --version | grep -v '^2\.7' > /dev/null; then
10317             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10318             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10319                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10320
10321             # Commands to make compiler produce verbose output that lists
10322             # what "hidden" libraries, object files and flags are used when
10323             # linking a shared library.
10324             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10325           else
10326             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10327             # platform.
10328             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10329             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10330                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10331
10332             # Commands to make compiler produce verbose output that lists
10333             # what "hidden" libraries, object files and flags are used when
10334             # linking a shared library.
10335             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10336           fi
10337
10338           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10339         fi
10340         ;;
10341     esac
10342     ;;
10343   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10344     archive_cmds_need_lc_CXX=no
10345     ;;
10346   tandem*)
10347     case $cc_basename in
10348       NCC)
10349         # NonStop-UX NCC 3.20
10350         # FIXME: insert proper C++ library support
10351         ld_shlibs_CXX=no
10352         ;;
10353       *)
10354         # FIXME: insert proper C++ library support
10355         ld_shlibs_CXX=no
10356         ;;
10357     esac
10358     ;;
10359   vxworks*)
10360     # FIXME: insert proper C++ library support
10361     ld_shlibs_CXX=no
10362     ;;
10363   *)
10364     # FIXME: insert proper C++ library support
10365     ld_shlibs_CXX=no
10366     ;;
10367 esac
10368 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10369 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10370 test "$ld_shlibs_CXX" = no && can_build_shared=no
10371
10372 GCC_CXX="$GXX"
10373 LD_CXX="$LD"
10374
10375 ## CAVEAT EMPTOR:
10376 ## There is no encapsulation within the following macros, do not change
10377 ## the running order or otherwise move them around unless you know exactly
10378 ## what you are doing...
10379
10380 cat > conftest.$ac_ext <<EOF
10381 class Foo
10382 {
10383 public:
10384   Foo (void) { a = 0; }
10385 private:
10386   int a;
10387 };
10388 EOF
10389
10390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391   (eval $ac_compile) 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; then
10395   # Parse the compiler output and extract the necessary
10396   # objects, libraries and library flags.
10397
10398   # Sentinel used to keep track of whether or not we are before
10399   # the conftest object file.
10400   pre_test_object_deps_done=no
10401
10402   # The `*' in the case matches for architectures that use `case' in
10403   # $output_verbose_cmd can trigger glob expansion during the loop
10404   # eval without this substitution.
10405   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10406
10407   for p in `eval $output_verbose_link_cmd`; do
10408     case $p in
10409
10410     -L* | -R* | -l*)
10411        # Some compilers place space between "-{L,R}" and the path.
10412        # Remove the space.
10413        if test $p = "-L" \
10414           || test $p = "-R"; then
10415          prev=$p
10416          continue
10417        else
10418          prev=
10419        fi
10420
10421        if test "$pre_test_object_deps_done" = no; then
10422          case $p in
10423          -L* | -R*)
10424            # Internal compiler library paths should come after those
10425            # provided the user.  The postdeps already come after the
10426            # user supplied libs so there is no need to process them.
10427            if test -z "$compiler_lib_search_path_CXX"; then
10428              compiler_lib_search_path_CXX="${prev}${p}"
10429            else
10430              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10431            fi
10432            ;;
10433          # The "-l" case would never come before the object being
10434          # linked, so don't bother handling this case.
10435          esac
10436        else
10437          if test -z "$postdeps_CXX"; then
10438            postdeps_CXX="${prev}${p}"
10439          else
10440            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10441          fi
10442        fi
10443        ;;
10444
10445     *.$objext)
10446        # This assumes that the test object file only shows up
10447        # once in the compiler output.
10448        if test "$p" = "conftest.$objext"; then
10449          pre_test_object_deps_done=yes
10450          continue
10451        fi
10452
10453        if test "$pre_test_object_deps_done" = no; then
10454          if test -z "$predep_objects_CXX"; then
10455            predep_objects_CXX="$p"
10456          else
10457            predep_objects_CXX="$predep_objects_CXX $p"
10458          fi
10459        else
10460          if test -z "$postdep_objects_CXX"; then
10461            postdep_objects_CXX="$p"
10462          else
10463            postdep_objects_CXX="$postdep_objects_CXX $p"
10464          fi
10465        fi
10466        ;;
10467
10468     *) ;; # Ignore the rest.
10469
10470     esac
10471   done
10472
10473   # Clean up.
10474   rm -f a.out a.exe
10475 else
10476   echo "libtool.m4: error: problem compiling CXX test program"
10477 fi
10478
10479 $rm -f confest.$objext
10480
10481 case " $postdeps_CXX " in
10482 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10483 esac
10484
10485 lt_prog_compiler_wl_CXX=
10486 lt_prog_compiler_pic_CXX=
10487 lt_prog_compiler_static_CXX=
10488
10489 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10490 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10491
10492   # C++ specific cases for pic, static, wl, etc.
10493   if test "$GXX" = yes; then
10494     lt_prog_compiler_wl_CXX='-Wl,'
10495     lt_prog_compiler_static_CXX='-static'
10496
10497     case $host_os in
10498     aix*)
10499       # All AIX code is PIC.
10500       if test "$host_cpu" = ia64; then
10501         # AIX 5 now supports IA64 processor
10502         lt_prog_compiler_static_CXX='-Bstatic'
10503       fi
10504       ;;
10505     amigaos*)
10506       # FIXME: we need at least 68020 code to build shared libraries, but
10507       # adding the `-m68020' flag to GCC prevents building anything better,
10508       # like `-m68040'.
10509       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10510       ;;
10511     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10512       # PIC is the default for these OSes.
10513       ;;
10514     mingw* | os2* | pw32*)
10515       # This hack is so that the source file can tell whether it is being
10516       # built for inclusion in a dll (and should export symbols for example).
10517       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10518       ;;
10519     darwin* | rhapsody*)
10520       # PIC is the default on this platform
10521       # Common symbols not allowed in MH_DYLIB files
10522       lt_prog_compiler_pic_CXX='-fno-common'
10523       ;;
10524     *djgpp*)
10525       # DJGPP does not support shared libraries at all
10526       lt_prog_compiler_pic_CXX=
10527       ;;
10528     sysv4*MP*)
10529       if test -d /usr/nec; then
10530         lt_prog_compiler_pic_CXX=-Kconform_pic
10531       fi
10532       ;;
10533     hpux*)
10534       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10535       # not for PA HP-UX.
10536       case "$host_cpu" in
10537       hppa*64*|ia64*)
10538         ;;
10539       *)
10540         lt_prog_compiler_pic_CXX='-fPIC'
10541         ;;
10542       esac
10543       ;;
10544     *)
10545       lt_prog_compiler_pic_CXX='-fPIC'
10546       ;;
10547     esac
10548   else
10549     case $host_os in
10550       aix4* | aix5*)
10551         # All AIX code is PIC.
10552         if test "$host_cpu" = ia64; then
10553           # AIX 5 now supports IA64 processor
10554           lt_prog_compiler_static_CXX='-Bstatic'
10555         else
10556           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10557         fi
10558         ;;
10559       chorus*)
10560         case $cc_basename in
10561         cxch68)
10562           # Green Hills C++ Compiler
10563           # _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"
10564           ;;
10565         esac
10566         ;;
10567       dgux*)
10568         case $cc_basename in
10569           ec++)
10570             lt_prog_compiler_pic_CXX='-KPIC'
10571             ;;
10572           ghcx)
10573             # Green Hills C++ Compiler
10574             lt_prog_compiler_pic_CXX='-pic'
10575             ;;
10576           *)
10577             ;;
10578         esac
10579         ;;
10580       freebsd*)
10581         # FreeBSD uses GNU C++
10582         ;;
10583       hpux9* | hpux10* | hpux11*)
10584         case $cc_basename in
10585           CC)
10586             lt_prog_compiler_wl_CXX='-Wl,'
10587             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10588             if test "$host_cpu" != ia64; then
10589               lt_prog_compiler_pic_CXX='+Z'
10590             fi
10591             ;;
10592           aCC)
10593             lt_prog_compiler_wl_CXX='-Wl,'
10594             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10595             case "$host_cpu" in
10596             hppa*64*|ia64*)
10597               # +Z the default
10598               ;;
10599             *)
10600               lt_prog_compiler_pic_CXX='+Z'
10601               ;;
10602             esac
10603             ;;
10604           *)
10605             ;;
10606         esac
10607         ;;
10608       irix5* | irix6* | nonstopux*)
10609         case $cc_basename in
10610           CC)
10611             lt_prog_compiler_wl_CXX='-Wl,'
10612             lt_prog_compiler_static_CXX='-non_shared'
10613             # CC pic flag -KPIC is the default.
10614             ;;
10615           *)
10616             ;;
10617         esac
10618         ;;
10619       linux*)
10620         case $cc_basename in
10621           KCC)
10622             # KAI C++ Compiler
10623             lt_prog_compiler_wl_CXX='--backend -Wl,'
10624             lt_prog_compiler_pic_CXX='-fPIC'
10625             ;;
10626           icpc)
10627             # Intel C++
10628             lt_prog_compiler_wl_CXX='-Wl,'
10629             lt_prog_compiler_pic_CXX='-KPIC'
10630             lt_prog_compiler_static_CXX='-static'
10631             ;;
10632           cxx)
10633             # Compaq C++
10634             # Make sure the PIC flag is empty.  It appears that all Alpha
10635             # Linux and Compaq Tru64 Unix objects are PIC.
10636             lt_prog_compiler_pic_CXX=
10637             lt_prog_compiler_static_CXX='-non_shared'
10638             ;;
10639           *)
10640             ;;
10641         esac
10642         ;;
10643       lynxos*)
10644         ;;
10645       m88k*)
10646         ;;
10647       mvs*)
10648         case $cc_basename in
10649           cxx)
10650             lt_prog_compiler_pic_CXX='-W c,exportall'
10651             ;;
10652           *)
10653             ;;
10654         esac
10655         ;;
10656       netbsd*)
10657         ;;
10658       osf3* | osf4* | osf5*)
10659         case $cc_basename in
10660           KCC)
10661             lt_prog_compiler_wl_CXX='--backend -Wl,'
10662             ;;
10663           RCC)
10664             # Rational C++ 2.4.1
10665             lt_prog_compiler_pic_CXX='-pic'
10666             ;;
10667           cxx)
10668             # Digital/Compaq C++
10669             lt_prog_compiler_wl_CXX='-Wl,'
10670             # Make sure the PIC flag is empty.  It appears that all Alpha
10671             # Linux and Compaq Tru64 Unix objects are PIC.
10672             lt_prog_compiler_pic_CXX=
10673             lt_prog_compiler_static_CXX='-non_shared'
10674             ;;
10675           *)
10676             ;;
10677         esac
10678         ;;
10679       psos*)
10680         ;;
10681       sco*)
10682         case $cc_basename in
10683           CC)
10684             lt_prog_compiler_pic_CXX='-fPIC'
10685             ;;
10686           *)
10687             ;;
10688         esac
10689         ;;
10690       solaris*)
10691         case $cc_basename in
10692           CC)
10693             # Sun C++ 4.2, 5.x and Centerline C++
10694             lt_prog_compiler_pic_CXX='-KPIC'
10695             lt_prog_compiler_static_CXX='-Bstatic'
10696             lt_prog_compiler_wl_CXX='-Qoption ld '
10697             ;;
10698           gcx)
10699             # Green Hills C++ Compiler
10700             lt_prog_compiler_pic_CXX='-PIC'
10701             ;;
10702           *)
10703             ;;
10704         esac
10705         ;;
10706       sunos4*)
10707         case $cc_basename in
10708           CC)
10709             # Sun C++ 4.x
10710             lt_prog_compiler_pic_CXX='-pic'
10711             lt_prog_compiler_static_CXX='-Bstatic'
10712             ;;
10713           lcc)
10714             # Lucid
10715             lt_prog_compiler_pic_CXX='-pic'
10716             ;;
10717           *)
10718             ;;
10719         esac
10720         ;;
10721       tandem*)
10722         case $cc_basename in
10723           NCC)
10724             # NonStop-UX NCC 3.20
10725             lt_prog_compiler_pic_CXX='-KPIC'
10726             ;;
10727           *)
10728             ;;
10729         esac
10730         ;;
10731       unixware*)
10732         ;;
10733       vxworks*)
10734         ;;
10735       *)
10736         lt_prog_compiler_can_build_shared_CXX=no
10737         ;;
10738     esac
10739   fi
10740
10741 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10742 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10743
10744 #
10745 # Check to make sure the PIC flag actually works.
10746 #
10747 if test -n "$lt_prog_compiler_pic_CXX"; then
10748   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10750 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   lt_prog_compiler_pic_works_CXX=no
10754   ac_outfile=conftest.$ac_objext
10755    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10756    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10757    # Insert the option either (1) after the last *FLAGS variable, or
10758    # (2) before a word containing "conftest.", or (3) at the end.
10759    # Note that $ac_compile itself does not contain backslashes and begins
10760    # with a dollar sign (not a hyphen), so the echo should work correctly.
10761    # The option is referenced via a variable to avoid confusing sed.
10762    lt_compile=`echo "$ac_compile" | $SED \
10763    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10764    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10765    -e 's:$: $lt_compiler_flag:'`
10766    (eval echo "\"\$as_me:10766: $lt_compile\"" >&5)
10767    (eval "$lt_compile" 2>conftest.err)
10768    ac_status=$?
10769    cat conftest.err >&5
10770    echo "$as_me:10770: \$? = $ac_status" >&5
10771    if (exit $ac_status) && test -s "$ac_outfile"; then
10772      # The compiler can only warn and ignore the option if not recognized
10773      # So say no if there are warnings
10774      if test ! -s conftest.err; then
10775        lt_prog_compiler_pic_works_CXX=yes
10776      fi
10777    fi
10778    $rm conftest*
10779
10780 fi
10781 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10782 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10783
10784 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10785     case $lt_prog_compiler_pic_CXX in
10786      "" | " "*) ;;
10787      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10788      esac
10789 else
10790     lt_prog_compiler_pic_CXX=
10791      lt_prog_compiler_can_build_shared_CXX=no
10792 fi
10793
10794 fi
10795 case "$host_os" in
10796   # For platforms which do not support PIC, -DPIC is meaningless:
10797   *djgpp*)
10798     lt_prog_compiler_pic_CXX=
10799     ;;
10800   *)
10801     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10802     ;;
10803 esac
10804
10805 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10806 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10807 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10808   echo $ECHO_N "(cached) $ECHO_C" >&6
10809 else
10810   lt_cv_prog_compiler_c_o_CXX=no
10811    $rm -r conftest 2>/dev/null
10812    mkdir conftest
10813    cd conftest
10814    mkdir out
10815    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10816
10817    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10818    # that will create temporary files in the current directory regardless of
10819    # the output directory.  Thus, making CWD read-only will cause this test
10820    # to fail, enabling locking or at least warning the user not to do parallel
10821    # builds.
10822    chmod -w .
10823
10824    lt_compiler_flag="-o out/conftest2.$ac_objext"
10825    # Insert the option either (1) after the last *FLAGS variable, or
10826    # (2) before a word containing "conftest.", or (3) at the end.
10827    # Note that $ac_compile itself does not contain backslashes and begins
10828    # with a dollar sign (not a hyphen), so the echo should work correctly.
10829    lt_compile=`echo "$ac_compile" | $SED \
10830    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10831    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10832    -e 's:$: $lt_compiler_flag:'`
10833    (eval echo "\"\$as_me:10833: $lt_compile\"" >&5)
10834    (eval "$lt_compile" 2>out/conftest.err)
10835    ac_status=$?
10836    cat out/conftest.err >&5
10837    echo "$as_me:10837: \$? = $ac_status" >&5
10838    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10839    then
10840      # The compiler can only warn and ignore the option if not recognized
10841      # So say no if there are warnings
10842      if test ! -s out/conftest.err; then
10843        lt_cv_prog_compiler_c_o_CXX=yes
10844      fi
10845    fi
10846    chmod u+w .
10847    $rm conftest* out/*
10848    rmdir out
10849    cd ..
10850    rmdir conftest
10851    $rm conftest*
10852
10853 fi
10854 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10855 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10856
10857
10858 hard_links="nottested"
10859 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10860   # do not overwrite the value of need_locks provided by the user
10861   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10862 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10863   hard_links=yes
10864   $rm conftest*
10865   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10866   touch conftest.a
10867   ln conftest.a conftest.b 2>&5 || hard_links=no
10868   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10869   echo "$as_me:$LINENO: result: $hard_links" >&5
10870 echo "${ECHO_T}$hard_links" >&6
10871   if test "$hard_links" = no; then
10872     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10873 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10874     need_locks=warn
10875   fi
10876 else
10877   need_locks=no
10878 fi
10879
10880 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10881 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10882
10883   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10884   case $host_os in
10885   aix4* | aix5*)
10886     # If we're using GNU nm, then we don't want the "-C" option.
10887     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10888     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10889       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'
10890     else
10891       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'
10892     fi
10893     ;;
10894   pw32*)
10895     export_symbols_cmds_CXX="$ltdll_cmds"
10896   ;;
10897   cygwin* | mingw*)
10898     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10899   ;;
10900   *)
10901     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10902   ;;
10903   esac
10904
10905 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10906 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10907 test "$ld_shlibs_CXX" = no && can_build_shared=no
10908
10909 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10910 if test "$GCC" = yes; then
10911   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10912 fi
10913
10914 #
10915 # Do we need to explicitly link libc?
10916 #
10917 case "x$archive_cmds_need_lc_CXX" in
10918 x|xyes)
10919   # Assume -lc should be added
10920   archive_cmds_need_lc_CXX=yes
10921
10922   if test "$enable_shared" = yes && test "$GCC" = yes; then
10923     case $archive_cmds_CXX in
10924     *'~'*)
10925       # FIXME: we may have to deal with multi-command sequences.
10926       ;;
10927     '$CC '*)
10928       # Test whether the compiler implicitly links with -lc since on some
10929       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10930       # to ld, don't add -lc before -lgcc.
10931       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10933       $rm conftest*
10934       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10935
10936       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937   (eval $ac_compile) 2>&5
10938   ac_status=$?
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } 2>conftest.err; then
10941         soname=conftest
10942         lib=conftest
10943         libobjs=conftest.$ac_objext
10944         deplibs=
10945         wl=$lt_prog_compiler_wl_CXX
10946         compiler_flags=-v
10947         linker_flags=-v
10948         verstring=
10949         output_objdir=.
10950         libname=conftest
10951         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10952         allow_undefined_flag_CXX=
10953         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10954   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }
10958         then
10959           archive_cmds_need_lc_CXX=no
10960         else
10961           archive_cmds_need_lc_CXX=yes
10962         fi
10963         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10964       else
10965         cat conftest.err 1>&5
10966       fi
10967       $rm conftest*
10968       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10969 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10970       ;;
10971     esac
10972   fi
10973   ;;
10974 esac
10975
10976 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10977 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10978 hardcode_action_CXX=
10979 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10980    test -n "$runpath_var CXX" || \
10981    test "X$hardcode_automatic_CXX"="Xyes" ; then
10982
10983   # We can hardcode non-existant directories.
10984   if test "$hardcode_direct_CXX" != no &&
10985      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10986      # have to relink, otherwise we might link with an installed library
10987      # when we should be linking with a yet-to-be-installed one
10988      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10989      test "$hardcode_minus_L_CXX" != no; then
10990     # Linking always hardcodes the temporary library directory.
10991     hardcode_action_CXX=relink
10992   else
10993     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10994     hardcode_action_CXX=immediate
10995   fi
10996 else
10997   # We cannot hardcode anything, or else we can only hardcode existing
10998   # directories.
10999   hardcode_action_CXX=unsupported
11000 fi
11001 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11002 echo "${ECHO_T}$hardcode_action_CXX" >&6
11003
11004 if test "$hardcode_action_CXX" = relink; then
11005   # Fast installation is not supported
11006   enable_fast_install=no
11007 elif test "$shlibpath_overrides_runpath" = yes ||
11008      test "$enable_shared" = no; then
11009   # Fast installation is not necessary
11010   enable_fast_install=needless
11011 fi
11012
11013 striplib=
11014 old_striplib=
11015 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11016 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11017 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11018   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11019   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11020   echo "$as_me:$LINENO: result: yes" >&5
11021 echo "${ECHO_T}yes" >&6
11022 else
11023 # FIXME - insert some real tests, host_os isn't really good enough
11024   case $host_os in
11025    darwin*)
11026        if test -n "$STRIP" ; then
11027          striplib="$STRIP -x"
11028          echo "$as_me:$LINENO: result: yes" >&5
11029 echo "${ECHO_T}yes" >&6
11030        else
11031   echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6
11033 fi
11034        ;;
11035    *)
11036   echo "$as_me:$LINENO: result: no" >&5
11037 echo "${ECHO_T}no" >&6
11038     ;;
11039   esac
11040 fi
11041
11042 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11043 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11044 library_names_spec=
11045 libname_spec='lib$name'
11046 soname_spec=
11047 shrext=".so"
11048 postinstall_cmds=
11049 postuninstall_cmds=
11050 finish_cmds=
11051 finish_eval=
11052 shlibpath_var=
11053 shlibpath_overrides_runpath=unknown
11054 version_type=none
11055 dynamic_linker="$host_os ld.so"
11056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11057 if test "$GCC" = yes; then
11058   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11059   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11060     # if the path contains ";" then we assume it to be the separator
11061     # otherwise default to the standard path separator (i.e. ":") - it is
11062     # assumed that no part of a normal pathname contains ";" but that should
11063     # okay in the real world where ";" in dirpaths is itself problematic.
11064     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11065   else
11066     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11067   fi
11068 else
11069   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11070 fi
11071 need_lib_prefix=unknown
11072 hardcode_into_libs=no
11073
11074 # when you set need_version to no, make sure it does not cause -set_version
11075 # flags to be left without arguments
11076 need_version=unknown
11077
11078 case $host_os in
11079 aix3*)
11080   version_type=linux
11081   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11082   shlibpath_var=LIBPATH
11083
11084   # AIX 3 has no versioning support, so we append a major version to the name.
11085   soname_spec='${libname}${release}${shared_ext}$major'
11086   ;;
11087
11088 aix4* | aix5*)
11089   version_type=linux
11090   need_lib_prefix=no
11091   need_version=no
11092   hardcode_into_libs=yes
11093   if test "$host_cpu" = ia64; then
11094     # AIX 5 supports IA64
11095     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11096     shlibpath_var=LD_LIBRARY_PATH
11097   else
11098     # With GCC up to 2.95.x, collect2 would create an import file
11099     # for dependence libraries.  The import file would start with
11100     # the line `#! .'.  This would cause the generated library to
11101     # depend on `.', always an invalid library.  This was fixed in
11102     # development snapshots of GCC prior to 3.0.
11103     case $host_os in
11104       aix4 | aix4.[01] | aix4.[01].*)
11105       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11106            echo ' yes '
11107            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11108         :
11109       else
11110         can_build_shared=no
11111       fi
11112       ;;
11113     esac
11114     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11115     # soname into executable. Probably we can add versioning support to
11116     # collect2, so additional links can be useful in future.
11117     if test "$aix_use_runtimelinking" = yes; then
11118       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11119       # instead of lib<name>.a to let people know that these are not
11120       # typical AIX shared libraries.
11121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122     else
11123       # We preserve .a as extension for shared libraries through AIX4.2
11124       # and later when we are not doing run time linking.
11125       library_names_spec='${libname}${release}.a $libname.a'
11126       soname_spec='${libname}${release}${shared_ext}$major'
11127     fi
11128     shlibpath_var=LIBPATH
11129   fi
11130   ;;
11131
11132 amigaos*)
11133   library_names_spec='$libname.ixlibrary $libname.a'
11134   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11135   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'
11136   ;;
11137
11138 beos*)
11139   library_names_spec='${libname}${shared_ext}'
11140   dynamic_linker="$host_os ld.so"
11141   shlibpath_var=LIBRARY_PATH
11142   ;;
11143
11144 bsdi4*)
11145   version_type=linux
11146   need_version=no
11147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148   soname_spec='${libname}${release}${shared_ext}$major'
11149   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11150   shlibpath_var=LD_LIBRARY_PATH
11151   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11152   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11153   # the default ld.so.conf also contains /usr/contrib/lib and
11154   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11155   # libtool to hard-code these into programs
11156   ;;
11157
11158 cygwin* | mingw* | pw32*)
11159   version_type=windows
11160   shrext=".dll"
11161   need_version=no
11162   need_lib_prefix=no
11163
11164   case $GCC,$host_os in
11165   yes,cygwin* | yes,mingw* | yes,pw32*)
11166     library_names_spec='$libname.dll.a'
11167     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11168     postinstall_cmds='base_file=`basename \${file}`~
11169       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11170       dldir=$destdir/`dirname \$dlpath`~
11171       test -d \$dldir || mkdir -p \$dldir~
11172       $install_prog $dir/$dlname \$dldir/$dlname'
11173     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11174       dlpath=$dir/\$dldll~
11175        $rm \$dlpath'
11176     shlibpath_overrides_runpath=yes
11177
11178     case $host_os in
11179     cygwin*)
11180       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11181       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11182       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11183       ;;
11184     mingw*)
11185       # MinGW DLLs use traditional 'lib' prefix
11186       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11187       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11188       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11189         # It is most probably a Windows format PATH printed by
11190         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11191         # path with ; separators, and with drive letters. We can handle the
11192         # drive letters (cygwin fileutils understands them), so leave them,
11193         # especially as we might pass files found there to a mingw objdump,
11194         # which wouldn't understand a cygwinified path. Ahh.
11195         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11196       else
11197         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11198       fi
11199       ;;
11200     pw32*)
11201       # pw32 DLLs use 'pw' prefix rather than 'lib'
11202       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11203       ;;
11204     esac
11205     ;;
11206
11207   *)
11208     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11209     ;;
11210   esac
11211   dynamic_linker='Win32 ld.exe'
11212   # FIXME: first we should search . and the directory the executable is in
11213   shlibpath_var=PATH
11214   ;;
11215
11216 darwin* | rhapsody*)
11217   dynamic_linker="$host_os dyld"
11218   version_type=darwin
11219   need_lib_prefix=no
11220   need_version=no
11221   # FIXME: Relying on posixy $() will cause problems for
11222   #        cross-compilation, but unfortunately the echo tests do not
11223   #        yet detect zsh echo's removal of \ escapes.
11224   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11225   soname_spec='${libname}${release}${major}$shared_ext'
11226   shlibpath_overrides_runpath=yes
11227   shlibpath_var=DYLD_LIBRARY_PATH
11228   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11229   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11230   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11231   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"`
11232   fi
11233   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11234   ;;
11235
11236 dgux*)
11237   version_type=linux
11238   need_lib_prefix=no
11239   need_version=no
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11241   soname_spec='${libname}${release}${shared_ext}$major'
11242   shlibpath_var=LD_LIBRARY_PATH
11243   ;;
11244
11245 freebsd1*)
11246   dynamic_linker=no
11247   ;;
11248
11249 freebsd*)
11250   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11251   version_type=freebsd-$objformat
11252   case $version_type in
11253     freebsd-elf*)
11254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11255       need_version=no
11256       need_lib_prefix=no
11257       ;;
11258     freebsd-*)
11259       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11260       need_version=yes
11261       ;;
11262   esac
11263   shlibpath_var=LD_LIBRARY_PATH
11264   case $host_os in
11265   freebsd2*)
11266     shlibpath_overrides_runpath=yes
11267     ;;
11268   freebsd3.01* | freebsdelf3.01*)
11269     shlibpath_overrides_runpath=yes
11270     hardcode_into_libs=yes
11271     ;;
11272   *) # from 3.2 on
11273     shlibpath_overrides_runpath=no
11274     hardcode_into_libs=yes
11275     ;;
11276   esac
11277   ;;
11278
11279 gnu*)
11280   version_type=linux
11281   need_lib_prefix=no
11282   need_version=no
11283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11284   soname_spec='${libname}${release}${shared_ext}$major'
11285   shlibpath_var=LD_LIBRARY_PATH
11286   hardcode_into_libs=yes
11287   ;;
11288
11289 hpux9* | hpux10* | hpux11*)
11290   # Give a soname corresponding to the major version so that dld.sl refuses to
11291   # link against other versions.
11292   version_type=sunos
11293   need_lib_prefix=no
11294   need_version=no
11295   case "$host_cpu" in
11296   ia64*)
11297     shrext='.so'
11298     hardcode_into_libs=yes
11299     dynamic_linker="$host_os dld.so"
11300     shlibpath_var=LD_LIBRARY_PATH
11301     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303     soname_spec='${libname}${release}${shared_ext}$major'
11304     if test "X$HPUX_IA64_MODE" = X32; then
11305       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11306     else
11307       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11308     fi
11309     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11310     ;;
11311    hppa*64*)
11312      shrext='.sl'
11313      hardcode_into_libs=yes
11314      dynamic_linker="$host_os dld.sl"
11315      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11316      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11317      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318      soname_spec='${libname}${release}${shared_ext}$major'
11319      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11320      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11321      ;;
11322    *)
11323     shrext='.sl'
11324     dynamic_linker="$host_os dld.sl"
11325     shlibpath_var=SHLIB_PATH
11326     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328     soname_spec='${libname}${release}${shared_ext}$major'
11329     ;;
11330   esac
11331   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11332   postinstall_cmds='chmod 555 $lib'
11333   ;;
11334
11335 irix5* | irix6* | nonstopux*)
11336   case $host_os in
11337     nonstopux*) version_type=nonstopux ;;
11338     *)
11339         if test "$lt_cv_prog_gnu_ld" = yes; then
11340                 version_type=linux
11341         else
11342                 version_type=irix
11343         fi ;;
11344   esac
11345   need_lib_prefix=no
11346   need_version=no
11347   soname_spec='${libname}${release}${shared_ext}$major'
11348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11349   case $host_os in
11350   irix5* | nonstopux*)
11351     libsuff= shlibsuff=
11352     ;;
11353   *)
11354     case $LD in # libtool.m4 will add one of these switches to LD
11355     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11356       libsuff= shlibsuff= libmagic=32-bit;;
11357     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11358       libsuff=32 shlibsuff=N32 libmagic=N32;;
11359     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11360       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11361     *) libsuff= shlibsuff= libmagic=never-match;;
11362     esac
11363     ;;
11364   esac
11365   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11366   shlibpath_overrides_runpath=no
11367   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11368   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11369   hardcode_into_libs=yes
11370   ;;
11371
11372 # No shared lib support for Linux oldld, aout, or coff.
11373 linux*oldld* | linux*aout* | linux*coff*)
11374   dynamic_linker=no
11375   ;;
11376
11377 # This must be Linux ELF.
11378 linux*)
11379   version_type=linux
11380   need_lib_prefix=no
11381   need_version=no
11382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383   soname_spec='${libname}${release}${shared_ext}$major'
11384   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11385   shlibpath_var=LD_LIBRARY_PATH
11386   shlibpath_overrides_runpath=no
11387   # This implies no fast_install, which is unacceptable.
11388   # Some rework will be needed to allow for fast_install
11389   # before this can be enabled.
11390   hardcode_into_libs=yes
11391
11392   # We used to test for /lib/ld.so.1 and disable shared libraries on
11393   # powerpc, because MkLinux only supported shared libraries with the
11394   # GNU dynamic linker.  Since this was broken with cross compilers,
11395   # most powerpc-linux boxes support dynamic linking these days and
11396   # people can always --disable-shared, the test was removed, and we
11397   # assume the GNU/Linux dynamic linker is in use.
11398   dynamic_linker='GNU/Linux ld.so'
11399   ;;
11400
11401 netbsd*)
11402   version_type=sunos
11403   need_lib_prefix=no
11404   need_version=no
11405   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11407     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11408     dynamic_linker='NetBSD (a.out) ld.so'
11409   else
11410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11411     soname_spec='${libname}${release}${shared_ext}$major'
11412     dynamic_linker='NetBSD ld.elf_so'
11413   fi
11414   shlibpath_var=LD_LIBRARY_PATH
11415   shlibpath_overrides_runpath=yes
11416   hardcode_into_libs=yes
11417   ;;
11418
11419 newsos6)
11420   version_type=linux
11421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422   shlibpath_var=LD_LIBRARY_PATH
11423   shlibpath_overrides_runpath=yes
11424   ;;
11425
11426 nto-qnx)
11427   version_type=linux
11428   need_lib_prefix=no
11429   need_version=no
11430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431   soname_spec='${libname}${release}${shared_ext}$major'
11432   shlibpath_var=LD_LIBRARY_PATH
11433   shlibpath_overrides_runpath=yes
11434   ;;
11435
11436 openbsd*)
11437   version_type=sunos
11438   need_lib_prefix=no
11439   need_version=no
11440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11441   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11442   shlibpath_var=LD_LIBRARY_PATH
11443   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11444     case $host_os in
11445       openbsd2.[89] | openbsd2.[89].*)
11446         shlibpath_overrides_runpath=no
11447         ;;
11448       *)
11449         shlibpath_overrides_runpath=yes
11450         ;;
11451       esac
11452   else
11453     shlibpath_overrides_runpath=yes
11454   fi
11455   ;;
11456
11457 os2*)
11458   libname_spec='$name'
11459   shrext=".dll"
11460   need_lib_prefix=no
11461   library_names_spec='$libname${shared_ext} $libname.a'
11462   dynamic_linker='OS/2 ld.exe'
11463   shlibpath_var=LIBPATH
11464   ;;
11465
11466 osf3* | osf4* | osf5*)
11467   version_type=osf
11468   need_lib_prefix=no
11469   need_version=no
11470   soname_spec='${libname}${release}${shared_ext}$major'
11471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11474   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11475   ;;
11476
11477 sco3.2v5*)
11478   version_type=osf
11479   soname_spec='${libname}${release}${shared_ext}$major'
11480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   ;;
11483
11484 solaris*)
11485   version_type=linux
11486   need_lib_prefix=no
11487   need_version=no
11488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489   soname_spec='${libname}${release}${shared_ext}$major'
11490   shlibpath_var=LD_LIBRARY_PATH
11491   shlibpath_overrides_runpath=yes
11492   hardcode_into_libs=yes
11493   # ldd complains unless libraries are executable
11494   postinstall_cmds='chmod +x $lib'
11495   ;;
11496
11497 sunos4*)
11498   version_type=sunos
11499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11500   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11501   shlibpath_var=LD_LIBRARY_PATH
11502   shlibpath_overrides_runpath=yes
11503   if test "$with_gnu_ld" = yes; then
11504     need_lib_prefix=no
11505   fi
11506   need_version=yes
11507   ;;
11508
11509 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11510   version_type=linux
11511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512   soname_spec='${libname}${release}${shared_ext}$major'
11513   shlibpath_var=LD_LIBRARY_PATH
11514   case $host_vendor in
11515     sni)
11516       shlibpath_overrides_runpath=no
11517       need_lib_prefix=no
11518       export_dynamic_flag_spec='${wl}-Blargedynsym'
11519       runpath_var=LD_RUN_PATH
11520       ;;
11521     siemens)
11522       need_lib_prefix=no
11523       ;;
11524     motorola)
11525       need_lib_prefix=no
11526       need_version=no
11527       shlibpath_overrides_runpath=no
11528       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11529       ;;
11530   esac
11531   ;;
11532
11533 sysv4*MP*)
11534   if test -d /usr/nec ;then
11535     version_type=linux
11536     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11537     soname_spec='$libname${shared_ext}.$major'
11538     shlibpath_var=LD_LIBRARY_PATH
11539   fi
11540   ;;
11541
11542 uts4*)
11543   version_type=linux
11544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545   soname_spec='${libname}${release}${shared_ext}$major'
11546   shlibpath_var=LD_LIBRARY_PATH
11547   ;;
11548
11549 *)
11550   dynamic_linker=no
11551   ;;
11552 esac
11553 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11554 echo "${ECHO_T}$dynamic_linker" >&6
11555 test "$dynamic_linker" = no && can_build_shared=no
11556
11557 if test "x$enable_dlopen" != xyes; then
11558   enable_dlopen=unknown
11559   enable_dlopen_self=unknown
11560   enable_dlopen_self_static=unknown
11561 else
11562   lt_cv_dlopen=no
11563   lt_cv_dlopen_libs=
11564
11565   case $host_os in
11566   beos*)
11567     lt_cv_dlopen="load_add_on"
11568     lt_cv_dlopen_libs=
11569     lt_cv_dlopen_self=yes
11570     ;;
11571
11572   mingw* | pw32*)
11573     lt_cv_dlopen="LoadLibrary"
11574     lt_cv_dlopen_libs=
11575    ;;
11576
11577   cygwin*)
11578     lt_cv_dlopen="dlopen"
11579     lt_cv_dlopen_libs=
11580    ;;
11581
11582   darwin*)
11583   # if libdl is installed we need to link against it
11584     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11585 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11587   echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589   ac_check_lib_save_LIBS=$LIBS
11590 LIBS="-ldl  $LIBS"
11591 cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h.  */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h.  */
11597
11598 /* Override any gcc2 internal prototype to avoid an error.  */
11599 #ifdef __cplusplus
11600 extern "C"
11601 #endif
11602 /* We use char because int might match the return type of a gcc2
11603    builtin and then its argument prototype would still apply.  */
11604 char dlopen ();
11605 int
11606 main ()
11607 {
11608 dlopen ();
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 rm -f conftest.$ac_objext conftest$ac_exeext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11615   (eval $ac_link) 2>conftest.er1
11616   ac_status=$?
11617   grep -v '^ *+' conftest.er1 >conftest.err
11618   rm -f conftest.er1
11619   cat conftest.err >&5
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); } &&
11622          { ac_try='test -z "$ac_cxx_werror_flag"
11623                          || test ! -s conftest.err'
11624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625   (eval $ac_try) 2>&5
11626   ac_status=$?
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); }; } &&
11629          { ac_try='test -s conftest$ac_exeext'
11630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631   (eval $ac_try) 2>&5
11632   ac_status=$?
11633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634   (exit $ac_status); }; }; then
11635   ac_cv_lib_dl_dlopen=yes
11636 else
11637   echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11639
11640 ac_cv_lib_dl_dlopen=no
11641 fi
11642 rm -f conftest.err conftest.$ac_objext \
11643       conftest$ac_exeext conftest.$ac_ext
11644 LIBS=$ac_check_lib_save_LIBS
11645 fi
11646 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11647 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11648 if test $ac_cv_lib_dl_dlopen = yes; then
11649   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11650 else
11651
11652     lt_cv_dlopen="dyld"
11653     lt_cv_dlopen_libs=
11654     lt_cv_dlopen_self=yes
11655
11656 fi
11657
11658    ;;
11659
11660   *)
11661     echo "$as_me:$LINENO: checking for shl_load" >&5
11662 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11663 if test "${ac_cv_func_shl_load+set}" = set; then
11664   echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666   cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11674 #define shl_load innocuous_shl_load
11675
11676 /* System header to define __stub macros and hopefully few prototypes,
11677     which can conflict with char shl_load (); below.
11678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679     <limits.h> exists even on freestanding compilers.  */
11680
11681 #ifdef __STDC__
11682 # include <limits.h>
11683 #else
11684 # include <assert.h>
11685 #endif
11686
11687 #undef shl_load
11688
11689 /* Override any gcc2 internal prototype to avoid an error.  */
11690 #ifdef __cplusplus
11691 extern "C"
11692 {
11693 #endif
11694 /* We use char because int might match the return type of a gcc2
11695    builtin and then its argument prototype would still apply.  */
11696 char shl_load ();
11697 /* The GNU C library defines this for functions which it implements
11698     to always fail with ENOSYS.  Some functions are actually named
11699     something starting with __ and the normal name is an alias.  */
11700 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11701 choke me
11702 #else
11703 char (*f) () = shl_load;
11704 #endif
11705 #ifdef __cplusplus
11706 }
11707 #endif
11708
11709 int
11710 main ()
11711 {
11712 return f != shl_load;
11713   ;
11714   return 0;
11715 }
11716 _ACEOF
11717 rm -f conftest.$ac_objext conftest$ac_exeext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719   (eval $ac_link) 2>conftest.er1
11720   ac_status=$?
11721   grep -v '^ *+' conftest.er1 >conftest.err
11722   rm -f conftest.er1
11723   cat conftest.err >&5
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } &&
11726          { ac_try='test -z "$ac_cxx_werror_flag"
11727                          || test ! -s conftest.err'
11728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729   (eval $ac_try) 2>&5
11730   ac_status=$?
11731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732   (exit $ac_status); }; } &&
11733          { ac_try='test -s conftest$ac_exeext'
11734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735   (eval $ac_try) 2>&5
11736   ac_status=$?
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); }; }; then
11739   ac_cv_func_shl_load=yes
11740 else
11741   echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744 ac_cv_func_shl_load=no
11745 fi
11746 rm -f conftest.err conftest.$ac_objext \
11747       conftest$ac_exeext conftest.$ac_ext
11748 fi
11749 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11750 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11751 if test $ac_cv_func_shl_load = yes; then
11752   lt_cv_dlopen="shl_load"
11753 else
11754   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11755 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11756 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11757   echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759   ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-ldld  $LIBS"
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767
11768 /* Override any gcc2 internal prototype to avoid an error.  */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 /* We use char because int might match the return type of a gcc2
11773    builtin and then its argument prototype would still apply.  */
11774 char shl_load ();
11775 int
11776 main ()
11777 {
11778 shl_load ();
11779   ;
11780   return 0;
11781 }
11782 _ACEOF
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11785   (eval $ac_link) 2>conftest.er1
11786   ac_status=$?
11787   grep -v '^ *+' conftest.er1 >conftest.err
11788   rm -f conftest.er1
11789   cat conftest.err >&5
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); } &&
11792          { ac_try='test -z "$ac_cxx_werror_flag"
11793                          || test ! -s conftest.err'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; } &&
11799          { ac_try='test -s conftest$ac_exeext'
11800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801   (eval $ac_try) 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; }; then
11805   ac_cv_lib_dld_shl_load=yes
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810 ac_cv_lib_dld_shl_load=no
11811 fi
11812 rm -f conftest.err conftest.$ac_objext \
11813       conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11817 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11818 if test $ac_cv_lib_dld_shl_load = yes; then
11819   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11820 else
11821   echo "$as_me:$LINENO: checking for dlopen" >&5
11822 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11823 if test "${ac_cv_func_dlopen+set}" = set; then
11824   echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826   cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h.  */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h.  */
11832 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11834 #define dlopen innocuous_dlopen
11835
11836 /* System header to define __stub macros and hopefully few prototypes,
11837     which can conflict with char dlopen (); below.
11838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839     <limits.h> exists even on freestanding compilers.  */
11840
11841 #ifdef __STDC__
11842 # include <limits.h>
11843 #else
11844 # include <assert.h>
11845 #endif
11846
11847 #undef dlopen
11848
11849 /* Override any gcc2 internal prototype to avoid an error.  */
11850 #ifdef __cplusplus
11851 extern "C"
11852 {
11853 #endif
11854 /* We use char because int might match the return type of a gcc2
11855    builtin and then its argument prototype would still apply.  */
11856 char dlopen ();
11857 /* The GNU C library defines this for functions which it implements
11858     to always fail with ENOSYS.  Some functions are actually named
11859     something starting with __ and the normal name is an alias.  */
11860 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11861 choke me
11862 #else
11863 char (*f) () = dlopen;
11864 #endif
11865 #ifdef __cplusplus
11866 }
11867 #endif
11868
11869 int
11870 main ()
11871 {
11872 return f != dlopen;
11873   ;
11874   return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879   (eval $ac_link) 2>conftest.er1
11880   ac_status=$?
11881   grep -v '^ *+' conftest.er1 >conftest.err
11882   rm -f conftest.er1
11883   cat conftest.err >&5
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); } &&
11886          { ac_try='test -z "$ac_cxx_werror_flag"
11887                          || test ! -s conftest.err'
11888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889   (eval $ac_try) 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); }; } &&
11893          { ac_try='test -s conftest$ac_exeext'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; }; then
11899   ac_cv_func_dlopen=yes
11900 else
11901   echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 ac_cv_func_dlopen=no
11905 fi
11906 rm -f conftest.err conftest.$ac_objext \
11907       conftest$ac_exeext conftest.$ac_ext
11908 fi
11909 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11910 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11911 if test $ac_cv_func_dlopen = yes; then
11912   lt_cv_dlopen="dlopen"
11913 else
11914   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11915 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11916 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11917   echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919   ac_check_lib_save_LIBS=$LIBS
11920 LIBS="-ldl  $LIBS"
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927
11928 /* Override any gcc2 internal prototype to avoid an error.  */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 /* We use char because int might match the return type of a gcc2
11933    builtin and then its argument prototype would still apply.  */
11934 char dlopen ();
11935 int
11936 main ()
11937 {
11938 dlopen ();
11939   ;
11940   return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945   (eval $ac_link) 2>conftest.er1
11946   ac_status=$?
11947   grep -v '^ *+' conftest.er1 >conftest.err
11948   rm -f conftest.er1
11949   cat conftest.err >&5
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); } &&
11952          { ac_try='test -z "$ac_cxx_werror_flag"
11953                          || test ! -s conftest.err'
11954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955   (eval $ac_try) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; } &&
11959          { ac_try='test -s conftest$ac_exeext'
11960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961   (eval $ac_try) 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; }; then
11965   ac_cv_lib_dl_dlopen=yes
11966 else
11967   echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11969
11970 ac_cv_lib_dl_dlopen=no
11971 fi
11972 rm -f conftest.err conftest.$ac_objext \
11973       conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11975 fi
11976 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11978 if test $ac_cv_lib_dl_dlopen = yes; then
11979   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11980 else
11981   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11982 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986   ac_check_lib_save_LIBS=$LIBS
11987 LIBS="-lsvld  $LIBS"
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h.  */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h.  */
11994
11995 /* Override any gcc2 internal prototype to avoid an error.  */
11996 #ifdef __cplusplus
11997 extern "C"
11998 #endif
11999 /* We use char because int might match the return type of a gcc2
12000    builtin and then its argument prototype would still apply.  */
12001 char dlopen ();
12002 int
12003 main ()
12004 {
12005 dlopen ();
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012   (eval $ac_link) 2>conftest.er1
12013   ac_status=$?
12014   grep -v '^ *+' conftest.er1 >conftest.err
12015   rm -f conftest.er1
12016   cat conftest.err >&5
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); } &&
12019          { ac_try='test -z "$ac_cxx_werror_flag"
12020                          || test ! -s conftest.err'
12021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022   (eval $ac_try) 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); }; } &&
12026          { ac_try='test -s conftest$ac_exeext'
12027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028   (eval $ac_try) 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); }; }; then
12032   ac_cv_lib_svld_dlopen=yes
12033 else
12034   echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12036
12037 ac_cv_lib_svld_dlopen=no
12038 fi
12039 rm -f conftest.err conftest.$ac_objext \
12040       conftest$ac_exeext conftest.$ac_ext
12041 LIBS=$ac_check_lib_save_LIBS
12042 fi
12043 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12044 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12045 if test $ac_cv_lib_svld_dlopen = yes; then
12046   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12047 else
12048   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12049 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12050 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053   ac_check_lib_save_LIBS=$LIBS
12054 LIBS="-ldld  $LIBS"
12055 cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h.  */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h.  */
12061
12062 /* Override any gcc2 internal prototype to avoid an error.  */
12063 #ifdef __cplusplus
12064 extern "C"
12065 #endif
12066 /* We use char because int might match the return type of a gcc2
12067    builtin and then its argument prototype would still apply.  */
12068 char dld_link ();
12069 int
12070 main ()
12071 {
12072 dld_link ();
12073   ;
12074   return 0;
12075 }
12076 _ACEOF
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12079   (eval $ac_link) 2>conftest.er1
12080   ac_status=$?
12081   grep -v '^ *+' conftest.er1 >conftest.err
12082   rm -f conftest.er1
12083   cat conftest.err >&5
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); } &&
12086          { ac_try='test -z "$ac_cxx_werror_flag"
12087                          || test ! -s conftest.err'
12088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089   (eval $ac_try) 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; } &&
12093          { ac_try='test -s conftest$ac_exeext'
12094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095   (eval $ac_try) 2>&5
12096   ac_status=$?
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); }; }; then
12099   ac_cv_lib_dld_dld_link=yes
12100 else
12101   echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12103
12104 ac_cv_lib_dld_dld_link=no
12105 fi
12106 rm -f conftest.err conftest.$ac_objext \
12107       conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12109 fi
12110 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12111 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12112 if test $ac_cv_lib_dld_dld_link = yes; then
12113   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12114 fi
12115
12116
12117 fi
12118
12119
12120 fi
12121
12122
12123 fi
12124
12125
12126 fi
12127
12128
12129 fi
12130
12131     ;;
12132   esac
12133
12134   if test "x$lt_cv_dlopen" != xno; then
12135     enable_dlopen=yes
12136   else
12137     enable_dlopen=no
12138   fi
12139
12140   case $lt_cv_dlopen in
12141   dlopen)
12142     save_CPPFLAGS="$CPPFLAGS"
12143     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12144
12145     save_LDFLAGS="$LDFLAGS"
12146     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12147
12148     save_LIBS="$LIBS"
12149     LIBS="$lt_cv_dlopen_libs $LIBS"
12150
12151     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12152 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12153 if test "${lt_cv_dlopen_self+set}" = set; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156           if test "$cross_compiling" = yes; then :
12157   lt_cv_dlopen_self=cross
12158 else
12159   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12160   lt_status=$lt_dlunknown
12161   cat > conftest.$ac_ext <<EOF
12162 #line 12162 "configure"
12163 #include "confdefs.h"
12164
12165 #if HAVE_DLFCN_H
12166 #include <dlfcn.h>
12167 #endif
12168
12169 #include <stdio.h>
12170
12171 #ifdef RTLD_GLOBAL
12172 #  define LT_DLGLOBAL           RTLD_GLOBAL
12173 #else
12174 #  ifdef DL_GLOBAL
12175 #    define LT_DLGLOBAL         DL_GLOBAL
12176 #  else
12177 #    define LT_DLGLOBAL         0
12178 #  endif
12179 #endif
12180
12181 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12182    find out it does not work in some platform. */
12183 #ifndef LT_DLLAZY_OR_NOW
12184 #  ifdef RTLD_LAZY
12185 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12186 #  else
12187 #    ifdef DL_LAZY
12188 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12189 #    else
12190 #      ifdef RTLD_NOW
12191 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12192 #      else
12193 #        ifdef DL_NOW
12194 #          define LT_DLLAZY_OR_NOW      DL_NOW
12195 #        else
12196 #          define LT_DLLAZY_OR_NOW      0
12197 #        endif
12198 #      endif
12199 #    endif
12200 #  endif
12201 #endif
12202
12203 #ifdef __cplusplus
12204 extern "C" void exit (int);
12205 #endif
12206
12207 void fnord() { int i=42;}
12208 int main ()
12209 {
12210   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12211   int status = $lt_dlunknown;
12212
12213   if (self)
12214     {
12215       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12216       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12217       /* dlclose (self); */
12218     }
12219
12220     exit (status);
12221 }
12222 EOF
12223   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12224   (eval $ac_link) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12228     (./conftest; exit; ) 2>/dev/null
12229     lt_status=$?
12230     case x$lt_status in
12231       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12232       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12233       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12234     esac
12235   else :
12236     # compilation failed
12237     lt_cv_dlopen_self=no
12238   fi
12239 fi
12240 rm -fr conftest*
12241
12242
12243 fi
12244 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12245 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12246
12247     if test "x$lt_cv_dlopen_self" = xyes; then
12248       LDFLAGS="$LDFLAGS $link_static_flag"
12249       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12250 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12251 if test "${lt_cv_dlopen_self_static+set}" = set; then
12252   echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254           if test "$cross_compiling" = yes; then :
12255   lt_cv_dlopen_self_static=cross
12256 else
12257   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12258   lt_status=$lt_dlunknown
12259   cat > conftest.$ac_ext <<EOF
12260 #line 12260 "configure"
12261 #include "confdefs.h"
12262
12263 #if HAVE_DLFCN_H
12264 #include <dlfcn.h>
12265 #endif
12266
12267 #include <stdio.h>
12268
12269 #ifdef RTLD_GLOBAL
12270 #  define LT_DLGLOBAL           RTLD_GLOBAL
12271 #else
12272 #  ifdef DL_GLOBAL
12273 #    define LT_DLGLOBAL         DL_GLOBAL
12274 #  else
12275 #    define LT_DLGLOBAL         0
12276 #  endif
12277 #endif
12278
12279 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12280    find out it does not work in some platform. */
12281 #ifndef LT_DLLAZY_OR_NOW
12282 #  ifdef RTLD_LAZY
12283 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12284 #  else
12285 #    ifdef DL_LAZY
12286 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12287 #    else
12288 #      ifdef RTLD_NOW
12289 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12290 #      else
12291 #        ifdef DL_NOW
12292 #          define LT_DLLAZY_OR_NOW      DL_NOW
12293 #        else
12294 #          define LT_DLLAZY_OR_NOW      0
12295 #        endif
12296 #      endif
12297 #    endif
12298 #  endif
12299 #endif
12300
12301 #ifdef __cplusplus
12302 extern "C" void exit (int);
12303 #endif
12304
12305 void fnord() { int i=42;}
12306 int main ()
12307 {
12308   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12309   int status = $lt_dlunknown;
12310
12311   if (self)
12312     {
12313       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12314       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12315       /* dlclose (self); */
12316     }
12317
12318     exit (status);
12319 }
12320 EOF
12321   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12322   (eval $ac_link) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12326     (./conftest; exit; ) 2>/dev/null
12327     lt_status=$?
12328     case x$lt_status in
12329       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12330       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12331       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12332     esac
12333   else :
12334     # compilation failed
12335     lt_cv_dlopen_self_static=no
12336   fi
12337 fi
12338 rm -fr conftest*
12339
12340
12341 fi
12342 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12343 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12344     fi
12345
12346     CPPFLAGS="$save_CPPFLAGS"
12347     LDFLAGS="$save_LDFLAGS"
12348     LIBS="$save_LIBS"
12349     ;;
12350   esac
12351
12352   case $lt_cv_dlopen_self in
12353   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12354   *) enable_dlopen_self=unknown ;;
12355   esac
12356
12357   case $lt_cv_dlopen_self_static in
12358   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12359   *) enable_dlopen_self_static=unknown ;;
12360   esac
12361 fi
12362
12363
12364 # The else clause should only fire when bootstrapping the
12365 # libtool distribution, otherwise you forgot to ship ltmain.sh
12366 # with your package, and you will get complaints that there are
12367 # no rules to generate ltmain.sh.
12368 if test -f "$ltmain"; then
12369   # See if we are running on zsh, and set the options which allow our commands through
12370   # without removal of \ escapes.
12371   if test -n "${ZSH_VERSION+set}" ; then
12372     setopt NO_GLOB_SUBST
12373   fi
12374   # Now quote all the things that may contain metacharacters while being
12375   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12376   # variables and quote the copies for generation of the libtool script.
12377   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12378     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12379     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12380     deplibs_check_method reload_flag reload_cmds need_locks \
12381     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12382     lt_cv_sys_global_symbol_to_c_name_address \
12383     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12384     old_postinstall_cmds old_postuninstall_cmds \
12385     compiler_CXX \
12386     CC_CXX \
12387     LD_CXX \
12388     lt_prog_compiler_wl_CXX \
12389     lt_prog_compiler_pic_CXX \
12390     lt_prog_compiler_static_CXX \
12391     lt_prog_compiler_no_builtin_flag_CXX \
12392     export_dynamic_flag_spec_CXX \
12393     thread_safe_flag_spec_CXX \
12394     whole_archive_flag_spec_CXX \
12395     enable_shared_with_static_runtimes_CXX \
12396     old_archive_cmds_CXX \
12397     old_archive_from_new_cmds_CXX \
12398     predep_objects_CXX \
12399     postdep_objects_CXX \
12400     predeps_CXX \
12401     postdeps_CXX \
12402     compiler_lib_search_path_CXX \
12403     archive_cmds_CXX \
12404     archive_expsym_cmds_CXX \
12405     postinstall_cmds_CXX \
12406     postuninstall_cmds_CXX \
12407     old_archive_from_expsyms_cmds_CXX \
12408     allow_undefined_flag_CXX \
12409     no_undefined_flag_CXX \
12410     export_symbols_cmds_CXX \
12411     hardcode_libdir_flag_spec_CXX \
12412     hardcode_libdir_flag_spec_ld_CXX \
12413     hardcode_libdir_separator_CXX \
12414     hardcode_automatic_CXX \
12415     module_cmds_CXX \
12416     module_expsym_cmds_CXX \
12417     lt_cv_prog_compiler_c_o_CXX \
12418     exclude_expsyms_CXX \
12419     include_expsyms_CXX; do
12420
12421     case $var in
12422     old_archive_cmds_CXX | \
12423     old_archive_from_new_cmds_CXX | \
12424     archive_cmds_CXX | \
12425     archive_expsym_cmds_CXX | \
12426     module_cmds_CXX | \
12427     module_expsym_cmds_CXX | \
12428     old_archive_from_expsyms_cmds_CXX | \
12429     export_symbols_cmds_CXX | \
12430     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12431     postinstall_cmds | postuninstall_cmds | \
12432     old_postinstall_cmds | old_postuninstall_cmds | \
12433     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12434       # Double-quote double-evaled strings.
12435       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12436       ;;
12437     *)
12438       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12439       ;;
12440     esac
12441   done
12442
12443   case $lt_echo in
12444   *'\$0 --fallback-echo"')
12445     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12446     ;;
12447   esac
12448
12449 cfgfile="$ofile"
12450
12451   cat <<__EOF__ >> "$cfgfile"
12452 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12453
12454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12455
12456 # Shell to use when invoking shell scripts.
12457 SHELL=$lt_SHELL
12458
12459 # Whether or not to build shared libraries.
12460 build_libtool_libs=$enable_shared
12461
12462 # Whether or not to build static libraries.
12463 build_old_libs=$enable_static
12464
12465 # Whether or not to add -lc for building shared libraries.
12466 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12467
12468 # Whether or not to disallow shared libs when runtime libs are static
12469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12470
12471 # Whether or not to optimize for fast installation.
12472 fast_install=$enable_fast_install
12473
12474 # The host system.
12475 host_alias=$host_alias
12476 host=$host
12477
12478 # An echo program that does not interpret backslashes.
12479 echo=$lt_echo
12480
12481 # The archiver.
12482 AR=$lt_AR
12483 AR_FLAGS=$lt_AR_FLAGS
12484
12485 # A C compiler.
12486 LTCC=$lt_LTCC
12487
12488 # A language-specific compiler.
12489 CC=$lt_compiler_CXX
12490
12491 # Is the compiler the GNU C compiler?
12492 with_gcc=$GCC_CXX
12493
12494 # An ERE matcher.
12495 EGREP=$lt_EGREP
12496
12497 # The linker used to build libraries.
12498 LD=$lt_LD_CXX
12499
12500 # Whether we need hard or soft links.
12501 LN_S=$lt_LN_S
12502
12503 # A BSD-compatible nm program.
12504 NM=$lt_NM
12505
12506 # A symbol stripping program
12507 STRIP=$STRIP
12508
12509 # Used to examine libraries when file_magic_cmd begins "file"
12510 MAGIC_CMD=$MAGIC_CMD
12511
12512 # Used on cygwin: DLL creation program.
12513 DLLTOOL="$DLLTOOL"
12514
12515 # Used on cygwin: object dumper.
12516 OBJDUMP="$OBJDUMP"
12517
12518 # Used on cygwin: assembler.
12519 AS="$AS"
12520
12521 # The name of the directory that contains temporary libtool files.
12522 objdir=$objdir
12523
12524 # How to create reloadable object files.
12525 reload_flag=$lt_reload_flag
12526 reload_cmds=$lt_reload_cmds
12527
12528 # How to pass a linker flag through the compiler.
12529 wl=$lt_lt_prog_compiler_wl_CXX
12530
12531 # Object file suffix (normally "o").
12532 objext="$ac_objext"
12533
12534 # Old archive suffix (normally "a").
12535 libext="$libext"
12536
12537 # Shared library suffix (normally ".so").
12538 shrext='$shrext'
12539
12540 # Executable file suffix (normally "").
12541 exeext="$exeext"
12542
12543 # Additional compiler flags for building library objects.
12544 pic_flag=$lt_lt_prog_compiler_pic_CXX
12545 pic_mode=$pic_mode
12546
12547 # What is the maximum length of a command?
12548 max_cmd_len=$lt_cv_sys_max_cmd_len
12549
12550 # Does compiler simultaneously support -c and -o options?
12551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12552
12553 # Must we lock files when doing compilation ?
12554 need_locks=$lt_need_locks
12555
12556 # Do we need the lib prefix for modules?
12557 need_lib_prefix=$need_lib_prefix
12558
12559 # Do we need a version for libraries?
12560 need_version=$need_version
12561
12562 # Whether dlopen is supported.
12563 dlopen_support=$enable_dlopen
12564
12565 # Whether dlopen of programs is supported.
12566 dlopen_self=$enable_dlopen_self
12567
12568 # Whether dlopen of statically linked programs is supported.
12569 dlopen_self_static=$enable_dlopen_self_static
12570
12571 # Compiler flag to prevent dynamic linking.
12572 link_static_flag=$lt_lt_prog_compiler_static_CXX
12573
12574 # Compiler flag to turn off builtin functions.
12575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12576
12577 # Compiler flag to allow reflexive dlopens.
12578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12579
12580 # Compiler flag to generate shared objects directly from archives.
12581 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12582
12583 # Compiler flag to generate thread-safe objects.
12584 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12585
12586 # Library versioning type.
12587 version_type=$version_type
12588
12589 # Format of library name prefix.
12590 libname_spec=$lt_libname_spec
12591
12592 # List of archive names.  First name is the real one, the rest are links.
12593 # The last name is the one that the linker finds with -lNAME.
12594 library_names_spec=$lt_library_names_spec
12595
12596 # The coded name of the library, if different from the real name.
12597 soname_spec=$lt_soname_spec
12598
12599 # Commands used to build and install an old-style archive.
12600 RANLIB=$lt_RANLIB
12601 old_archive_cmds=$lt_old_archive_cmds_CXX
12602 old_postinstall_cmds=$lt_old_postinstall_cmds
12603 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12604
12605 # Create an old-style archive from a shared archive.
12606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12607
12608 # Create a temporary old-style archive to link instead of a shared archive.
12609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12610
12611 # Commands used to build and install a shared archive.
12612 archive_cmds=$lt_archive_cmds_CXX
12613 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12614 postinstall_cmds=$lt_postinstall_cmds
12615 postuninstall_cmds=$lt_postuninstall_cmds
12616
12617 # Commands used to build a loadable module (assumed same as above if empty)
12618 module_cmds=$lt_module_cmds_CXX
12619 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12620
12621 # Commands to strip libraries.
12622 old_striplib=$lt_old_striplib
12623 striplib=$lt_striplib
12624
12625 # Dependencies to place before the objects being linked to create a
12626 # shared library.
12627 predep_objects=$lt_predep_objects_CXX
12628
12629 # Dependencies to place after the objects being linked to create a
12630 # shared library.
12631 postdep_objects=$lt_postdep_objects_CXX
12632
12633 # Dependencies to place before the objects being linked to create a
12634 # shared library.
12635 predeps=$lt_predeps_CXX
12636
12637 # Dependencies to place after the objects being linked to create a
12638 # shared library.
12639 postdeps=$lt_postdeps_CXX
12640
12641 # The library search path used internally by the compiler when linking
12642 # a shared library.
12643 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12644
12645 # Method to check whether dependent libraries are shared objects.
12646 deplibs_check_method=$lt_deplibs_check_method
12647
12648 # Command to use when deplibs_check_method == file_magic.
12649 file_magic_cmd=$lt_file_magic_cmd
12650
12651 # Flag that allows shared libraries with undefined symbols to be built.
12652 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12653
12654 # Flag that forces no undefined symbols.
12655 no_undefined_flag=$lt_no_undefined_flag_CXX
12656
12657 # Commands used to finish a libtool library installation in a directory.
12658 finish_cmds=$lt_finish_cmds
12659
12660 # Same as above, but a single script fragment to be evaled but not shown.
12661 finish_eval=$lt_finish_eval
12662
12663 # Take the output of nm and produce a listing of raw symbols and C names.
12664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12665
12666 # Transform the output of nm in a proper C declaration
12667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12668
12669 # Transform the output of nm in a C name address pair
12670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12671
12672 # This is the shared library runtime path variable.
12673 runpath_var=$runpath_var
12674
12675 # This is the shared library path variable.
12676 shlibpath_var=$shlibpath_var
12677
12678 # Is shlibpath searched before the hard-coded library search path?
12679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12680
12681 # How to hardcode a shared library path into an executable.
12682 hardcode_action=$hardcode_action_CXX
12683
12684 # Whether we should hardcode library paths into libraries.
12685 hardcode_into_libs=$hardcode_into_libs
12686
12687 # Flag to hardcode \$libdir into a binary during linking.
12688 # This must work even if \$libdir does not exist.
12689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12690
12691 # If ld is used when linking, flag to hardcode \$libdir into
12692 # a binary during linking. This must work even if \$libdir does
12693 # not exist.
12694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12695
12696 # Whether we need a single -rpath flag with a separated argument.
12697 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12698
12699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12700 # resulting binary.
12701 hardcode_direct=$hardcode_direct_CXX
12702
12703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12704 # resulting binary.
12705 hardcode_minus_L=$hardcode_minus_L_CXX
12706
12707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12708 # the resulting binary.
12709 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12710
12711 # Set to yes if building a shared library automatically hardcodes DIR into the library
12712 # and all subsequent libraries and executables linked against it.
12713 hardcode_automatic=$hardcode_automatic_CXX
12714
12715 # Variables whose values should be saved in libtool wrapper scripts and
12716 # restored at relink time.
12717 variables_saved_for_relink="$variables_saved_for_relink"
12718
12719 # Whether libtool must link a program against all its dependency libraries.
12720 link_all_deplibs=$link_all_deplibs_CXX
12721
12722 # Compile-time system search path for libraries
12723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12724
12725 # Run-time system search path for libraries
12726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12727
12728 # Fix the shell variable \$srcfile for the compiler.
12729 fix_srcfile_path="$fix_srcfile_path_CXX"
12730
12731 # Set to yes if exported symbols are required.
12732 always_export_symbols=$always_export_symbols_CXX
12733
12734 # The commands to list exported symbols.
12735 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12736
12737 # The commands to extract the exported symbol list from a shared archive.
12738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12739
12740 # Symbols that should not be listed in the preloaded symbols.
12741 exclude_expsyms=$lt_exclude_expsyms_CXX
12742
12743 # Symbols that must always be exported.
12744 include_expsyms=$lt_include_expsyms_CXX
12745
12746 # ### END LIBTOOL TAG CONFIG: $tagname
12747
12748 __EOF__
12749
12750
12751 else
12752   # If there is no Makefile yet, we rely on a make rule to execute
12753   # `config.status --recheck' to rerun these tests and create the
12754   # libtool script then.
12755   test -f Makefile && make "$ltmain"
12756 fi
12757
12758
12759 ac_ext=c
12760 ac_cpp='$CPP $CPPFLAGS'
12761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12764
12765 CC=$lt_save_CC
12766 LDCXX=$LD
12767 LD=$lt_save_LD
12768 GCC=$lt_save_GCC
12769 with_gnu_ldcxx=$with_gnu_ld
12770 with_gnu_ld=$lt_save_with_gnu_ld
12771 lt_cv_path_LDCXX=$lt_cv_path_LD
12772 lt_cv_path_LD=$lt_save_path_LD
12773 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12774 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12775
12776         else
12777           tagname=""
12778         fi
12779         ;;
12780
12781       F77)
12782         if test -n "$F77" && test "X$F77" != "Xno"; then
12783
12784 ac_ext=f
12785 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12786 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12787 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12788
12789
12790 archive_cmds_need_lc_F77=no
12791 allow_undefined_flag_F77=
12792 always_export_symbols_F77=no
12793 archive_expsym_cmds_F77=
12794 export_dynamic_flag_spec_F77=
12795 hardcode_direct_F77=no
12796 hardcode_libdir_flag_spec_F77=
12797 hardcode_libdir_flag_spec_ld_F77=
12798 hardcode_libdir_separator_F77=
12799 hardcode_minus_L_F77=no
12800 hardcode_automatic_F77=no
12801 module_cmds_F77=
12802 module_expsym_cmds_F77=
12803 link_all_deplibs_F77=unknown
12804 old_archive_cmds_F77=$old_archive_cmds
12805 no_undefined_flag_F77=
12806 whole_archive_flag_spec_F77=
12807 enable_shared_with_static_runtimes_F77=no
12808
12809 # Source file extension for f77 test sources.
12810 ac_ext=f
12811
12812 # Object file extension for compiled f77 test sources.
12813 objext=o
12814 objext_F77=$objext
12815
12816 # Code to be used in simple compile tests
12817 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12818
12819 # Code to be used in simple link tests
12820 lt_simple_link_test_code="      program t\n      end\n"
12821
12822 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12823
12824 # If no C compiler was specified, use CC.
12825 LTCC=${LTCC-"$CC"}
12826
12827 # Allow CC to be a program name with arguments.
12828 compiler=$CC
12829
12830
12831 # Allow CC to be a program name with arguments.
12832 lt_save_CC="$CC"
12833 CC=${F77-"f77"}
12834 compiler=$CC
12835 compiler_F77=$CC
12836 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12837
12838 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12839 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12840 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12841 echo "${ECHO_T}$can_build_shared" >&6
12842
12843 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12844 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12845 test "$can_build_shared" = "no" && enable_shared=no
12846
12847 # On AIX, shared libraries and static libraries use the same namespace, and
12848 # are all built from PIC.
12849 case "$host_os" in
12850 aix3*)
12851   test "$enable_shared" = yes && enable_static=no
12852   if test -n "$RANLIB"; then
12853     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12854     postinstall_cmds='$RANLIB $lib'
12855   fi
12856   ;;
12857 aix4*)
12858   test "$enable_shared" = yes && enable_static=no
12859   ;;
12860 esac
12861 echo "$as_me:$LINENO: result: $enable_shared" >&5
12862 echo "${ECHO_T}$enable_shared" >&6
12863
12864 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12865 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12866 # Make sure either enable_shared or enable_static is yes.
12867 test "$enable_shared" = yes || enable_static=yes
12868 echo "$as_me:$LINENO: result: $enable_static" >&5
12869 echo "${ECHO_T}$enable_static" >&6
12870
12871 test "$ld_shlibs_F77" = no && can_build_shared=no
12872
12873 GCC_F77="$G77"
12874 LD_F77="$LD"
12875
12876 lt_prog_compiler_wl_F77=
12877 lt_prog_compiler_pic_F77=
12878 lt_prog_compiler_static_F77=
12879
12880 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12881 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12882
12883   if test "$GCC" = yes; then
12884     lt_prog_compiler_wl_F77='-Wl,'
12885     lt_prog_compiler_static_F77='-static'
12886
12887     case $host_os in
12888       aix*)
12889       # All AIX code is PIC.
12890       if test "$host_cpu" = ia64; then
12891         # AIX 5 now supports IA64 processor
12892         lt_prog_compiler_static_F77='-Bstatic'
12893       fi
12894       ;;
12895
12896     amigaos*)
12897       # FIXME: we need at least 68020 code to build shared libraries, but
12898       # adding the `-m68020' flag to GCC prevents building anything better,
12899       # like `-m68040'.
12900       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12901       ;;
12902
12903     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12904       # PIC is the default for these OSes.
12905       ;;
12906
12907     mingw* | pw32* | os2*)
12908       # This hack is so that the source file can tell whether it is being
12909       # built for inclusion in a dll (and should export symbols for example).
12910       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12911       ;;
12912
12913     darwin* | rhapsody*)
12914       # PIC is the default on this platform
12915       # Common symbols not allowed in MH_DYLIB files
12916       lt_prog_compiler_pic_F77='-fno-common'
12917       ;;
12918
12919     msdosdjgpp*)
12920       # Just because we use GCC doesn't mean we suddenly get shared libraries
12921       # on systems that don't support them.
12922       lt_prog_compiler_can_build_shared_F77=no
12923       enable_shared=no
12924       ;;
12925
12926     sysv4*MP*)
12927       if test -d /usr/nec; then
12928         lt_prog_compiler_pic_F77=-Kconform_pic
12929       fi
12930       ;;
12931
12932     hpux*)
12933       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12934       # not for PA HP-UX.
12935       case "$host_cpu" in
12936       hppa*64*|ia64*)
12937         # +Z the default
12938         ;;
12939       *)
12940         lt_prog_compiler_pic_F77='-fPIC'
12941         ;;
12942       esac
12943       ;;
12944
12945     *)
12946       lt_prog_compiler_pic_F77='-fPIC'
12947       ;;
12948     esac
12949   else
12950     # PORTME Check for flag to pass linker flags through the system compiler.
12951     case $host_os in
12952     aix*)
12953       lt_prog_compiler_wl_F77='-Wl,'
12954       if test "$host_cpu" = ia64; then
12955         # AIX 5 now supports IA64 processor
12956         lt_prog_compiler_static_F77='-Bstatic'
12957       else
12958         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12959       fi
12960       ;;
12961
12962     mingw* | pw32* | os2*)
12963       # This hack is so that the source file can tell whether it is being
12964       # built for inclusion in a dll (and should export symbols for example).
12965       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12966       ;;
12967
12968     hpux9* | hpux10* | hpux11*)
12969       lt_prog_compiler_wl_F77='-Wl,'
12970       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12971       # not for PA HP-UX.
12972       case "$host_cpu" in
12973       hppa*64*|ia64*)
12974         # +Z the default
12975         ;;
12976       *)
12977         lt_prog_compiler_pic_F77='+Z'
12978         ;;
12979       esac
12980       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12981       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12982       ;;
12983
12984     irix5* | irix6* | nonstopux*)
12985       lt_prog_compiler_wl_F77='-Wl,'
12986       # PIC (with -KPIC) is the default.
12987       lt_prog_compiler_static_F77='-non_shared'
12988       ;;
12989
12990     newsos6)
12991       lt_prog_compiler_pic_F77='-KPIC'
12992       lt_prog_compiler_static_F77='-Bstatic'
12993       ;;
12994
12995     linux*)
12996       case $CC in
12997       icc|ecc)
12998         lt_prog_compiler_wl_F77='-Wl,'
12999         lt_prog_compiler_pic_F77='-KPIC'
13000         lt_prog_compiler_static_F77='-static'
13001         ;;
13002       ccc)
13003         lt_prog_compiler_wl_F77='-Wl,'
13004         # All Alpha code is PIC.
13005         lt_prog_compiler_static_F77='-non_shared'
13006         ;;
13007       esac
13008       ;;
13009
13010     osf3* | osf4* | osf5*)
13011       lt_prog_compiler_wl_F77='-Wl,'
13012       # All OSF/1 code is PIC.
13013       lt_prog_compiler_static_F77='-non_shared'
13014       ;;
13015
13016     sco3.2v5*)
13017       lt_prog_compiler_pic_F77='-Kpic'
13018       lt_prog_compiler_static_F77='-dn'
13019       ;;
13020
13021     solaris*)
13022       lt_prog_compiler_wl_F77='-Wl,'
13023       lt_prog_compiler_pic_F77='-KPIC'
13024       lt_prog_compiler_static_F77='-Bstatic'
13025       ;;
13026
13027     sunos4*)
13028       lt_prog_compiler_wl_F77='-Qoption ld '
13029       lt_prog_compiler_pic_F77='-PIC'
13030       lt_prog_compiler_static_F77='-Bstatic'
13031       ;;
13032
13033     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13034       lt_prog_compiler_wl_F77='-Wl,'
13035       lt_prog_compiler_pic_F77='-KPIC'
13036       lt_prog_compiler_static_F77='-Bstatic'
13037       ;;
13038
13039     sysv4*MP*)
13040       if test -d /usr/nec ;then
13041         lt_prog_compiler_pic_F77='-Kconform_pic'
13042         lt_prog_compiler_static_F77='-Bstatic'
13043       fi
13044       ;;
13045
13046     uts4*)
13047       lt_prog_compiler_pic_F77='-pic'
13048       lt_prog_compiler_static_F77='-Bstatic'
13049       ;;
13050
13051     *)
13052       lt_prog_compiler_can_build_shared_F77=no
13053       ;;
13054     esac
13055   fi
13056
13057 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13058 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13059
13060 #
13061 # Check to make sure the PIC flag actually works.
13062 #
13063 if test -n "$lt_prog_compiler_pic_F77"; then
13064   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13065 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13066 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   lt_prog_compiler_pic_works_F77=no
13070   ac_outfile=conftest.$ac_objext
13071    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13072    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13073    # Insert the option either (1) after the last *FLAGS variable, or
13074    # (2) before a word containing "conftest.", or (3) at the end.
13075    # Note that $ac_compile itself does not contain backslashes and begins
13076    # with a dollar sign (not a hyphen), so the echo should work correctly.
13077    # The option is referenced via a variable to avoid confusing sed.
13078    lt_compile=`echo "$ac_compile" | $SED \
13079    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13081    -e 's:$: $lt_compiler_flag:'`
13082    (eval echo "\"\$as_me:13082: $lt_compile\"" >&5)
13083    (eval "$lt_compile" 2>conftest.err)
13084    ac_status=$?
13085    cat conftest.err >&5
13086    echo "$as_me:13086: \$? = $ac_status" >&5
13087    if (exit $ac_status) && test -s "$ac_outfile"; then
13088      # The compiler can only warn and ignore the option if not recognized
13089      # So say no if there are warnings
13090      if test ! -s conftest.err; then
13091        lt_prog_compiler_pic_works_F77=yes
13092      fi
13093    fi
13094    $rm conftest*
13095
13096 fi
13097 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13098 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13099
13100 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13101     case $lt_prog_compiler_pic_F77 in
13102      "" | " "*) ;;
13103      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13104      esac
13105 else
13106     lt_prog_compiler_pic_F77=
13107      lt_prog_compiler_can_build_shared_F77=no
13108 fi
13109
13110 fi
13111 case "$host_os" in
13112   # For platforms which do not support PIC, -DPIC is meaningless:
13113   *djgpp*)
13114     lt_prog_compiler_pic_F77=
13115     ;;
13116   *)
13117     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13118     ;;
13119 esac
13120
13121 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13122 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13123 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13124   echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126   lt_cv_prog_compiler_c_o_F77=no
13127    $rm -r conftest 2>/dev/null
13128    mkdir conftest
13129    cd conftest
13130    mkdir out
13131    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13132
13133    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13134    # that will create temporary files in the current directory regardless of
13135    # the output directory.  Thus, making CWD read-only will cause this test
13136    # to fail, enabling locking or at least warning the user not to do parallel
13137    # builds.
13138    chmod -w .
13139
13140    lt_compiler_flag="-o out/conftest2.$ac_objext"
13141    # Insert the option either (1) after the last *FLAGS variable, or
13142    # (2) before a word containing "conftest.", or (3) at the end.
13143    # Note that $ac_compile itself does not contain backslashes and begins
13144    # with a dollar sign (not a hyphen), so the echo should work correctly.
13145    lt_compile=`echo "$ac_compile" | $SED \
13146    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13148    -e 's:$: $lt_compiler_flag:'`
13149    (eval echo "\"\$as_me:13149: $lt_compile\"" >&5)
13150    (eval "$lt_compile" 2>out/conftest.err)
13151    ac_status=$?
13152    cat out/conftest.err >&5
13153    echo "$as_me:13153: \$? = $ac_status" >&5
13154    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13155    then
13156      # The compiler can only warn and ignore the option if not recognized
13157      # So say no if there are warnings
13158      if test ! -s out/conftest.err; then
13159        lt_cv_prog_compiler_c_o_F77=yes
13160      fi
13161    fi
13162    chmod u+w .
13163    $rm conftest* out/*
13164    rmdir out
13165    cd ..
13166    rmdir conftest
13167    $rm conftest*
13168
13169 fi
13170 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13171 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13172
13173
13174 hard_links="nottested"
13175 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13176   # do not overwrite the value of need_locks provided by the user
13177   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13178 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13179   hard_links=yes
13180   $rm conftest*
13181   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13182   touch conftest.a
13183   ln conftest.a conftest.b 2>&5 || hard_links=no
13184   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13185   echo "$as_me:$LINENO: result: $hard_links" >&5
13186 echo "${ECHO_T}$hard_links" >&6
13187   if test "$hard_links" = no; then
13188     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13189 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13190     need_locks=warn
13191   fi
13192 else
13193   need_locks=no
13194 fi
13195
13196 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13197 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13198
13199   runpath_var=
13200   allow_undefined_flag_F77=
13201   enable_shared_with_static_runtimes_F77=no
13202   archive_cmds_F77=
13203   archive_expsym_cmds_F77=
13204   old_archive_From_new_cmds_F77=
13205   old_archive_from_expsyms_cmds_F77=
13206   export_dynamic_flag_spec_F77=
13207   whole_archive_flag_spec_F77=
13208   thread_safe_flag_spec_F77=
13209   hardcode_libdir_flag_spec_F77=
13210   hardcode_libdir_flag_spec_ld_F77=
13211   hardcode_libdir_separator_F77=
13212   hardcode_direct_F77=no
13213   hardcode_minus_L_F77=no
13214   hardcode_shlibpath_var_F77=unsupported
13215   link_all_deplibs_F77=unknown
13216   hardcode_automatic_F77=no
13217   module_cmds_F77=
13218   module_expsym_cmds_F77=
13219   always_export_symbols_F77=no
13220   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13221   # include_expsyms should be a list of space-separated symbols to be *always*
13222   # included in the symbol list
13223   include_expsyms_F77=
13224   # exclude_expsyms can be an extended regexp of symbols to exclude
13225   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13226   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13227   # as well as any symbol that contains `d'.
13228   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13229   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13230   # platforms (ab)use it in PIC code, but their linkers get confused if
13231   # the symbol is explicitly referenced.  Since portable code cannot
13232   # rely on this symbol name, it's probably fine to never include it in
13233   # preloaded symbol tables.
13234   extract_expsyms_cmds=
13235
13236   case $host_os in
13237   cygwin* | mingw* | pw32*)
13238     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13239     # When not using gcc, we currently assume that we are using
13240     # Microsoft Visual C++.
13241     if test "$GCC" != yes; then
13242       with_gnu_ld=no
13243     fi
13244     ;;
13245   openbsd*)
13246     with_gnu_ld=no
13247     ;;
13248   esac
13249
13250   ld_shlibs_F77=yes
13251   if test "$with_gnu_ld" = yes; then
13252     # If archive_cmds runs LD, not CC, wlarc should be empty
13253     wlarc='${wl}'
13254
13255     # See if GNU ld supports shared libraries.
13256     case $host_os in
13257     aix3* | aix4* | aix5*)
13258       # On AIX/PPC, the GNU linker is very broken
13259       if test "$host_cpu" != ia64; then
13260         ld_shlibs_F77=no
13261         cat <<EOF 1>&2
13262
13263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13264 *** to be unable to reliably create shared libraries on AIX.
13265 *** Therefore, libtool is disabling shared libraries support.  If you
13266 *** really care for shared libraries, you may want to modify your PATH
13267 *** so that a non-GNU linker is found, and then restart.
13268
13269 EOF
13270       fi
13271       ;;
13272
13273     amigaos*)
13274       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)'
13275       hardcode_libdir_flag_spec_F77='-L$libdir'
13276       hardcode_minus_L_F77=yes
13277
13278       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13279       # that the semantics of dynamic libraries on AmigaOS, at least up
13280       # to version 4, is to share data among multiple programs linked
13281       # with the same dynamic library.  Since this doesn't match the
13282       # behavior of shared libraries on other platforms, we can't use
13283       # them.
13284       ld_shlibs_F77=no
13285       ;;
13286
13287     beos*)
13288       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13289         allow_undefined_flag_F77=unsupported
13290         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13291         # support --undefined.  This deserves some investigation.  FIXME
13292         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293       else
13294         ld_shlibs_F77=no
13295       fi
13296       ;;
13297
13298     cygwin* | mingw* | pw32*)
13299       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13300       # as there is no search path for DLLs.
13301       hardcode_libdir_flag_spec_F77='-L$libdir'
13302       allow_undefined_flag_F77=unsupported
13303       always_export_symbols_F77=no
13304       enable_shared_with_static_runtimes_F77=yes
13305       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13306
13307       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13308         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13309         # If the export-symbols file already is a .def file (1st line
13310         # is EXPORTS), use it as is; otherwise, prepend...
13311         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13312           cp $export_symbols $output_objdir/$soname.def;
13313         else
13314           echo EXPORTS > $output_objdir/$soname.def;
13315           cat $export_symbols >> $output_objdir/$soname.def;
13316         fi~
13317         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13318       else
13319         ld_shlibs=no
13320       fi
13321       ;;
13322
13323     netbsd*)
13324       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13325         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13326         wlarc=
13327       else
13328         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13329         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13330       fi
13331       ;;
13332
13333     solaris* | sysv5*)
13334       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13335         ld_shlibs_F77=no
13336         cat <<EOF 1>&2
13337
13338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13339 *** create shared libraries on Solaris systems.  Therefore, libtool
13340 *** is disabling shared libraries support.  We urge you to upgrade GNU
13341 *** binutils to release 2.9.1 or newer.  Another option is to modify
13342 *** your PATH or compiler configuration so that the native linker is
13343 *** used, and then restart.
13344
13345 EOF
13346       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13347         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13349       else
13350         ld_shlibs_F77=no
13351       fi
13352       ;;
13353
13354     sunos4*)
13355       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13356       wlarc=
13357       hardcode_direct_F77=yes
13358       hardcode_shlibpath_var_F77=no
13359       ;;
13360
13361     *)
13362       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13363         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13364         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13365       else
13366         ld_shlibs_F77=no
13367       fi
13368       ;;
13369     esac
13370
13371     if test "$ld_shlibs_F77" = yes; then
13372       runpath_var=LD_RUN_PATH
13373       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13374       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13375       # ancient GNU ld didn't support --whole-archive et. al.
13376       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13377         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13378       else
13379         whole_archive_flag_spec_F77=
13380       fi
13381     fi
13382   else
13383     # PORTME fill in a description of your system's linker (not GNU ld)
13384     case $host_os in
13385     aix3*)
13386       allow_undefined_flag_F77=unsupported
13387       always_export_symbols_F77=yes
13388       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'
13389       # Note: this linker hardcodes the directories in LIBPATH if there
13390       # are no directories specified by -L.
13391       hardcode_minus_L_F77=yes
13392       if test "$GCC" = yes && test -z "$link_static_flag"; then
13393         # Neither direct hardcoding nor static linking is supported with a
13394         # broken collect2.
13395         hardcode_direct_F77=unsupported
13396       fi
13397       ;;
13398
13399     aix4* | aix5*)
13400       if test "$host_cpu" = ia64; then
13401         # On IA64, the linker does run time linking by default, so we don't
13402         # have to do anything special.
13403         aix_use_runtimelinking=no
13404         exp_sym_flag='-Bexport'
13405         no_entry_flag=""
13406       else
13407         # If we're using GNU nm, then we don't want the "-C" option.
13408         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13409         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13410           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'
13411         else
13412           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'
13413         fi
13414         aix_use_runtimelinking=no
13415
13416         # Test if we are trying to use run time linking or normal
13417         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13418         # need to do runtime linking.
13419         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13420           for ld_flag in $LDFLAGS; do
13421           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13422             aix_use_runtimelinking=yes
13423             break
13424           fi
13425           done
13426         esac
13427
13428         exp_sym_flag='-bexport'
13429         no_entry_flag='-bnoentry'
13430       fi
13431
13432       # When large executables or shared objects are built, AIX ld can
13433       # have problems creating the table of contents.  If linking a library
13434       # or program results in "error TOC overflow" add -mminimal-toc to
13435       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13436       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13437
13438       archive_cmds_F77=''
13439       hardcode_direct_F77=yes
13440       hardcode_libdir_separator_F77=':'
13441       link_all_deplibs_F77=yes
13442
13443       if test "$GCC" = yes; then
13444         case $host_os in aix4.012|aix4.012.*)
13445         # We only want to do this on AIX 4.2 and lower, the check
13446         # below for broken collect2 doesn't work under 4.3+
13447           collect2name=`${CC} -print-prog-name=collect2`
13448           if test -f "$collect2name" && \
13449            strings "$collect2name" | grep resolve_lib_name >/dev/null
13450           then
13451           # We have reworked collect2
13452           hardcode_direct_F77=yes
13453           else
13454           # We have old collect2
13455           hardcode_direct_F77=unsupported
13456           # It fails to find uninstalled libraries when the uninstalled
13457           # path is not listed in the libpath.  Setting hardcode_minus_L
13458           # to unsupported forces relinking
13459           hardcode_minus_L_F77=yes
13460           hardcode_libdir_flag_spec_F77='-L$libdir'
13461           hardcode_libdir_separator_F77=
13462           fi
13463         esac
13464         shared_flag='-shared'
13465       else
13466         # not using gcc
13467         if test "$host_cpu" = ia64; then
13468         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13469         # chokes on -Wl,-G. The following line is correct:
13470           shared_flag='-G'
13471         else
13472         if test "$aix_use_runtimelinking" = yes; then
13473             shared_flag='${wl}-G'
13474           else
13475             shared_flag='${wl}-bM:SRE'
13476         fi
13477         fi
13478       fi
13479
13480       # It seems that -bexpall does not export symbols beginning with
13481       # underscore (_), so it is better to generate a list of symbols to export.
13482       always_export_symbols_F77=yes
13483       if test "$aix_use_runtimelinking" = yes; then
13484         # Warning - without using the other runtime loading flags (-brtl),
13485         # -berok will link without error, but may produce a broken library.
13486         allow_undefined_flag_F77='-berok'
13487        # Determine the default libpath from the value encoded in an empty executable.
13488        cat >conftest.$ac_ext <<_ACEOF
13489       program main
13490
13491       end
13492 _ACEOF
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495   (eval $ac_link) 2>conftest.er1
13496   ac_status=$?
13497   grep -v '^ *+' conftest.er1 >conftest.err
13498   rm -f conftest.er1
13499   cat conftest.err >&5
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); } &&
13502          { ac_try='test -z "$ac_f77_werror_flag"
13503                          || test ! -s conftest.err'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; } &&
13509          { ac_try='test -s conftest$ac_exeext'
13510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511   (eval $ac_try) 2>&5
13512   ac_status=$?
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); }; }; then
13515
13516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13517 }'`
13518 # Check for a 64-bit object if we didn't find anything.
13519 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; }
13520 }'`; fi
13521 else
13522   echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13524
13525 fi
13526 rm -f conftest.err conftest.$ac_objext \
13527       conftest$ac_exeext conftest.$ac_ext
13528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13529
13530        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13531         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"
13532        else
13533         if test "$host_cpu" = ia64; then
13534           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13535           allow_undefined_flag_F77="-z nodefs"
13536           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"
13537         else
13538          # Determine the default libpath from the value encoded in an empty executable.
13539          cat >conftest.$ac_ext <<_ACEOF
13540       program main
13541
13542       end
13543 _ACEOF
13544 rm -f conftest.$ac_objext conftest$ac_exeext
13545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13546   (eval $ac_link) 2>conftest.er1
13547   ac_status=$?
13548   grep -v '^ *+' conftest.er1 >conftest.err
13549   rm -f conftest.er1
13550   cat conftest.err >&5
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); } &&
13553          { ac_try='test -z "$ac_f77_werror_flag"
13554                          || test ! -s conftest.err'
13555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556   (eval $ac_try) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); }; } &&
13560          { ac_try='test -s conftest$ac_exeext'
13561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562   (eval $ac_try) 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; }; then
13566
13567 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13568 }'`
13569 # Check for a 64-bit object if we didn't find anything.
13570 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; }
13571 }'`; fi
13572 else
13573   echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13575
13576 fi
13577 rm -f conftest.err conftest.$ac_objext \
13578       conftest$ac_exeext conftest.$ac_ext
13579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13580
13581          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13582           # Warning - without using the other run time loading flags,
13583           # -berok will link without error, but may produce a broken library.
13584           no_undefined_flag_F77=' ${wl}-bernotok'
13585           allow_undefined_flag_F77=' ${wl}-berok'
13586           # -bexpall does not export symbols beginning with underscore (_)
13587           always_export_symbols_F77=yes
13588           # Exported symbols can be pulled into shared objects from archives
13589           whole_archive_flag_spec_F77=' '
13590           archive_cmds_need_lc_F77=yes
13591           # This is similar to how AIX traditionally builds it's shared libraries.
13592           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'
13593         fi
13594       fi
13595       ;;
13596
13597     amigaos*)
13598       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)'
13599       hardcode_libdir_flag_spec_F77='-L$libdir'
13600       hardcode_minus_L_F77=yes
13601       # see comment about different semantics on the GNU ld section
13602       ld_shlibs_F77=no
13603       ;;
13604
13605     bsdi4*)
13606       export_dynamic_flag_spec_F77=-rdynamic
13607       ;;
13608
13609     cygwin* | mingw* | pw32*)
13610       # When not using gcc, we currently assume that we are using
13611       # Microsoft Visual C++.
13612       # hardcode_libdir_flag_spec is actually meaningless, as there is
13613       # no search path for DLLs.
13614       hardcode_libdir_flag_spec_F77=' '
13615       allow_undefined_flag_F77=unsupported
13616       # Tell ltmain to make .lib files, not .a files.
13617       libext=lib
13618       # Tell ltmain to make .dll files, not .so files.
13619       shrext=".dll"
13620       # FIXME: Setting linknames here is a bad hack.
13621       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13622       # The linker will automatically build a .lib file if we build a DLL.
13623       old_archive_From_new_cmds_F77='true'
13624       # FIXME: Should let the user specify the lib program.
13625       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13626       fix_srcfile_path='`cygpath -w "$srcfile"`'
13627       enable_shared_with_static_runtimes_F77=yes
13628       ;;
13629
13630     darwin* | rhapsody*)
13631     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13632       archive_cmds_need_lc_F77=no
13633       case "$host_os" in
13634       rhapsody* | darwin1.[012])
13635         allow_undefined_flag_F77='-undefined suppress'
13636         ;;
13637       *) # Darwin 1.3 on
13638         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13639         ;;
13640       esac
13641       # FIXME: Relying on posixy $() will cause problems for
13642       #        cross-compilation, but unfortunately the echo tests do not
13643       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13644       #        `"' quotes if we put them in here... so don't!
13645         lt_int_apple_cc_single_mod=no
13646         output_verbose_link_cmd='echo'
13647         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13648           lt_int_apple_cc_single_mod=yes
13649         fi
13650         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13651           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13652         else
13653         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'
13654       fi
13655       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13656       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13657         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13658           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}'
13659         else
13660           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}'
13661         fi
13662           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}'
13663       hardcode_direct_F77=no
13664       hardcode_automatic_F77=yes
13665       hardcode_shlibpath_var_F77=unsupported
13666       whole_archive_flag_spec_F77='-all_load $convenience'
13667       link_all_deplibs_F77=yes
13668     fi
13669       ;;
13670
13671     dgux*)
13672       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13673       hardcode_libdir_flag_spec_F77='-L$libdir'
13674       hardcode_shlibpath_var_F77=no
13675       ;;
13676
13677     freebsd1*)
13678       ld_shlibs_F77=no
13679       ;;
13680
13681     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13682     # support.  Future versions do this automatically, but an explicit c++rt0.o
13683     # does not break anything, and helps significantly (at the cost of a little
13684     # extra space).
13685     freebsd2.2*)
13686       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13687       hardcode_libdir_flag_spec_F77='-R$libdir'
13688       hardcode_direct_F77=yes
13689       hardcode_shlibpath_var_F77=no
13690       ;;
13691
13692     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13693     freebsd2*)
13694       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13695       hardcode_direct_F77=yes
13696       hardcode_minus_L_F77=yes
13697       hardcode_shlibpath_var_F77=no
13698       ;;
13699
13700     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13701     freebsd*)
13702       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13703       hardcode_libdir_flag_spec_F77='-R$libdir'
13704       hardcode_direct_F77=yes
13705       hardcode_shlibpath_var_F77=no
13706       ;;
13707
13708     hpux9*)
13709       if test "$GCC" = yes; then
13710         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'
13711       else
13712         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'
13713       fi
13714       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13715       hardcode_libdir_separator_F77=:
13716       hardcode_direct_F77=yes
13717
13718       # hardcode_minus_L: Not really in the search PATH,
13719       # but as the default location of the library.
13720       hardcode_minus_L_F77=yes
13721       export_dynamic_flag_spec_F77='${wl}-E'
13722       ;;
13723
13724     hpux10* | hpux11*)
13725       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13726         case "$host_cpu" in
13727         hppa*64*|ia64*)
13728           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13729           ;;
13730         *)
13731           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13732           ;;
13733         esac
13734       else
13735         case "$host_cpu" in
13736         hppa*64*|ia64*)
13737           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13738           ;;
13739         *)
13740           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13741           ;;
13742         esac
13743       fi
13744       if test "$with_gnu_ld" = no; then
13745         case "$host_cpu" in
13746         hppa*64*)
13747           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13748           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13749           hardcode_libdir_separator_F77=:
13750           hardcode_direct_F77=no
13751           hardcode_shlibpath_var_F77=no
13752           ;;
13753         ia64*)
13754           hardcode_libdir_flag_spec_F77='-L$libdir'
13755           hardcode_direct_F77=no
13756           hardcode_shlibpath_var_F77=no
13757
13758           # hardcode_minus_L: Not really in the search PATH,
13759           # but as the default location of the library.
13760           hardcode_minus_L_F77=yes
13761           ;;
13762         *)
13763           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13764           hardcode_libdir_separator_F77=:
13765           hardcode_direct_F77=yes
13766           export_dynamic_flag_spec_F77='${wl}-E'
13767
13768           # hardcode_minus_L: Not really in the search PATH,
13769           # but as the default location of the library.
13770           hardcode_minus_L_F77=yes
13771           ;;
13772         esac
13773       fi
13774       ;;
13775
13776     irix5* | irix6* | nonstopux*)
13777       if test "$GCC" = yes; then
13778         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'
13779       else
13780         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'
13781         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13782       fi
13783       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13784       hardcode_libdir_separator_F77=:
13785       link_all_deplibs_F77=yes
13786       ;;
13787
13788     netbsd*)
13789       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13790         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13791       else
13792         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13793       fi
13794       hardcode_libdir_flag_spec_F77='-R$libdir'
13795       hardcode_direct_F77=yes
13796       hardcode_shlibpath_var_F77=no
13797       ;;
13798
13799     newsos6)
13800       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13801       hardcode_direct_F77=yes
13802       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13803       hardcode_libdir_separator_F77=:
13804       hardcode_shlibpath_var_F77=no
13805       ;;
13806
13807     openbsd*)
13808       hardcode_direct_F77=yes
13809       hardcode_shlibpath_var_F77=no
13810       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13811         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13812         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13813         export_dynamic_flag_spec_F77='${wl}-E'
13814       else
13815        case $host_os in
13816          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13817            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13818            hardcode_libdir_flag_spec_F77='-R$libdir'
13819            ;;
13820          *)
13821            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13822            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13823            ;;
13824        esac
13825       fi
13826       ;;
13827
13828     os2*)
13829       hardcode_libdir_flag_spec_F77='-L$libdir'
13830       hardcode_minus_L_F77=yes
13831       allow_undefined_flag_F77=unsupported
13832       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'
13833       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13834       ;;
13835
13836     osf3*)
13837       if test "$GCC" = yes; then
13838         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13839         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'
13840       else
13841         allow_undefined_flag_F77=' -expect_unresolved \*'
13842         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'
13843       fi
13844       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13845       hardcode_libdir_separator_F77=:
13846       ;;
13847
13848     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13849       if test "$GCC" = yes; then
13850         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13851         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'
13852         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13853       else
13854         allow_undefined_flag_F77=' -expect_unresolved \*'
13855         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'
13856         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~
13857         $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'
13858
13859         # Both c and cxx compiler support -rpath directly
13860         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13861       fi
13862       hardcode_libdir_separator_F77=:
13863       ;;
13864
13865     sco3.2v5*)
13866       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867       hardcode_shlibpath_var_F77=no
13868       export_dynamic_flag_spec_F77='${wl}-Bexport'
13869       runpath_var=LD_RUN_PATH
13870       hardcode_runpath_var=yes
13871       ;;
13872
13873     solaris*)
13874       no_undefined_flag_F77=' -z text'
13875       if test "$GCC" = yes; then
13876         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13877         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13878           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13879       else
13880         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13882         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13883       fi
13884       hardcode_libdir_flag_spec_F77='-R$libdir'
13885       hardcode_shlibpath_var_F77=no
13886       case $host_os in
13887       solaris2.[0-5] | solaris2.[0-5].*) ;;
13888       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13889         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13890       esac
13891       link_all_deplibs_F77=yes
13892       ;;
13893
13894     sunos4*)
13895       if test "x$host_vendor" = xsequent; then
13896         # Use $CC to link under sequent, because it throws in some extra .o
13897         # files that make .init and .fini sections work.
13898         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13899       else
13900         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13901       fi
13902       hardcode_libdir_flag_spec_F77='-L$libdir'
13903       hardcode_direct_F77=yes
13904       hardcode_minus_L_F77=yes
13905       hardcode_shlibpath_var_F77=no
13906       ;;
13907
13908     sysv4)
13909       case $host_vendor in
13910         sni)
13911           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13912           hardcode_direct_F77=yes # is this really true???
13913         ;;
13914         siemens)
13915           ## LD is ld it makes a PLAMLIB
13916           ## CC just makes a GrossModule.
13917           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13918           reload_cmds_F77='$CC -r -o $output$reload_objs'
13919           hardcode_direct_F77=no
13920         ;;
13921         motorola)
13922           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13923           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13924         ;;
13925       esac
13926       runpath_var='LD_RUN_PATH'
13927       hardcode_shlibpath_var_F77=no
13928       ;;
13929
13930     sysv4.3*)
13931       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932       hardcode_shlibpath_var_F77=no
13933       export_dynamic_flag_spec_F77='-Bexport'
13934       ;;
13935
13936     sysv4*MP*)
13937       if test -d /usr/nec; then
13938         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13939         hardcode_shlibpath_var_F77=no
13940         runpath_var=LD_RUN_PATH
13941         hardcode_runpath_var=yes
13942         ld_shlibs_F77=yes
13943       fi
13944       ;;
13945
13946     sysv4.2uw2*)
13947       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13948       hardcode_direct_F77=yes
13949       hardcode_minus_L_F77=no
13950       hardcode_shlibpath_var_F77=no
13951       hardcode_runpath_var=yes
13952       runpath_var=LD_RUN_PATH
13953       ;;
13954
13955    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13956       no_undefined_flag_F77='${wl}-z ${wl}text'
13957       if test "$GCC" = yes; then
13958         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13959       else
13960         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13961       fi
13962       runpath_var='LD_RUN_PATH'
13963       hardcode_shlibpath_var_F77=no
13964       ;;
13965
13966     sysv5*)
13967       no_undefined_flag_F77=' -z text'
13968       # $CC -shared without GNU ld will not create a library from C++
13969       # object files and a static libstdc++, better avoid it by now
13970       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13972                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13973       hardcode_libdir_flag_spec_F77=
13974       hardcode_shlibpath_var_F77=no
13975       runpath_var='LD_RUN_PATH'
13976       ;;
13977
13978     uts4*)
13979       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13980       hardcode_libdir_flag_spec_F77='-L$libdir'
13981       hardcode_shlibpath_var_F77=no
13982       ;;
13983
13984     *)
13985       ld_shlibs_F77=no
13986       ;;
13987     esac
13988   fi
13989
13990 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13991 echo "${ECHO_T}$ld_shlibs_F77" >&6
13992 test "$ld_shlibs_F77" = no && can_build_shared=no
13993
13994 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13995 if test "$GCC" = yes; then
13996   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13997 fi
13998
13999 #
14000 # Do we need to explicitly link libc?
14001 #
14002 case "x$archive_cmds_need_lc_F77" in
14003 x|xyes)
14004   # Assume -lc should be added
14005   archive_cmds_need_lc_F77=yes
14006
14007   if test "$enable_shared" = yes && test "$GCC" = yes; then
14008     case $archive_cmds_F77 in
14009     *'~'*)
14010       # FIXME: we may have to deal with multi-command sequences.
14011       ;;
14012     '$CC '*)
14013       # Test whether the compiler implicitly links with -lc since on some
14014       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14015       # to ld, don't add -lc before -lgcc.
14016       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14017 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14018       $rm conftest*
14019       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14020
14021       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14022   (eval $ac_compile) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); } 2>conftest.err; then
14026         soname=conftest
14027         lib=conftest
14028         libobjs=conftest.$ac_objext
14029         deplibs=
14030         wl=$lt_prog_compiler_wl_F77
14031         compiler_flags=-v
14032         linker_flags=-v
14033         verstring=
14034         output_objdir=.
14035         libname=conftest
14036         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14037         allow_undefined_flag_F77=
14038         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14039   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); }
14043         then
14044           archive_cmds_need_lc_F77=no
14045         else
14046           archive_cmds_need_lc_F77=yes
14047         fi
14048         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14049       else
14050         cat conftest.err 1>&5
14051       fi
14052       $rm conftest*
14053       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14054 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14055       ;;
14056     esac
14057   fi
14058   ;;
14059 esac
14060
14061 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14062 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14063 hardcode_action_F77=
14064 if test -n "$hardcode_libdir_flag_spec_F77" || \
14065    test -n "$runpath_var F77" || \
14066    test "X$hardcode_automatic_F77"="Xyes" ; then
14067
14068   # We can hardcode non-existant directories.
14069   if test "$hardcode_direct_F77" != no &&
14070      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14071      # have to relink, otherwise we might link with an installed library
14072      # when we should be linking with a yet-to-be-installed one
14073      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14074      test "$hardcode_minus_L_F77" != no; then
14075     # Linking always hardcodes the temporary library directory.
14076     hardcode_action_F77=relink
14077   else
14078     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14079     hardcode_action_F77=immediate
14080   fi
14081 else
14082   # We cannot hardcode anything, or else we can only hardcode existing
14083   # directories.
14084   hardcode_action_F77=unsupported
14085 fi
14086 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14087 echo "${ECHO_T}$hardcode_action_F77" >&6
14088
14089 if test "$hardcode_action_F77" = relink; then
14090   # Fast installation is not supported
14091   enable_fast_install=no
14092 elif test "$shlibpath_overrides_runpath" = yes ||
14093      test "$enable_shared" = no; then
14094   # Fast installation is not necessary
14095   enable_fast_install=needless
14096 fi
14097
14098 striplib=
14099 old_striplib=
14100 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14101 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14102 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14103   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14104   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14105   echo "$as_me:$LINENO: result: yes" >&5
14106 echo "${ECHO_T}yes" >&6
14107 else
14108 # FIXME - insert some real tests, host_os isn't really good enough
14109   case $host_os in
14110    darwin*)
14111        if test -n "$STRIP" ; then
14112          striplib="$STRIP -x"
14113          echo "$as_me:$LINENO: result: yes" >&5
14114 echo "${ECHO_T}yes" >&6
14115        else
14116   echo "$as_me:$LINENO: result: no" >&5
14117 echo "${ECHO_T}no" >&6
14118 fi
14119        ;;
14120    *)
14121   echo "$as_me:$LINENO: result: no" >&5
14122 echo "${ECHO_T}no" >&6
14123     ;;
14124   esac
14125 fi
14126
14127 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14128 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14129 library_names_spec=
14130 libname_spec='lib$name'
14131 soname_spec=
14132 shrext=".so"
14133 postinstall_cmds=
14134 postuninstall_cmds=
14135 finish_cmds=
14136 finish_eval=
14137 shlibpath_var=
14138 shlibpath_overrides_runpath=unknown
14139 version_type=none
14140 dynamic_linker="$host_os ld.so"
14141 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14142 if test "$GCC" = yes; then
14143   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14144   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14145     # if the path contains ";" then we assume it to be the separator
14146     # otherwise default to the standard path separator (i.e. ":") - it is
14147     # assumed that no part of a normal pathname contains ";" but that should
14148     # okay in the real world where ";" in dirpaths is itself problematic.
14149     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14150   else
14151     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14152   fi
14153 else
14154   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14155 fi
14156 need_lib_prefix=unknown
14157 hardcode_into_libs=no
14158
14159 # when you set need_version to no, make sure it does not cause -set_version
14160 # flags to be left without arguments
14161 need_version=unknown
14162
14163 case $host_os in
14164 aix3*)
14165   version_type=linux
14166   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14167   shlibpath_var=LIBPATH
14168
14169   # AIX 3 has no versioning support, so we append a major version to the name.
14170   soname_spec='${libname}${release}${shared_ext}$major'
14171   ;;
14172
14173 aix4* | aix5*)
14174   version_type=linux
14175   need_lib_prefix=no
14176   need_version=no
14177   hardcode_into_libs=yes
14178   if test "$host_cpu" = ia64; then
14179     # AIX 5 supports IA64
14180     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14181     shlibpath_var=LD_LIBRARY_PATH
14182   else
14183     # With GCC up to 2.95.x, collect2 would create an import file
14184     # for dependence libraries.  The import file would start with
14185     # the line `#! .'.  This would cause the generated library to
14186     # depend on `.', always an invalid library.  This was fixed in
14187     # development snapshots of GCC prior to 3.0.
14188     case $host_os in
14189       aix4 | aix4.[01] | aix4.[01].*)
14190       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14191            echo ' yes '
14192            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14193         :
14194       else
14195         can_build_shared=no
14196       fi
14197       ;;
14198     esac
14199     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14200     # soname into executable. Probably we can add versioning support to
14201     # collect2, so additional links can be useful in future.
14202     if test "$aix_use_runtimelinking" = yes; then
14203       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14204       # instead of lib<name>.a to let people know that these are not
14205       # typical AIX shared libraries.
14206       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14207     else
14208       # We preserve .a as extension for shared libraries through AIX4.2
14209       # and later when we are not doing run time linking.
14210       library_names_spec='${libname}${release}.a $libname.a'
14211       soname_spec='${libname}${release}${shared_ext}$major'
14212     fi
14213     shlibpath_var=LIBPATH
14214   fi
14215   ;;
14216
14217 amigaos*)
14218   library_names_spec='$libname.ixlibrary $libname.a'
14219   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14220   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'
14221   ;;
14222
14223 beos*)
14224   library_names_spec='${libname}${shared_ext}'
14225   dynamic_linker="$host_os ld.so"
14226   shlibpath_var=LIBRARY_PATH
14227   ;;
14228
14229 bsdi4*)
14230   version_type=linux
14231   need_version=no
14232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233   soname_spec='${libname}${release}${shared_ext}$major'
14234   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14235   shlibpath_var=LD_LIBRARY_PATH
14236   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14237   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14238   # the default ld.so.conf also contains /usr/contrib/lib and
14239   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14240   # libtool to hard-code these into programs
14241   ;;
14242
14243 cygwin* | mingw* | pw32*)
14244   version_type=windows
14245   shrext=".dll"
14246   need_version=no
14247   need_lib_prefix=no
14248
14249   case $GCC,$host_os in
14250   yes,cygwin* | yes,mingw* | yes,pw32*)
14251     library_names_spec='$libname.dll.a'
14252     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14253     postinstall_cmds='base_file=`basename \${file}`~
14254       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14255       dldir=$destdir/`dirname \$dlpath`~
14256       test -d \$dldir || mkdir -p \$dldir~
14257       $install_prog $dir/$dlname \$dldir/$dlname'
14258     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14259       dlpath=$dir/\$dldll~
14260        $rm \$dlpath'
14261     shlibpath_overrides_runpath=yes
14262
14263     case $host_os in
14264     cygwin*)
14265       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14266       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14267       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14268       ;;
14269     mingw*)
14270       # MinGW DLLs use traditional 'lib' prefix
14271       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14272       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14273       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14274         # It is most probably a Windows format PATH printed by
14275         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14276         # path with ; separators, and with drive letters. We can handle the
14277         # drive letters (cygwin fileutils understands them), so leave them,
14278         # especially as we might pass files found there to a mingw objdump,
14279         # which wouldn't understand a cygwinified path. Ahh.
14280         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14281       else
14282         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14283       fi
14284       ;;
14285     pw32*)
14286       # pw32 DLLs use 'pw' prefix rather than 'lib'
14287       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14288       ;;
14289     esac
14290     ;;
14291
14292   *)
14293     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14294     ;;
14295   esac
14296   dynamic_linker='Win32 ld.exe'
14297   # FIXME: first we should search . and the directory the executable is in
14298   shlibpath_var=PATH
14299   ;;
14300
14301 darwin* | rhapsody*)
14302   dynamic_linker="$host_os dyld"
14303   version_type=darwin
14304   need_lib_prefix=no
14305   need_version=no
14306   # FIXME: Relying on posixy $() will cause problems for
14307   #        cross-compilation, but unfortunately the echo tests do not
14308   #        yet detect zsh echo's removal of \ escapes.
14309   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14310   soname_spec='${libname}${release}${major}$shared_ext'
14311   shlibpath_overrides_runpath=yes
14312   shlibpath_var=DYLD_LIBRARY_PATH
14313   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14314   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14315   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14316   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"`
14317   fi
14318   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14319   ;;
14320
14321 dgux*)
14322   version_type=linux
14323   need_lib_prefix=no
14324   need_version=no
14325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14326   soname_spec='${libname}${release}${shared_ext}$major'
14327   shlibpath_var=LD_LIBRARY_PATH
14328   ;;
14329
14330 freebsd1*)
14331   dynamic_linker=no
14332   ;;
14333
14334 freebsd*)
14335   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14336   version_type=freebsd-$objformat
14337   case $version_type in
14338     freebsd-elf*)
14339       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14340       need_version=no
14341       need_lib_prefix=no
14342       ;;
14343     freebsd-*)
14344       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14345       need_version=yes
14346       ;;
14347   esac
14348   shlibpath_var=LD_LIBRARY_PATH
14349   case $host_os in
14350   freebsd2*)
14351     shlibpath_overrides_runpath=yes
14352     ;;
14353   freebsd3.01* | freebsdelf3.01*)
14354     shlibpath_overrides_runpath=yes
14355     hardcode_into_libs=yes
14356     ;;
14357   *) # from 3.2 on
14358     shlibpath_overrides_runpath=no
14359     hardcode_into_libs=yes
14360     ;;
14361   esac
14362   ;;
14363
14364 gnu*)
14365   version_type=linux
14366   need_lib_prefix=no
14367   need_version=no
14368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14369   soname_spec='${libname}${release}${shared_ext}$major'
14370   shlibpath_var=LD_LIBRARY_PATH
14371   hardcode_into_libs=yes
14372   ;;
14373
14374 hpux9* | hpux10* | hpux11*)
14375   # Give a soname corresponding to the major version so that dld.sl refuses to
14376   # link against other versions.
14377   version_type=sunos
14378   need_lib_prefix=no
14379   need_version=no
14380   case "$host_cpu" in
14381   ia64*)
14382     shrext='.so'
14383     hardcode_into_libs=yes
14384     dynamic_linker="$host_os dld.so"
14385     shlibpath_var=LD_LIBRARY_PATH
14386     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14388     soname_spec='${libname}${release}${shared_ext}$major'
14389     if test "X$HPUX_IA64_MODE" = X32; then
14390       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14391     else
14392       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14393     fi
14394     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14395     ;;
14396    hppa*64*)
14397      shrext='.sl'
14398      hardcode_into_libs=yes
14399      dynamic_linker="$host_os dld.sl"
14400      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14401      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14402      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403      soname_spec='${libname}${release}${shared_ext}$major'
14404      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14405      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14406      ;;
14407    *)
14408     shrext='.sl'
14409     dynamic_linker="$host_os dld.sl"
14410     shlibpath_var=SHLIB_PATH
14411     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14412     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413     soname_spec='${libname}${release}${shared_ext}$major'
14414     ;;
14415   esac
14416   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14417   postinstall_cmds='chmod 555 $lib'
14418   ;;
14419
14420 irix5* | irix6* | nonstopux*)
14421   case $host_os in
14422     nonstopux*) version_type=nonstopux ;;
14423     *)
14424         if test "$lt_cv_prog_gnu_ld" = yes; then
14425                 version_type=linux
14426         else
14427                 version_type=irix
14428         fi ;;
14429   esac
14430   need_lib_prefix=no
14431   need_version=no
14432   soname_spec='${libname}${release}${shared_ext}$major'
14433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14434   case $host_os in
14435   irix5* | nonstopux*)
14436     libsuff= shlibsuff=
14437     ;;
14438   *)
14439     case $LD in # libtool.m4 will add one of these switches to LD
14440     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14441       libsuff= shlibsuff= libmagic=32-bit;;
14442     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14443       libsuff=32 shlibsuff=N32 libmagic=N32;;
14444     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14445       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14446     *) libsuff= shlibsuff= libmagic=never-match;;
14447     esac
14448     ;;
14449   esac
14450   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14451   shlibpath_overrides_runpath=no
14452   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14453   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14454   hardcode_into_libs=yes
14455   ;;
14456
14457 # No shared lib support for Linux oldld, aout, or coff.
14458 linux*oldld* | linux*aout* | linux*coff*)
14459   dynamic_linker=no
14460   ;;
14461
14462 # This must be Linux ELF.
14463 linux*)
14464   version_type=linux
14465   need_lib_prefix=no
14466   need_version=no
14467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468   soname_spec='${libname}${release}${shared_ext}$major'
14469   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14470   shlibpath_var=LD_LIBRARY_PATH
14471   shlibpath_overrides_runpath=no
14472   # This implies no fast_install, which is unacceptable.
14473   # Some rework will be needed to allow for fast_install
14474   # before this can be enabled.
14475   hardcode_into_libs=yes
14476
14477   # We used to test for /lib/ld.so.1 and disable shared libraries on
14478   # powerpc, because MkLinux only supported shared libraries with the
14479   # GNU dynamic linker.  Since this was broken with cross compilers,
14480   # most powerpc-linux boxes support dynamic linking these days and
14481   # people can always --disable-shared, the test was removed, and we
14482   # assume the GNU/Linux dynamic linker is in use.
14483   dynamic_linker='GNU/Linux ld.so'
14484   ;;
14485
14486 netbsd*)
14487   version_type=sunos
14488   need_lib_prefix=no
14489   need_version=no
14490   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14491     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14492     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14493     dynamic_linker='NetBSD (a.out) ld.so'
14494   else
14495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14496     soname_spec='${libname}${release}${shared_ext}$major'
14497     dynamic_linker='NetBSD ld.elf_so'
14498   fi
14499   shlibpath_var=LD_LIBRARY_PATH
14500   shlibpath_overrides_runpath=yes
14501   hardcode_into_libs=yes
14502   ;;
14503
14504 newsos6)
14505   version_type=linux
14506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507   shlibpath_var=LD_LIBRARY_PATH
14508   shlibpath_overrides_runpath=yes
14509   ;;
14510
14511 nto-qnx)
14512   version_type=linux
14513   need_lib_prefix=no
14514   need_version=no
14515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516   soname_spec='${libname}${release}${shared_ext}$major'
14517   shlibpath_var=LD_LIBRARY_PATH
14518   shlibpath_overrides_runpath=yes
14519   ;;
14520
14521 openbsd*)
14522   version_type=sunos
14523   need_lib_prefix=no
14524   need_version=no
14525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14526   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14527   shlibpath_var=LD_LIBRARY_PATH
14528   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14529     case $host_os in
14530       openbsd2.[89] | openbsd2.[89].*)
14531         shlibpath_overrides_runpath=no
14532         ;;
14533       *)
14534         shlibpath_overrides_runpath=yes
14535         ;;
14536       esac
14537   else
14538     shlibpath_overrides_runpath=yes
14539   fi
14540   ;;
14541
14542 os2*)
14543   libname_spec='$name'
14544   shrext=".dll"
14545   need_lib_prefix=no
14546   library_names_spec='$libname${shared_ext} $libname.a'
14547   dynamic_linker='OS/2 ld.exe'
14548   shlibpath_var=LIBPATH
14549   ;;
14550
14551 osf3* | osf4* | osf5*)
14552   version_type=osf
14553   need_lib_prefix=no
14554   need_version=no
14555   soname_spec='${libname}${release}${shared_ext}$major'
14556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557   shlibpath_var=LD_LIBRARY_PATH
14558   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14559   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14560   ;;
14561
14562 sco3.2v5*)
14563   version_type=osf
14564   soname_spec='${libname}${release}${shared_ext}$major'
14565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566   shlibpath_var=LD_LIBRARY_PATH
14567   ;;
14568
14569 solaris*)
14570   version_type=linux
14571   need_lib_prefix=no
14572   need_version=no
14573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574   soname_spec='${libname}${release}${shared_ext}$major'
14575   shlibpath_var=LD_LIBRARY_PATH
14576   shlibpath_overrides_runpath=yes
14577   hardcode_into_libs=yes
14578   # ldd complains unless libraries are executable
14579   postinstall_cmds='chmod +x $lib'
14580   ;;
14581
14582 sunos4*)
14583   version_type=sunos
14584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14585   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14586   shlibpath_var=LD_LIBRARY_PATH
14587   shlibpath_overrides_runpath=yes
14588   if test "$with_gnu_ld" = yes; then
14589     need_lib_prefix=no
14590   fi
14591   need_version=yes
14592   ;;
14593
14594 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14595   version_type=linux
14596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597   soname_spec='${libname}${release}${shared_ext}$major'
14598   shlibpath_var=LD_LIBRARY_PATH
14599   case $host_vendor in
14600     sni)
14601       shlibpath_overrides_runpath=no
14602       need_lib_prefix=no
14603       export_dynamic_flag_spec='${wl}-Blargedynsym'
14604       runpath_var=LD_RUN_PATH
14605       ;;
14606     siemens)
14607       need_lib_prefix=no
14608       ;;
14609     motorola)
14610       need_lib_prefix=no
14611       need_version=no
14612       shlibpath_overrides_runpath=no
14613       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14614       ;;
14615   esac
14616   ;;
14617
14618 sysv4*MP*)
14619   if test -d /usr/nec ;then
14620     version_type=linux
14621     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14622     soname_spec='$libname${shared_ext}.$major'
14623     shlibpath_var=LD_LIBRARY_PATH
14624   fi
14625   ;;
14626
14627 uts4*)
14628   version_type=linux
14629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630   soname_spec='${libname}${release}${shared_ext}$major'
14631   shlibpath_var=LD_LIBRARY_PATH
14632   ;;
14633
14634 *)
14635   dynamic_linker=no
14636   ;;
14637 esac
14638 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14639 echo "${ECHO_T}$dynamic_linker" >&6
14640 test "$dynamic_linker" = no && can_build_shared=no
14641
14642
14643 # The else clause should only fire when bootstrapping the
14644 # libtool distribution, otherwise you forgot to ship ltmain.sh
14645 # with your package, and you will get complaints that there are
14646 # no rules to generate ltmain.sh.
14647 if test -f "$ltmain"; then
14648   # See if we are running on zsh, and set the options which allow our commands through
14649   # without removal of \ escapes.
14650   if test -n "${ZSH_VERSION+set}" ; then
14651     setopt NO_GLOB_SUBST
14652   fi
14653   # Now quote all the things that may contain metacharacters while being
14654   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14655   # variables and quote the copies for generation of the libtool script.
14656   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14657     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14658     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14659     deplibs_check_method reload_flag reload_cmds need_locks \
14660     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14661     lt_cv_sys_global_symbol_to_c_name_address \
14662     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14663     old_postinstall_cmds old_postuninstall_cmds \
14664     compiler_F77 \
14665     CC_F77 \
14666     LD_F77 \
14667     lt_prog_compiler_wl_F77 \
14668     lt_prog_compiler_pic_F77 \
14669     lt_prog_compiler_static_F77 \
14670     lt_prog_compiler_no_builtin_flag_F77 \
14671     export_dynamic_flag_spec_F77 \
14672     thread_safe_flag_spec_F77 \
14673     whole_archive_flag_spec_F77 \
14674     enable_shared_with_static_runtimes_F77 \
14675     old_archive_cmds_F77 \
14676     old_archive_from_new_cmds_F77 \
14677     predep_objects_F77 \
14678     postdep_objects_F77 \
14679     predeps_F77 \
14680     postdeps_F77 \
14681     compiler_lib_search_path_F77 \
14682     archive_cmds_F77 \
14683     archive_expsym_cmds_F77 \
14684     postinstall_cmds_F77 \
14685     postuninstall_cmds_F77 \
14686     old_archive_from_expsyms_cmds_F77 \
14687     allow_undefined_flag_F77 \
14688     no_undefined_flag_F77 \
14689     export_symbols_cmds_F77 \
14690     hardcode_libdir_flag_spec_F77 \
14691     hardcode_libdir_flag_spec_ld_F77 \
14692     hardcode_libdir_separator_F77 \
14693     hardcode_automatic_F77 \
14694     module_cmds_F77 \
14695     module_expsym_cmds_F77 \
14696     lt_cv_prog_compiler_c_o_F77 \
14697     exclude_expsyms_F77 \
14698     include_expsyms_F77; do
14699
14700     case $var in
14701     old_archive_cmds_F77 | \
14702     old_archive_from_new_cmds_F77 | \
14703     archive_cmds_F77 | \
14704     archive_expsym_cmds_F77 | \
14705     module_cmds_F77 | \
14706     module_expsym_cmds_F77 | \
14707     old_archive_from_expsyms_cmds_F77 | \
14708     export_symbols_cmds_F77 | \
14709     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14710     postinstall_cmds | postuninstall_cmds | \
14711     old_postinstall_cmds | old_postuninstall_cmds | \
14712     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14713       # Double-quote double-evaled strings.
14714       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14715       ;;
14716     *)
14717       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14718       ;;
14719     esac
14720   done
14721
14722   case $lt_echo in
14723   *'\$0 --fallback-echo"')
14724     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14725     ;;
14726   esac
14727
14728 cfgfile="$ofile"
14729
14730   cat <<__EOF__ >> "$cfgfile"
14731 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14732
14733 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14734
14735 # Shell to use when invoking shell scripts.
14736 SHELL=$lt_SHELL
14737
14738 # Whether or not to build shared libraries.
14739 build_libtool_libs=$enable_shared
14740
14741 # Whether or not to build static libraries.
14742 build_old_libs=$enable_static
14743
14744 # Whether or not to add -lc for building shared libraries.
14745 build_libtool_need_lc=$archive_cmds_need_lc_F77
14746
14747 # Whether or not to disallow shared libs when runtime libs are static
14748 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14749
14750 # Whether or not to optimize for fast installation.
14751 fast_install=$enable_fast_install
14752
14753 # The host system.
14754 host_alias=$host_alias
14755 host=$host
14756
14757 # An echo program that does not interpret backslashes.
14758 echo=$lt_echo
14759
14760 # The archiver.
14761 AR=$lt_AR
14762 AR_FLAGS=$lt_AR_FLAGS
14763
14764 # A C compiler.
14765 LTCC=$lt_LTCC
14766
14767 # A language-specific compiler.
14768 CC=$lt_compiler_F77
14769
14770 # Is the compiler the GNU C compiler?
14771 with_gcc=$GCC_F77
14772
14773 # An ERE matcher.
14774 EGREP=$lt_EGREP
14775
14776 # The linker used to build libraries.
14777 LD=$lt_LD_F77
14778
14779 # Whether we need hard or soft links.
14780 LN_S=$lt_LN_S
14781
14782 # A BSD-compatible nm program.
14783 NM=$lt_NM
14784
14785 # A symbol stripping program
14786 STRIP=$STRIP
14787
14788 # Used to examine libraries when file_magic_cmd begins "file"
14789 MAGIC_CMD=$MAGIC_CMD
14790
14791 # Used on cygwin: DLL creation program.
14792 DLLTOOL="$DLLTOOL"
14793
14794 # Used on cygwin: object dumper.
14795 OBJDUMP="$OBJDUMP"
14796
14797 # Used on cygwin: assembler.
14798 AS="$AS"
14799
14800 # The name of the directory that contains temporary libtool files.
14801 objdir=$objdir
14802
14803 # How to create reloadable object files.
14804 reload_flag=$lt_reload_flag
14805 reload_cmds=$lt_reload_cmds
14806
14807 # How to pass a linker flag through the compiler.
14808 wl=$lt_lt_prog_compiler_wl_F77
14809
14810 # Object file suffix (normally "o").
14811 objext="$ac_objext"
14812
14813 # Old archive suffix (normally "a").
14814 libext="$libext"
14815
14816 # Shared library suffix (normally ".so").
14817 shrext='$shrext'
14818
14819 # Executable file suffix (normally "").
14820 exeext="$exeext"
14821
14822 # Additional compiler flags for building library objects.
14823 pic_flag=$lt_lt_prog_compiler_pic_F77
14824 pic_mode=$pic_mode
14825
14826 # What is the maximum length of a command?
14827 max_cmd_len=$lt_cv_sys_max_cmd_len
14828
14829 # Does compiler simultaneously support -c and -o options?
14830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14831
14832 # Must we lock files when doing compilation ?
14833 need_locks=$lt_need_locks
14834
14835 # Do we need the lib prefix for modules?
14836 need_lib_prefix=$need_lib_prefix
14837
14838 # Do we need a version for libraries?
14839 need_version=$need_version
14840
14841 # Whether dlopen is supported.
14842 dlopen_support=$enable_dlopen
14843
14844 # Whether dlopen of programs is supported.
14845 dlopen_self=$enable_dlopen_self
14846
14847 # Whether dlopen of statically linked programs is supported.
14848 dlopen_self_static=$enable_dlopen_self_static
14849
14850 # Compiler flag to prevent dynamic linking.
14851 link_static_flag=$lt_lt_prog_compiler_static_F77
14852
14853 # Compiler flag to turn off builtin functions.
14854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14855
14856 # Compiler flag to allow reflexive dlopens.
14857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14858
14859 # Compiler flag to generate shared objects directly from archives.
14860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14861
14862 # Compiler flag to generate thread-safe objects.
14863 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14864
14865 # Library versioning type.
14866 version_type=$version_type
14867
14868 # Format of library name prefix.
14869 libname_spec=$lt_libname_spec
14870
14871 # List of archive names.  First name is the real one, the rest are links.
14872 # The last name is the one that the linker finds with -lNAME.
14873 library_names_spec=$lt_library_names_spec
14874
14875 # The coded name of the library, if different from the real name.
14876 soname_spec=$lt_soname_spec
14877
14878 # Commands used to build and install an old-style archive.
14879 RANLIB=$lt_RANLIB
14880 old_archive_cmds=$lt_old_archive_cmds_F77
14881 old_postinstall_cmds=$lt_old_postinstall_cmds
14882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14883
14884 # Create an old-style archive from a shared archive.
14885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14886
14887 # Create a temporary old-style archive to link instead of a shared archive.
14888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14889
14890 # Commands used to build and install a shared archive.
14891 archive_cmds=$lt_archive_cmds_F77
14892 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14893 postinstall_cmds=$lt_postinstall_cmds
14894 postuninstall_cmds=$lt_postuninstall_cmds
14895
14896 # Commands used to build a loadable module (assumed same as above if empty)
14897 module_cmds=$lt_module_cmds_F77
14898 module_expsym_cmds=$lt_module_expsym_cmds_F77
14899
14900 # Commands to strip libraries.
14901 old_striplib=$lt_old_striplib
14902 striplib=$lt_striplib
14903
14904 # Dependencies to place before the objects being linked to create a
14905 # shared library.
14906 predep_objects=$lt_predep_objects_F77
14907
14908 # Dependencies to place after the objects being linked to create a
14909 # shared library.
14910 postdep_objects=$lt_postdep_objects_F77
14911
14912 # Dependencies to place before the objects being linked to create a
14913 # shared library.
14914 predeps=$lt_predeps_F77
14915
14916 # Dependencies to place after the objects being linked to create a
14917 # shared library.
14918 postdeps=$lt_postdeps_F77
14919
14920 # The library search path used internally by the compiler when linking
14921 # a shared library.
14922 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14923
14924 # Method to check whether dependent libraries are shared objects.
14925 deplibs_check_method=$lt_deplibs_check_method
14926
14927 # Command to use when deplibs_check_method == file_magic.
14928 file_magic_cmd=$lt_file_magic_cmd
14929
14930 # Flag that allows shared libraries with undefined symbols to be built.
14931 allow_undefined_flag=$lt_allow_undefined_flag_F77
14932
14933 # Flag that forces no undefined symbols.
14934 no_undefined_flag=$lt_no_undefined_flag_F77
14935
14936 # Commands used to finish a libtool library installation in a directory.
14937 finish_cmds=$lt_finish_cmds
14938
14939 # Same as above, but a single script fragment to be evaled but not shown.
14940 finish_eval=$lt_finish_eval
14941
14942 # Take the output of nm and produce a listing of raw symbols and C names.
14943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14944
14945 # Transform the output of nm in a proper C declaration
14946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14947
14948 # Transform the output of nm in a C name address pair
14949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14950
14951 # This is the shared library runtime path variable.
14952 runpath_var=$runpath_var
14953
14954 # This is the shared library path variable.
14955 shlibpath_var=$shlibpath_var
14956
14957 # Is shlibpath searched before the hard-coded library search path?
14958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14959
14960 # How to hardcode a shared library path into an executable.
14961 hardcode_action=$hardcode_action_F77
14962
14963 # Whether we should hardcode library paths into libraries.
14964 hardcode_into_libs=$hardcode_into_libs
14965
14966 # Flag to hardcode \$libdir into a binary during linking.
14967 # This must work even if \$libdir does not exist.
14968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14969
14970 # If ld is used when linking, flag to hardcode \$libdir into
14971 # a binary during linking. This must work even if \$libdir does
14972 # not exist.
14973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14974
14975 # Whether we need a single -rpath flag with a separated argument.
14976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14977
14978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14979 # resulting binary.
14980 hardcode_direct=$hardcode_direct_F77
14981
14982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14983 # resulting binary.
14984 hardcode_minus_L=$hardcode_minus_L_F77
14985
14986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14987 # the resulting binary.
14988 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14989
14990 # Set to yes if building a shared library automatically hardcodes DIR into the library
14991 # and all subsequent libraries and executables linked against it.
14992 hardcode_automatic=$hardcode_automatic_F77
14993
14994 # Variables whose values should be saved in libtool wrapper scripts and
14995 # restored at relink time.
14996 variables_saved_for_relink="$variables_saved_for_relink"
14997
14998 # Whether libtool must link a program against all its dependency libraries.
14999 link_all_deplibs=$link_all_deplibs_F77
15000
15001 # Compile-time system search path for libraries
15002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15003
15004 # Run-time system search path for libraries
15005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15006
15007 # Fix the shell variable \$srcfile for the compiler.
15008 fix_srcfile_path="$fix_srcfile_path_F77"
15009
15010 # Set to yes if exported symbols are required.
15011 always_export_symbols=$always_export_symbols_F77
15012
15013 # The commands to list exported symbols.
15014 export_symbols_cmds=$lt_export_symbols_cmds_F77
15015
15016 # The commands to extract the exported symbol list from a shared archive.
15017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15018
15019 # Symbols that should not be listed in the preloaded symbols.
15020 exclude_expsyms=$lt_exclude_expsyms_F77
15021
15022 # Symbols that must always be exported.
15023 include_expsyms=$lt_include_expsyms_F77
15024
15025 # ### END LIBTOOL TAG CONFIG: $tagname
15026
15027 __EOF__
15028
15029
15030 else
15031   # If there is no Makefile yet, we rely on a make rule to execute
15032   # `config.status --recheck' to rerun these tests and create the
15033   # libtool script then.
15034   test -f Makefile && make "$ltmain"
15035 fi
15036
15037
15038 ac_ext=c
15039 ac_cpp='$CPP $CPPFLAGS'
15040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15043
15044 CC="$lt_save_CC"
15045
15046         else
15047           tagname=""
15048         fi
15049         ;;
15050
15051       GCJ)
15052         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15053
15054
15055
15056 # Source file extension for Java test sources.
15057 ac_ext=java
15058
15059 # Object file extension for compiled Java test sources.
15060 objext=o
15061 objext_GCJ=$objext
15062
15063 # Code to be used in simple compile tests
15064 lt_simple_compile_test_code="class foo {}\n"
15065
15066 # Code to be used in simple link tests
15067 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15068
15069 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15070
15071 # If no C compiler was specified, use CC.
15072 LTCC=${LTCC-"$CC"}
15073
15074 # Allow CC to be a program name with arguments.
15075 compiler=$CC
15076
15077
15078 # Allow CC to be a program name with arguments.
15079 lt_save_CC="$CC"
15080 CC=${GCJ-"gcj"}
15081 compiler=$CC
15082 compiler_GCJ=$CC
15083
15084 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15085 archive_cmds_need_lc_GCJ=no
15086
15087 ## CAVEAT EMPTOR:
15088 ## There is no encapsulation within the following macros, do not change
15089 ## the running order or otherwise move them around unless you know exactly
15090 ## what you are doing...
15091
15092 lt_prog_compiler_no_builtin_flag_GCJ=
15093
15094 if test "$GCC" = yes; then
15095   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15096
15097   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15098 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15099 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15100   echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102   lt_cv_prog_compiler_rtti_exceptions=no
15103   ac_outfile=conftest.$ac_objext
15104    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15105    lt_compiler_flag="-fno-rtti -fno-exceptions"
15106    # Insert the option either (1) after the last *FLAGS variable, or
15107    # (2) before a word containing "conftest.", or (3) at the end.
15108    # Note that $ac_compile itself does not contain backslashes and begins
15109    # with a dollar sign (not a hyphen), so the echo should work correctly.
15110    # The option is referenced via a variable to avoid confusing sed.
15111    lt_compile=`echo "$ac_compile" | $SED \
15112    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15113    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15114    -e 's:$: $lt_compiler_flag:'`
15115    (eval echo "\"\$as_me:15115: $lt_compile\"" >&5)
15116    (eval "$lt_compile" 2>conftest.err)
15117    ac_status=$?
15118    cat conftest.err >&5
15119    echo "$as_me:15119: \$? = $ac_status" >&5
15120    if (exit $ac_status) && test -s "$ac_outfile"; then
15121      # The compiler can only warn and ignore the option if not recognized
15122      # So say no if there are warnings
15123      if test ! -s conftest.err; then
15124        lt_cv_prog_compiler_rtti_exceptions=yes
15125      fi
15126    fi
15127    $rm conftest*
15128
15129 fi
15130 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15131 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15132
15133 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15134     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15135 else
15136     :
15137 fi
15138
15139 fi
15140
15141 lt_prog_compiler_wl_GCJ=
15142 lt_prog_compiler_pic_GCJ=
15143 lt_prog_compiler_static_GCJ=
15144
15145 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15146 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15147
15148   if test "$GCC" = yes; then
15149     lt_prog_compiler_wl_GCJ='-Wl,'
15150     lt_prog_compiler_static_GCJ='-static'
15151
15152     case $host_os in
15153       aix*)
15154       # All AIX code is PIC.
15155       if test "$host_cpu" = ia64; then
15156         # AIX 5 now supports IA64 processor
15157         lt_prog_compiler_static_GCJ='-Bstatic'
15158       fi
15159       ;;
15160
15161     amigaos*)
15162       # FIXME: we need at least 68020 code to build shared libraries, but
15163       # adding the `-m68020' flag to GCC prevents building anything better,
15164       # like `-m68040'.
15165       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15166       ;;
15167
15168     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15169       # PIC is the default for these OSes.
15170       ;;
15171
15172     mingw* | pw32* | os2*)
15173       # This hack is so that the source file can tell whether it is being
15174       # built for inclusion in a dll (and should export symbols for example).
15175       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15176       ;;
15177
15178     darwin* | rhapsody*)
15179       # PIC is the default on this platform
15180       # Common symbols not allowed in MH_DYLIB files
15181       lt_prog_compiler_pic_GCJ='-fno-common'
15182       ;;
15183
15184     msdosdjgpp*)
15185       # Just because we use GCC doesn't mean we suddenly get shared libraries
15186       # on systems that don't support them.
15187       lt_prog_compiler_can_build_shared_GCJ=no
15188       enable_shared=no
15189       ;;
15190
15191     sysv4*MP*)
15192       if test -d /usr/nec; then
15193         lt_prog_compiler_pic_GCJ=-Kconform_pic
15194       fi
15195       ;;
15196
15197     hpux*)
15198       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15199       # not for PA HP-UX.
15200       case "$host_cpu" in
15201       hppa*64*|ia64*)
15202         # +Z the default
15203         ;;
15204       *)
15205         lt_prog_compiler_pic_GCJ='-fPIC'
15206         ;;
15207       esac
15208       ;;
15209
15210     *)
15211       lt_prog_compiler_pic_GCJ='-fPIC'
15212       ;;
15213     esac
15214   else
15215     # PORTME Check for flag to pass linker flags through the system compiler.
15216     case $host_os in
15217     aix*)
15218       lt_prog_compiler_wl_GCJ='-Wl,'
15219       if test "$host_cpu" = ia64; then
15220         # AIX 5 now supports IA64 processor
15221         lt_prog_compiler_static_GCJ='-Bstatic'
15222       else
15223         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15224       fi
15225       ;;
15226
15227     mingw* | pw32* | os2*)
15228       # This hack is so that the source file can tell whether it is being
15229       # built for inclusion in a dll (and should export symbols for example).
15230       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15231       ;;
15232
15233     hpux9* | hpux10* | hpux11*)
15234       lt_prog_compiler_wl_GCJ='-Wl,'
15235       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15236       # not for PA HP-UX.
15237       case "$host_cpu" in
15238       hppa*64*|ia64*)
15239         # +Z the default
15240         ;;
15241       *)
15242         lt_prog_compiler_pic_GCJ='+Z'
15243         ;;
15244       esac
15245       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15246       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15247       ;;
15248
15249     irix5* | irix6* | nonstopux*)
15250       lt_prog_compiler_wl_GCJ='-Wl,'
15251       # PIC (with -KPIC) is the default.
15252       lt_prog_compiler_static_GCJ='-non_shared'
15253       ;;
15254
15255     newsos6)
15256       lt_prog_compiler_pic_GCJ='-KPIC'
15257       lt_prog_compiler_static_GCJ='-Bstatic'
15258       ;;
15259
15260     linux*)
15261       case $CC in
15262       icc|ecc)
15263         lt_prog_compiler_wl_GCJ='-Wl,'
15264         lt_prog_compiler_pic_GCJ='-KPIC'
15265         lt_prog_compiler_static_GCJ='-static'
15266         ;;
15267       ccc)
15268         lt_prog_compiler_wl_GCJ='-Wl,'
15269         # All Alpha code is PIC.
15270         lt_prog_compiler_static_GCJ='-non_shared'
15271         ;;
15272       esac
15273       ;;
15274
15275     osf3* | osf4* | osf5*)
15276       lt_prog_compiler_wl_GCJ='-Wl,'
15277       # All OSF/1 code is PIC.
15278       lt_prog_compiler_static_GCJ='-non_shared'
15279       ;;
15280
15281     sco3.2v5*)
15282       lt_prog_compiler_pic_GCJ='-Kpic'
15283       lt_prog_compiler_static_GCJ='-dn'
15284       ;;
15285
15286     solaris*)
15287       lt_prog_compiler_wl_GCJ='-Wl,'
15288       lt_prog_compiler_pic_GCJ='-KPIC'
15289       lt_prog_compiler_static_GCJ='-Bstatic'
15290       ;;
15291
15292     sunos4*)
15293       lt_prog_compiler_wl_GCJ='-Qoption ld '
15294       lt_prog_compiler_pic_GCJ='-PIC'
15295       lt_prog_compiler_static_GCJ='-Bstatic'
15296       ;;
15297
15298     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15299       lt_prog_compiler_wl_GCJ='-Wl,'
15300       lt_prog_compiler_pic_GCJ='-KPIC'
15301       lt_prog_compiler_static_GCJ='-Bstatic'
15302       ;;
15303
15304     sysv4*MP*)
15305       if test -d /usr/nec ;then
15306         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15307         lt_prog_compiler_static_GCJ='-Bstatic'
15308       fi
15309       ;;
15310
15311     uts4*)
15312       lt_prog_compiler_pic_GCJ='-pic'
15313       lt_prog_compiler_static_GCJ='-Bstatic'
15314       ;;
15315
15316     *)
15317       lt_prog_compiler_can_build_shared_GCJ=no
15318       ;;
15319     esac
15320   fi
15321
15322 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15323 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15324
15325 #
15326 # Check to make sure the PIC flag actually works.
15327 #
15328 if test -n "$lt_prog_compiler_pic_GCJ"; then
15329   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15330 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15331 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15332   echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334   lt_prog_compiler_pic_works_GCJ=no
15335   ac_outfile=conftest.$ac_objext
15336    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15337    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15338    # Insert the option either (1) after the last *FLAGS variable, or
15339    # (2) before a word containing "conftest.", or (3) at the end.
15340    # Note that $ac_compile itself does not contain backslashes and begins
15341    # with a dollar sign (not a hyphen), so the echo should work correctly.
15342    # The option is referenced via a variable to avoid confusing sed.
15343    lt_compile=`echo "$ac_compile" | $SED \
15344    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15345    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15346    -e 's:$: $lt_compiler_flag:'`
15347    (eval echo "\"\$as_me:15347: $lt_compile\"" >&5)
15348    (eval "$lt_compile" 2>conftest.err)
15349    ac_status=$?
15350    cat conftest.err >&5
15351    echo "$as_me:15351: \$? = $ac_status" >&5
15352    if (exit $ac_status) && test -s "$ac_outfile"; then
15353      # The compiler can only warn and ignore the option if not recognized
15354      # So say no if there are warnings
15355      if test ! -s conftest.err; then
15356        lt_prog_compiler_pic_works_GCJ=yes
15357      fi
15358    fi
15359    $rm conftest*
15360
15361 fi
15362 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15363 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15364
15365 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15366     case $lt_prog_compiler_pic_GCJ in
15367      "" | " "*) ;;
15368      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15369      esac
15370 else
15371     lt_prog_compiler_pic_GCJ=
15372      lt_prog_compiler_can_build_shared_GCJ=no
15373 fi
15374
15375 fi
15376 case "$host_os" in
15377   # For platforms which do not support PIC, -DPIC is meaningless:
15378   *djgpp*)
15379     lt_prog_compiler_pic_GCJ=
15380     ;;
15381   *)
15382     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15383     ;;
15384 esac
15385
15386 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15387 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15388 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15389   echo $ECHO_N "(cached) $ECHO_C" >&6
15390 else
15391   lt_cv_prog_compiler_c_o_GCJ=no
15392    $rm -r conftest 2>/dev/null
15393    mkdir conftest
15394    cd conftest
15395    mkdir out
15396    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15397
15398    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15399    # that will create temporary files in the current directory regardless of
15400    # the output directory.  Thus, making CWD read-only will cause this test
15401    # to fail, enabling locking or at least warning the user not to do parallel
15402    # builds.
15403    chmod -w .
15404
15405    lt_compiler_flag="-o out/conftest2.$ac_objext"
15406    # Insert the option either (1) after the last *FLAGS variable, or
15407    # (2) before a word containing "conftest.", or (3) at the end.
15408    # Note that $ac_compile itself does not contain backslashes and begins
15409    # with a dollar sign (not a hyphen), so the echo should work correctly.
15410    lt_compile=`echo "$ac_compile" | $SED \
15411    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15413    -e 's:$: $lt_compiler_flag:'`
15414    (eval echo "\"\$as_me:15414: $lt_compile\"" >&5)
15415    (eval "$lt_compile" 2>out/conftest.err)
15416    ac_status=$?
15417    cat out/conftest.err >&5
15418    echo "$as_me:15418: \$? = $ac_status" >&5
15419    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15420    then
15421      # The compiler can only warn and ignore the option if not recognized
15422      # So say no if there are warnings
15423      if test ! -s out/conftest.err; then
15424        lt_cv_prog_compiler_c_o_GCJ=yes
15425      fi
15426    fi
15427    chmod u+w .
15428    $rm conftest* out/*
15429    rmdir out
15430    cd ..
15431    rmdir conftest
15432    $rm conftest*
15433
15434 fi
15435 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15436 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15437
15438
15439 hard_links="nottested"
15440 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15441   # do not overwrite the value of need_locks provided by the user
15442   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15443 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15444   hard_links=yes
15445   $rm conftest*
15446   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15447   touch conftest.a
15448   ln conftest.a conftest.b 2>&5 || hard_links=no
15449   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15450   echo "$as_me:$LINENO: result: $hard_links" >&5
15451 echo "${ECHO_T}$hard_links" >&6
15452   if test "$hard_links" = no; then
15453     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15454 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15455     need_locks=warn
15456   fi
15457 else
15458   need_locks=no
15459 fi
15460
15461 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15462 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15463
15464   runpath_var=
15465   allow_undefined_flag_GCJ=
15466   enable_shared_with_static_runtimes_GCJ=no
15467   archive_cmds_GCJ=
15468   archive_expsym_cmds_GCJ=
15469   old_archive_From_new_cmds_GCJ=
15470   old_archive_from_expsyms_cmds_GCJ=
15471   export_dynamic_flag_spec_GCJ=
15472   whole_archive_flag_spec_GCJ=
15473   thread_safe_flag_spec_GCJ=
15474   hardcode_libdir_flag_spec_GCJ=
15475   hardcode_libdir_flag_spec_ld_GCJ=
15476   hardcode_libdir_separator_GCJ=
15477   hardcode_direct_GCJ=no
15478   hardcode_minus_L_GCJ=no
15479   hardcode_shlibpath_var_GCJ=unsupported
15480   link_all_deplibs_GCJ=unknown
15481   hardcode_automatic_GCJ=no
15482   module_cmds_GCJ=
15483   module_expsym_cmds_GCJ=
15484   always_export_symbols_GCJ=no
15485   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15486   # include_expsyms should be a list of space-separated symbols to be *always*
15487   # included in the symbol list
15488   include_expsyms_GCJ=
15489   # exclude_expsyms can be an extended regexp of symbols to exclude
15490   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15491   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15492   # as well as any symbol that contains `d'.
15493   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15494   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15495   # platforms (ab)use it in PIC code, but their linkers get confused if
15496   # the symbol is explicitly referenced.  Since portable code cannot
15497   # rely on this symbol name, it's probably fine to never include it in
15498   # preloaded symbol tables.
15499   extract_expsyms_cmds=
15500
15501   case $host_os in
15502   cygwin* | mingw* | pw32*)
15503     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15504     # When not using gcc, we currently assume that we are using
15505     # Microsoft Visual C++.
15506     if test "$GCC" != yes; then
15507       with_gnu_ld=no
15508     fi
15509     ;;
15510   openbsd*)
15511     with_gnu_ld=no
15512     ;;
15513   esac
15514
15515   ld_shlibs_GCJ=yes
15516   if test "$with_gnu_ld" = yes; then
15517     # If archive_cmds runs LD, not CC, wlarc should be empty
15518     wlarc='${wl}'
15519
15520     # See if GNU ld supports shared libraries.
15521     case $host_os in
15522     aix3* | aix4* | aix5*)
15523       # On AIX/PPC, the GNU linker is very broken
15524       if test "$host_cpu" != ia64; then
15525         ld_shlibs_GCJ=no
15526         cat <<EOF 1>&2
15527
15528 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15529 *** to be unable to reliably create shared libraries on AIX.
15530 *** Therefore, libtool is disabling shared libraries support.  If you
15531 *** really care for shared libraries, you may want to modify your PATH
15532 *** so that a non-GNU linker is found, and then restart.
15533
15534 EOF
15535       fi
15536       ;;
15537
15538     amigaos*)
15539       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)'
15540       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15541       hardcode_minus_L_GCJ=yes
15542
15543       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15544       # that the semantics of dynamic libraries on AmigaOS, at least up
15545       # to version 4, is to share data among multiple programs linked
15546       # with the same dynamic library.  Since this doesn't match the
15547       # behavior of shared libraries on other platforms, we can't use
15548       # them.
15549       ld_shlibs_GCJ=no
15550       ;;
15551
15552     beos*)
15553       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15554         allow_undefined_flag_GCJ=unsupported
15555         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15556         # support --undefined.  This deserves some investigation.  FIXME
15557         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15558       else
15559         ld_shlibs_GCJ=no
15560       fi
15561       ;;
15562
15563     cygwin* | mingw* | pw32*)
15564       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15565       # as there is no search path for DLLs.
15566       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15567       allow_undefined_flag_GCJ=unsupported
15568       always_export_symbols_GCJ=no
15569       enable_shared_with_static_runtimes_GCJ=yes
15570       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15571
15572       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15573         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15574         # If the export-symbols file already is a .def file (1st line
15575         # is EXPORTS), use it as is; otherwise, prepend...
15576         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15577           cp $export_symbols $output_objdir/$soname.def;
15578         else
15579           echo EXPORTS > $output_objdir/$soname.def;
15580           cat $export_symbols >> $output_objdir/$soname.def;
15581         fi~
15582         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15583       else
15584         ld_shlibs=no
15585       fi
15586       ;;
15587
15588     netbsd*)
15589       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15590         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15591         wlarc=
15592       else
15593         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15594         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15595       fi
15596       ;;
15597
15598     solaris* | sysv5*)
15599       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15600         ld_shlibs_GCJ=no
15601         cat <<EOF 1>&2
15602
15603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15604 *** create shared libraries on Solaris systems.  Therefore, libtool
15605 *** is disabling shared libraries support.  We urge you to upgrade GNU
15606 *** binutils to release 2.9.1 or newer.  Another option is to modify
15607 *** your PATH or compiler configuration so that the native linker is
15608 *** used, and then restart.
15609
15610 EOF
15611       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15612         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15613         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15614       else
15615         ld_shlibs_GCJ=no
15616       fi
15617       ;;
15618
15619     sunos4*)
15620       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15621       wlarc=
15622       hardcode_direct_GCJ=yes
15623       hardcode_shlibpath_var_GCJ=no
15624       ;;
15625
15626     *)
15627       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15628         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15630       else
15631         ld_shlibs_GCJ=no
15632       fi
15633       ;;
15634     esac
15635
15636     if test "$ld_shlibs_GCJ" = yes; then
15637       runpath_var=LD_RUN_PATH
15638       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15639       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15640       # ancient GNU ld didn't support --whole-archive et. al.
15641       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15642         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15643       else
15644         whole_archive_flag_spec_GCJ=
15645       fi
15646     fi
15647   else
15648     # PORTME fill in a description of your system's linker (not GNU ld)
15649     case $host_os in
15650     aix3*)
15651       allow_undefined_flag_GCJ=unsupported
15652       always_export_symbols_GCJ=yes
15653       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'
15654       # Note: this linker hardcodes the directories in LIBPATH if there
15655       # are no directories specified by -L.
15656       hardcode_minus_L_GCJ=yes
15657       if test "$GCC" = yes && test -z "$link_static_flag"; then
15658         # Neither direct hardcoding nor static linking is supported with a
15659         # broken collect2.
15660         hardcode_direct_GCJ=unsupported
15661       fi
15662       ;;
15663
15664     aix4* | aix5*)
15665       if test "$host_cpu" = ia64; then
15666         # On IA64, the linker does run time linking by default, so we don't
15667         # have to do anything special.
15668         aix_use_runtimelinking=no
15669         exp_sym_flag='-Bexport'
15670         no_entry_flag=""
15671       else
15672         # If we're using GNU nm, then we don't want the "-C" option.
15673         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15674         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15675           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'
15676         else
15677           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'
15678         fi
15679         aix_use_runtimelinking=no
15680
15681         # Test if we are trying to use run time linking or normal
15682         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15683         # need to do runtime linking.
15684         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15685           for ld_flag in $LDFLAGS; do
15686           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15687             aix_use_runtimelinking=yes
15688             break
15689           fi
15690           done
15691         esac
15692
15693         exp_sym_flag='-bexport'
15694         no_entry_flag='-bnoentry'
15695       fi
15696
15697       # When large executables or shared objects are built, AIX ld can
15698       # have problems creating the table of contents.  If linking a library
15699       # or program results in "error TOC overflow" add -mminimal-toc to
15700       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15701       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15702
15703       archive_cmds_GCJ=''
15704       hardcode_direct_GCJ=yes
15705       hardcode_libdir_separator_GCJ=':'
15706       link_all_deplibs_GCJ=yes
15707
15708       if test "$GCC" = yes; then
15709         case $host_os in aix4.012|aix4.012.*)
15710         # We only want to do this on AIX 4.2 and lower, the check
15711         # below for broken collect2 doesn't work under 4.3+
15712           collect2name=`${CC} -print-prog-name=collect2`
15713           if test -f "$collect2name" && \
15714            strings "$collect2name" | grep resolve_lib_name >/dev/null
15715           then
15716           # We have reworked collect2
15717           hardcode_direct_GCJ=yes
15718           else
15719           # We have old collect2
15720           hardcode_direct_GCJ=unsupported
15721           # It fails to find uninstalled libraries when the uninstalled
15722           # path is not listed in the libpath.  Setting hardcode_minus_L
15723           # to unsupported forces relinking
15724           hardcode_minus_L_GCJ=yes
15725           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15726           hardcode_libdir_separator_GCJ=
15727           fi
15728         esac
15729         shared_flag='-shared'
15730       else
15731         # not using gcc
15732         if test "$host_cpu" = ia64; then
15733         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15734         # chokes on -Wl,-G. The following line is correct:
15735           shared_flag='-G'
15736         else
15737         if test "$aix_use_runtimelinking" = yes; then
15738             shared_flag='${wl}-G'
15739           else
15740             shared_flag='${wl}-bM:SRE'
15741         fi
15742         fi
15743       fi
15744
15745       # It seems that -bexpall does not export symbols beginning with
15746       # underscore (_), so it is better to generate a list of symbols to export.
15747       always_export_symbols_GCJ=yes
15748       if test "$aix_use_runtimelinking" = yes; then
15749         # Warning - without using the other runtime loading flags (-brtl),
15750         # -berok will link without error, but may produce a broken library.
15751         allow_undefined_flag_GCJ='-berok'
15752        # Determine the default libpath from the value encoded in an empty executable.
15753        cat >conftest.$ac_ext <<_ACEOF
15754 /* confdefs.h.  */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h.  */
15759
15760 int
15761 main ()
15762 {
15763
15764   ;
15765   return 0;
15766 }
15767 _ACEOF
15768 rm -f conftest.$ac_objext conftest$ac_exeext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15770   (eval $ac_link) 2>conftest.er1
15771   ac_status=$?
15772   grep -v '^ *+' conftest.er1 >conftest.err
15773   rm -f conftest.er1
15774   cat conftest.err >&5
15775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776   (exit $ac_status); } &&
15777          { ac_try='test -z "$ac_c_werror_flag"
15778                          || test ! -s conftest.err'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; } &&
15784          { ac_try='test -s conftest$ac_exeext'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790
15791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15792 }'`
15793 # Check for a 64-bit object if we didn't find anything.
15794 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; }
15795 }'`; fi
15796 else
15797   echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15799
15800 fi
15801 rm -f conftest.err conftest.$ac_objext \
15802       conftest$ac_exeext conftest.$ac_ext
15803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15804
15805        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15806         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"
15807        else
15808         if test "$host_cpu" = ia64; then
15809           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15810           allow_undefined_flag_GCJ="-z nodefs"
15811           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"
15812         else
15813          # Determine the default libpath from the value encoded in an empty executable.
15814          cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h.  */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h.  */
15820
15821 int
15822 main ()
15823 {
15824
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15831   (eval $ac_link) 2>conftest.er1
15832   ac_status=$?
15833   grep -v '^ *+' conftest.er1 >conftest.err
15834   rm -f conftest.er1
15835   cat conftest.err >&5
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); } &&
15838          { ac_try='test -z "$ac_c_werror_flag"
15839                          || test ! -s conftest.err'
15840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841   (eval $ac_try) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; } &&
15845          { ac_try='test -s conftest$ac_exeext'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; }; then
15851
15852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15853 }'`
15854 # Check for a 64-bit object if we didn't find anything.
15855 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; }
15856 }'`; fi
15857 else
15858   echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15860
15861 fi
15862 rm -f conftest.err conftest.$ac_objext \
15863       conftest$ac_exeext conftest.$ac_ext
15864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15865
15866          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15867           # Warning - without using the other run time loading flags,
15868           # -berok will link without error, but may produce a broken library.
15869           no_undefined_flag_GCJ=' ${wl}-bernotok'
15870           allow_undefined_flag_GCJ=' ${wl}-berok'
15871           # -bexpall does not export symbols beginning with underscore (_)
15872           always_export_symbols_GCJ=yes
15873           # Exported symbols can be pulled into shared objects from archives
15874           whole_archive_flag_spec_GCJ=' '
15875           archive_cmds_need_lc_GCJ=yes
15876           # This is similar to how AIX traditionally builds it's shared libraries.
15877           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'
15878         fi
15879       fi
15880       ;;
15881
15882     amigaos*)
15883       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)'
15884       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15885       hardcode_minus_L_GCJ=yes
15886       # see comment about different semantics on the GNU ld section
15887       ld_shlibs_GCJ=no
15888       ;;
15889
15890     bsdi4*)
15891       export_dynamic_flag_spec_GCJ=-rdynamic
15892       ;;
15893
15894     cygwin* | mingw* | pw32*)
15895       # When not using gcc, we currently assume that we are using
15896       # Microsoft Visual C++.
15897       # hardcode_libdir_flag_spec is actually meaningless, as there is
15898       # no search path for DLLs.
15899       hardcode_libdir_flag_spec_GCJ=' '
15900       allow_undefined_flag_GCJ=unsupported
15901       # Tell ltmain to make .lib files, not .a files.
15902       libext=lib
15903       # Tell ltmain to make .dll files, not .so files.
15904       shrext=".dll"
15905       # FIXME: Setting linknames here is a bad hack.
15906       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15907       # The linker will automatically build a .lib file if we build a DLL.
15908       old_archive_From_new_cmds_GCJ='true'
15909       # FIXME: Should let the user specify the lib program.
15910       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15911       fix_srcfile_path='`cygpath -w "$srcfile"`'
15912       enable_shared_with_static_runtimes_GCJ=yes
15913       ;;
15914
15915     darwin* | rhapsody*)
15916     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15917       archive_cmds_need_lc_GCJ=no
15918       case "$host_os" in
15919       rhapsody* | darwin1.[012])
15920         allow_undefined_flag_GCJ='-undefined suppress'
15921         ;;
15922       *) # Darwin 1.3 on
15923         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15924         ;;
15925       esac
15926       # FIXME: Relying on posixy $() will cause problems for
15927       #        cross-compilation, but unfortunately the echo tests do not
15928       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15929       #        `"' quotes if we put them in here... so don't!
15930         lt_int_apple_cc_single_mod=no
15931         output_verbose_link_cmd='echo'
15932         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15933           lt_int_apple_cc_single_mod=yes
15934         fi
15935         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15936           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15937         else
15938         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'
15939       fi
15940       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15941       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15942         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15943           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}'
15944         else
15945           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}'
15946         fi
15947           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}'
15948       hardcode_direct_GCJ=no
15949       hardcode_automatic_GCJ=yes
15950       hardcode_shlibpath_var_GCJ=unsupported
15951       whole_archive_flag_spec_GCJ='-all_load $convenience'
15952       link_all_deplibs_GCJ=yes
15953     fi
15954       ;;
15955
15956     dgux*)
15957       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15958       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15959       hardcode_shlibpath_var_GCJ=no
15960       ;;
15961
15962     freebsd1*)
15963       ld_shlibs_GCJ=no
15964       ;;
15965
15966     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15967     # support.  Future versions do this automatically, but an explicit c++rt0.o
15968     # does not break anything, and helps significantly (at the cost of a little
15969     # extra space).
15970     freebsd2.2*)
15971       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15972       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15973       hardcode_direct_GCJ=yes
15974       hardcode_shlibpath_var_GCJ=no
15975       ;;
15976
15977     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15978     freebsd2*)
15979       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15980       hardcode_direct_GCJ=yes
15981       hardcode_minus_L_GCJ=yes
15982       hardcode_shlibpath_var_GCJ=no
15983       ;;
15984
15985     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15986     freebsd*)
15987       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15988       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15989       hardcode_direct_GCJ=yes
15990       hardcode_shlibpath_var_GCJ=no
15991       ;;
15992
15993     hpux9*)
15994       if test "$GCC" = yes; then
15995         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'
15996       else
15997         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'
15998       fi
15999       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16000       hardcode_libdir_separator_GCJ=:
16001       hardcode_direct_GCJ=yes
16002
16003       # hardcode_minus_L: Not really in the search PATH,
16004       # but as the default location of the library.
16005       hardcode_minus_L_GCJ=yes
16006       export_dynamic_flag_spec_GCJ='${wl}-E'
16007       ;;
16008
16009     hpux10* | hpux11*)
16010       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16011         case "$host_cpu" in
16012         hppa*64*|ia64*)
16013           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16014           ;;
16015         *)
16016           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16017           ;;
16018         esac
16019       else
16020         case "$host_cpu" in
16021         hppa*64*|ia64*)
16022           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16023           ;;
16024         *)
16025           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16026           ;;
16027         esac
16028       fi
16029       if test "$with_gnu_ld" = no; then
16030         case "$host_cpu" in
16031         hppa*64*)
16032           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16033           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16034           hardcode_libdir_separator_GCJ=:
16035           hardcode_direct_GCJ=no
16036           hardcode_shlibpath_var_GCJ=no
16037           ;;
16038         ia64*)
16039           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16040           hardcode_direct_GCJ=no
16041           hardcode_shlibpath_var_GCJ=no
16042
16043           # hardcode_minus_L: Not really in the search PATH,
16044           # but as the default location of the library.
16045           hardcode_minus_L_GCJ=yes
16046           ;;
16047         *)
16048           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16049           hardcode_libdir_separator_GCJ=:
16050           hardcode_direct_GCJ=yes
16051           export_dynamic_flag_spec_GCJ='${wl}-E'
16052
16053           # hardcode_minus_L: Not really in the search PATH,
16054           # but as the default location of the library.
16055           hardcode_minus_L_GCJ=yes
16056           ;;
16057         esac
16058       fi
16059       ;;
16060
16061     irix5* | irix6* | nonstopux*)
16062       if test "$GCC" = yes; then
16063         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'
16064       else
16065         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'
16066         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16067       fi
16068       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16069       hardcode_libdir_separator_GCJ=:
16070       link_all_deplibs_GCJ=yes
16071       ;;
16072
16073     netbsd*)
16074       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16075         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16076       else
16077         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16078       fi
16079       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16080       hardcode_direct_GCJ=yes
16081       hardcode_shlibpath_var_GCJ=no
16082       ;;
16083
16084     newsos6)
16085       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086       hardcode_direct_GCJ=yes
16087       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16088       hardcode_libdir_separator_GCJ=:
16089       hardcode_shlibpath_var_GCJ=no
16090       ;;
16091
16092     openbsd*)
16093       hardcode_direct_GCJ=yes
16094       hardcode_shlibpath_var_GCJ=no
16095       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16096         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16097         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16098         export_dynamic_flag_spec_GCJ='${wl}-E'
16099       else
16100        case $host_os in
16101          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16102            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16103            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16104            ;;
16105          *)
16106            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16107            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16108            ;;
16109        esac
16110       fi
16111       ;;
16112
16113     os2*)
16114       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16115       hardcode_minus_L_GCJ=yes
16116       allow_undefined_flag_GCJ=unsupported
16117       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'
16118       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16119       ;;
16120
16121     osf3*)
16122       if test "$GCC" = yes; then
16123         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16124         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'
16125       else
16126         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16127         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'
16128       fi
16129       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16130       hardcode_libdir_separator_GCJ=:
16131       ;;
16132
16133     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16134       if test "$GCC" = yes; then
16135         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16136         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'
16137         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16138       else
16139         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16140         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'
16141         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~
16142         $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'
16143
16144         # Both c and cxx compiler support -rpath directly
16145         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16146       fi
16147       hardcode_libdir_separator_GCJ=:
16148       ;;
16149
16150     sco3.2v5*)
16151       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152       hardcode_shlibpath_var_GCJ=no
16153       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16154       runpath_var=LD_RUN_PATH
16155       hardcode_runpath_var=yes
16156       ;;
16157
16158     solaris*)
16159       no_undefined_flag_GCJ=' -z text'
16160       if test "$GCC" = yes; then
16161         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16162         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16163           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16164       else
16165         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16166         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16167         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16168       fi
16169       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16170       hardcode_shlibpath_var_GCJ=no
16171       case $host_os in
16172       solaris2.[0-5] | solaris2.[0-5].*) ;;
16173       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16174         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16175       esac
16176       link_all_deplibs_GCJ=yes
16177       ;;
16178
16179     sunos4*)
16180       if test "x$host_vendor" = xsequent; then
16181         # Use $CC to link under sequent, because it throws in some extra .o
16182         # files that make .init and .fini sections work.
16183         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16184       else
16185         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16186       fi
16187       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16188       hardcode_direct_GCJ=yes
16189       hardcode_minus_L_GCJ=yes
16190       hardcode_shlibpath_var_GCJ=no
16191       ;;
16192
16193     sysv4)
16194       case $host_vendor in
16195         sni)
16196           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16197           hardcode_direct_GCJ=yes # is this really true???
16198         ;;
16199         siemens)
16200           ## LD is ld it makes a PLAMLIB
16201           ## CC just makes a GrossModule.
16202           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16203           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16204           hardcode_direct_GCJ=no
16205         ;;
16206         motorola)
16207           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16209         ;;
16210       esac
16211       runpath_var='LD_RUN_PATH'
16212       hardcode_shlibpath_var_GCJ=no
16213       ;;
16214
16215     sysv4.3*)
16216       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16217       hardcode_shlibpath_var_GCJ=no
16218       export_dynamic_flag_spec_GCJ='-Bexport'
16219       ;;
16220
16221     sysv4*MP*)
16222       if test -d /usr/nec; then
16223         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16224         hardcode_shlibpath_var_GCJ=no
16225         runpath_var=LD_RUN_PATH
16226         hardcode_runpath_var=yes
16227         ld_shlibs_GCJ=yes
16228       fi
16229       ;;
16230
16231     sysv4.2uw2*)
16232       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16233       hardcode_direct_GCJ=yes
16234       hardcode_minus_L_GCJ=no
16235       hardcode_shlibpath_var_GCJ=no
16236       hardcode_runpath_var=yes
16237       runpath_var=LD_RUN_PATH
16238       ;;
16239
16240    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16241       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16242       if test "$GCC" = yes; then
16243         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16244       else
16245         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16246       fi
16247       runpath_var='LD_RUN_PATH'
16248       hardcode_shlibpath_var_GCJ=no
16249       ;;
16250
16251     sysv5*)
16252       no_undefined_flag_GCJ=' -z text'
16253       # $CC -shared without GNU ld will not create a library from C++
16254       # object files and a static libstdc++, better avoid it by now
16255       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16257                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16258       hardcode_libdir_flag_spec_GCJ=
16259       hardcode_shlibpath_var_GCJ=no
16260       runpath_var='LD_RUN_PATH'
16261       ;;
16262
16263     uts4*)
16264       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16265       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16266       hardcode_shlibpath_var_GCJ=no
16267       ;;
16268
16269     *)
16270       ld_shlibs_GCJ=no
16271       ;;
16272     esac
16273   fi
16274
16275 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16276 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16277 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16278
16279 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16280 if test "$GCC" = yes; then
16281   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16282 fi
16283
16284 #
16285 # Do we need to explicitly link libc?
16286 #
16287 case "x$archive_cmds_need_lc_GCJ" in
16288 x|xyes)
16289   # Assume -lc should be added
16290   archive_cmds_need_lc_GCJ=yes
16291
16292   if test "$enable_shared" = yes && test "$GCC" = yes; then
16293     case $archive_cmds_GCJ in
16294     *'~'*)
16295       # FIXME: we may have to deal with multi-command sequences.
16296       ;;
16297     '$CC '*)
16298       # Test whether the compiler implicitly links with -lc since on some
16299       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16300       # to ld, don't add -lc before -lgcc.
16301       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16302 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16303       $rm conftest*
16304       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16305
16306       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16307   (eval $ac_compile) 2>&5
16308   ac_status=$?
16309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); } 2>conftest.err; then
16311         soname=conftest
16312         lib=conftest
16313         libobjs=conftest.$ac_objext
16314         deplibs=
16315         wl=$lt_prog_compiler_wl_GCJ
16316         compiler_flags=-v
16317         linker_flags=-v
16318         verstring=
16319         output_objdir=.
16320         libname=conftest
16321         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16322         allow_undefined_flag_GCJ=
16323         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16324   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); }
16328         then
16329           archive_cmds_need_lc_GCJ=no
16330         else
16331           archive_cmds_need_lc_GCJ=yes
16332         fi
16333         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16334       else
16335         cat conftest.err 1>&5
16336       fi
16337       $rm conftest*
16338       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16339 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16340       ;;
16341     esac
16342   fi
16343   ;;
16344 esac
16345
16346 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16347 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16348 hardcode_action_GCJ=
16349 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16350    test -n "$runpath_var GCJ" || \
16351    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16352
16353   # We can hardcode non-existant directories.
16354   if test "$hardcode_direct_GCJ" != no &&
16355      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16356      # have to relink, otherwise we might link with an installed library
16357      # when we should be linking with a yet-to-be-installed one
16358      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16359      test "$hardcode_minus_L_GCJ" != no; then
16360     # Linking always hardcodes the temporary library directory.
16361     hardcode_action_GCJ=relink
16362   else
16363     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16364     hardcode_action_GCJ=immediate
16365   fi
16366 else
16367   # We cannot hardcode anything, or else we can only hardcode existing
16368   # directories.
16369   hardcode_action_GCJ=unsupported
16370 fi
16371 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16372 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16373
16374 if test "$hardcode_action_GCJ" = relink; then
16375   # Fast installation is not supported
16376   enable_fast_install=no
16377 elif test "$shlibpath_overrides_runpath" = yes ||
16378      test "$enable_shared" = no; then
16379   # Fast installation is not necessary
16380   enable_fast_install=needless
16381 fi
16382
16383 striplib=
16384 old_striplib=
16385 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16386 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16387 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16388   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16389   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16390   echo "$as_me:$LINENO: result: yes" >&5
16391 echo "${ECHO_T}yes" >&6
16392 else
16393 # FIXME - insert some real tests, host_os isn't really good enough
16394   case $host_os in
16395    darwin*)
16396        if test -n "$STRIP" ; then
16397          striplib="$STRIP -x"
16398          echo "$as_me:$LINENO: result: yes" >&5
16399 echo "${ECHO_T}yes" >&6
16400        else
16401   echo "$as_me:$LINENO: result: no" >&5
16402 echo "${ECHO_T}no" >&6
16403 fi
16404        ;;
16405    *)
16406   echo "$as_me:$LINENO: result: no" >&5
16407 echo "${ECHO_T}no" >&6
16408     ;;
16409   esac
16410 fi
16411
16412 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16413 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16414 library_names_spec=
16415 libname_spec='lib$name'
16416 soname_spec=
16417 shrext=".so"
16418 postinstall_cmds=
16419 postuninstall_cmds=
16420 finish_cmds=
16421 finish_eval=
16422 shlibpath_var=
16423 shlibpath_overrides_runpath=unknown
16424 version_type=none
16425 dynamic_linker="$host_os ld.so"
16426 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16427 if test "$GCC" = yes; then
16428   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16429   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16430     # if the path contains ";" then we assume it to be the separator
16431     # otherwise default to the standard path separator (i.e. ":") - it is
16432     # assumed that no part of a normal pathname contains ";" but that should
16433     # okay in the real world where ";" in dirpaths is itself problematic.
16434     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16435   else
16436     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16437   fi
16438 else
16439   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16440 fi
16441 need_lib_prefix=unknown
16442 hardcode_into_libs=no
16443
16444 # when you set need_version to no, make sure it does not cause -set_version
16445 # flags to be left without arguments
16446 need_version=unknown
16447
16448 case $host_os in
16449 aix3*)
16450   version_type=linux
16451   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16452   shlibpath_var=LIBPATH
16453
16454   # AIX 3 has no versioning support, so we append a major version to the name.
16455   soname_spec='${libname}${release}${shared_ext}$major'
16456   ;;
16457
16458 aix4* | aix5*)
16459   version_type=linux
16460   need_lib_prefix=no
16461   need_version=no
16462   hardcode_into_libs=yes
16463   if test "$host_cpu" = ia64; then
16464     # AIX 5 supports IA64
16465     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16466     shlibpath_var=LD_LIBRARY_PATH
16467   else
16468     # With GCC up to 2.95.x, collect2 would create an import file
16469     # for dependence libraries.  The import file would start with
16470     # the line `#! .'.  This would cause the generated library to
16471     # depend on `.', always an invalid library.  This was fixed in
16472     # development snapshots of GCC prior to 3.0.
16473     case $host_os in
16474       aix4 | aix4.[01] | aix4.[01].*)
16475       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16476            echo ' yes '
16477            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16478         :
16479       else
16480         can_build_shared=no
16481       fi
16482       ;;
16483     esac
16484     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16485     # soname into executable. Probably we can add versioning support to
16486     # collect2, so additional links can be useful in future.
16487     if test "$aix_use_runtimelinking" = yes; then
16488       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16489       # instead of lib<name>.a to let people know that these are not
16490       # typical AIX shared libraries.
16491       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492     else
16493       # We preserve .a as extension for shared libraries through AIX4.2
16494       # and later when we are not doing run time linking.
16495       library_names_spec='${libname}${release}.a $libname.a'
16496       soname_spec='${libname}${release}${shared_ext}$major'
16497     fi
16498     shlibpath_var=LIBPATH
16499   fi
16500   ;;
16501
16502 amigaos*)
16503   library_names_spec='$libname.ixlibrary $libname.a'
16504   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16505   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'
16506   ;;
16507
16508 beos*)
16509   library_names_spec='${libname}${shared_ext}'
16510   dynamic_linker="$host_os ld.so"
16511   shlibpath_var=LIBRARY_PATH
16512   ;;
16513
16514 bsdi4*)
16515   version_type=linux
16516   need_version=no
16517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518   soname_spec='${libname}${release}${shared_ext}$major'
16519   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16520   shlibpath_var=LD_LIBRARY_PATH
16521   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16522   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16523   # the default ld.so.conf also contains /usr/contrib/lib and
16524   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16525   # libtool to hard-code these into programs
16526   ;;
16527
16528 cygwin* | mingw* | pw32*)
16529   version_type=windows
16530   shrext=".dll"
16531   need_version=no
16532   need_lib_prefix=no
16533
16534   case $GCC,$host_os in
16535   yes,cygwin* | yes,mingw* | yes,pw32*)
16536     library_names_spec='$libname.dll.a'
16537     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16538     postinstall_cmds='base_file=`basename \${file}`~
16539       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16540       dldir=$destdir/`dirname \$dlpath`~
16541       test -d \$dldir || mkdir -p \$dldir~
16542       $install_prog $dir/$dlname \$dldir/$dlname'
16543     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16544       dlpath=$dir/\$dldll~
16545        $rm \$dlpath'
16546     shlibpath_overrides_runpath=yes
16547
16548     case $host_os in
16549     cygwin*)
16550       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16551       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16552       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16553       ;;
16554     mingw*)
16555       # MinGW DLLs use traditional 'lib' prefix
16556       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16557       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16558       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16559         # It is most probably a Windows format PATH printed by
16560         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16561         # path with ; separators, and with drive letters. We can handle the
16562         # drive letters (cygwin fileutils understands them), so leave them,
16563         # especially as we might pass files found there to a mingw objdump,
16564         # which wouldn't understand a cygwinified path. Ahh.
16565         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16566       else
16567         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16568       fi
16569       ;;
16570     pw32*)
16571       # pw32 DLLs use 'pw' prefix rather than 'lib'
16572       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16573       ;;
16574     esac
16575     ;;
16576
16577   *)
16578     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16579     ;;
16580   esac
16581   dynamic_linker='Win32 ld.exe'
16582   # FIXME: first we should search . and the directory the executable is in
16583   shlibpath_var=PATH
16584   ;;
16585
16586 darwin* | rhapsody*)
16587   dynamic_linker="$host_os dyld"
16588   version_type=darwin
16589   need_lib_prefix=no
16590   need_version=no
16591   # FIXME: Relying on posixy $() will cause problems for
16592   #        cross-compilation, but unfortunately the echo tests do not
16593   #        yet detect zsh echo's removal of \ escapes.
16594   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16595   soname_spec='${libname}${release}${major}$shared_ext'
16596   shlibpath_overrides_runpath=yes
16597   shlibpath_var=DYLD_LIBRARY_PATH
16598   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16599   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16600   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16601   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"`
16602   fi
16603   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16604   ;;
16605
16606 dgux*)
16607   version_type=linux
16608   need_lib_prefix=no
16609   need_version=no
16610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16611   soname_spec='${libname}${release}${shared_ext}$major'
16612   shlibpath_var=LD_LIBRARY_PATH
16613   ;;
16614
16615 freebsd1*)
16616   dynamic_linker=no
16617   ;;
16618
16619 freebsd*)
16620   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16621   version_type=freebsd-$objformat
16622   case $version_type in
16623     freebsd-elf*)
16624       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16625       need_version=no
16626       need_lib_prefix=no
16627       ;;
16628     freebsd-*)
16629       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16630       need_version=yes
16631       ;;
16632   esac
16633   shlibpath_var=LD_LIBRARY_PATH
16634   case $host_os in
16635   freebsd2*)
16636     shlibpath_overrides_runpath=yes
16637     ;;
16638   freebsd3.01* | freebsdelf3.01*)
16639     shlibpath_overrides_runpath=yes
16640     hardcode_into_libs=yes
16641     ;;
16642   *) # from 3.2 on
16643     shlibpath_overrides_runpath=no
16644     hardcode_into_libs=yes
16645     ;;
16646   esac
16647   ;;
16648
16649 gnu*)
16650   version_type=linux
16651   need_lib_prefix=no
16652   need_version=no
16653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16654   soname_spec='${libname}${release}${shared_ext}$major'
16655   shlibpath_var=LD_LIBRARY_PATH
16656   hardcode_into_libs=yes
16657   ;;
16658
16659 hpux9* | hpux10* | hpux11*)
16660   # Give a soname corresponding to the major version so that dld.sl refuses to
16661   # link against other versions.
16662   version_type=sunos
16663   need_lib_prefix=no
16664   need_version=no
16665   case "$host_cpu" in
16666   ia64*)
16667     shrext='.so'
16668     hardcode_into_libs=yes
16669     dynamic_linker="$host_os dld.so"
16670     shlibpath_var=LD_LIBRARY_PATH
16671     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673     soname_spec='${libname}${release}${shared_ext}$major'
16674     if test "X$HPUX_IA64_MODE" = X32; then
16675       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16676     else
16677       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16678     fi
16679     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16680     ;;
16681    hppa*64*)
16682      shrext='.sl'
16683      hardcode_into_libs=yes
16684      dynamic_linker="$host_os dld.sl"
16685      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16686      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16687      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688      soname_spec='${libname}${release}${shared_ext}$major'
16689      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16690      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16691      ;;
16692    *)
16693     shrext='.sl'
16694     dynamic_linker="$host_os dld.sl"
16695     shlibpath_var=SHLIB_PATH
16696     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698     soname_spec='${libname}${release}${shared_ext}$major'
16699     ;;
16700   esac
16701   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16702   postinstall_cmds='chmod 555 $lib'
16703   ;;
16704
16705 irix5* | irix6* | nonstopux*)
16706   case $host_os in
16707     nonstopux*) version_type=nonstopux ;;
16708     *)
16709         if test "$lt_cv_prog_gnu_ld" = yes; then
16710                 version_type=linux
16711         else
16712                 version_type=irix
16713         fi ;;
16714   esac
16715   need_lib_prefix=no
16716   need_version=no
16717   soname_spec='${libname}${release}${shared_ext}$major'
16718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16719   case $host_os in
16720   irix5* | nonstopux*)
16721     libsuff= shlibsuff=
16722     ;;
16723   *)
16724     case $LD in # libtool.m4 will add one of these switches to LD
16725     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16726       libsuff= shlibsuff= libmagic=32-bit;;
16727     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16728       libsuff=32 shlibsuff=N32 libmagic=N32;;
16729     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16730       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16731     *) libsuff= shlibsuff= libmagic=never-match;;
16732     esac
16733     ;;
16734   esac
16735   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16736   shlibpath_overrides_runpath=no
16737   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16738   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16739   hardcode_into_libs=yes
16740   ;;
16741
16742 # No shared lib support for Linux oldld, aout, or coff.
16743 linux*oldld* | linux*aout* | linux*coff*)
16744   dynamic_linker=no
16745   ;;
16746
16747 # This must be Linux ELF.
16748 linux*)
16749   version_type=linux
16750   need_lib_prefix=no
16751   need_version=no
16752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753   soname_spec='${libname}${release}${shared_ext}$major'
16754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16755   shlibpath_var=LD_LIBRARY_PATH
16756   shlibpath_overrides_runpath=no
16757   # This implies no fast_install, which is unacceptable.
16758   # Some rework will be needed to allow for fast_install
16759   # before this can be enabled.
16760   hardcode_into_libs=yes
16761
16762   # We used to test for /lib/ld.so.1 and disable shared libraries on
16763   # powerpc, because MkLinux only supported shared libraries with the
16764   # GNU dynamic linker.  Since this was broken with cross compilers,
16765   # most powerpc-linux boxes support dynamic linking these days and
16766   # people can always --disable-shared, the test was removed, and we
16767   # assume the GNU/Linux dynamic linker is in use.
16768   dynamic_linker='GNU/Linux ld.so'
16769   ;;
16770
16771 netbsd*)
16772   version_type=sunos
16773   need_lib_prefix=no
16774   need_version=no
16775   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16777     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16778     dynamic_linker='NetBSD (a.out) ld.so'
16779   else
16780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16781     soname_spec='${libname}${release}${shared_ext}$major'
16782     dynamic_linker='NetBSD ld.elf_so'
16783   fi
16784   shlibpath_var=LD_LIBRARY_PATH
16785   shlibpath_overrides_runpath=yes
16786   hardcode_into_libs=yes
16787   ;;
16788
16789 newsos6)
16790   version_type=linux
16791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16792   shlibpath_var=LD_LIBRARY_PATH
16793   shlibpath_overrides_runpath=yes
16794   ;;
16795
16796 nto-qnx)
16797   version_type=linux
16798   need_lib_prefix=no
16799   need_version=no
16800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16801   soname_spec='${libname}${release}${shared_ext}$major'
16802   shlibpath_var=LD_LIBRARY_PATH
16803   shlibpath_overrides_runpath=yes
16804   ;;
16805
16806 openbsd*)
16807   version_type=sunos
16808   need_lib_prefix=no
16809   need_version=no
16810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16811   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16812   shlibpath_var=LD_LIBRARY_PATH
16813   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16814     case $host_os in
16815       openbsd2.[89] | openbsd2.[89].*)
16816         shlibpath_overrides_runpath=no
16817         ;;
16818       *)
16819         shlibpath_overrides_runpath=yes
16820         ;;
16821       esac
16822   else
16823     shlibpath_overrides_runpath=yes
16824   fi
16825   ;;
16826
16827 os2*)
16828   libname_spec='$name'
16829   shrext=".dll"
16830   need_lib_prefix=no
16831   library_names_spec='$libname${shared_ext} $libname.a'
16832   dynamic_linker='OS/2 ld.exe'
16833   shlibpath_var=LIBPATH
16834   ;;
16835
16836 osf3* | osf4* | osf5*)
16837   version_type=osf
16838   need_lib_prefix=no
16839   need_version=no
16840   soname_spec='${libname}${release}${shared_ext}$major'
16841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842   shlibpath_var=LD_LIBRARY_PATH
16843   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16844   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16845   ;;
16846
16847 sco3.2v5*)
16848   version_type=osf
16849   soname_spec='${libname}${release}${shared_ext}$major'
16850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851   shlibpath_var=LD_LIBRARY_PATH
16852   ;;
16853
16854 solaris*)
16855   version_type=linux
16856   need_lib_prefix=no
16857   need_version=no
16858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859   soname_spec='${libname}${release}${shared_ext}$major'
16860   shlibpath_var=LD_LIBRARY_PATH
16861   shlibpath_overrides_runpath=yes
16862   hardcode_into_libs=yes
16863   # ldd complains unless libraries are executable
16864   postinstall_cmds='chmod +x $lib'
16865   ;;
16866
16867 sunos4*)
16868   version_type=sunos
16869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16870   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16871   shlibpath_var=LD_LIBRARY_PATH
16872   shlibpath_overrides_runpath=yes
16873   if test "$with_gnu_ld" = yes; then
16874     need_lib_prefix=no
16875   fi
16876   need_version=yes
16877   ;;
16878
16879 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16880   version_type=linux
16881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882   soname_spec='${libname}${release}${shared_ext}$major'
16883   shlibpath_var=LD_LIBRARY_PATH
16884   case $host_vendor in
16885     sni)
16886       shlibpath_overrides_runpath=no
16887       need_lib_prefix=no
16888       export_dynamic_flag_spec='${wl}-Blargedynsym'
16889       runpath_var=LD_RUN_PATH
16890       ;;
16891     siemens)
16892       need_lib_prefix=no
16893       ;;
16894     motorola)
16895       need_lib_prefix=no
16896       need_version=no
16897       shlibpath_overrides_runpath=no
16898       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16899       ;;
16900   esac
16901   ;;
16902
16903 sysv4*MP*)
16904   if test -d /usr/nec ;then
16905     version_type=linux
16906     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16907     soname_spec='$libname${shared_ext}.$major'
16908     shlibpath_var=LD_LIBRARY_PATH
16909   fi
16910   ;;
16911
16912 uts4*)
16913   version_type=linux
16914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16915   soname_spec='${libname}${release}${shared_ext}$major'
16916   shlibpath_var=LD_LIBRARY_PATH
16917   ;;
16918
16919 *)
16920   dynamic_linker=no
16921   ;;
16922 esac
16923 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16924 echo "${ECHO_T}$dynamic_linker" >&6
16925 test "$dynamic_linker" = no && can_build_shared=no
16926
16927 if test "x$enable_dlopen" != xyes; then
16928   enable_dlopen=unknown
16929   enable_dlopen_self=unknown
16930   enable_dlopen_self_static=unknown
16931 else
16932   lt_cv_dlopen=no
16933   lt_cv_dlopen_libs=
16934
16935   case $host_os in
16936   beos*)
16937     lt_cv_dlopen="load_add_on"
16938     lt_cv_dlopen_libs=
16939     lt_cv_dlopen_self=yes
16940     ;;
16941
16942   mingw* | pw32*)
16943     lt_cv_dlopen="LoadLibrary"
16944     lt_cv_dlopen_libs=
16945    ;;
16946
16947   cygwin*)
16948     lt_cv_dlopen="dlopen"
16949     lt_cv_dlopen_libs=
16950    ;;
16951
16952   darwin*)
16953   # if libdl is installed we need to link against it
16954     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16955 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16956 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16957   echo $ECHO_N "(cached) $ECHO_C" >&6
16958 else
16959   ac_check_lib_save_LIBS=$LIBS
16960 LIBS="-ldl  $LIBS"
16961 cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967
16968 /* Override any gcc2 internal prototype to avoid an error.  */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 /* We use char because int might match the return type of a gcc2
16973    builtin and then its argument prototype would still apply.  */
16974 char dlopen ();
16975 int
16976 main ()
16977 {
16978 dlopen ();
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985   (eval $ac_link) 2>conftest.er1
16986   ac_status=$?
16987   grep -v '^ *+' conftest.er1 >conftest.err
16988   rm -f conftest.er1
16989   cat conftest.err >&5
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); } &&
16992          { ac_try='test -z "$ac_c_werror_flag"
16993                          || test ! -s conftest.err'
16994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995   (eval $ac_try) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; } &&
16999          { ac_try='test -s conftest$ac_exeext'
17000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001   (eval $ac_try) 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; }; then
17005   ac_cv_lib_dl_dlopen=yes
17006 else
17007   echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17009
17010 ac_cv_lib_dl_dlopen=no
17011 fi
17012 rm -f conftest.err conftest.$ac_objext \
17013       conftest$ac_exeext conftest.$ac_ext
17014 LIBS=$ac_check_lib_save_LIBS
17015 fi
17016 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17018 if test $ac_cv_lib_dl_dlopen = yes; then
17019   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17020 else
17021
17022     lt_cv_dlopen="dyld"
17023     lt_cv_dlopen_libs=
17024     lt_cv_dlopen_self=yes
17025
17026 fi
17027
17028    ;;
17029
17030   *)
17031     echo "$as_me:$LINENO: checking for shl_load" >&5
17032 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17033 if test "${ac_cv_func_shl_load+set}" = set; then
17034   echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036   cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17044 #define shl_load innocuous_shl_load
17045
17046 /* System header to define __stub macros and hopefully few prototypes,
17047     which can conflict with char shl_load (); below.
17048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049     <limits.h> exists even on freestanding compilers.  */
17050
17051 #ifdef __STDC__
17052 # include <limits.h>
17053 #else
17054 # include <assert.h>
17055 #endif
17056
17057 #undef shl_load
17058
17059 /* Override any gcc2 internal prototype to avoid an error.  */
17060 #ifdef __cplusplus
17061 extern "C"
17062 {
17063 #endif
17064 /* We use char because int might match the return type of a gcc2
17065    builtin and then its argument prototype would still apply.  */
17066 char shl_load ();
17067 /* The GNU C library defines this for functions which it implements
17068     to always fail with ENOSYS.  Some functions are actually named
17069     something starting with __ and the normal name is an alias.  */
17070 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17071 choke me
17072 #else
17073 char (*f) () = shl_load;
17074 #endif
17075 #ifdef __cplusplus
17076 }
17077 #endif
17078
17079 int
17080 main ()
17081 {
17082 return f != shl_load;
17083   ;
17084   return 0;
17085 }
17086 _ACEOF
17087 rm -f conftest.$ac_objext conftest$ac_exeext
17088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17089   (eval $ac_link) 2>conftest.er1
17090   ac_status=$?
17091   grep -v '^ *+' conftest.er1 >conftest.err
17092   rm -f conftest.er1
17093   cat conftest.err >&5
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); } &&
17096          { ac_try='test -z "$ac_c_werror_flag"
17097                          || test ! -s conftest.err'
17098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099   (eval $ac_try) 2>&5
17100   ac_status=$?
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); }; } &&
17103          { ac_try='test -s conftest$ac_exeext'
17104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105   (eval $ac_try) 2>&5
17106   ac_status=$?
17107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108   (exit $ac_status); }; }; then
17109   ac_cv_func_shl_load=yes
17110 else
17111   echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17113
17114 ac_cv_func_shl_load=no
17115 fi
17116 rm -f conftest.err conftest.$ac_objext \
17117       conftest$ac_exeext conftest.$ac_ext
17118 fi
17119 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17120 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17121 if test $ac_cv_func_shl_load = yes; then
17122   lt_cv_dlopen="shl_load"
17123 else
17124   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17125 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17126 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17127   echo $ECHO_N "(cached) $ECHO_C" >&6
17128 else
17129   ac_check_lib_save_LIBS=$LIBS
17130 LIBS="-ldld  $LIBS"
17131 cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137
17138 /* Override any gcc2 internal prototype to avoid an error.  */
17139 #ifdef __cplusplus
17140 extern "C"
17141 #endif
17142 /* We use char because int might match the return type of a gcc2
17143    builtin and then its argument prototype would still apply.  */
17144 char shl_load ();
17145 int
17146 main ()
17147 {
17148 shl_load ();
17149   ;
17150   return 0;
17151 }
17152 _ACEOF
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155   (eval $ac_link) 2>conftest.er1
17156   ac_status=$?
17157   grep -v '^ *+' conftest.er1 >conftest.err
17158   rm -f conftest.er1
17159   cat conftest.err >&5
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); } &&
17162          { ac_try='test -z "$ac_c_werror_flag"
17163                          || test ! -s conftest.err'
17164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165   (eval $ac_try) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; } &&
17169          { ac_try='test -s conftest$ac_exeext'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   ac_cv_lib_dld_shl_load=yes
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180 ac_cv_lib_dld_shl_load=no
17181 fi
17182 rm -f conftest.err conftest.$ac_objext \
17183       conftest$ac_exeext conftest.$ac_ext
17184 LIBS=$ac_check_lib_save_LIBS
17185 fi
17186 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17187 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17188 if test $ac_cv_lib_dld_shl_load = yes; then
17189   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17190 else
17191   echo "$as_me:$LINENO: checking for dlopen" >&5
17192 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17193 if test "${ac_cv_func_dlopen+set}" = set; then
17194   echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196   cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h.  */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h.  */
17202 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17204 #define dlopen innocuous_dlopen
17205
17206 /* System header to define __stub macros and hopefully few prototypes,
17207     which can conflict with char dlopen (); below.
17208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17209     <limits.h> exists even on freestanding compilers.  */
17210
17211 #ifdef __STDC__
17212 # include <limits.h>
17213 #else
17214 # include <assert.h>
17215 #endif
17216
17217 #undef dlopen
17218
17219 /* Override any gcc2 internal prototype to avoid an error.  */
17220 #ifdef __cplusplus
17221 extern "C"
17222 {
17223 #endif
17224 /* We use char because int might match the return type of a gcc2
17225    builtin and then its argument prototype would still apply.  */
17226 char dlopen ();
17227 /* The GNU C library defines this for functions which it implements
17228     to always fail with ENOSYS.  Some functions are actually named
17229     something starting with __ and the normal name is an alias.  */
17230 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17231 choke me
17232 #else
17233 char (*f) () = dlopen;
17234 #endif
17235 #ifdef __cplusplus
17236 }
17237 #endif
17238
17239 int
17240 main ()
17241 {
17242 return f != dlopen;
17243   ;
17244   return 0;
17245 }
17246 _ACEOF
17247 rm -f conftest.$ac_objext conftest$ac_exeext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17249   (eval $ac_link) 2>conftest.er1
17250   ac_status=$?
17251   grep -v '^ *+' conftest.er1 >conftest.err
17252   rm -f conftest.er1
17253   cat conftest.err >&5
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); } &&
17256          { ac_try='test -z "$ac_c_werror_flag"
17257                          || test ! -s conftest.err'
17258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259   (eval $ac_try) 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; } &&
17263          { ac_try='test -s conftest$ac_exeext'
17264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265   (eval $ac_try) 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; }; then
17269   ac_cv_func_dlopen=yes
17270 else
17271   echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274 ac_cv_func_dlopen=no
17275 fi
17276 rm -f conftest.err conftest.$ac_objext \
17277       conftest$ac_exeext conftest.$ac_ext
17278 fi
17279 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17280 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17281 if test $ac_cv_func_dlopen = yes; then
17282   lt_cv_dlopen="dlopen"
17283 else
17284   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17285 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17286 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17287   echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289   ac_check_lib_save_LIBS=$LIBS
17290 LIBS="-ldl  $LIBS"
17291 cat >conftest.$ac_ext <<_ACEOF
17292 /* confdefs.h.  */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h.  */
17297
17298 /* Override any gcc2 internal prototype to avoid an error.  */
17299 #ifdef __cplusplus
17300 extern "C"
17301 #endif
17302 /* We use char because int might match the return type of a gcc2
17303    builtin and then its argument prototype would still apply.  */
17304 char dlopen ();
17305 int
17306 main ()
17307 {
17308 dlopen ();
17309   ;
17310   return 0;
17311 }
17312 _ACEOF
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17315   (eval $ac_link) 2>conftest.er1
17316   ac_status=$?
17317   grep -v '^ *+' conftest.er1 >conftest.err
17318   rm -f conftest.er1
17319   cat conftest.err >&5
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); } &&
17322          { ac_try='test -z "$ac_c_werror_flag"
17323                          || test ! -s conftest.err'
17324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325   (eval $ac_try) 2>&5
17326   ac_status=$?
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); }; } &&
17329          { ac_try='test -s conftest$ac_exeext'
17330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331   (eval $ac_try) 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; }; then
17335   ac_cv_lib_dl_dlopen=yes
17336 else
17337   echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340 ac_cv_lib_dl_dlopen=no
17341 fi
17342 rm -f conftest.err conftest.$ac_objext \
17343       conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_lib_save_LIBS
17345 fi
17346 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17347 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17348 if test $ac_cv_lib_dl_dlopen = yes; then
17349   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17350 else
17351   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17352 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17353 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17354   echo $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356   ac_check_lib_save_LIBS=$LIBS
17357 LIBS="-lsvld  $LIBS"
17358 cat >conftest.$ac_ext <<_ACEOF
17359 /* confdefs.h.  */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h.  */
17364
17365 /* Override any gcc2 internal prototype to avoid an error.  */
17366 #ifdef __cplusplus
17367 extern "C"
17368 #endif
17369 /* We use char because int might match the return type of a gcc2
17370    builtin and then its argument prototype would still apply.  */
17371 char dlopen ();
17372 int
17373 main ()
17374 {
17375 dlopen ();
17376   ;
17377   return 0;
17378 }
17379 _ACEOF
17380 rm -f conftest.$ac_objext conftest$ac_exeext
17381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17382   (eval $ac_link) 2>conftest.er1
17383   ac_status=$?
17384   grep -v '^ *+' conftest.er1 >conftest.err
17385   rm -f conftest.er1
17386   cat conftest.err >&5
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); } &&
17389          { ac_try='test -z "$ac_c_werror_flag"
17390                          || test ! -s conftest.err'
17391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392   (eval $ac_try) 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; } &&
17396          { ac_try='test -s conftest$ac_exeext'
17397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398   (eval $ac_try) 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; }; then
17402   ac_cv_lib_svld_dlopen=yes
17403 else
17404   echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407 ac_cv_lib_svld_dlopen=no
17408 fi
17409 rm -f conftest.err conftest.$ac_objext \
17410       conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS
17412 fi
17413 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17414 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17415 if test $ac_cv_lib_svld_dlopen = yes; then
17416   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17417 else
17418   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17419 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17420 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17421   echo $ECHO_N "(cached) $ECHO_C" >&6
17422 else
17423   ac_check_lib_save_LIBS=$LIBS
17424 LIBS="-ldld  $LIBS"
17425 cat >conftest.$ac_ext <<_ACEOF
17426 /* confdefs.h.  */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h.  */
17431
17432 /* Override any gcc2 internal prototype to avoid an error.  */
17433 #ifdef __cplusplus
17434 extern "C"
17435 #endif
17436 /* We use char because int might match the return type of a gcc2
17437    builtin and then its argument prototype would still apply.  */
17438 char dld_link ();
17439 int
17440 main ()
17441 {
17442 dld_link ();
17443   ;
17444   return 0;
17445 }
17446 _ACEOF
17447 rm -f conftest.$ac_objext conftest$ac_exeext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17449   (eval $ac_link) 2>conftest.er1
17450   ac_status=$?
17451   grep -v '^ *+' conftest.er1 >conftest.err
17452   rm -f conftest.er1
17453   cat conftest.err >&5
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } &&
17456          { ac_try='test -z "$ac_c_werror_flag"
17457                          || test ! -s conftest.err'
17458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459   (eval $ac_try) 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; } &&
17463          { ac_try='test -s conftest$ac_exeext'
17464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465   (eval $ac_try) 2>&5
17466   ac_status=$?
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); }; }; then
17469   ac_cv_lib_dld_dld_link=yes
17470 else
17471   echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474 ac_cv_lib_dld_dld_link=no
17475 fi
17476 rm -f conftest.err conftest.$ac_objext \
17477       conftest$ac_exeext conftest.$ac_ext
17478 LIBS=$ac_check_lib_save_LIBS
17479 fi
17480 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17481 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17482 if test $ac_cv_lib_dld_dld_link = yes; then
17483   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17484 fi
17485
17486
17487 fi
17488
17489
17490 fi
17491
17492
17493 fi
17494
17495
17496 fi
17497
17498
17499 fi
17500
17501     ;;
17502   esac
17503
17504   if test "x$lt_cv_dlopen" != xno; then
17505     enable_dlopen=yes
17506   else
17507     enable_dlopen=no
17508   fi
17509
17510   case $lt_cv_dlopen in
17511   dlopen)
17512     save_CPPFLAGS="$CPPFLAGS"
17513     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17514
17515     save_LDFLAGS="$LDFLAGS"
17516     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17517
17518     save_LIBS="$LIBS"
17519     LIBS="$lt_cv_dlopen_libs $LIBS"
17520
17521     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17522 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17523 if test "${lt_cv_dlopen_self+set}" = set; then
17524   echo $ECHO_N "(cached) $ECHO_C" >&6
17525 else
17526           if test "$cross_compiling" = yes; then :
17527   lt_cv_dlopen_self=cross
17528 else
17529   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17530   lt_status=$lt_dlunknown
17531   cat > conftest.$ac_ext <<EOF
17532 #line 17532 "configure"
17533 #include "confdefs.h"
17534
17535 #if HAVE_DLFCN_H
17536 #include <dlfcn.h>
17537 #endif
17538
17539 #include <stdio.h>
17540
17541 #ifdef RTLD_GLOBAL
17542 #  define LT_DLGLOBAL           RTLD_GLOBAL
17543 #else
17544 #  ifdef DL_GLOBAL
17545 #    define LT_DLGLOBAL         DL_GLOBAL
17546 #  else
17547 #    define LT_DLGLOBAL         0
17548 #  endif
17549 #endif
17550
17551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17552    find out it does not work in some platform. */
17553 #ifndef LT_DLLAZY_OR_NOW
17554 #  ifdef RTLD_LAZY
17555 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17556 #  else
17557 #    ifdef DL_LAZY
17558 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17559 #    else
17560 #      ifdef RTLD_NOW
17561 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17562 #      else
17563 #        ifdef DL_NOW
17564 #          define LT_DLLAZY_OR_NOW      DL_NOW
17565 #        else
17566 #          define LT_DLLAZY_OR_NOW      0
17567 #        endif
17568 #      endif
17569 #    endif
17570 #  endif
17571 #endif
17572
17573 #ifdef __cplusplus
17574 extern "C" void exit (int);
17575 #endif
17576
17577 void fnord() { int i=42;}
17578 int main ()
17579 {
17580   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17581   int status = $lt_dlunknown;
17582
17583   if (self)
17584     {
17585       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17586       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17587       /* dlclose (self); */
17588     }
17589
17590     exit (status);
17591 }
17592 EOF
17593   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594   (eval $ac_link) 2>&5
17595   ac_status=$?
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17598     (./conftest; exit; ) 2>/dev/null
17599     lt_status=$?
17600     case x$lt_status in
17601       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17602       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17603       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17604     esac
17605   else :
17606     # compilation failed
17607     lt_cv_dlopen_self=no
17608   fi
17609 fi
17610 rm -fr conftest*
17611
17612
17613 fi
17614 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17615 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17616
17617     if test "x$lt_cv_dlopen_self" = xyes; then
17618       LDFLAGS="$LDFLAGS $link_static_flag"
17619       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17620 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17621 if test "${lt_cv_dlopen_self_static+set}" = set; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624           if test "$cross_compiling" = yes; then :
17625   lt_cv_dlopen_self_static=cross
17626 else
17627   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17628   lt_status=$lt_dlunknown
17629   cat > conftest.$ac_ext <<EOF
17630 #line 17630 "configure"
17631 #include "confdefs.h"
17632
17633 #if HAVE_DLFCN_H
17634 #include <dlfcn.h>
17635 #endif
17636
17637 #include <stdio.h>
17638
17639 #ifdef RTLD_GLOBAL
17640 #  define LT_DLGLOBAL           RTLD_GLOBAL
17641 #else
17642 #  ifdef DL_GLOBAL
17643 #    define LT_DLGLOBAL         DL_GLOBAL
17644 #  else
17645 #    define LT_DLGLOBAL         0
17646 #  endif
17647 #endif
17648
17649 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17650    find out it does not work in some platform. */
17651 #ifndef LT_DLLAZY_OR_NOW
17652 #  ifdef RTLD_LAZY
17653 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17654 #  else
17655 #    ifdef DL_LAZY
17656 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17657 #    else
17658 #      ifdef RTLD_NOW
17659 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17660 #      else
17661 #        ifdef DL_NOW
17662 #          define LT_DLLAZY_OR_NOW      DL_NOW
17663 #        else
17664 #          define LT_DLLAZY_OR_NOW      0
17665 #        endif
17666 #      endif
17667 #    endif
17668 #  endif
17669 #endif
17670
17671 #ifdef __cplusplus
17672 extern "C" void exit (int);
17673 #endif
17674
17675 void fnord() { int i=42;}
17676 int main ()
17677 {
17678   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17679   int status = $lt_dlunknown;
17680
17681   if (self)
17682     {
17683       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17684       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17685       /* dlclose (self); */
17686     }
17687
17688     exit (status);
17689 }
17690 EOF
17691   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692   (eval $ac_link) 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17696     (./conftest; exit; ) 2>/dev/null
17697     lt_status=$?
17698     case x$lt_status in
17699       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17700       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17701       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17702     esac
17703   else :
17704     # compilation failed
17705     lt_cv_dlopen_self_static=no
17706   fi
17707 fi
17708 rm -fr conftest*
17709
17710
17711 fi
17712 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17713 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17714     fi
17715
17716     CPPFLAGS="$save_CPPFLAGS"
17717     LDFLAGS="$save_LDFLAGS"
17718     LIBS="$save_LIBS"
17719     ;;
17720   esac
17721
17722   case $lt_cv_dlopen_self in
17723   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17724   *) enable_dlopen_self=unknown ;;
17725   esac
17726
17727   case $lt_cv_dlopen_self_static in
17728   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17729   *) enable_dlopen_self_static=unknown ;;
17730   esac
17731 fi
17732
17733
17734 # The else clause should only fire when bootstrapping the
17735 # libtool distribution, otherwise you forgot to ship ltmain.sh
17736 # with your package, and you will get complaints that there are
17737 # no rules to generate ltmain.sh.
17738 if test -f "$ltmain"; then
17739   # See if we are running on zsh, and set the options which allow our commands through
17740   # without removal of \ escapes.
17741   if test -n "${ZSH_VERSION+set}" ; then
17742     setopt NO_GLOB_SUBST
17743   fi
17744   # Now quote all the things that may contain metacharacters while being
17745   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17746   # variables and quote the copies for generation of the libtool script.
17747   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17748     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17749     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17750     deplibs_check_method reload_flag reload_cmds need_locks \
17751     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17752     lt_cv_sys_global_symbol_to_c_name_address \
17753     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17754     old_postinstall_cmds old_postuninstall_cmds \
17755     compiler_GCJ \
17756     CC_GCJ \
17757     LD_GCJ \
17758     lt_prog_compiler_wl_GCJ \
17759     lt_prog_compiler_pic_GCJ \
17760     lt_prog_compiler_static_GCJ \
17761     lt_prog_compiler_no_builtin_flag_GCJ \
17762     export_dynamic_flag_spec_GCJ \
17763     thread_safe_flag_spec_GCJ \
17764     whole_archive_flag_spec_GCJ \
17765     enable_shared_with_static_runtimes_GCJ \
17766     old_archive_cmds_GCJ \
17767     old_archive_from_new_cmds_GCJ \
17768     predep_objects_GCJ \
17769     postdep_objects_GCJ \
17770     predeps_GCJ \
17771     postdeps_GCJ \
17772     compiler_lib_search_path_GCJ \
17773     archive_cmds_GCJ \
17774     archive_expsym_cmds_GCJ \
17775     postinstall_cmds_GCJ \
17776     postuninstall_cmds_GCJ \
17777     old_archive_from_expsyms_cmds_GCJ \
17778     allow_undefined_flag_GCJ \
17779     no_undefined_flag_GCJ \
17780     export_symbols_cmds_GCJ \
17781     hardcode_libdir_flag_spec_GCJ \
17782     hardcode_libdir_flag_spec_ld_GCJ \
17783     hardcode_libdir_separator_GCJ \
17784     hardcode_automatic_GCJ \
17785     module_cmds_GCJ \
17786     module_expsym_cmds_GCJ \
17787     lt_cv_prog_compiler_c_o_GCJ \
17788     exclude_expsyms_GCJ \
17789     include_expsyms_GCJ; do
17790
17791     case $var in
17792     old_archive_cmds_GCJ | \
17793     old_archive_from_new_cmds_GCJ | \
17794     archive_cmds_GCJ | \
17795     archive_expsym_cmds_GCJ | \
17796     module_cmds_GCJ | \
17797     module_expsym_cmds_GCJ | \
17798     old_archive_from_expsyms_cmds_GCJ | \
17799     export_symbols_cmds_GCJ | \
17800     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17801     postinstall_cmds | postuninstall_cmds | \
17802     old_postinstall_cmds | old_postuninstall_cmds | \
17803     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17804       # Double-quote double-evaled strings.
17805       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17806       ;;
17807     *)
17808       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17809       ;;
17810     esac
17811   done
17812
17813   case $lt_echo in
17814   *'\$0 --fallback-echo"')
17815     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17816     ;;
17817   esac
17818
17819 cfgfile="$ofile"
17820
17821   cat <<__EOF__ >> "$cfgfile"
17822 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17823
17824 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17825
17826 # Shell to use when invoking shell scripts.
17827 SHELL=$lt_SHELL
17828
17829 # Whether or not to build shared libraries.
17830 build_libtool_libs=$enable_shared
17831
17832 # Whether or not to build static libraries.
17833 build_old_libs=$enable_static
17834
17835 # Whether or not to add -lc for building shared libraries.
17836 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17837
17838 # Whether or not to disallow shared libs when runtime libs are static
17839 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17840
17841 # Whether or not to optimize for fast installation.
17842 fast_install=$enable_fast_install
17843
17844 # The host system.
17845 host_alias=$host_alias
17846 host=$host
17847
17848 # An echo program that does not interpret backslashes.
17849 echo=$lt_echo
17850
17851 # The archiver.
17852 AR=$lt_AR
17853 AR_FLAGS=$lt_AR_FLAGS
17854
17855 # A C compiler.
17856 LTCC=$lt_LTCC
17857
17858 # A language-specific compiler.
17859 CC=$lt_compiler_GCJ
17860
17861 # Is the compiler the GNU C compiler?
17862 with_gcc=$GCC_GCJ
17863
17864 # An ERE matcher.
17865 EGREP=$lt_EGREP
17866
17867 # The linker used to build libraries.
17868 LD=$lt_LD_GCJ
17869
17870 # Whether we need hard or soft links.
17871 LN_S=$lt_LN_S
17872
17873 # A BSD-compatible nm program.
17874 NM=$lt_NM
17875
17876 # A symbol stripping program
17877 STRIP=$STRIP
17878
17879 # Used to examine libraries when file_magic_cmd begins "file"
17880 MAGIC_CMD=$MAGIC_CMD
17881
17882 # Used on cygwin: DLL creation program.
17883 DLLTOOL="$DLLTOOL"
17884
17885 # Used on cygwin: object dumper.
17886 OBJDUMP="$OBJDUMP"
17887
17888 # Used on cygwin: assembler.
17889 AS="$AS"
17890
17891 # The name of the directory that contains temporary libtool files.
17892 objdir=$objdir
17893
17894 # How to create reloadable object files.
17895 reload_flag=$lt_reload_flag
17896 reload_cmds=$lt_reload_cmds
17897
17898 # How to pass a linker flag through the compiler.
17899 wl=$lt_lt_prog_compiler_wl_GCJ
17900
17901 # Object file suffix (normally "o").
17902 objext="$ac_objext"
17903
17904 # Old archive suffix (normally "a").
17905 libext="$libext"
17906
17907 # Shared library suffix (normally ".so").
17908 shrext='$shrext'
17909
17910 # Executable file suffix (normally "").
17911 exeext="$exeext"
17912
17913 # Additional compiler flags for building library objects.
17914 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17915 pic_mode=$pic_mode
17916
17917 # What is the maximum length of a command?
17918 max_cmd_len=$lt_cv_sys_max_cmd_len
17919
17920 # Does compiler simultaneously support -c and -o options?
17921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17922
17923 # Must we lock files when doing compilation ?
17924 need_locks=$lt_need_locks
17925
17926 # Do we need the lib prefix for modules?
17927 need_lib_prefix=$need_lib_prefix
17928
17929 # Do we need a version for libraries?
17930 need_version=$need_version
17931
17932 # Whether dlopen is supported.
17933 dlopen_support=$enable_dlopen
17934
17935 # Whether dlopen of programs is supported.
17936 dlopen_self=$enable_dlopen_self
17937
17938 # Whether dlopen of statically linked programs is supported.
17939 dlopen_self_static=$enable_dlopen_self_static
17940
17941 # Compiler flag to prevent dynamic linking.
17942 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17943
17944 # Compiler flag to turn off builtin functions.
17945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17946
17947 # Compiler flag to allow reflexive dlopens.
17948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17949
17950 # Compiler flag to generate shared objects directly from archives.
17951 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17952
17953 # Compiler flag to generate thread-safe objects.
17954 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17955
17956 # Library versioning type.
17957 version_type=$version_type
17958
17959 # Format of library name prefix.
17960 libname_spec=$lt_libname_spec
17961
17962 # List of archive names.  First name is the real one, the rest are links.
17963 # The last name is the one that the linker finds with -lNAME.
17964 library_names_spec=$lt_library_names_spec
17965
17966 # The coded name of the library, if different from the real name.
17967 soname_spec=$lt_soname_spec
17968
17969 # Commands used to build and install an old-style archive.
17970 RANLIB=$lt_RANLIB
17971 old_archive_cmds=$lt_old_archive_cmds_GCJ
17972 old_postinstall_cmds=$lt_old_postinstall_cmds
17973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17974
17975 # Create an old-style archive from a shared archive.
17976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17977
17978 # Create a temporary old-style archive to link instead of a shared archive.
17979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17980
17981 # Commands used to build and install a shared archive.
17982 archive_cmds=$lt_archive_cmds_GCJ
17983 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17984 postinstall_cmds=$lt_postinstall_cmds
17985 postuninstall_cmds=$lt_postuninstall_cmds
17986
17987 # Commands used to build a loadable module (assumed same as above if empty)
17988 module_cmds=$lt_module_cmds_GCJ
17989 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17990
17991 # Commands to strip libraries.
17992 old_striplib=$lt_old_striplib
17993 striplib=$lt_striplib
17994
17995 # Dependencies to place before the objects being linked to create a
17996 # shared library.
17997 predep_objects=$lt_predep_objects_GCJ
17998
17999 # Dependencies to place after the objects being linked to create a
18000 # shared library.
18001 postdep_objects=$lt_postdep_objects_GCJ
18002
18003 # Dependencies to place before the objects being linked to create a
18004 # shared library.
18005 predeps=$lt_predeps_GCJ
18006
18007 # Dependencies to place after the objects being linked to create a
18008 # shared library.
18009 postdeps=$lt_postdeps_GCJ
18010
18011 # The library search path used internally by the compiler when linking
18012 # a shared library.
18013 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18014
18015 # Method to check whether dependent libraries are shared objects.
18016 deplibs_check_method=$lt_deplibs_check_method
18017
18018 # Command to use when deplibs_check_method == file_magic.
18019 file_magic_cmd=$lt_file_magic_cmd
18020
18021 # Flag that allows shared libraries with undefined symbols to be built.
18022 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18023
18024 # Flag that forces no undefined symbols.
18025 no_undefined_flag=$lt_no_undefined_flag_GCJ
18026
18027 # Commands used to finish a libtool library installation in a directory.
18028 finish_cmds=$lt_finish_cmds
18029
18030 # Same as above, but a single script fragment to be evaled but not shown.
18031 finish_eval=$lt_finish_eval
18032
18033 # Take the output of nm and produce a listing of raw symbols and C names.
18034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18035
18036 # Transform the output of nm in a proper C declaration
18037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18038
18039 # Transform the output of nm in a C name address pair
18040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18041
18042 # This is the shared library runtime path variable.
18043 runpath_var=$runpath_var
18044
18045 # This is the shared library path variable.
18046 shlibpath_var=$shlibpath_var
18047
18048 # Is shlibpath searched before the hard-coded library search path?
18049 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18050
18051 # How to hardcode a shared library path into an executable.
18052 hardcode_action=$hardcode_action_GCJ
18053
18054 # Whether we should hardcode library paths into libraries.
18055 hardcode_into_libs=$hardcode_into_libs
18056
18057 # Flag to hardcode \$libdir into a binary during linking.
18058 # This must work even if \$libdir does not exist.
18059 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18060
18061 # If ld is used when linking, flag to hardcode \$libdir into
18062 # a binary during linking. This must work even if \$libdir does
18063 # not exist.
18064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18065
18066 # Whether we need a single -rpath flag with a separated argument.
18067 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18068
18069 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18070 # resulting binary.
18071 hardcode_direct=$hardcode_direct_GCJ
18072
18073 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18074 # resulting binary.
18075 hardcode_minus_L=$hardcode_minus_L_GCJ
18076
18077 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18078 # the resulting binary.
18079 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18080
18081 # Set to yes if building a shared library automatically hardcodes DIR into the library
18082 # and all subsequent libraries and executables linked against it.
18083 hardcode_automatic=$hardcode_automatic_GCJ
18084
18085 # Variables whose values should be saved in libtool wrapper scripts and
18086 # restored at relink time.
18087 variables_saved_for_relink="$variables_saved_for_relink"
18088
18089 # Whether libtool must link a program against all its dependency libraries.
18090 link_all_deplibs=$link_all_deplibs_GCJ
18091
18092 # Compile-time system search path for libraries
18093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18094
18095 # Run-time system search path for libraries
18096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18097
18098 # Fix the shell variable \$srcfile for the compiler.
18099 fix_srcfile_path="$fix_srcfile_path_GCJ"
18100
18101 # Set to yes if exported symbols are required.
18102 always_export_symbols=$always_export_symbols_GCJ
18103
18104 # The commands to list exported symbols.
18105 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18106
18107 # The commands to extract the exported symbol list from a shared archive.
18108 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18109
18110 # Symbols that should not be listed in the preloaded symbols.
18111 exclude_expsyms=$lt_exclude_expsyms_GCJ
18112
18113 # Symbols that must always be exported.
18114 include_expsyms=$lt_include_expsyms_GCJ
18115
18116 # ### END LIBTOOL TAG CONFIG: $tagname
18117
18118 __EOF__
18119
18120
18121 else
18122   # If there is no Makefile yet, we rely on a make rule to execute
18123   # `config.status --recheck' to rerun these tests and create the
18124   # libtool script then.
18125   test -f Makefile && make "$ltmain"
18126 fi
18127
18128
18129 ac_ext=c
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18134
18135 CC="$lt_save_CC"
18136
18137         else
18138           tagname=""
18139         fi
18140         ;;
18141
18142       RC)
18143
18144
18145
18146 # Source file extension for RC test sources.
18147 ac_ext=rc
18148
18149 # Object file extension for compiled RC test sources.
18150 objext=o
18151 objext_RC=$objext
18152
18153 # Code to be used in simple compile tests
18154 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18155
18156 # Code to be used in simple link tests
18157 lt_simple_link_test_code="$lt_simple_compile_test_code"
18158
18159 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18160
18161 # If no C compiler was specified, use CC.
18162 LTCC=${LTCC-"$CC"}
18163
18164 # Allow CC to be a program name with arguments.
18165 compiler=$CC
18166
18167
18168 # Allow CC to be a program name with arguments.
18169 lt_save_CC="$CC"
18170 CC=${RC-"windres"}
18171 compiler=$CC
18172 compiler_RC=$CC
18173 lt_cv_prog_compiler_c_o_RC=yes
18174
18175 # The else clause should only fire when bootstrapping the
18176 # libtool distribution, otherwise you forgot to ship ltmain.sh
18177 # with your package, and you will get complaints that there are
18178 # no rules to generate ltmain.sh.
18179 if test -f "$ltmain"; then
18180   # See if we are running on zsh, and set the options which allow our commands through
18181   # without removal of \ escapes.
18182   if test -n "${ZSH_VERSION+set}" ; then
18183     setopt NO_GLOB_SUBST
18184   fi
18185   # Now quote all the things that may contain metacharacters while being
18186   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18187   # variables and quote the copies for generation of the libtool script.
18188   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18189     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18190     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18191     deplibs_check_method reload_flag reload_cmds need_locks \
18192     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18193     lt_cv_sys_global_symbol_to_c_name_address \
18194     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18195     old_postinstall_cmds old_postuninstall_cmds \
18196     compiler_RC \
18197     CC_RC \
18198     LD_RC \
18199     lt_prog_compiler_wl_RC \
18200     lt_prog_compiler_pic_RC \
18201     lt_prog_compiler_static_RC \
18202     lt_prog_compiler_no_builtin_flag_RC \
18203     export_dynamic_flag_spec_RC \
18204     thread_safe_flag_spec_RC \
18205     whole_archive_flag_spec_RC \
18206     enable_shared_with_static_runtimes_RC \
18207     old_archive_cmds_RC \
18208     old_archive_from_new_cmds_RC \
18209     predep_objects_RC \
18210     postdep_objects_RC \
18211     predeps_RC \
18212     postdeps_RC \
18213     compiler_lib_search_path_RC \
18214     archive_cmds_RC \
18215     archive_expsym_cmds_RC \
18216     postinstall_cmds_RC \
18217     postuninstall_cmds_RC \
18218     old_archive_from_expsyms_cmds_RC \
18219     allow_undefined_flag_RC \
18220     no_undefined_flag_RC \
18221     export_symbols_cmds_RC \
18222     hardcode_libdir_flag_spec_RC \
18223     hardcode_libdir_flag_spec_ld_RC \
18224     hardcode_libdir_separator_RC \
18225     hardcode_automatic_RC \
18226     module_cmds_RC \
18227     module_expsym_cmds_RC \
18228     lt_cv_prog_compiler_c_o_RC \
18229     exclude_expsyms_RC \
18230     include_expsyms_RC; do
18231
18232     case $var in
18233     old_archive_cmds_RC | \
18234     old_archive_from_new_cmds_RC | \
18235     archive_cmds_RC | \
18236     archive_expsym_cmds_RC | \
18237     module_cmds_RC | \
18238     module_expsym_cmds_RC | \
18239     old_archive_from_expsyms_cmds_RC | \
18240     export_symbols_cmds_RC | \
18241     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18242     postinstall_cmds | postuninstall_cmds | \
18243     old_postinstall_cmds | old_postuninstall_cmds | \
18244     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18245       # Double-quote double-evaled strings.
18246       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18247       ;;
18248     *)
18249       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18250       ;;
18251     esac
18252   done
18253
18254   case $lt_echo in
18255   *'\$0 --fallback-echo"')
18256     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18257     ;;
18258   esac
18259
18260 cfgfile="$ofile"
18261
18262   cat <<__EOF__ >> "$cfgfile"
18263 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18264
18265 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18266
18267 # Shell to use when invoking shell scripts.
18268 SHELL=$lt_SHELL
18269
18270 # Whether or not to build shared libraries.
18271 build_libtool_libs=$enable_shared
18272
18273 # Whether or not to build static libraries.
18274 build_old_libs=$enable_static
18275
18276 # Whether or not to add -lc for building shared libraries.
18277 build_libtool_need_lc=$archive_cmds_need_lc_RC
18278
18279 # Whether or not to disallow shared libs when runtime libs are static
18280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18281
18282 # Whether or not to optimize for fast installation.
18283 fast_install=$enable_fast_install
18284
18285 # The host system.
18286 host_alias=$host_alias
18287 host=$host
18288
18289 # An echo program that does not interpret backslashes.
18290 echo=$lt_echo
18291
18292 # The archiver.
18293 AR=$lt_AR
18294 AR_FLAGS=$lt_AR_FLAGS
18295
18296 # A C compiler.
18297 LTCC=$lt_LTCC
18298
18299 # A language-specific compiler.
18300 CC=$lt_compiler_RC
18301
18302 # Is the compiler the GNU C compiler?
18303 with_gcc=$GCC_RC
18304
18305 # An ERE matcher.
18306 EGREP=$lt_EGREP
18307
18308 # The linker used to build libraries.
18309 LD=$lt_LD_RC
18310
18311 # Whether we need hard or soft links.
18312 LN_S=$lt_LN_S
18313
18314 # A BSD-compatible nm program.
18315 NM=$lt_NM
18316
18317 # A symbol stripping program
18318 STRIP=$STRIP
18319
18320 # Used to examine libraries when file_magic_cmd begins "file"
18321 MAGIC_CMD=$MAGIC_CMD
18322
18323 # Used on cygwin: DLL creation program.
18324 DLLTOOL="$DLLTOOL"
18325
18326 # Used on cygwin: object dumper.
18327 OBJDUMP="$OBJDUMP"
18328
18329 # Used on cygwin: assembler.
18330 AS="$AS"
18331
18332 # The name of the directory that contains temporary libtool files.
18333 objdir=$objdir
18334
18335 # How to create reloadable object files.
18336 reload_flag=$lt_reload_flag
18337 reload_cmds=$lt_reload_cmds
18338
18339 # How to pass a linker flag through the compiler.
18340 wl=$lt_lt_prog_compiler_wl_RC
18341
18342 # Object file suffix (normally "o").
18343 objext="$ac_objext"
18344
18345 # Old archive suffix (normally "a").
18346 libext="$libext"
18347
18348 # Shared library suffix (normally ".so").
18349 shrext='$shrext'
18350
18351 # Executable file suffix (normally "").
18352 exeext="$exeext"
18353
18354 # Additional compiler flags for building library objects.
18355 pic_flag=$lt_lt_prog_compiler_pic_RC
18356 pic_mode=$pic_mode
18357
18358 # What is the maximum length of a command?
18359 max_cmd_len=$lt_cv_sys_max_cmd_len
18360
18361 # Does compiler simultaneously support -c and -o options?
18362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18363
18364 # Must we lock files when doing compilation ?
18365 need_locks=$lt_need_locks
18366
18367 # Do we need the lib prefix for modules?
18368 need_lib_prefix=$need_lib_prefix
18369
18370 # Do we need a version for libraries?
18371 need_version=$need_version
18372
18373 # Whether dlopen is supported.
18374 dlopen_support=$enable_dlopen
18375
18376 # Whether dlopen of programs is supported.
18377 dlopen_self=$enable_dlopen_self
18378
18379 # Whether dlopen of statically linked programs is supported.
18380 dlopen_self_static=$enable_dlopen_self_static
18381
18382 # Compiler flag to prevent dynamic linking.
18383 link_static_flag=$lt_lt_prog_compiler_static_RC
18384
18385 # Compiler flag to turn off builtin functions.
18386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18387
18388 # Compiler flag to allow reflexive dlopens.
18389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18390
18391 # Compiler flag to generate shared objects directly from archives.
18392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18393
18394 # Compiler flag to generate thread-safe objects.
18395 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18396
18397 # Library versioning type.
18398 version_type=$version_type
18399
18400 # Format of library name prefix.
18401 libname_spec=$lt_libname_spec
18402
18403 # List of archive names.  First name is the real one, the rest are links.
18404 # The last name is the one that the linker finds with -lNAME.
18405 library_names_spec=$lt_library_names_spec
18406
18407 # The coded name of the library, if different from the real name.
18408 soname_spec=$lt_soname_spec
18409
18410 # Commands used to build and install an old-style archive.
18411 RANLIB=$lt_RANLIB
18412 old_archive_cmds=$lt_old_archive_cmds_RC
18413 old_postinstall_cmds=$lt_old_postinstall_cmds
18414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18415
18416 # Create an old-style archive from a shared archive.
18417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18418
18419 # Create a temporary old-style archive to link instead of a shared archive.
18420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18421
18422 # Commands used to build and install a shared archive.
18423 archive_cmds=$lt_archive_cmds_RC
18424 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18425 postinstall_cmds=$lt_postinstall_cmds
18426 postuninstall_cmds=$lt_postuninstall_cmds
18427
18428 # Commands used to build a loadable module (assumed same as above if empty)
18429 module_cmds=$lt_module_cmds_RC
18430 module_expsym_cmds=$lt_module_expsym_cmds_RC
18431
18432 # Commands to strip libraries.
18433 old_striplib=$lt_old_striplib
18434 striplib=$lt_striplib
18435
18436 # Dependencies to place before the objects being linked to create a
18437 # shared library.
18438 predep_objects=$lt_predep_objects_RC
18439
18440 # Dependencies to place after the objects being linked to create a
18441 # shared library.
18442 postdep_objects=$lt_postdep_objects_RC
18443
18444 # Dependencies to place before the objects being linked to create a
18445 # shared library.
18446 predeps=$lt_predeps_RC
18447
18448 # Dependencies to place after the objects being linked to create a
18449 # shared library.
18450 postdeps=$lt_postdeps_RC
18451
18452 # The library search path used internally by the compiler when linking
18453 # a shared library.
18454 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18455
18456 # Method to check whether dependent libraries are shared objects.
18457 deplibs_check_method=$lt_deplibs_check_method
18458
18459 # Command to use when deplibs_check_method == file_magic.
18460 file_magic_cmd=$lt_file_magic_cmd
18461
18462 # Flag that allows shared libraries with undefined symbols to be built.
18463 allow_undefined_flag=$lt_allow_undefined_flag_RC
18464
18465 # Flag that forces no undefined symbols.
18466 no_undefined_flag=$lt_no_undefined_flag_RC
18467
18468 # Commands used to finish a libtool library installation in a directory.
18469 finish_cmds=$lt_finish_cmds
18470
18471 # Same as above, but a single script fragment to be evaled but not shown.
18472 finish_eval=$lt_finish_eval
18473
18474 # Take the output of nm and produce a listing of raw symbols and C names.
18475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18476
18477 # Transform the output of nm in a proper C declaration
18478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18479
18480 # Transform the output of nm in a C name address pair
18481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18482
18483 # This is the shared library runtime path variable.
18484 runpath_var=$runpath_var
18485
18486 # This is the shared library path variable.
18487 shlibpath_var=$shlibpath_var
18488
18489 # Is shlibpath searched before the hard-coded library search path?
18490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18491
18492 # How to hardcode a shared library path into an executable.
18493 hardcode_action=$hardcode_action_RC
18494
18495 # Whether we should hardcode library paths into libraries.
18496 hardcode_into_libs=$hardcode_into_libs
18497
18498 # Flag to hardcode \$libdir into a binary during linking.
18499 # This must work even if \$libdir does not exist.
18500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18501
18502 # If ld is used when linking, flag to hardcode \$libdir into
18503 # a binary during linking. This must work even if \$libdir does
18504 # not exist.
18505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18506
18507 # Whether we need a single -rpath flag with a separated argument.
18508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18509
18510 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18511 # resulting binary.
18512 hardcode_direct=$hardcode_direct_RC
18513
18514 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18515 # resulting binary.
18516 hardcode_minus_L=$hardcode_minus_L_RC
18517
18518 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18519 # the resulting binary.
18520 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18521
18522 # Set to yes if building a shared library automatically hardcodes DIR into the library
18523 # and all subsequent libraries and executables linked against it.
18524 hardcode_automatic=$hardcode_automatic_RC
18525
18526 # Variables whose values should be saved in libtool wrapper scripts and
18527 # restored at relink time.
18528 variables_saved_for_relink="$variables_saved_for_relink"
18529
18530 # Whether libtool must link a program against all its dependency libraries.
18531 link_all_deplibs=$link_all_deplibs_RC
18532
18533 # Compile-time system search path for libraries
18534 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18535
18536 # Run-time system search path for libraries
18537 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18538
18539 # Fix the shell variable \$srcfile for the compiler.
18540 fix_srcfile_path="$fix_srcfile_path_RC"
18541
18542 # Set to yes if exported symbols are required.
18543 always_export_symbols=$always_export_symbols_RC
18544
18545 # The commands to list exported symbols.
18546 export_symbols_cmds=$lt_export_symbols_cmds_RC
18547
18548 # The commands to extract the exported symbol list from a shared archive.
18549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18550
18551 # Symbols that should not be listed in the preloaded symbols.
18552 exclude_expsyms=$lt_exclude_expsyms_RC
18553
18554 # Symbols that must always be exported.
18555 include_expsyms=$lt_include_expsyms_RC
18556
18557 # ### END LIBTOOL TAG CONFIG: $tagname
18558
18559 __EOF__
18560
18561
18562 else
18563   # If there is no Makefile yet, we rely on a make rule to execute
18564   # `config.status --recheck' to rerun these tests and create the
18565   # libtool script then.
18566   test -f Makefile && make "$ltmain"
18567 fi
18568
18569
18570 ac_ext=c
18571 ac_cpp='$CPP $CPPFLAGS'
18572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18575
18576 CC="$lt_save_CC"
18577
18578         ;;
18579
18580       *)
18581         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18582 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18583    { (exit 1); exit 1; }; }
18584         ;;
18585       esac
18586
18587       # Append the new tag name to the list of available tags.
18588       if test -n "$tagname" ; then
18589       available_tags="$available_tags $tagname"
18590     fi
18591     fi
18592   done
18593   IFS="$lt_save_ifs"
18594
18595   # Now substitute the updated list of available tags.
18596   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18597     mv "${ofile}T" "$ofile"
18598     chmod +x "$ofile"
18599   else
18600     rm -f "${ofile}T"
18601     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18602 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18603    { (exit 1); exit 1; }; }
18604   fi
18605 fi
18606
18607
18608
18609 # This can be used to rebuild libtool when needed
18610 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18611
18612 # Always use our own libtool.
18613 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18614
18615 # Prevent multiple expansion
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637 # Extract the first word of "dot", so it can be a program name with args.
18638 set dummy dot; ac_word=$2
18639 echo "$as_me:$LINENO: checking for $ac_word" >&5
18640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18641 if test "${ac_cv_path_DOT+set}" = set; then
18642   echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644   case $DOT in
18645   [\\/]* | ?:[\\/]*)
18646   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18647   ;;
18648   *)
18649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650 for as_dir in $PATH
18651 do
18652   IFS=$as_save_IFS
18653   test -z "$as_dir" && as_dir=.
18654   for ac_exec_ext in '' $ac_executable_extensions; do
18655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18658     break 2
18659   fi
18660 done
18661 done
18662
18663   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18664   ;;
18665 esac
18666 fi
18667 DOT=$ac_cv_path_DOT
18668
18669 if test -n "$DOT"; then
18670   echo "$as_me:$LINENO: result: $DOT" >&5
18671 echo "${ECHO_T}$DOT" >&6
18672 else
18673   echo "$as_me:$LINENO: result: no" >&5
18674 echo "${ECHO_T}no" >&6
18675 fi
18676
18677 # Extract the first word of "etags", so it can be a program name with args.
18678 set dummy etags; ac_word=$2
18679 echo "$as_me:$LINENO: checking for $ac_word" >&5
18680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18681 if test "${ac_cv_path_ETAGS+set}" = set; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684   case $ETAGS in
18685   [\\/]* | ?:[\\/]*)
18686   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18687   ;;
18688   *)
18689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18690 for as_dir in $PATH
18691 do
18692   IFS=$as_save_IFS
18693   test -z "$as_dir" && as_dir=.
18694   for ac_exec_ext in '' $ac_executable_extensions; do
18695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18696     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18698     break 2
18699   fi
18700 done
18701 done
18702
18703   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18704   ;;
18705 esac
18706 fi
18707 ETAGS=$ac_cv_path_ETAGS
18708
18709 if test -n "$ETAGS"; then
18710   echo "$as_me:$LINENO: result: $ETAGS" >&5
18711 echo "${ECHO_T}$ETAGS" >&6
18712 else
18713   echo "$as_me:$LINENO: result: no" >&5
18714 echo "${ECHO_T}no" >&6
18715 fi
18716
18717 etags_version=`$ETAGS --version 2>&1`
18718 case "$etags_version" in
18719         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18720         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18721         *) ETAGSFLAGS="" ;;
18722 esac
18723 ETAGSFLAGS=$ETAGSFLAGS
18724
18725 # Extract the first word of "python", so it can be a program name with args.
18726 set dummy python; ac_word=$2
18727 echo "$as_me:$LINENO: checking for $ac_word" >&5
18728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18729 if test "${ac_cv_path_PYTHON+set}" = set; then
18730   echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732   case $PYTHON in
18733   [\\/]* | ?:[\\/]*)
18734   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18735   ;;
18736   *)
18737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18738 for as_dir in $PATH
18739 do
18740   IFS=$as_save_IFS
18741   test -z "$as_dir" && as_dir=.
18742   for ac_exec_ext in '' $ac_executable_extensions; do
18743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18744     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18746     break 2
18747   fi
18748 done
18749 done
18750
18751   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18752   ;;
18753 esac
18754 fi
18755 PYTHON=$ac_cv_path_PYTHON
18756
18757 if test -n "$PYTHON"; then
18758   echo "$as_me:$LINENO: result: $PYTHON" >&5
18759 echo "${ECHO_T}$PYTHON" >&6
18760 else
18761   echo "$as_me:$LINENO: result: no" >&5
18762 echo "${ECHO_T}no" >&6
18763 fi
18764
18765 if test "$PYTHON" = "false"
18766 then
18767         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18768 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18769 fi
18770 # Extract the first word of "qmtest", so it can be a program name with args.
18771 set dummy qmtest; ac_word=$2
18772 echo "$as_me:$LINENO: checking for $ac_word" >&5
18773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18774 if test "${ac_cv_path_QMTEST+set}" = set; then
18775   echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777   case $QMTEST in
18778   [\\/]* | ?:[\\/]*)
18779   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18780   ;;
18781   *)
18782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18783 for as_dir in $PATH
18784 do
18785   IFS=$as_save_IFS
18786   test -z "$as_dir" && as_dir=.
18787   for ac_exec_ext in '' $ac_executable_extensions; do
18788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18789     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18791     break 2
18792   fi
18793 done
18794 done
18795
18796   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18797   ;;
18798 esac
18799 fi
18800 QMTEST=$ac_cv_path_QMTEST
18801
18802 if test -n "$QMTEST"; then
18803   echo "$as_me:$LINENO: result: $QMTEST" >&5
18804 echo "${ECHO_T}$QMTEST" >&6
18805 else
18806   echo "$as_me:$LINENO: result: no" >&5
18807 echo "${ECHO_T}no" >&6
18808 fi
18809
18810 if test "$QMTEST" = "false"
18811 then
18812         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18813 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18814 fi
18815
18816 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18817 pymajor=`echo $pyversion | cut -d. -f1`
18818 pyminor=`echo $pyversion | cut -d. -f2`
18819
18820 if test "$pymajor" -ge "2"
18821 then
18822         if test "$pymajor" -eq "2"
18823         then
18824                 if test "$pyminor" -lt "2"
18825                 then
18826                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18827 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18828                 fi
18829         fi
18830 else
18831         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18832 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18833 fi
18834
18835
18836
18837
18838 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18839 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18840 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18841   echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843   ac_check_lib_save_LIBS=$LIBS
18844 LIBS="-lelf  $LIBS"
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h.  */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h.  */
18851
18852 /* Override any gcc2 internal prototype to avoid an error.  */
18853 #ifdef __cplusplus
18854 extern "C"
18855 #endif
18856 /* We use char because int might match the return type of a gcc2
18857    builtin and then its argument prototype would still apply.  */
18858 char elf_begin ();
18859 int
18860 main ()
18861 {
18862 elf_begin ();
18863   ;
18864   return 0;
18865 }
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869   (eval $ac_link) 2>conftest.er1
18870   ac_status=$?
18871   grep -v '^ *+' conftest.er1 >conftest.err
18872   rm -f conftest.er1
18873   cat conftest.err >&5
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); } &&
18876          { ac_try='test -z "$ac_c_werror_flag"
18877                          || test ! -s conftest.err'
18878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879   (eval $ac_try) 2>&5
18880   ac_status=$?
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); }; } &&
18883          { ac_try='test -s conftest$ac_exeext'
18884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885   (eval $ac_try) 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); }; }; then
18889   ac_cv_lib_elf_elf_begin=yes
18890 else
18891   echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18893
18894 ac_cv_lib_elf_elf_begin=no
18895 fi
18896 rm -f conftest.err conftest.$ac_objext \
18897       conftest$ac_exeext conftest.$ac_ext
18898 LIBS=$ac_check_lib_save_LIBS
18899 fi
18900 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18901 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18902 if test $ac_cv_lib_elf_elf_begin = yes; then
18903   cat >>confdefs.h <<_ACEOF
18904 #define HAVE_LIBELF 1
18905 _ACEOF
18906
18907   LIBS="-lelf $LIBS"
18908
18909 fi
18910
18911
18912 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18913 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18914 if test "${ac_cv_search_dlopen+set}" = set; then
18915   echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917   ac_func_search_save_LIBS=$LIBS
18918 ac_cv_search_dlopen=no
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h.  */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h.  */
18925
18926 /* Override any gcc2 internal prototype to avoid an error.  */
18927 #ifdef __cplusplus
18928 extern "C"
18929 #endif
18930 /* We use char because int might match the return type of a gcc2
18931    builtin and then its argument prototype would still apply.  */
18932 char dlopen ();
18933 int
18934 main ()
18935 {
18936 dlopen ();
18937   ;
18938   return 0;
18939 }
18940 _ACEOF
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18943   (eval $ac_link) 2>conftest.er1
18944   ac_status=$?
18945   grep -v '^ *+' conftest.er1 >conftest.err
18946   rm -f conftest.er1
18947   cat conftest.err >&5
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); } &&
18950          { ac_try='test -z "$ac_c_werror_flag"
18951                          || test ! -s conftest.err'
18952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953   (eval $ac_try) 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; } &&
18957          { ac_try='test -s conftest$ac_exeext'
18958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959   (eval $ac_try) 2>&5
18960   ac_status=$?
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); }; }; then
18963   ac_cv_search_dlopen="none required"
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968 fi
18969 rm -f conftest.err conftest.$ac_objext \
18970       conftest$ac_exeext conftest.$ac_ext
18971 if test "$ac_cv_search_dlopen" = no; then
18972   for ac_lib in dl; do
18973     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18974     cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h.  */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h.  */
18980
18981 /* Override any gcc2 internal prototype to avoid an error.  */
18982 #ifdef __cplusplus
18983 extern "C"
18984 #endif
18985 /* We use char because int might match the return type of a gcc2
18986    builtin and then its argument prototype would still apply.  */
18987 char dlopen ();
18988 int
18989 main ()
18990 {
18991 dlopen ();
18992   ;
18993   return 0;
18994 }
18995 _ACEOF
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18998   (eval $ac_link) 2>conftest.er1
18999   ac_status=$?
19000   grep -v '^ *+' conftest.er1 >conftest.err
19001   rm -f conftest.er1
19002   cat conftest.err >&5
19003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004   (exit $ac_status); } &&
19005          { ac_try='test -z "$ac_c_werror_flag"
19006                          || test ! -s conftest.err'
19007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008   (eval $ac_try) 2>&5
19009   ac_status=$?
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); }; } &&
19012          { ac_try='test -s conftest$ac_exeext'
19013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014   (eval $ac_try) 2>&5
19015   ac_status=$?
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); }; }; then
19018   ac_cv_search_dlopen="-l$ac_lib"
19019 break
19020 else
19021   echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19023
19024 fi
19025 rm -f conftest.err conftest.$ac_objext \
19026       conftest$ac_exeext conftest.$ac_ext
19027   done
19028 fi
19029 LIBS=$ac_func_search_save_LIBS
19030 fi
19031 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19032 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19033 if test "$ac_cv_search_dlopen" != no; then
19034   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19035
19036 cat >>confdefs.h <<\_ACEOF
19037 #define HAVE_DLOPEN 1
19038 _ACEOF
19039
19040 else
19041   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19042 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19043 fi
19044
19045
19046 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19047 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19048 if test "${ac_cv_search_mallinfo+set}" = set; then
19049   echo $ECHO_N "(cached) $ECHO_C" >&6
19050 else
19051   ac_func_search_save_LIBS=$LIBS
19052 ac_cv_search_mallinfo=no
19053 cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h.  */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h.  */
19059
19060 /* Override any gcc2 internal prototype to avoid an error.  */
19061 #ifdef __cplusplus
19062 extern "C"
19063 #endif
19064 /* We use char because int might match the return type of a gcc2
19065    builtin and then its argument prototype would still apply.  */
19066 char mallinfo ();
19067 int
19068 main ()
19069 {
19070 mallinfo ();
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077   (eval $ac_link) 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } &&
19084          { ac_try='test -z "$ac_c_werror_flag"
19085                          || test ! -s conftest.err'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest$ac_exeext'
19092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093   (eval $ac_try) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; }; then
19097   ac_cv_search_mallinfo="none required"
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102 fi
19103 rm -f conftest.err conftest.$ac_objext \
19104       conftest$ac_exeext conftest.$ac_ext
19105 if test "$ac_cv_search_mallinfo" = no; then
19106   for ac_lib in malloc; do
19107     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19108     cat >conftest.$ac_ext <<_ACEOF
19109 /* confdefs.h.  */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h.  */
19114
19115 /* Override any gcc2 internal prototype to avoid an error.  */
19116 #ifdef __cplusplus
19117 extern "C"
19118 #endif
19119 /* We use char because int might match the return type of a gcc2
19120    builtin and then its argument prototype would still apply.  */
19121 char mallinfo ();
19122 int
19123 main ()
19124 {
19125 mallinfo ();
19126   ;
19127   return 0;
19128 }
19129 _ACEOF
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132   (eval $ac_link) 2>conftest.er1
19133   ac_status=$?
19134   grep -v '^ *+' conftest.er1 >conftest.err
19135   rm -f conftest.er1
19136   cat conftest.err >&5
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); } &&
19139          { ac_try='test -z "$ac_c_werror_flag"
19140                          || test ! -s conftest.err'
19141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142   (eval $ac_try) 2>&5
19143   ac_status=$?
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); }; } &&
19146          { ac_try='test -s conftest$ac_exeext'
19147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148   (eval $ac_try) 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); }; }; then
19152   ac_cv_search_mallinfo="-l$ac_lib"
19153 break
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158 fi
19159 rm -f conftest.err conftest.$ac_objext \
19160       conftest$ac_exeext conftest.$ac_ext
19161   done
19162 fi
19163 LIBS=$ac_func_search_save_LIBS
19164 fi
19165 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19166 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19167 if test "$ac_cv_search_mallinfo" != no; then
19168   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19169
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE_MALLINFO 1
19172 _ACEOF
19173
19174 fi
19175
19176
19177 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19178 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19179 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19180   echo $ECHO_N "(cached) $ECHO_C" >&6
19181 else
19182   ac_func_search_save_LIBS=$LIBS
19183 ac_cv_search_pthread_mutex_lock=no
19184 cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h.  */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h.  */
19190
19191 /* Override any gcc2 internal prototype to avoid an error.  */
19192 #ifdef __cplusplus
19193 extern "C"
19194 #endif
19195 /* We use char because int might match the return type of a gcc2
19196    builtin and then its argument prototype would still apply.  */
19197 char pthread_mutex_lock ();
19198 int
19199 main ()
19200 {
19201 pthread_mutex_lock ();
19202   ;
19203   return 0;
19204 }
19205 _ACEOF
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19208   (eval $ac_link) 2>conftest.er1
19209   ac_status=$?
19210   grep -v '^ *+' conftest.er1 >conftest.err
19211   rm -f conftest.er1
19212   cat conftest.err >&5
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); } &&
19215          { ac_try='test -z "$ac_c_werror_flag"
19216                          || test ! -s conftest.err'
19217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218   (eval $ac_try) 2>&5
19219   ac_status=$?
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); }; } &&
19222          { ac_try='test -s conftest$ac_exeext'
19223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224   (eval $ac_try) 2>&5
19225   ac_status=$?
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); }; }; then
19228   ac_cv_search_pthread_mutex_lock="none required"
19229 else
19230   echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19232
19233 fi
19234 rm -f conftest.err conftest.$ac_objext \
19235       conftest$ac_exeext conftest.$ac_ext
19236 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19237   for ac_lib in pthread; do
19238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19239     cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h.  */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h.  */
19245
19246 /* Override any gcc2 internal prototype to avoid an error.  */
19247 #ifdef __cplusplus
19248 extern "C"
19249 #endif
19250 /* We use char because int might match the return type of a gcc2
19251    builtin and then its argument prototype would still apply.  */
19252 char pthread_mutex_lock ();
19253 int
19254 main ()
19255 {
19256 pthread_mutex_lock ();
19257   ;
19258   return 0;
19259 }
19260 _ACEOF
19261 rm -f conftest.$ac_objext conftest$ac_exeext
19262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19263   (eval $ac_link) 2>conftest.er1
19264   ac_status=$?
19265   grep -v '^ *+' conftest.er1 >conftest.err
19266   rm -f conftest.er1
19267   cat conftest.err >&5
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); } &&
19270          { ac_try='test -z "$ac_c_werror_flag"
19271                          || test ! -s conftest.err'
19272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273   (eval $ac_try) 2>&5
19274   ac_status=$?
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); }; } &&
19277          { ac_try='test -s conftest$ac_exeext'
19278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279   (eval $ac_try) 2>&5
19280   ac_status=$?
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); }; }; then
19283   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19284 break
19285 else
19286   echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19288
19289 fi
19290 rm -f conftest.err conftest.$ac_objext \
19291       conftest$ac_exeext conftest.$ac_ext
19292   done
19293 fi
19294 LIBS=$ac_func_search_save_LIBS
19295 fi
19296 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19297 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19298 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19299   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19300   HAVE_PTHREAD_MUTEX_LOCK=1
19301 else
19302   HAVE_PTHREAD_MUTEX_LOCK=0
19303 fi
19304
19305
19306
19307 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19309 if test "${ac_cv_header_stdc+set}" = set; then
19310   echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312   cat >conftest.$ac_ext <<_ACEOF
19313 /* confdefs.h.  */
19314 _ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h.  */
19318 #include <stdlib.h>
19319 #include <stdarg.h>
19320 #include <string.h>
19321 #include <float.h>
19322
19323 int
19324 main ()
19325 {
19326
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 rm -f conftest.$ac_objext
19332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19333   (eval $ac_compile) 2>conftest.er1
19334   ac_status=$?
19335   grep -v '^ *+' conftest.er1 >conftest.err
19336   rm -f conftest.er1
19337   cat conftest.err >&5
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); } &&
19340          { ac_try='test -z "$ac_c_werror_flag"
19341                          || test ! -s conftest.err'
19342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343   (eval $ac_try) 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; } &&
19347          { ac_try='test -s conftest.$ac_objext'
19348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349   (eval $ac_try) 2>&5
19350   ac_status=$?
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); }; }; then
19353   ac_cv_header_stdc=yes
19354 else
19355   echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19357
19358 ac_cv_header_stdc=no
19359 fi
19360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19361
19362 if test $ac_cv_header_stdc = yes; then
19363   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19364   cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h.  */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h.  */
19370 #include <string.h>
19371
19372 _ACEOF
19373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19374   $EGREP "memchr" >/dev/null 2>&1; then
19375   :
19376 else
19377   ac_cv_header_stdc=no
19378 fi
19379 rm -f conftest*
19380
19381 fi
19382
19383 if test $ac_cv_header_stdc = yes; then
19384   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19385   cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391 #include <stdlib.h>
19392
19393 _ACEOF
19394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19395   $EGREP "free" >/dev/null 2>&1; then
19396   :
19397 else
19398   ac_cv_header_stdc=no
19399 fi
19400 rm -f conftest*
19401
19402 fi
19403
19404 if test $ac_cv_header_stdc = yes; then
19405   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19406   if test "$cross_compiling" = yes; then
19407   :
19408 else
19409   cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415 #include <ctype.h>
19416 #if ((' ' & 0x0FF) == 0x020)
19417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19419 #else
19420 # define ISLOWER(c) \
19421                    (('a' <= (c) && (c) <= 'i') \
19422                      || ('j' <= (c) && (c) <= 'r') \
19423                      || ('s' <= (c) && (c) <= 'z'))
19424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19425 #endif
19426
19427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19428 int
19429 main ()
19430 {
19431   int i;
19432   for (i = 0; i < 256; i++)
19433     if (XOR (islower (i), ISLOWER (i))
19434         || toupper (i) != TOUPPER (i))
19435       exit(2);
19436   exit (0);
19437 }
19438 _ACEOF
19439 rm -f conftest$ac_exeext
19440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19441   (eval $ac_link) 2>&5
19442   ac_status=$?
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446   (eval $ac_try) 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; }; then
19450   :
19451 else
19452   echo "$as_me: program exited with status $ac_status" >&5
19453 echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19455
19456 ( exit $ac_status )
19457 ac_cv_header_stdc=no
19458 fi
19459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19460 fi
19461 fi
19462 fi
19463 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19464 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19465 if test $ac_cv_header_stdc = yes; then
19466
19467 cat >>confdefs.h <<\_ACEOF
19468 #define STDC_HEADERS 1
19469 _ACEOF
19470
19471 fi
19472
19473 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19474 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19475 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19476   echo $ECHO_N "(cached) $ECHO_C" >&6
19477 else
19478   cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h.  */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h.  */
19484 #include <sys/types.h>
19485 #include <sys/wait.h>
19486 #ifndef WEXITSTATUS
19487 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19488 #endif
19489 #ifndef WIFEXITED
19490 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19491 #endif
19492
19493 int
19494 main ()
19495 {
19496   int s;
19497   wait (&s);
19498   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19499   ;
19500   return 0;
19501 }
19502 _ACEOF
19503 rm -f conftest.$ac_objext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19505   (eval $ac_compile) 2>conftest.er1
19506   ac_status=$?
19507   grep -v '^ *+' conftest.er1 >conftest.err
19508   rm -f conftest.er1
19509   cat conftest.err >&5
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); } &&
19512          { ac_try='test -z "$ac_c_werror_flag"
19513                          || test ! -s conftest.err'
19514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515   (eval $ac_try) 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); }; } &&
19519          { ac_try='test -s conftest.$ac_objext'
19520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521   (eval $ac_try) 2>&5
19522   ac_status=$?
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); }; }; then
19525   ac_cv_header_sys_wait_h=yes
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ac_cv_header_sys_wait_h=no
19531 fi
19532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19533 fi
19534 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19535 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19536 if test $ac_cv_header_sys_wait_h = yes; then
19537
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_SYS_WAIT_H 1
19540 _ACEOF
19541
19542 fi
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556 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
19557 do
19558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19560   echo "$as_me:$LINENO: checking for $ac_header" >&5
19561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19563   echo $ECHO_N "(cached) $ECHO_C" >&6
19564 fi
19565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19567 else
19568   # Is the header compilable?
19569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19571 cat >conftest.$ac_ext <<_ACEOF
19572 /* confdefs.h.  */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h.  */
19577 $ac_includes_default
19578 #include <$ac_header>
19579 _ACEOF
19580 rm -f conftest.$ac_objext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582   (eval $ac_compile) 2>conftest.er1
19583   ac_status=$?
19584   grep -v '^ *+' conftest.er1 >conftest.err
19585   rm -f conftest.er1
19586   cat conftest.err >&5
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); } &&
19589          { ac_try='test -z "$ac_c_werror_flag"
19590                          || test ! -s conftest.err'
19591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592   (eval $ac_try) 2>&5
19593   ac_status=$?
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); }; } &&
19596          { ac_try='test -s conftest.$ac_objext'
19597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598   (eval $ac_try) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; }; then
19602   ac_header_compiler=yes
19603 else
19604   echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19606
19607 ac_header_compiler=no
19608 fi
19609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19611 echo "${ECHO_T}$ac_header_compiler" >&6
19612
19613 # Is the header present?
19614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19616 cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h.  */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h.  */
19622 #include <$ac_header>
19623 _ACEOF
19624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19625   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19626   ac_status=$?
19627   grep -v '^ *+' conftest.er1 >conftest.err
19628   rm -f conftest.er1
19629   cat conftest.err >&5
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); } >/dev/null; then
19632   if test -s conftest.err; then
19633     ac_cpp_err=$ac_c_preproc_warn_flag
19634     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19635   else
19636     ac_cpp_err=
19637   fi
19638 else
19639   ac_cpp_err=yes
19640 fi
19641 if test -z "$ac_cpp_err"; then
19642   ac_header_preproc=yes
19643 else
19644   echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647   ac_header_preproc=no
19648 fi
19649 rm -f conftest.err conftest.$ac_ext
19650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19651 echo "${ECHO_T}$ac_header_preproc" >&6
19652
19653 # So?  What about this header?
19654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19655   yes:no: )
19656     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19660     ac_header_preproc=yes
19661     ;;
19662   no:yes:* )
19663     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19665     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19666 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19667     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19669     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19670 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19673     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19675     (
19676       cat <<\_ASBOX
19677 ## ----------------------------------- ##
19678 ## Report this to llvmbugs@cs.uiuc.edu ##
19679 ## ----------------------------------- ##
19680 _ASBOX
19681     ) |
19682       sed "s/^/$as_me: WARNING:     /" >&2
19683     ;;
19684 esac
19685 echo "$as_me:$LINENO: checking for $ac_header" >&5
19686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19688   echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690   eval "$as_ac_Header=\$ac_header_preproc"
19691 fi
19692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19694
19695 fi
19696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19697   cat >>confdefs.h <<_ACEOF
19698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19699 _ACEOF
19700
19701 fi
19702
19703 done
19704
19705
19706 if test "${ac_cv_header_sys_types_h+set}" = set; then
19707   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19708 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19709 if test "${ac_cv_header_sys_types_h+set}" = set; then
19710   echo $ECHO_N "(cached) $ECHO_C" >&6
19711 fi
19712 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19713 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19714 else
19715   # Is the header compilable?
19716 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19717 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h.  */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h.  */
19724 $ac_includes_default
19725 #include <sys/types.h>
19726 _ACEOF
19727 rm -f conftest.$ac_objext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19729   (eval $ac_compile) 2>conftest.er1
19730   ac_status=$?
19731   grep -v '^ *+' conftest.er1 >conftest.err
19732   rm -f conftest.er1
19733   cat conftest.err >&5
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); } &&
19736          { ac_try='test -z "$ac_c_werror_flag"
19737                          || test ! -s conftest.err'
19738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739   (eval $ac_try) 2>&5
19740   ac_status=$?
19741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); }; } &&
19743          { ac_try='test -s conftest.$ac_objext'
19744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745   (eval $ac_try) 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); }; }; then
19749   ac_header_compiler=yes
19750 else
19751   echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19753
19754 ac_header_compiler=no
19755 fi
19756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19758 echo "${ECHO_T}$ac_header_compiler" >&6
19759
19760 # Is the header present?
19761 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19762 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769 #include <sys/types.h>
19770 _ACEOF
19771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19773   ac_status=$?
19774   grep -v '^ *+' conftest.er1 >conftest.err
19775   rm -f conftest.er1
19776   cat conftest.err >&5
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } >/dev/null; then
19779   if test -s conftest.err; then
19780     ac_cpp_err=$ac_c_preproc_warn_flag
19781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19782   else
19783     ac_cpp_err=
19784   fi
19785 else
19786   ac_cpp_err=yes
19787 fi
19788 if test -z "$ac_cpp_err"; then
19789   ac_header_preproc=yes
19790 else
19791   echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19793
19794   ac_header_preproc=no
19795 fi
19796 rm -f conftest.err conftest.$ac_ext
19797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19798 echo "${ECHO_T}$ac_header_preproc" >&6
19799
19800 # So?  What about this header?
19801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19802   yes:no: )
19803     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19804 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19805     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19806 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19807     ac_header_preproc=yes
19808     ;;
19809   no:yes:* )
19810     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19811 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19812     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
19813 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
19814     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19815 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19816     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
19817 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19818     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19819 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19820     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19821 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19822     (
19823       cat <<\_ASBOX
19824 ## ----------------------------------- ##
19825 ## Report this to llvmbugs@cs.uiuc.edu ##
19826 ## ----------------------------------- ##
19827 _ASBOX
19828     ) |
19829       sed "s/^/$as_me: WARNING:     /" >&2
19830     ;;
19831 esac
19832 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19833 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19834 if test "${ac_cv_header_sys_types_h+set}" = set; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837   ac_cv_header_sys_types_h=$ac_header_preproc
19838 fi
19839 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19840 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19841
19842 fi
19843 if test $ac_cv_header_sys_types_h = yes; then
19844   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19845 else
19846   INCLUDE_SYS_TYPES_H=''
19847 fi
19848
19849
19850
19851 if test "${ac_cv_header_inttypes_h+set}" = set; then
19852   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19853 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19854 if test "${ac_cv_header_inttypes_h+set}" = set; then
19855   echo $ECHO_N "(cached) $ECHO_C" >&6
19856 fi
19857 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19858 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19859 else
19860   # Is the header compilable?
19861 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19862 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19863 cat >conftest.$ac_ext <<_ACEOF
19864 /* confdefs.h.  */
19865 _ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h.  */
19869 $ac_includes_default
19870 #include <inttypes.h>
19871 _ACEOF
19872 rm -f conftest.$ac_objext
19873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19874   (eval $ac_compile) 2>conftest.er1
19875   ac_status=$?
19876   grep -v '^ *+' conftest.er1 >conftest.err
19877   rm -f conftest.er1
19878   cat conftest.err >&5
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); } &&
19881          { ac_try='test -z "$ac_c_werror_flag"
19882                          || test ! -s conftest.err'
19883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884   (eval $ac_try) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; } &&
19888          { ac_try='test -s conftest.$ac_objext'
19889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890   (eval $ac_try) 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); }; }; then
19894   ac_header_compiler=yes
19895 else
19896   echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19898
19899 ac_header_compiler=no
19900 fi
19901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19903 echo "${ECHO_T}$ac_header_compiler" >&6
19904
19905 # Is the header present?
19906 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19907 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19908 cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 #include <inttypes.h>
19915 _ACEOF
19916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19918   ac_status=$?
19919   grep -v '^ *+' conftest.er1 >conftest.err
19920   rm -f conftest.er1
19921   cat conftest.err >&5
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); } >/dev/null; then
19924   if test -s conftest.err; then
19925     ac_cpp_err=$ac_c_preproc_warn_flag
19926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19927   else
19928     ac_cpp_err=
19929   fi
19930 else
19931   ac_cpp_err=yes
19932 fi
19933 if test -z "$ac_cpp_err"; then
19934   ac_header_preproc=yes
19935 else
19936   echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19938
19939   ac_header_preproc=no
19940 fi
19941 rm -f conftest.err conftest.$ac_ext
19942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19943 echo "${ECHO_T}$ac_header_preproc" >&6
19944
19945 # So?  What about this header?
19946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19947   yes:no: )
19948     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19949 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19950     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19951 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19952     ac_header_preproc=yes
19953     ;;
19954   no:yes:* )
19955     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19956 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19957     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
19958 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
19959     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19960 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19961     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
19962 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19963     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19964 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19965     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
19966 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
19967     (
19968       cat <<\_ASBOX
19969 ## ----------------------------------- ##
19970 ## Report this to llvmbugs@cs.uiuc.edu ##
19971 ## ----------------------------------- ##
19972 _ASBOX
19973     ) |
19974       sed "s/^/$as_me: WARNING:     /" >&2
19975     ;;
19976 esac
19977 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19978 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19979 if test "${ac_cv_header_inttypes_h+set}" = set; then
19980   echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982   ac_cv_header_inttypes_h=$ac_header_preproc
19983 fi
19984 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19985 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19986
19987 fi
19988 if test $ac_cv_header_inttypes_h = yes; then
19989   INCLUDE_INTTYPES_H='#include <inttypes.h>'
19990 else
19991   INCLUDE_INTTYPES_H=''
19992 fi
19993
19994
19995
19996 if test "${ac_cv_header_stdint_h+set}" = set; then
19997   echo "$as_me:$LINENO: checking for stdint.h" >&5
19998 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19999 if test "${ac_cv_header_stdint_h+set}" = set; then
20000   echo $ECHO_N "(cached) $ECHO_C" >&6
20001 fi
20002 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20003 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20004 else
20005   # Is the header compilable?
20006 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20007 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h.  */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h.  */
20014 $ac_includes_default
20015 #include <stdint.h>
20016 _ACEOF
20017 rm -f conftest.$ac_objext
20018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019   (eval $ac_compile) 2>conftest.er1
20020   ac_status=$?
20021   grep -v '^ *+' conftest.er1 >conftest.err
20022   rm -f conftest.er1
20023   cat conftest.err >&5
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); } &&
20026          { ac_try='test -z "$ac_c_werror_flag"
20027                          || test ! -s conftest.err'
20028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029   (eval $ac_try) 2>&5
20030   ac_status=$?
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); }; } &&
20033          { ac_try='test -s conftest.$ac_objext'
20034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035   (eval $ac_try) 2>&5
20036   ac_status=$?
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); }; }; then
20039   ac_header_compiler=yes
20040 else
20041   echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044 ac_header_compiler=no
20045 fi
20046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20048 echo "${ECHO_T}$ac_header_compiler" >&6
20049
20050 # Is the header present?
20051 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20052 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20053 cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059 #include <stdint.h>
20060 _ACEOF
20061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20063   ac_status=$?
20064   grep -v '^ *+' conftest.er1 >conftest.err
20065   rm -f conftest.er1
20066   cat conftest.err >&5
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); } >/dev/null; then
20069   if test -s conftest.err; then
20070     ac_cpp_err=$ac_c_preproc_warn_flag
20071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20072   else
20073     ac_cpp_err=
20074   fi
20075 else
20076   ac_cpp_err=yes
20077 fi
20078 if test -z "$ac_cpp_err"; then
20079   ac_header_preproc=yes
20080 else
20081   echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20083
20084   ac_header_preproc=no
20085 fi
20086 rm -f conftest.err conftest.$ac_ext
20087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20088 echo "${ECHO_T}$ac_header_preproc" >&6
20089
20090 # So?  What about this header?
20091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20092   yes:no: )
20093     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20094 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20095     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20096 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20097     ac_header_preproc=yes
20098     ;;
20099   no:yes:* )
20100     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20101 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20102     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20103 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20104     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20105 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20106     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20107 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20108     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20109 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20110     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20111 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20112     (
20113       cat <<\_ASBOX
20114 ## ----------------------------------- ##
20115 ## Report this to llvmbugs@cs.uiuc.edu ##
20116 ## ----------------------------------- ##
20117 _ASBOX
20118     ) |
20119       sed "s/^/$as_me: WARNING:     /" >&2
20120     ;;
20121 esac
20122 echo "$as_me:$LINENO: checking for stdint.h" >&5
20123 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20124 if test "${ac_cv_header_stdint_h+set}" = set; then
20125   echo $ECHO_N "(cached) $ECHO_C" >&6
20126 else
20127   ac_cv_header_stdint_h=$ac_header_preproc
20128 fi
20129 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20130 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20131
20132 fi
20133 if test $ac_cv_header_stdint_h = yes; then
20134   INCLUDE_STDINT_H='#include <stdint.h>'
20135 else
20136   INCLUDE_STDINT_H=''
20137 fi
20138
20139
20140
20141
20142
20143 echo "$as_me:$LINENO: checking for pid_t" >&5
20144 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20145 if test "${ac_cv_type_pid_t+set}" = set; then
20146   echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148   cat >conftest.$ac_ext <<_ACEOF
20149 /* confdefs.h.  */
20150 _ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h.  */
20154 $ac_includes_default
20155 int
20156 main ()
20157 {
20158 if ((pid_t *) 0)
20159   return 0;
20160 if (sizeof (pid_t))
20161   return 0;
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 rm -f conftest.$ac_objext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20168   (eval $ac_compile) 2>conftest.er1
20169   ac_status=$?
20170   grep -v '^ *+' conftest.er1 >conftest.err
20171   rm -f conftest.er1
20172   cat conftest.err >&5
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -z "$ac_c_werror_flag"
20176                          || test ! -s conftest.err'
20177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178   (eval $ac_try) 2>&5
20179   ac_status=$?
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); }; } &&
20182          { ac_try='test -s conftest.$ac_objext'
20183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184   (eval $ac_try) 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); }; }; then
20188   ac_cv_type_pid_t=yes
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193 ac_cv_type_pid_t=no
20194 fi
20195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20196 fi
20197 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20198 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20199 if test $ac_cv_type_pid_t = yes; then
20200   :
20201 else
20202
20203 cat >>confdefs.h <<_ACEOF
20204 #define pid_t int
20205 _ACEOF
20206
20207 fi
20208
20209 echo "$as_me:$LINENO: checking for size_t" >&5
20210 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20211 if test "${ac_cv_type_size_t+set}" = set; then
20212   echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214   cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h.  */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h.  */
20220 $ac_includes_default
20221 int
20222 main ()
20223 {
20224 if ((size_t *) 0)
20225   return 0;
20226 if (sizeof (size_t))
20227   return 0;
20228   ;
20229   return 0;
20230 }
20231 _ACEOF
20232 rm -f conftest.$ac_objext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20234   (eval $ac_compile) 2>conftest.er1
20235   ac_status=$?
20236   grep -v '^ *+' conftest.er1 >conftest.err
20237   rm -f conftest.er1
20238   cat conftest.err >&5
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } &&
20241          { ac_try='test -z "$ac_c_werror_flag"
20242                          || test ! -s conftest.err'
20243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244   (eval $ac_try) 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; } &&
20248          { ac_try='test -s conftest.$ac_objext'
20249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250   (eval $ac_try) 2>&5
20251   ac_status=$?
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); }; }; then
20254   ac_cv_type_size_t=yes
20255 else
20256   echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 ac_cv_type_size_t=no
20260 fi
20261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20262 fi
20263 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20264 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20265 if test $ac_cv_type_size_t = yes; then
20266   :
20267 else
20268
20269 cat >>confdefs.h <<_ACEOF
20270 #define size_t unsigned
20271 _ACEOF
20272
20273 fi
20274
20275 echo "$as_me:$LINENO: checking for int64_t" >&5
20276 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20277 if test "${ac_cv_type_int64_t+set}" = set; then
20278   echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280   cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286 $ac_includes_default
20287 int
20288 main ()
20289 {
20290 if ((int64_t *) 0)
20291   return 0;
20292 if (sizeof (int64_t))
20293   return 0;
20294   ;
20295   return 0;
20296 }
20297 _ACEOF
20298 rm -f conftest.$ac_objext
20299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20300   (eval $ac_compile) 2>conftest.er1
20301   ac_status=$?
20302   grep -v '^ *+' conftest.er1 >conftest.err
20303   rm -f conftest.er1
20304   cat conftest.err >&5
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); } &&
20307          { ac_try='test -z "$ac_c_werror_flag"
20308                          || test ! -s conftest.err'
20309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310   (eval $ac_try) 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); }; } &&
20314          { ac_try='test -s conftest.$ac_objext'
20315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316   (eval $ac_try) 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; }; then
20320   ac_cv_type_int64_t=yes
20321 else
20322   echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20324
20325 ac_cv_type_int64_t=no
20326 fi
20327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20328 fi
20329 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20330 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20331 if test $ac_cv_type_int64_t = yes; then
20332
20333 cat >>confdefs.h <<_ACEOF
20334 #define HAVE_INT64_T 1
20335 _ACEOF
20336
20337
20338 else
20339   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20340 echo "$as_me: error: Type int64_t required but not found" >&2;}
20341    { (exit 1); exit 1; }; }
20342 fi
20343
20344 echo "$as_me:$LINENO: checking for uint64_t" >&5
20345 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20346 if test "${ac_cv_type_uint64_t+set}" = set; then
20347   echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349   cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h.  */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h.  */
20355 $ac_includes_default
20356 int
20357 main ()
20358 {
20359 if ((uint64_t *) 0)
20360   return 0;
20361 if (sizeof (uint64_t))
20362   return 0;
20363   ;
20364   return 0;
20365 }
20366 _ACEOF
20367 rm -f conftest.$ac_objext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20369   (eval $ac_compile) 2>conftest.er1
20370   ac_status=$?
20371   grep -v '^ *+' conftest.er1 >conftest.err
20372   rm -f conftest.er1
20373   cat conftest.err >&5
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); } &&
20376          { ac_try='test -z "$ac_c_werror_flag"
20377                          || test ! -s conftest.err'
20378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379   (eval $ac_try) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; } &&
20383          { ac_try='test -s conftest.$ac_objext'
20384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385   (eval $ac_try) 2>&5
20386   ac_status=$?
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); }; }; then
20389   ac_cv_type_uint64_t=yes
20390 else
20391   echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_cv_type_uint64_t=no
20395 fi
20396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20397 fi
20398 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20399 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20400 if test $ac_cv_type_uint64_t = yes; then
20401
20402 cat >>confdefs.h <<_ACEOF
20403 #define HAVE_UINT64_T 1
20404 _ACEOF
20405
20406
20407 else
20408   echo "$as_me:$LINENO: checking for u_int64_t" >&5
20409 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20410 if test "${ac_cv_type_u_int64_t+set}" = set; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413   cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h.  */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h.  */
20419 $ac_includes_default
20420 int
20421 main ()
20422 {
20423 if ((u_int64_t *) 0)
20424   return 0;
20425 if (sizeof (u_int64_t))
20426   return 0;
20427   ;
20428   return 0;
20429 }
20430 _ACEOF
20431 rm -f conftest.$ac_objext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433   (eval $ac_compile) 2>conftest.er1
20434   ac_status=$?
20435   grep -v '^ *+' conftest.er1 >conftest.err
20436   rm -f conftest.er1
20437   cat conftest.err >&5
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); } &&
20440          { ac_try='test -z "$ac_c_werror_flag"
20441                          || test ! -s conftest.err'
20442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443   (eval $ac_try) 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); }; } &&
20447          { ac_try='test -s conftest.$ac_objext'
20448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449   (eval $ac_try) 2>&5
20450   ac_status=$?
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); }; }; then
20453   ac_cv_type_u_int64_t=yes
20454 else
20455   echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458 ac_cv_type_u_int64_t=no
20459 fi
20460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20461 fi
20462 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20463 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20464 if test $ac_cv_type_u_int64_t = yes; then
20465
20466 cat >>confdefs.h <<_ACEOF
20467 #define HAVE_U_INT64_T 1
20468 _ACEOF
20469
20470
20471 else
20472   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20473 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20474    { (exit 1); exit 1; }; }
20475 fi
20476
20477 fi
20478
20479 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20480 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20481 if test "${ac_cv_header_time+set}" = set; then
20482   echo $ECHO_N "(cached) $ECHO_C" >&6
20483 else
20484   cat >conftest.$ac_ext <<_ACEOF
20485 /* confdefs.h.  */
20486 _ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h.  */
20490 #include <sys/types.h>
20491 #include <sys/time.h>
20492 #include <time.h>
20493
20494 int
20495 main ()
20496 {
20497 if ((struct tm *) 0)
20498 return 0;
20499   ;
20500   return 0;
20501 }
20502 _ACEOF
20503 rm -f conftest.$ac_objext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20505   (eval $ac_compile) 2>conftest.er1
20506   ac_status=$?
20507   grep -v '^ *+' conftest.er1 >conftest.err
20508   rm -f conftest.er1
20509   cat conftest.err >&5
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); } &&
20512          { ac_try='test -z "$ac_c_werror_flag"
20513                          || test ! -s conftest.err'
20514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515   (eval $ac_try) 2>&5
20516   ac_status=$?
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); }; } &&
20519          { ac_try='test -s conftest.$ac_objext'
20520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521   (eval $ac_try) 2>&5
20522   ac_status=$?
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); }; }; then
20525   ac_cv_header_time=yes
20526 else
20527   echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 ac_cv_header_time=no
20531 fi
20532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533 fi
20534 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20535 echo "${ECHO_T}$ac_cv_header_time" >&6
20536 if test $ac_cv_header_time = yes; then
20537
20538 cat >>confdefs.h <<\_ACEOF
20539 #define TIME_WITH_SYS_TIME 1
20540 _ACEOF
20541
20542 fi
20543
20544 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20545 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20546 if test "${ac_cv_struct_tm+set}" = set; then
20547   echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549   cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555 #include <sys/types.h>
20556 #include <time.h>
20557
20558 int
20559 main ()
20560 {
20561 struct tm *tp; tp->tm_sec;
20562   ;
20563   return 0;
20564 }
20565 _ACEOF
20566 rm -f conftest.$ac_objext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20568   (eval $ac_compile) 2>conftest.er1
20569   ac_status=$?
20570   grep -v '^ *+' conftest.er1 >conftest.err
20571   rm -f conftest.er1
20572   cat conftest.err >&5
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); } &&
20575          { ac_try='test -z "$ac_c_werror_flag"
20576                          || test ! -s conftest.err'
20577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578   (eval $ac_try) 2>&5
20579   ac_status=$?
20580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); }; } &&
20582          { ac_try='test -s conftest.$ac_objext'
20583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584   (eval $ac_try) 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; }; then
20588   ac_cv_struct_tm=time.h
20589 else
20590   echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593 ac_cv_struct_tm=sys/time.h
20594 fi
20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20596 fi
20597 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20598 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20599 if test $ac_cv_struct_tm = sys/time.h; then
20600
20601 cat >>confdefs.h <<\_ACEOF
20602 #define TM_IN_SYS_TIME 1
20603 _ACEOF
20604
20605 fi
20606
20607
20608
20609         echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20610 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20611
20612
20613         ac_ext=c
20614 ac_cpp='$CPP $CPPFLAGS'
20615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20618
20619         if test "$cross_compiling" = yes; then
20620   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20621 See \`config.log' for more details." >&5
20622 echo "$as_me: error: cannot run test program while cross compiling
20623 See \`config.log' for more details." >&2;}
20624    { (exit 1); exit 1; }; }
20625 else
20626   cat >conftest.$ac_ext <<_ACEOF
20627 /* confdefs.h.  */
20628 _ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h.  */
20632 #include <stdio.h>
20633                                  #include <stdlib.h>
20634 int
20635 main ()
20636 {
20637
20638                                  volatile double A, B;
20639                                  char Buffer[100];
20640                                  A = 1;
20641                                  A /= 10.0;
20642                                  sprintf(Buffer, "%a", A);
20643                                  B = atof(Buffer);
20644                                  if (A != B)
20645                                                          return (1);
20646                                  if (A != 0x1.999999999999ap-4)
20647                                                          return (1);
20648                                  return (0);
20649   ;
20650   return 0;
20651 }
20652 _ACEOF
20653 rm -f conftest$ac_exeext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20655   (eval $ac_link) 2>&5
20656   ac_status=$?
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660   (eval $ac_try) 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); }; }; then
20664   ac_c_printf_a=yes
20665 else
20666   echo "$as_me: program exited with status $ac_status" >&5
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 ( exit $ac_status )
20671 ac_c_printf_a=no
20672 fi
20673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20674 fi
20675         ac_ext=c
20676 ac_cpp='$CPP $CPPFLAGS'
20677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20680
20681         echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20682 echo "${ECHO_T}$ac_c_printf_a" >&6
20683         if test "$ac_c_printf_a" = "yes"; then
20684
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_PRINTF_A 1
20687 _ACEOF
20688
20689         fi
20690
20691
20692 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20693 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20694 if test "${ac_cv_c_bigendian+set}" = set; then
20695   echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697   # See if sys/param.h defines the BYTE_ORDER macro.
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704 #include <sys/types.h>
20705 #include <sys/param.h>
20706
20707 int
20708 main ()
20709 {
20710 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20711  bogus endian macros
20712 #endif
20713
20714   ;
20715   return 0;
20716 }
20717 _ACEOF
20718 rm -f conftest.$ac_objext
20719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20720   (eval $ac_compile) 2>conftest.er1
20721   ac_status=$?
20722   grep -v '^ *+' conftest.er1 >conftest.err
20723   rm -f conftest.er1
20724   cat conftest.err >&5
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); } &&
20727          { ac_try='test -z "$ac_c_werror_flag"
20728                          || test ! -s conftest.err'
20729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730   (eval $ac_try) 2>&5
20731   ac_status=$?
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); }; } &&
20734          { ac_try='test -s conftest.$ac_objext'
20735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736   (eval $ac_try) 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); }; }; then
20740   # It does; now see whether it defined to BIG_ENDIAN or not.
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h.  */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h.  */
20747 #include <sys/types.h>
20748 #include <sys/param.h>
20749
20750 int
20751 main ()
20752 {
20753 #if BYTE_ORDER != BIG_ENDIAN
20754  not big endian
20755 #endif
20756
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>conftest.er1
20764   ac_status=$?
20765   grep -v '^ *+' conftest.er1 >conftest.err
20766   rm -f conftest.er1
20767   cat conftest.err >&5
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); } &&
20770          { ac_try='test -z "$ac_c_werror_flag"
20771                          || test ! -s conftest.err'
20772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773   (eval $ac_try) 2>&5
20774   ac_status=$?
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); }; } &&
20777          { ac_try='test -s conftest.$ac_objext'
20778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779   (eval $ac_try) 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); }; }; then
20783   ac_cv_c_bigendian=yes
20784 else
20785   echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 ac_cv_c_bigendian=no
20789 fi
20790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20791 else
20792   echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20794
20795 # It does not; compile a test program.
20796 if test "$cross_compiling" = yes; then
20797   # try to guess the endianness by grepping values into an object file
20798   ac_cv_c_bigendian=unknown
20799   cat >conftest.$ac_ext <<_ACEOF
20800 /* confdefs.h.  */
20801 _ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h.  */
20805 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20806 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20807 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20808 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20809 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20810 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20811 int
20812 main ()
20813 {
20814  _ascii (); _ebcdic ();
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20821   (eval $ac_compile) 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } &&
20828          { ac_try='test -z "$ac_c_werror_flag"
20829                          || test ! -s conftest.err'
20830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831   (eval $ac_try) 2>&5
20832   ac_status=$?
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); }; } &&
20835          { ac_try='test -s conftest.$ac_objext'
20836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837   (eval $ac_try) 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); }; }; then
20841   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20842   ac_cv_c_bigendian=yes
20843 fi
20844 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20845   if test "$ac_cv_c_bigendian" = unknown; then
20846     ac_cv_c_bigendian=no
20847   else
20848     # finding both strings is unlikely to happen, but who knows?
20849     ac_cv_c_bigendian=unknown
20850   fi
20851 fi
20852 else
20853   echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856 fi
20857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20858 else
20859   cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h.  */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h.  */
20865 int
20866 main ()
20867 {
20868   /* Are we little or big endian?  From Harbison&Steele.  */
20869   union
20870   {
20871     long l;
20872     char c[sizeof (long)];
20873   } u;
20874   u.l = 1;
20875   exit (u.c[sizeof (long) - 1] == 1);
20876 }
20877 _ACEOF
20878 rm -f conftest$ac_exeext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20880   (eval $ac_link) 2>&5
20881   ac_status=$?
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885   (eval $ac_try) 2>&5
20886   ac_status=$?
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); }; }; then
20889   ac_cv_c_bigendian=no
20890 else
20891   echo "$as_me: program exited with status $ac_status" >&5
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 ( exit $ac_status )
20896 ac_cv_c_bigendian=yes
20897 fi
20898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20899 fi
20900 fi
20901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20902 fi
20903 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20904 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20905 case $ac_cv_c_bigendian in
20906   yes)
20907     ENDIAN=big
20908  ;;
20909   no)
20910     ENDIAN=little
20911  ;;
20912   *)
20913     { { echo "$as_me:$LINENO: error: unknown endianness
20914 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20915 echo "$as_me: error: unknown endianness
20916 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20917    { (exit 1); exit 1; }; } ;;
20918 esac
20919
20920
20921 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20922 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20923 if test "${ac_cv_cxx_namespaces+set}" = set; then
20924   echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926
20927
20928  ac_ext=cc
20929 ac_cpp='$CXXCPP $CPPFLAGS'
20930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20933
20934  cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h.  */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h.  */
20940 namespace Outer { namespace Inner { int i = 0; }}
20941 int
20942 main ()
20943 {
20944 using namespace Outer::Inner; return i;
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 rm -f conftest.$ac_objext
20950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20951   (eval $ac_compile) 2>conftest.er1
20952   ac_status=$?
20953   grep -v '^ *+' conftest.er1 >conftest.err
20954   rm -f conftest.er1
20955   cat conftest.err >&5
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); } &&
20958          { ac_try='test -z "$ac_cxx_werror_flag"
20959                          || test ! -s conftest.err'
20960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961   (eval $ac_try) 2>&5
20962   ac_status=$?
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); }; } &&
20965          { ac_try='test -s conftest.$ac_objext'
20966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967   (eval $ac_try) 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); }; }; then
20971   ac_cv_cxx_namespaces=yes
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976 ac_cv_cxx_namespaces=no
20977 fi
20978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20979  ac_ext=c
20980 ac_cpp='$CPP $CPPFLAGS'
20981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20984
20985
20986 fi
20987 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20988 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20989 if test "$ac_cv_cxx_namespaces" = yes; then
20990
20991 cat >>confdefs.h <<\_ACEOF
20992 #define HAVE_NAMESPACES
20993 _ACEOF
20994
20995 fi
20996
20997 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20998 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20999 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21000   echo $ECHO_N "(cached) $ECHO_C" >&6
21001 else
21002
21003
21004
21005   ac_ext=cc
21006 ac_cpp='$CXXCPP $CPPFLAGS'
21007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21010
21011   cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h.  */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h.  */
21017 #include <ext/hash_map>
21018 #ifdef HAVE_NAMESPACES
21019 using namespace std;
21020 #endif
21021 int
21022 main ()
21023 {
21024 hash_map<int, int> t;
21025   ;
21026   return 0;
21027 }
21028 _ACEOF
21029 rm -f conftest.$ac_objext
21030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21031   (eval $ac_compile) 2>conftest.er1
21032   ac_status=$?
21033   grep -v '^ *+' conftest.er1 >conftest.err
21034   rm -f conftest.er1
21035   cat conftest.err >&5
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); } &&
21038          { ac_try='test -z "$ac_cxx_werror_flag"
21039                          || test ! -s conftest.err'
21040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041   (eval $ac_try) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; } &&
21045          { ac_try='test -s conftest.$ac_objext'
21046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047   (eval $ac_try) 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; }; then
21051   ac_cv_cxx_have_std_ext_hash_map=yes
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056 ac_cv_cxx_have_std_ext_hash_map=no
21057 fi
21058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21059   ac_ext=c
21060 ac_cpp='$CPP $CPPFLAGS'
21061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21064
21065 fi
21066 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21067 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21068  HAVE_STD_EXT_HASH_MAP=0
21069  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21070  then
21071    HAVE_STD_EXT_HASH_MAP=1
21072  fi
21073
21074  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21075 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21076 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21077   echo $ECHO_N "(cached) $ECHO_C" >&6
21078 else
21079
21080
21081
21082   ac_ext=cc
21083 ac_cpp='$CXXCPP $CPPFLAGS'
21084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21087
21088   cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h.  */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h.  */
21094 #include <ext/hash_map>
21095 #ifdef HAVE_NAMESPACES
21096 using namespace __gnu_cxx;
21097 #endif
21098 int
21099 main ()
21100 {
21101 hash_map<int,int> t;
21102   ;
21103   return 0;
21104 }
21105 _ACEOF
21106 rm -f conftest.$ac_objext
21107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21108   (eval $ac_compile) 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } &&
21115          { ac_try='test -z "$ac_cxx_werror_flag"
21116                          || test ! -s conftest.err'
21117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118   (eval $ac_try) 2>&5
21119   ac_status=$?
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); }; } &&
21122          { ac_try='test -s conftest.$ac_objext'
21123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124   (eval $ac_try) 2>&5
21125   ac_status=$?
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); }; }; then
21128   ac_cv_cxx_have_gnu_ext_hash_map=yes
21129 else
21130   echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133 ac_cv_cxx_have_gnu_ext_hash_map=no
21134 fi
21135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21136   ac_ext=c
21137 ac_cpp='$CPP $CPPFLAGS'
21138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21141
21142 fi
21143 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21144 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21145  HAVE_GNU_EXT_HASH_MAP=0
21146  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21147  then
21148    HAVE_GNU_EXT_HASH_MAP=1
21149  fi
21150
21151  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21152 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21153 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21154   echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156
21157
21158
21159   ac_ext=cc
21160 ac_cpp='$CXXCPP $CPPFLAGS'
21161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21164
21165   cat >conftest.$ac_ext <<_ACEOF
21166 /* confdefs.h.  */
21167 _ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h.  */
21171 #include <hash_map>
21172 int
21173 main ()
21174 {
21175 hash_map<int,int> t;
21176   ;
21177   return 0;
21178 }
21179 _ACEOF
21180 rm -f conftest.$ac_objext
21181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21182   (eval $ac_compile) 2>conftest.er1
21183   ac_status=$?
21184   grep -v '^ *+' conftest.er1 >conftest.err
21185   rm -f conftest.er1
21186   cat conftest.err >&5
21187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188   (exit $ac_status); } &&
21189          { ac_try='test -z "$ac_cxx_werror_flag"
21190                          || test ! -s conftest.err'
21191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192   (eval $ac_try) 2>&5
21193   ac_status=$?
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); }; } &&
21196          { ac_try='test -s conftest.$ac_objext'
21197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198   (eval $ac_try) 2>&5
21199   ac_status=$?
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); }; }; then
21202   ac_cv_cxx_have_global_hash_map=yes
21203 else
21204   echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21206
21207 ac_cv_cxx_have_global_hash_map=no
21208 fi
21209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21210   ac_ext=c
21211 ac_cpp='$CPP $CPPFLAGS'
21212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21215
21216 fi
21217 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21218 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21219  HAVE_GLOBAL_HASH_MAP=0
21220  if test "$ac_cv_cxx_have_global_hash_map" = yes
21221  then
21222    HAVE_GLOBAL_HASH_MAP=1
21223  fi
21224
21225 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21226 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21227 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21228   echo $ECHO_N "(cached) $ECHO_C" >&6
21229 else
21230
21231
21232
21233   ac_ext=cc
21234 ac_cpp='$CXXCPP $CPPFLAGS'
21235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21238
21239   cat >conftest.$ac_ext <<_ACEOF
21240 /* confdefs.h.  */
21241 _ACEOF
21242 cat confdefs.h >>conftest.$ac_ext
21243 cat >>conftest.$ac_ext <<_ACEOF
21244 /* end confdefs.h.  */
21245 #include <ext/hash_set>
21246 #ifdef HAVE_NAMESPACES
21247 using namespace std;
21248 #endif
21249 int
21250 main ()
21251 {
21252 hash_set<int> t;
21253   ;
21254   return 0;
21255 }
21256 _ACEOF
21257 rm -f conftest.$ac_objext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259   (eval $ac_compile) 2>conftest.er1
21260   ac_status=$?
21261   grep -v '^ *+' conftest.er1 >conftest.err
21262   rm -f conftest.er1
21263   cat conftest.err >&5
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); } &&
21266          { ac_try='test -z "$ac_cxx_werror_flag"
21267                          || test ! -s conftest.err'
21268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269   (eval $ac_try) 2>&5
21270   ac_status=$?
21271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); }; } &&
21273          { ac_try='test -s conftest.$ac_objext'
21274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275   (eval $ac_try) 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; }; then
21279   ac_cv_cxx_have_std_ext_hash_set=yes
21280 else
21281   echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284 ac_cv_cxx_have_std_ext_hash_set=no
21285 fi
21286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21287   ac_ext=c
21288 ac_cpp='$CPP $CPPFLAGS'
21289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21292
21293 fi
21294 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21295 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21296  HAVE_STD_EXT_HASH_SET=0
21297  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21298  then
21299    HAVE_STD_EXT_HASH_SET=1
21300  fi
21301
21302  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21303 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21304 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21305   echo $ECHO_N "(cached) $ECHO_C" >&6
21306 else
21307
21308
21309
21310   ac_ext=cc
21311 ac_cpp='$CXXCPP $CPPFLAGS'
21312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21315
21316   cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 #include <ext/hash_set>
21323 #ifdef HAVE_NAMESPACES
21324 using namespace __gnu_cxx;
21325 #endif
21326 int
21327 main ()
21328 {
21329 hash_set<int> t;
21330   ;
21331   return 0;
21332 }
21333 _ACEOF
21334 rm -f conftest.$ac_objext
21335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21336   (eval $ac_compile) 2>conftest.er1
21337   ac_status=$?
21338   grep -v '^ *+' conftest.er1 >conftest.err
21339   rm -f conftest.er1
21340   cat conftest.err >&5
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); } &&
21343          { ac_try='test -z "$ac_cxx_werror_flag"
21344                          || test ! -s conftest.err'
21345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346   (eval $ac_try) 2>&5
21347   ac_status=$?
21348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349   (exit $ac_status); }; } &&
21350          { ac_try='test -s conftest.$ac_objext'
21351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352   (eval $ac_try) 2>&5
21353   ac_status=$?
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); }; }; then
21356   ac_cv_cxx_have_gnu_ext_hash_set=yes
21357 else
21358   echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21360
21361 ac_cv_cxx_have_gnu_ext_hash_set=no
21362 fi
21363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21364   ac_ext=c
21365 ac_cpp='$CPP $CPPFLAGS'
21366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21369
21370 fi
21371 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21372 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21373  HAVE_GNU_EXT_HASH_SET=0
21374  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21375  then
21376    HAVE_GNU_EXT_HASH_SET=1
21377  fi
21378
21379  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21380 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21381 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21382   echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384
21385
21386
21387   ac_ext=cc
21388 ac_cpp='$CXXCPP $CPPFLAGS'
21389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21392
21393   cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 #include <hash_set>
21400 int
21401 main ()
21402 {
21403 hash_set<int> t; return 0;
21404   ;
21405   return 0;
21406 }
21407 _ACEOF
21408 rm -f conftest.$ac_objext
21409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21410   (eval $ac_compile) 2>conftest.er1
21411   ac_status=$?
21412   grep -v '^ *+' conftest.er1 >conftest.err
21413   rm -f conftest.er1
21414   cat conftest.err >&5
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } &&
21417          { ac_try='test -z "$ac_cxx_werror_flag"
21418                          || test ! -s conftest.err'
21419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420   (eval $ac_try) 2>&5
21421   ac_status=$?
21422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); }; } &&
21424          { ac_try='test -s conftest.$ac_objext'
21425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426   (eval $ac_try) 2>&5
21427   ac_status=$?
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); }; }; then
21430   ac_cv_cxx_have_global_hash_set=yes
21431 else
21432   echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21434
21435 ac_cv_cxx_have_global_hash_set=no
21436 fi
21437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21438   ac_ext=c
21439 ac_cpp='$CPP $CPPFLAGS'
21440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21443
21444 fi
21445 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21446 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21447  HAVE_GLOBAL_HASH_SET=0
21448  if test "$ac_cv_cxx_have_global_hash_set" = yes
21449  then
21450    HAVE_GLOBAL_HASH_SET=1
21451  fi
21452
21453 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21454 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21455 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458
21459
21460
21461   ac_ext=cc
21462 ac_cpp='$CXXCPP $CPPFLAGS'
21463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21466
21467   cat >conftest.$ac_ext <<_ACEOF
21468 /* confdefs.h.  */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h.  */
21473 #include <iterator>
21474 #ifdef HAVE_NAMESPACES
21475 using namespace std;
21476 #endif
21477 int
21478 main ()
21479 {
21480 iterator<int,int,int> t; return 0;
21481   ;
21482   return 0;
21483 }
21484 _ACEOF
21485 rm -f conftest.$ac_objext
21486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21487   (eval $ac_compile) 2>conftest.er1
21488   ac_status=$?
21489   grep -v '^ *+' conftest.er1 >conftest.err
21490   rm -f conftest.er1
21491   cat conftest.err >&5
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); } &&
21494          { ac_try='test -z "$ac_cxx_werror_flag"
21495                          || test ! -s conftest.err'
21496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497   (eval $ac_try) 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); }; } &&
21501          { ac_try='test -s conftest.$ac_objext'
21502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503   (eval $ac_try) 2>&5
21504   ac_status=$?
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); }; }; then
21507   ac_cv_cxx_have_std_iterator=yes
21508 else
21509   echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21511
21512 ac_cv_cxx_have_std_iterator=no
21513 fi
21514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21515   ac_ext=c
21516 ac_cpp='$CPP $CPPFLAGS'
21517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21520
21521
21522 fi
21523 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21524 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21525 HAVE_STD_ITERATOR=0
21526 if test "$ac_cv_cxx_have_std_iterator" = yes
21527 then
21528    HAVE_STD_ITERATOR=1
21529 fi
21530
21531 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21532 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21533 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21534   echo $ECHO_N "(cached) $ECHO_C" >&6
21535 else
21536
21537
21538
21539   ac_ext=cc
21540 ac_cpp='$CXXCPP $CPPFLAGS'
21541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21544
21545   cat >conftest.$ac_ext <<_ACEOF
21546 /* confdefs.h.  */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h.  */
21551 #include <iterator>
21552 #ifdef HAVE_NAMESPACES
21553 using namespace std;
21554 #endif
21555 int
21556 main ()
21557 {
21558 bidirectional_iterator<int,int> t; return 0;
21559   ;
21560   return 0;
21561 }
21562 _ACEOF
21563 rm -f conftest.$ac_objext
21564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21565   (eval $ac_compile) 2>conftest.er1
21566   ac_status=$?
21567   grep -v '^ *+' conftest.er1 >conftest.err
21568   rm -f conftest.er1
21569   cat conftest.err >&5
21570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); } &&
21572          { ac_try='test -z "$ac_cxx_werror_flag"
21573                          || test ! -s conftest.err'
21574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575   (eval $ac_try) 2>&5
21576   ac_status=$?
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); }; } &&
21579          { ac_try='test -s conftest.$ac_objext'
21580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581   (eval $ac_try) 2>&5
21582   ac_status=$?
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); }; }; then
21585   ac_cv_cxx_have_bi_iterator=yes
21586 else
21587   echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21589
21590 ac_cv_cxx_have_bi_iterator=no
21591 fi
21592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21593   ac_ext=c
21594 ac_cpp='$CPP $CPPFLAGS'
21595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21598
21599
21600 fi
21601 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21602 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21603 HAVE_BI_ITERATOR=0
21604 if test "$ac_cv_cxx_have_bi_iterator" = yes
21605 then
21606    HAVE_BI_ITERATOR=1
21607 fi
21608
21609 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21610 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21611 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21612   echo $ECHO_N "(cached) $ECHO_C" >&6
21613 else
21614
21615
21616
21617   ac_ext=cc
21618 ac_cpp='$CXXCPP $CPPFLAGS'
21619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21622
21623   cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h.  */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h.  */
21629 #include <iterator>
21630 #ifdef HAVE_NAMESPACES
21631 using namespace std;
21632 #endif
21633 int
21634 main ()
21635 {
21636 forward_iterator<int,int> t; return 0;
21637   ;
21638   return 0;
21639 }
21640 _ACEOF
21641 rm -f conftest.$ac_objext
21642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21643   (eval $ac_compile) 2>conftest.er1
21644   ac_status=$?
21645   grep -v '^ *+' conftest.er1 >conftest.err
21646   rm -f conftest.er1
21647   cat conftest.err >&5
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); } &&
21650          { ac_try='test -z "$ac_cxx_werror_flag"
21651                          || test ! -s conftest.err'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; } &&
21657          { ac_try='test -s conftest.$ac_objext'
21658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659   (eval $ac_try) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; }; then
21663   ac_cv_cxx_have_fwd_iterator=yes
21664 else
21665   echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668 ac_cv_cxx_have_fwd_iterator=no
21669 fi
21670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21671   ac_ext=c
21672 ac_cpp='$CPP $CPPFLAGS'
21673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21676
21677
21678 fi
21679 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21680 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21681 HAVE_FWD_ITERATOR=0
21682 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21683 then
21684    HAVE_FWD_ITERATOR=1
21685 fi
21686
21687
21688
21689 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21690 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21691 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21692   echo $ECHO_N "(cached) $ECHO_C" >&6
21693 else
21694   ac_ext=cc
21695 ac_cpp='$CXXCPP $CPPFLAGS'
21696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21699
21700   cat >conftest.$ac_ext <<_ACEOF
21701 /* confdefs.h.  */
21702 _ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h.  */
21706 #include <math.h>
21707                      int foo(float f) {return isnan(f);}
21708 _ACEOF
21709 rm -f conftest.$ac_objext
21710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21711   (eval $ac_compile) 2>conftest.er1
21712   ac_status=$?
21713   grep -v '^ *+' conftest.er1 >conftest.err
21714   rm -f conftest.er1
21715   cat conftest.err >&5
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); } &&
21718          { ac_try='test -z "$ac_cxx_werror_flag"
21719                          || test ! -s conftest.err'
21720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721   (eval $ac_try) 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; } &&
21725          { ac_try='test -s conftest.$ac_objext'
21726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727   (eval $ac_try) 2>&5
21728   ac_status=$?
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); }; }; then
21731   ac_cv_func_isnan_in_math_h=yes
21732 else
21733   echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736 ac_cv_func_isnan_in_math_h=no
21737 fi
21738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21739  ac_ext=c
21740 ac_cpp='$CPP $CPPFLAGS'
21741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21744
21745 fi
21746 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21747 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21748  if test "$ac_cv_func_isnan_in_math_h" = "yes"
21749  then
21750
21751 cat >>confdefs.h <<\_ACEOF
21752 #define HAVE_ISNAN_IN_MATH_H 1
21753 _ACEOF
21754
21755  fi
21756 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21757 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21758 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21759   echo $ECHO_N "(cached) $ECHO_C" >&6
21760 else
21761   ac_ext=cc
21762 ac_cpp='$CXXCPP $CPPFLAGS'
21763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21766
21767   cat >conftest.$ac_ext <<_ACEOF
21768 /* confdefs.h.  */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h.  */
21773 #include <cmath>
21774                      int foo(float f) {return isnan(f);}
21775 _ACEOF
21776 rm -f conftest.$ac_objext
21777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21778   (eval $ac_compile) 2>conftest.er1
21779   ac_status=$?
21780   grep -v '^ *+' conftest.er1 >conftest.err
21781   rm -f conftest.er1
21782   cat conftest.err >&5
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); } &&
21785          { ac_try='test -z "$ac_cxx_werror_flag"
21786                          || test ! -s conftest.err'
21787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788   (eval $ac_try) 2>&5
21789   ac_status=$?
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); }; } &&
21792          { ac_try='test -s conftest.$ac_objext'
21793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794   (eval $ac_try) 2>&5
21795   ac_status=$?
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); }; }; then
21798   ac_cv_func_isnan_in_cmath=yes
21799 else
21800   echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21802
21803 ac_cv_func_isnan_in_cmath=no
21804 fi
21805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21806  ac_ext=c
21807 ac_cpp='$CPP $CPPFLAGS'
21808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21811
21812 fi
21813 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21814 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21815  if test "$ac_cv_func_isnan_in_cmath" = "yes"
21816  then
21817
21818 cat >>confdefs.h <<\_ACEOF
21819 #define HAVE_ISNAN_IN_CMATH 1
21820 _ACEOF
21821
21822  fi
21823 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21824 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21825 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21826   echo $ECHO_N "(cached) $ECHO_C" >&6
21827 else
21828   ac_ext=cc
21829 ac_cpp='$CXXCPP $CPPFLAGS'
21830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21833
21834   cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h.  */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h.  */
21840 #include <cmath>
21841                      using std::isnan; int foo(float f) {return isnan(f);}
21842 _ACEOF
21843 rm -f conftest.$ac_objext
21844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21845   (eval $ac_compile) 2>conftest.er1
21846   ac_status=$?
21847   grep -v '^ *+' conftest.er1 >conftest.err
21848   rm -f conftest.er1
21849   cat conftest.err >&5
21850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851   (exit $ac_status); } &&
21852          { ac_try='test -z "$ac_cxx_werror_flag"
21853                          || test ! -s conftest.err'
21854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855   (eval $ac_try) 2>&5
21856   ac_status=$?
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); }; } &&
21859          { ac_try='test -s conftest.$ac_objext'
21860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861   (eval $ac_try) 2>&5
21862   ac_status=$?
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); }; }; then
21865   ac_cv_func_std_isnan_in_cmath=yes
21866 else
21867   echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21869
21870 ac_cv_func_std_isnan_in_cmath=no
21871 fi
21872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21873  ac_ext=c
21874 ac_cpp='$CPP $CPPFLAGS'
21875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21878
21879 fi
21880 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21881 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21882  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21883  then
21884
21885 cat >>confdefs.h <<\_ACEOF
21886 #define HAVE_STD_ISNAN_IN_CMATH 1
21887 _ACEOF
21888
21889  fi
21890
21891
21892 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21893 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21894 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21895   echo $ECHO_N "(cached) $ECHO_C" >&6
21896 else
21897   ac_ext=cc
21898 ac_cpp='$CXXCPP $CPPFLAGS'
21899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21902
21903   cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909 #include <math.h>
21910                      int foo(float f) {return isinf(f);}
21911 _ACEOF
21912 rm -f conftest.$ac_objext
21913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21914   (eval $ac_compile) 2>conftest.er1
21915   ac_status=$?
21916   grep -v '^ *+' conftest.er1 >conftest.err
21917   rm -f conftest.er1
21918   cat conftest.err >&5
21919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); } &&
21921          { ac_try='test -z "$ac_cxx_werror_flag"
21922                          || test ! -s conftest.err'
21923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; } &&
21928          { ac_try='test -s conftest.$ac_objext'
21929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930   (eval $ac_try) 2>&5
21931   ac_status=$?
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); }; }; then
21934   ac_cv_func_isinf_in_math_h=yes
21935 else
21936   echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21938
21939 ac_cv_func_isinf_in_math_h=no
21940 fi
21941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21942  ac_ext=c
21943 ac_cpp='$CPP $CPPFLAGS'
21944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21947
21948 fi
21949 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21950 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21951  if test "$ac_cv_func_isinf_in_math_h" = "yes"
21952  then
21953
21954 cat >>confdefs.h <<\_ACEOF
21955 #define HAVE_ISINF_IN_MATH_H 1
21956 _ACEOF
21957
21958  fi
21959 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21960 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21961 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964   ac_ext=cc
21965 ac_cpp='$CXXCPP $CPPFLAGS'
21966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21969
21970   cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976 #include <cmath>
21977                      int foo(float f) {return isinf(f);}
21978 _ACEOF
21979 rm -f conftest.$ac_objext
21980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21981   (eval $ac_compile) 2>conftest.er1
21982   ac_status=$?
21983   grep -v '^ *+' conftest.er1 >conftest.err
21984   rm -f conftest.er1
21985   cat conftest.err >&5
21986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987   (exit $ac_status); } &&
21988          { ac_try='test -z "$ac_cxx_werror_flag"
21989                          || test ! -s conftest.err'
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); }; } &&
21995          { ac_try='test -s conftest.$ac_objext'
21996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997   (eval $ac_try) 2>&5
21998   ac_status=$?
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); }; }; then
22001   ac_cv_func_isinf_in_cmath=yes
22002 else
22003   echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006 ac_cv_func_isinf_in_cmath=no
22007 fi
22008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22009  ac_ext=c
22010 ac_cpp='$CPP $CPPFLAGS'
22011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22014
22015 fi
22016 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22017 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22018  if test "$ac_cv_func_isinf_in_cmath" = "yes"
22019  then
22020
22021 cat >>confdefs.h <<\_ACEOF
22022 #define HAVE_ISINF_IN_CMATH 1
22023 _ACEOF
22024
22025  fi
22026 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22027 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22028 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22029   echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031   ac_ext=cc
22032 ac_cpp='$CXXCPP $CPPFLAGS'
22033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22036
22037   cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h.  */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h.  */
22043 #include <cmath>
22044                      using std::isinf; int foo(float f) {return isinf(f);}
22045 _ACEOF
22046 rm -f conftest.$ac_objext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048   (eval $ac_compile) 2>conftest.er1
22049   ac_status=$?
22050   grep -v '^ *+' conftest.er1 >conftest.err
22051   rm -f conftest.er1
22052   cat conftest.err >&5
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); } &&
22055          { ac_try='test -z "$ac_cxx_werror_flag"
22056                          || test ! -s conftest.err'
22057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058   (eval $ac_try) 2>&5
22059   ac_status=$?
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); }; } &&
22062          { ac_try='test -s conftest.$ac_objext'
22063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064   (eval $ac_try) 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); }; }; then
22068   ac_cv_func_std_isinf_in_cmath=yes
22069 else
22070   echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22072
22073 ac_cv_func_std_isinf_in_cmath=no
22074 fi
22075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22076  ac_ext=c
22077 ac_cpp='$CPP $CPPFLAGS'
22078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22081
22082 fi
22083 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22084 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22085  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22086  then
22087
22088 cat >>confdefs.h <<\_ACEOF
22089 #define HAVE_STD_ISINF_IN_CMATH 1
22090 _ACEOF
22091
22092  fi
22093 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22094 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22095 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22096   echo $ECHO_N "(cached) $ECHO_C" >&6
22097 else
22098   ac_ext=cc
22099 ac_cpp='$CXXCPP $CPPFLAGS'
22100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22103
22104   cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h.  */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h.  */
22110 #include <ieeefp.h>
22111                      int foo(float f) {return finite(f);}
22112 _ACEOF
22113 rm -f conftest.$ac_objext
22114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22115   (eval $ac_compile) 2>conftest.er1
22116   ac_status=$?
22117   grep -v '^ *+' conftest.er1 >conftest.err
22118   rm -f conftest.er1
22119   cat conftest.err >&5
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); } &&
22122          { ac_try='test -z "$ac_cxx_werror_flag"
22123                          || test ! -s conftest.err'
22124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125   (eval $ac_try) 2>&5
22126   ac_status=$?
22127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); }; } &&
22129          { ac_try='test -s conftest.$ac_objext'
22130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131   (eval $ac_try) 2>&5
22132   ac_status=$?
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); }; }; then
22135   ac_cv_func_finite_in_ieeefp_h=yes
22136 else
22137   echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22139
22140 ac_cv_func_finite_in_ieeefp_h=no
22141 fi
22142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22143  ac_ext=c
22144 ac_cpp='$CPP $CPPFLAGS'
22145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22148
22149 fi
22150 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22151 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22152  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22153  then
22154
22155 cat >>confdefs.h <<\_ACEOF
22156 #define HAVE_FINITE_IN_IEEEFP_H 1
22157 _ACEOF
22158
22159  fi
22160
22161
22162 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22163 # for constant arguments.  Useless!
22164 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22165 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22166 if test "${ac_cv_working_alloca_h+set}" = set; then
22167   echo $ECHO_N "(cached) $ECHO_C" >&6
22168 else
22169   cat >conftest.$ac_ext <<_ACEOF
22170 /* confdefs.h.  */
22171 _ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h.  */
22175 #include <alloca.h>
22176 int
22177 main ()
22178 {
22179 char *p = (char *) alloca (2 * sizeof (int));
22180   ;
22181   return 0;
22182 }
22183 _ACEOF
22184 rm -f conftest.$ac_objext conftest$ac_exeext
22185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22186   (eval $ac_link) 2>conftest.er1
22187   ac_status=$?
22188   grep -v '^ *+' conftest.er1 >conftest.err
22189   rm -f conftest.er1
22190   cat conftest.err >&5
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); } &&
22193          { ac_try='test -z "$ac_c_werror_flag"
22194                          || test ! -s conftest.err'
22195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; } &&
22200          { ac_try='test -s conftest$ac_exeext'
22201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202   (eval $ac_try) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); }; }; then
22206   ac_cv_working_alloca_h=yes
22207 else
22208   echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 ac_cv_working_alloca_h=no
22212 fi
22213 rm -f conftest.err conftest.$ac_objext \
22214       conftest$ac_exeext conftest.$ac_ext
22215 fi
22216 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22217 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22218 if test $ac_cv_working_alloca_h = yes; then
22219
22220 cat >>confdefs.h <<\_ACEOF
22221 #define HAVE_ALLOCA_H 1
22222 _ACEOF
22223
22224 fi
22225
22226 echo "$as_me:$LINENO: checking for alloca" >&5
22227 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22228 if test "${ac_cv_func_alloca_works+set}" = set; then
22229   echo $ECHO_N "(cached) $ECHO_C" >&6
22230 else
22231   cat >conftest.$ac_ext <<_ACEOF
22232 /* confdefs.h.  */
22233 _ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h.  */
22237 #ifdef __GNUC__
22238 # define alloca __builtin_alloca
22239 #else
22240 # ifdef _MSC_VER
22241 #  include <malloc.h>
22242 #  define alloca _alloca
22243 # else
22244 #  if HAVE_ALLOCA_H
22245 #   include <alloca.h>
22246 #  else
22247 #   ifdef _AIX
22248  #pragma alloca
22249 #   else
22250 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22251 char *alloca ();
22252 #    endif
22253 #   endif
22254 #  endif
22255 # endif
22256 #endif
22257
22258 int
22259 main ()
22260 {
22261 char *p = (char *) alloca (1);
22262   ;
22263   return 0;
22264 }
22265 _ACEOF
22266 rm -f conftest.$ac_objext conftest$ac_exeext
22267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22268   (eval $ac_link) 2>conftest.er1
22269   ac_status=$?
22270   grep -v '^ *+' conftest.er1 >conftest.err
22271   rm -f conftest.er1
22272   cat conftest.err >&5
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); } &&
22275          { ac_try='test -z "$ac_c_werror_flag"
22276                          || test ! -s conftest.err'
22277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278   (eval $ac_try) 2>&5
22279   ac_status=$?
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); }; } &&
22282          { ac_try='test -s conftest$ac_exeext'
22283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284   (eval $ac_try) 2>&5
22285   ac_status=$?
22286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); }; }; then
22288   ac_cv_func_alloca_works=yes
22289 else
22290   echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293 ac_cv_func_alloca_works=no
22294 fi
22295 rm -f conftest.err conftest.$ac_objext \
22296       conftest$ac_exeext conftest.$ac_ext
22297 fi
22298 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22299 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22300
22301 if test $ac_cv_func_alloca_works = yes; then
22302
22303 cat >>confdefs.h <<\_ACEOF
22304 #define HAVE_ALLOCA 1
22305 _ACEOF
22306
22307 else
22308   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22309 # that cause trouble.  Some versions do not even contain alloca or
22310 # contain a buggy version.  If you still want to use their alloca,
22311 # use ar to extract alloca.o from them instead of compiling alloca.c.
22312
22313 ALLOCA=alloca.$ac_objext
22314
22315 cat >>confdefs.h <<\_ACEOF
22316 #define C_ALLOCA 1
22317 _ACEOF
22318
22319
22320 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22321 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22322 if test "${ac_cv_os_cray+set}" = set; then
22323   echo $ECHO_N "(cached) $ECHO_C" >&6
22324 else
22325   cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h.  */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h.  */
22331 #if defined(CRAY) && ! defined(CRAY2)
22332 webecray
22333 #else
22334 wenotbecray
22335 #endif
22336
22337 _ACEOF
22338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22339   $EGREP "webecray" >/dev/null 2>&1; then
22340   ac_cv_os_cray=yes
22341 else
22342   ac_cv_os_cray=no
22343 fi
22344 rm -f conftest*
22345
22346 fi
22347 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22348 echo "${ECHO_T}$ac_cv_os_cray" >&6
22349 if test $ac_cv_os_cray = yes; then
22350   for ac_func in _getb67 GETB67 getb67; do
22351     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22352 echo "$as_me:$LINENO: checking for $ac_func" >&5
22353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22354 if eval "test \"\${$as_ac_var+set}\" = set"; then
22355   echo $ECHO_N "(cached) $ECHO_C" >&6
22356 else
22357   cat >conftest.$ac_ext <<_ACEOF
22358 /* confdefs.h.  */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h.  */
22363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22365 #define $ac_func innocuous_$ac_func
22366
22367 /* System header to define __stub macros and hopefully few prototypes,
22368     which can conflict with char $ac_func (); below.
22369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22370     <limits.h> exists even on freestanding compilers.  */
22371
22372 #ifdef __STDC__
22373 # include <limits.h>
22374 #else
22375 # include <assert.h>
22376 #endif
22377
22378 #undef $ac_func
22379
22380 /* Override any gcc2 internal prototype to avoid an error.  */
22381 #ifdef __cplusplus
22382 extern "C"
22383 {
22384 #endif
22385 /* We use char because int might match the return type of a gcc2
22386    builtin and then its argument prototype would still apply.  */
22387 char $ac_func ();
22388 /* The GNU C library defines this for functions which it implements
22389     to always fail with ENOSYS.  Some functions are actually named
22390     something starting with __ and the normal name is an alias.  */
22391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22392 choke me
22393 #else
22394 char (*f) () = $ac_func;
22395 #endif
22396 #ifdef __cplusplus
22397 }
22398 #endif
22399
22400 int
22401 main ()
22402 {
22403 return f != $ac_func;
22404   ;
22405   return 0;
22406 }
22407 _ACEOF
22408 rm -f conftest.$ac_objext conftest$ac_exeext
22409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22410   (eval $ac_link) 2>conftest.er1
22411   ac_status=$?
22412   grep -v '^ *+' conftest.er1 >conftest.err
22413   rm -f conftest.er1
22414   cat conftest.err >&5
22415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416   (exit $ac_status); } &&
22417          { ac_try='test -z "$ac_c_werror_flag"
22418                          || test ! -s conftest.err'
22419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420   (eval $ac_try) 2>&5
22421   ac_status=$?
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); }; } &&
22424          { ac_try='test -s conftest$ac_exeext'
22425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426   (eval $ac_try) 2>&5
22427   ac_status=$?
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); }; }; then
22430   eval "$as_ac_var=yes"
22431 else
22432   echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22434
22435 eval "$as_ac_var=no"
22436 fi
22437 rm -f conftest.err conftest.$ac_objext \
22438       conftest$ac_exeext conftest.$ac_ext
22439 fi
22440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22442 if test `eval echo '${'$as_ac_var'}'` = yes; then
22443
22444 cat >>confdefs.h <<_ACEOF
22445 #define CRAY_STACKSEG_END $ac_func
22446 _ACEOF
22447
22448     break
22449 fi
22450
22451   done
22452 fi
22453
22454 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22455 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22456 if test "${ac_cv_c_stack_direction+set}" = set; then
22457   echo $ECHO_N "(cached) $ECHO_C" >&6
22458 else
22459   if test "$cross_compiling" = yes; then
22460   ac_cv_c_stack_direction=0
22461 else
22462   cat >conftest.$ac_ext <<_ACEOF
22463 /* confdefs.h.  */
22464 _ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h.  */
22468 int
22469 find_stack_direction ()
22470 {
22471   static char *addr = 0;
22472   auto char dummy;
22473   if (addr == 0)
22474     {
22475       addr = &dummy;
22476       return find_stack_direction ();
22477     }
22478   else
22479     return (&dummy > addr) ? 1 : -1;
22480 }
22481
22482 int
22483 main ()
22484 {
22485   exit (find_stack_direction () < 0);
22486 }
22487 _ACEOF
22488 rm -f conftest$ac_exeext
22489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22490   (eval $ac_link) 2>&5
22491   ac_status=$?
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495   (eval $ac_try) 2>&5
22496   ac_status=$?
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); }; }; then
22499   ac_cv_c_stack_direction=1
22500 else
22501   echo "$as_me: program exited with status $ac_status" >&5
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22504
22505 ( exit $ac_status )
22506 ac_cv_c_stack_direction=-1
22507 fi
22508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22509 fi
22510 fi
22511 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22512 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22513
22514 cat >>confdefs.h <<_ACEOF
22515 #define STACK_DIRECTION $ac_cv_c_stack_direction
22516 _ACEOF
22517
22518
22519 fi
22520
22521
22522
22523 for ac_header in stdlib.h unistd.h
22524 do
22525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22527   echo "$as_me:$LINENO: checking for $ac_header" >&5
22528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22530   echo $ECHO_N "(cached) $ECHO_C" >&6
22531 fi
22532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22534 else
22535   # Is the header compilable?
22536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h.  */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h.  */
22544 $ac_includes_default
22545 #include <$ac_header>
22546 _ACEOF
22547 rm -f conftest.$ac_objext
22548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22549   (eval $ac_compile) 2>conftest.er1
22550   ac_status=$?
22551   grep -v '^ *+' conftest.er1 >conftest.err
22552   rm -f conftest.er1
22553   cat conftest.err >&5
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); } &&
22556          { ac_try='test -z "$ac_c_werror_flag"
22557                          || test ! -s conftest.err'
22558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559   (eval $ac_try) 2>&5
22560   ac_status=$?
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); }; } &&
22563          { ac_try='test -s conftest.$ac_objext'
22564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565   (eval $ac_try) 2>&5
22566   ac_status=$?
22567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568   (exit $ac_status); }; }; then
22569   ac_header_compiler=yes
22570 else
22571   echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22573
22574 ac_header_compiler=no
22575 fi
22576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22578 echo "${ECHO_T}$ac_header_compiler" >&6
22579
22580 # Is the header present?
22581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 #include <$ac_header>
22590 _ACEOF
22591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22593   ac_status=$?
22594   grep -v '^ *+' conftest.er1 >conftest.err
22595   rm -f conftest.er1
22596   cat conftest.err >&5
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); } >/dev/null; then
22599   if test -s conftest.err; then
22600     ac_cpp_err=$ac_c_preproc_warn_flag
22601     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22602   else
22603     ac_cpp_err=
22604   fi
22605 else
22606   ac_cpp_err=yes
22607 fi
22608 if test -z "$ac_cpp_err"; then
22609   ac_header_preproc=yes
22610 else
22611   echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614   ac_header_preproc=no
22615 fi
22616 rm -f conftest.err conftest.$ac_ext
22617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22618 echo "${ECHO_T}$ac_header_preproc" >&6
22619
22620 # So?  What about this header?
22621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22622   yes:no: )
22623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22627     ac_header_preproc=yes
22628     ;;
22629   no:yes:* )
22630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22642     (
22643       cat <<\_ASBOX
22644 ## ----------------------------------- ##
22645 ## Report this to llvmbugs@cs.uiuc.edu ##
22646 ## ----------------------------------- ##
22647 _ASBOX
22648     ) |
22649       sed "s/^/$as_me: WARNING:     /" >&2
22650     ;;
22651 esac
22652 echo "$as_me:$LINENO: checking for $ac_header" >&5
22653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22655   echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657   eval "$as_ac_Header=\$ac_header_preproc"
22658 fi
22659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22661
22662 fi
22663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22664   cat >>confdefs.h <<_ACEOF
22665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22666 _ACEOF
22667
22668 fi
22669
22670 done
22671
22672
22673 for ac_func in getpagesize
22674 do
22675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22676 echo "$as_me:$LINENO: checking for $ac_func" >&5
22677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22678 if eval "test \"\${$as_ac_var+set}\" = set"; then
22679   echo $ECHO_N "(cached) $ECHO_C" >&6
22680 else
22681   cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h.  */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h.  */
22687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22689 #define $ac_func innocuous_$ac_func
22690
22691 /* System header to define __stub macros and hopefully few prototypes,
22692     which can conflict with char $ac_func (); below.
22693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22694     <limits.h> exists even on freestanding compilers.  */
22695
22696 #ifdef __STDC__
22697 # include <limits.h>
22698 #else
22699 # include <assert.h>
22700 #endif
22701
22702 #undef $ac_func
22703
22704 /* Override any gcc2 internal prototype to avoid an error.  */
22705 #ifdef __cplusplus
22706 extern "C"
22707 {
22708 #endif
22709 /* We use char because int might match the return type of a gcc2
22710    builtin and then its argument prototype would still apply.  */
22711 char $ac_func ();
22712 /* The GNU C library defines this for functions which it implements
22713     to always fail with ENOSYS.  Some functions are actually named
22714     something starting with __ and the normal name is an alias.  */
22715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22716 choke me
22717 #else
22718 char (*f) () = $ac_func;
22719 #endif
22720 #ifdef __cplusplus
22721 }
22722 #endif
22723
22724 int
22725 main ()
22726 {
22727 return f != $ac_func;
22728   ;
22729   return 0;
22730 }
22731 _ACEOF
22732 rm -f conftest.$ac_objext conftest$ac_exeext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22734   (eval $ac_link) 2>conftest.er1
22735   ac_status=$?
22736   grep -v '^ *+' conftest.er1 >conftest.err
22737   rm -f conftest.er1
22738   cat conftest.err >&5
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); } &&
22741          { ac_try='test -z "$ac_c_werror_flag"
22742                          || test ! -s conftest.err'
22743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744   (eval $ac_try) 2>&5
22745   ac_status=$?
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); }; } &&
22748          { ac_try='test -s conftest$ac_exeext'
22749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750   (eval $ac_try) 2>&5
22751   ac_status=$?
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); }; }; then
22754   eval "$as_ac_var=yes"
22755 else
22756   echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 eval "$as_ac_var=no"
22760 fi
22761 rm -f conftest.err conftest.$ac_objext \
22762       conftest$ac_exeext conftest.$ac_ext
22763 fi
22764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22766 if test `eval echo '${'$as_ac_var'}'` = yes; then
22767   cat >>confdefs.h <<_ACEOF
22768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22769 _ACEOF
22770
22771 fi
22772 done
22773
22774 echo "$as_me:$LINENO: checking for working mmap" >&5
22775 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22776 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22777   echo $ECHO_N "(cached) $ECHO_C" >&6
22778 else
22779   if test "$cross_compiling" = yes; then
22780   ac_cv_func_mmap_fixed_mapped=no
22781 else
22782   cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h.  */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h.  */
22788 $ac_includes_default
22789 /* malloc might have been renamed as rpl_malloc. */
22790 #undef malloc
22791
22792 /* Thanks to Mike Haertel and Jim Avera for this test.
22793    Here is a matrix of mmap possibilities:
22794         mmap private not fixed
22795         mmap private fixed at somewhere currently unmapped
22796         mmap private fixed at somewhere already mapped
22797         mmap shared not fixed
22798         mmap shared fixed at somewhere currently unmapped
22799         mmap shared fixed at somewhere already mapped
22800    For private mappings, we should verify that changes cannot be read()
22801    back from the file, nor mmap's back from the file at a different
22802    address.  (There have been systems where private was not correctly
22803    implemented like the infamous i386 svr4.0, and systems where the
22804    VM page cache was not coherent with the file system buffer cache
22805    like early versions of FreeBSD and possibly contemporary NetBSD.)
22806    For shared mappings, we should conversely verify that changes get
22807    propagated back to all the places they're supposed to be.
22808
22809    Grep wants private fixed already mapped.
22810    The main things grep needs to know about mmap are:
22811    * does it exist and is it safe to write into the mmap'd area
22812    * how to use it (BSD variants)  */
22813
22814 #include <fcntl.h>
22815 #include <sys/mman.h>
22816
22817 #if !STDC_HEADERS && !HAVE_STDLIB_H
22818 char *malloc ();
22819 #endif
22820
22821 /* This mess was copied from the GNU getpagesize.h.  */
22822 #if !HAVE_GETPAGESIZE
22823 /* Assume that all systems that can run configure have sys/param.h.  */
22824 # if !HAVE_SYS_PARAM_H
22825 #  define HAVE_SYS_PARAM_H 1
22826 # endif
22827
22828 # ifdef _SC_PAGESIZE
22829 #  define getpagesize() sysconf(_SC_PAGESIZE)
22830 # else /* no _SC_PAGESIZE */
22831 #  if HAVE_SYS_PARAM_H
22832 #   include <sys/param.h>
22833 #   ifdef EXEC_PAGESIZE
22834 #    define getpagesize() EXEC_PAGESIZE
22835 #   else /* no EXEC_PAGESIZE */
22836 #    ifdef NBPG
22837 #     define getpagesize() NBPG * CLSIZE
22838 #     ifndef CLSIZE
22839 #      define CLSIZE 1
22840 #     endif /* no CLSIZE */
22841 #    else /* no NBPG */
22842 #     ifdef NBPC
22843 #      define getpagesize() NBPC
22844 #     else /* no NBPC */
22845 #      ifdef PAGESIZE
22846 #       define getpagesize() PAGESIZE
22847 #      endif /* PAGESIZE */
22848 #     endif /* no NBPC */
22849 #    endif /* no NBPG */
22850 #   endif /* no EXEC_PAGESIZE */
22851 #  else /* no HAVE_SYS_PARAM_H */
22852 #   define getpagesize() 8192   /* punt totally */
22853 #  endif /* no HAVE_SYS_PARAM_H */
22854 # endif /* no _SC_PAGESIZE */
22855
22856 #endif /* no HAVE_GETPAGESIZE */
22857
22858 int
22859 main ()
22860 {
22861   char *data, *data2, *data3;
22862   int i, pagesize;
22863   int fd;
22864
22865   pagesize = getpagesize ();
22866
22867   /* First, make a file with some known garbage in it. */
22868   data = (char *) malloc (pagesize);
22869   if (!data)
22870     exit (1);
22871   for (i = 0; i < pagesize; ++i)
22872     *(data + i) = rand ();
22873   umask (0);
22874   fd = creat ("conftest.mmap", 0600);
22875   if (fd < 0)
22876     exit (1);
22877   if (write (fd, data, pagesize) != pagesize)
22878     exit (1);
22879   close (fd);
22880
22881   /* Next, try to mmap the file at a fixed address which already has
22882      something else allocated at it.  If we can, also make sure that
22883      we see the same garbage.  */
22884   fd = open ("conftest.mmap", O_RDWR);
22885   if (fd < 0)
22886     exit (1);
22887   data2 = (char *) malloc (2 * pagesize);
22888   if (!data2)
22889     exit (1);
22890   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22891   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22892                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22893     exit (1);
22894   for (i = 0; i < pagesize; ++i)
22895     if (*(data + i) != *(data2 + i))
22896       exit (1);
22897
22898   /* Finally, make sure that changes to the mapped area do not
22899      percolate back to the file as seen by read().  (This is a bug on
22900      some variants of i386 svr4.0.)  */
22901   for (i = 0; i < pagesize; ++i)
22902     *(data2 + i) = *(data2 + i) + 1;
22903   data3 = (char *) malloc (pagesize);
22904   if (!data3)
22905     exit (1);
22906   if (read (fd, data3, pagesize) != pagesize)
22907     exit (1);
22908   for (i = 0; i < pagesize; ++i)
22909     if (*(data + i) != *(data3 + i))
22910       exit (1);
22911   close (fd);
22912   exit (0);
22913 }
22914 _ACEOF
22915 rm -f conftest$ac_exeext
22916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22917   (eval $ac_link) 2>&5
22918   ac_status=$?
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922   (eval $ac_try) 2>&5
22923   ac_status=$?
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); }; }; then
22926   ac_cv_func_mmap_fixed_mapped=yes
22927 else
22928   echo "$as_me: program exited with status $ac_status" >&5
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22931
22932 ( exit $ac_status )
22933 ac_cv_func_mmap_fixed_mapped=no
22934 fi
22935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22936 fi
22937 fi
22938 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22939 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22940 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22941
22942 cat >>confdefs.h <<\_ACEOF
22943 #define HAVE_MMAP 1
22944 _ACEOF
22945
22946 fi
22947 rm -f conftest.mmap
22948
22949 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22950 then
22951         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22952 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22953 fi
22954 echo "$as_me:$LINENO: checking for mmap of files" >&5
22955 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22956 if test "${ac_cv_func_mmap_file+set}" = set; then
22957   echo $ECHO_N "(cached) $ECHO_C" >&6
22958 else
22959
22960
22961   ac_ext=c
22962 ac_cpp='$CPP $CPPFLAGS'
22963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22966
22967   if test "$cross_compiling" = yes; then
22968   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22969 See \`config.log' for more details." >&5
22970 echo "$as_me: error: cannot run test program while cross compiling
22971 See \`config.log' for more details." >&2;}
22972    { (exit 1); exit 1; }; }
22973 else
22974   cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h.  */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h.  */
22980
22981 #ifdef HAVE_SYS_TYPES_H
22982 #include <sys/types.h>
22983 #endif
22984
22985 #ifdef HAVE_SYS_MMAN_H
22986 #include <sys/mman.h>
22987 #endif
22988
22989 #ifdef HAVE_FCNTL_H
22990 #include <fcntl.h>
22991 #endif
22992
22993   int fd;
22994   int main () {
22995   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22996 _ACEOF
22997 rm -f conftest$ac_exeext
22998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22999   (eval $ac_link) 2>&5
23000   ac_status=$?
23001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004   (eval $ac_try) 2>&5
23005   ac_status=$?
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); }; }; then
23008   ac_cv_func_mmap_file=yes
23009 else
23010   echo "$as_me: program exited with status $ac_status" >&5
23011 echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23013
23014 ( exit $ac_status )
23015 ac_cv_func_mmap_file=no
23016 fi
23017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23018 fi
23019   ac_ext=c
23020 ac_cpp='$CPP $CPPFLAGS'
23021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23024
23025
23026 fi
23027 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23028 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23029 if test "$ac_cv_func_mmap_file" = yes; then
23030
23031 cat >>confdefs.h <<\_ACEOF
23032 #define HAVE_MMAP_FILE
23033 _ACEOF
23034
23035    MMAP_FILE=yes
23036
23037 fi
23038
23039 if test "$ac_cv_func_mmap_file" = "no"
23040 then
23041         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23042 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23043 fi
23044 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23045 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23046 if test "${ac_cv_header_mmap_anon+set}" = set; then
23047   echo $ECHO_N "(cached) $ECHO_C" >&6
23048 else
23049
23050
23051   ac_ext=c
23052 ac_cpp='$CPP $CPPFLAGS'
23053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23056
23057   cat >conftest.$ac_ext <<_ACEOF
23058 /* confdefs.h.  */
23059 _ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h.  */
23063 #include <sys/mman.h>
23064   #include <unistd.h>
23065   #include <fcntl.h>
23066 int
23067 main ()
23068 {
23069 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23070   ;
23071   return 0;
23072 }
23073 _ACEOF
23074 rm -f conftest.$ac_objext
23075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23076   (eval $ac_compile) 2>conftest.er1
23077   ac_status=$?
23078   grep -v '^ *+' conftest.er1 >conftest.err
23079   rm -f conftest.er1
23080   cat conftest.err >&5
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); } &&
23083          { ac_try='test -z "$ac_c_werror_flag"
23084                          || test ! -s conftest.err'
23085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086   (eval $ac_try) 2>&5
23087   ac_status=$?
23088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); }; } &&
23090          { ac_try='test -s conftest.$ac_objext'
23091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092   (eval $ac_try) 2>&5
23093   ac_status=$?
23094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095   (exit $ac_status); }; }; then
23096   ac_cv_header_mmap_anon=yes
23097 else
23098   echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23100
23101 ac_cv_header_mmap_anon=no
23102 fi
23103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23104   ac_ext=c
23105 ac_cpp='$CPP $CPPFLAGS'
23106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23109
23110
23111 fi
23112 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23113 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23114 if test "$ac_cv_header_mmap_anon" = yes; then
23115
23116 cat >>confdefs.h <<\_ACEOF
23117 #define HAVE_MMAP_ANONYMOUS
23118 _ACEOF
23119
23120 fi
23121
23122 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23123 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23124 if test "${ac_cv_type_signal+set}" = set; then
23125   echo $ECHO_N "(cached) $ECHO_C" >&6
23126 else
23127   cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h.  */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h.  */
23133 #include <sys/types.h>
23134 #include <signal.h>
23135 #ifdef signal
23136 # undef signal
23137 #endif
23138 #ifdef __cplusplus
23139 extern "C" void (*signal (int, void (*)(int)))(int);
23140 #else
23141 void (*signal ()) ();
23142 #endif
23143
23144 int
23145 main ()
23146 {
23147 int i;
23148   ;
23149   return 0;
23150 }
23151 _ACEOF
23152 rm -f conftest.$ac_objext
23153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23154   (eval $ac_compile) 2>conftest.er1
23155   ac_status=$?
23156   grep -v '^ *+' conftest.er1 >conftest.err
23157   rm -f conftest.er1
23158   cat conftest.err >&5
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); } &&
23161          { ac_try='test -z "$ac_c_werror_flag"
23162                          || test ! -s conftest.err'
23163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164   (eval $ac_try) 2>&5
23165   ac_status=$?
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); }; } &&
23168          { ac_try='test -s conftest.$ac_objext'
23169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170   (eval $ac_try) 2>&5
23171   ac_status=$?
23172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173   (exit $ac_status); }; }; then
23174   ac_cv_type_signal=void
23175 else
23176   echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23178
23179 ac_cv_type_signal=int
23180 fi
23181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23182 fi
23183 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23184 echo "${ECHO_T}$ac_cv_type_signal" >&6
23185
23186 cat >>confdefs.h <<_ACEOF
23187 #define RETSIGTYPE $ac_cv_type_signal
23188 _ACEOF
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23201 do
23202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23203 echo "$as_me:$LINENO: checking for $ac_func" >&5
23204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23205 if eval "test \"\${$as_ac_var+set}\" = set"; then
23206   echo $ECHO_N "(cached) $ECHO_C" >&6
23207 else
23208   cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h.  */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h.  */
23214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23216 #define $ac_func innocuous_$ac_func
23217
23218 /* System header to define __stub macros and hopefully few prototypes,
23219     which can conflict with char $ac_func (); below.
23220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23221     <limits.h> exists even on freestanding compilers.  */
23222
23223 #ifdef __STDC__
23224 # include <limits.h>
23225 #else
23226 # include <assert.h>
23227 #endif
23228
23229 #undef $ac_func
23230
23231 /* Override any gcc2 internal prototype to avoid an error.  */
23232 #ifdef __cplusplus
23233 extern "C"
23234 {
23235 #endif
23236 /* We use char because int might match the return type of a gcc2
23237    builtin and then its argument prototype would still apply.  */
23238 char $ac_func ();
23239 /* The GNU C library defines this for functions which it implements
23240     to always fail with ENOSYS.  Some functions are actually named
23241     something starting with __ and the normal name is an alias.  */
23242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23243 choke me
23244 #else
23245 char (*f) () = $ac_func;
23246 #endif
23247 #ifdef __cplusplus
23248 }
23249 #endif
23250
23251 int
23252 main ()
23253 {
23254 return f != $ac_func;
23255   ;
23256   return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261   (eval $ac_link) 2>conftest.er1
23262   ac_status=$?
23263   grep -v '^ *+' conftest.er1 >conftest.err
23264   rm -f conftest.er1
23265   cat conftest.err >&5
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); } &&
23268          { ac_try='test -z "$ac_c_werror_flag"
23269                          || test ! -s conftest.err'
23270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271   (eval $ac_try) 2>&5
23272   ac_status=$?
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); }; } &&
23275          { ac_try='test -s conftest$ac_exeext'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; }; then
23281   eval "$as_ac_var=yes"
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286 eval "$as_ac_var=no"
23287 fi
23288 rm -f conftest.err conftest.$ac_objext \
23289       conftest$ac_exeext conftest.$ac_ext
23290 fi
23291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23293 if test `eval echo '${'$as_ac_var'}'` = yes; then
23294   cat >>confdefs.h <<_ACEOF
23295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23296 _ACEOF
23297
23298 fi
23299 done
23300
23301 echo "$as_me:$LINENO: checking for mprotect" >&5
23302 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23303 if test "${ac_cv_func_mprotect+set}" = set; then
23304   echo $ECHO_N "(cached) $ECHO_C" >&6
23305 else
23306   cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h.  */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h.  */
23312 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23314 #define mprotect innocuous_mprotect
23315
23316 /* System header to define __stub macros and hopefully few prototypes,
23317     which can conflict with char mprotect (); below.
23318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23319     <limits.h> exists even on freestanding compilers.  */
23320
23321 #ifdef __STDC__
23322 # include <limits.h>
23323 #else
23324 # include <assert.h>
23325 #endif
23326
23327 #undef mprotect
23328
23329 /* Override any gcc2 internal prototype to avoid an error.  */
23330 #ifdef __cplusplus
23331 extern "C"
23332 {
23333 #endif
23334 /* We use char because int might match the return type of a gcc2
23335    builtin and then its argument prototype would still apply.  */
23336 char mprotect ();
23337 /* The GNU C library defines this for functions which it implements
23338     to always fail with ENOSYS.  Some functions are actually named
23339     something starting with __ and the normal name is an alias.  */
23340 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23341 choke me
23342 #else
23343 char (*f) () = mprotect;
23344 #endif
23345 #ifdef __cplusplus
23346 }
23347 #endif
23348
23349 int
23350 main ()
23351 {
23352 return f != mprotect;
23353   ;
23354   return 0;
23355 }
23356 _ACEOF
23357 rm -f conftest.$ac_objext conftest$ac_exeext
23358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23359   (eval $ac_link) 2>conftest.er1
23360   ac_status=$?
23361   grep -v '^ *+' conftest.er1 >conftest.err
23362   rm -f conftest.er1
23363   cat conftest.err >&5
23364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365   (exit $ac_status); } &&
23366          { ac_try='test -z "$ac_c_werror_flag"
23367                          || test ! -s conftest.err'
23368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369   (eval $ac_try) 2>&5
23370   ac_status=$?
23371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); }; } &&
23373          { ac_try='test -s conftest$ac_exeext'
23374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375   (eval $ac_try) 2>&5
23376   ac_status=$?
23377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); }; }; then
23379   ac_cv_func_mprotect=yes
23380 else
23381   echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23383
23384 ac_cv_func_mprotect=no
23385 fi
23386 rm -f conftest.err conftest.$ac_objext \
23387       conftest$ac_exeext conftest.$ac_ext
23388 fi
23389 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23390 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23391 if test $ac_cv_func_mprotect = yes; then
23392   :
23393 else
23394   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23395 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23396    { (exit 1); exit 1; }; }
23397 fi
23398
23399
23400
23401   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23402 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23403
23404
23405   ac_ext=c
23406 ac_cpp='$CPP $CPPFLAGS'
23407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23410
23411   oldcflags="$CFLAGS"
23412   CFLAGS="$CFLAGS -Wl,-R."
23413   cat >conftest.$ac_ext <<_ACEOF
23414 int main() { return 0; }
23415 _ACEOF
23416 rm -f conftest.$ac_objext conftest$ac_exeext
23417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23418   (eval $ac_link) 2>conftest.er1
23419   ac_status=$?
23420   grep -v '^ *+' conftest.er1 >conftest.err
23421   rm -f conftest.er1
23422   cat conftest.err >&5
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); } &&
23425          { ac_try='test -z "$ac_c_werror_flag"
23426                          || test ! -s conftest.err'
23427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428   (eval $ac_try) 2>&5
23429   ac_status=$?
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); }; } &&
23432          { ac_try='test -s conftest$ac_exeext'
23433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); }; }; then
23438   ac_cv_link_use_r=yes
23439 else
23440   echo "$as_me: failed program was:" >&5
23441 sed 's/^/| /' conftest.$ac_ext >&5
23442
23443 ac_cv_link_use_r=no
23444 fi
23445 rm -f conftest.err conftest.$ac_objext \
23446       conftest$ac_exeext conftest.$ac_ext
23447   CFLAGS="$oldcflags"
23448   ac_ext=c
23449 ac_cpp='$CPP $CPPFLAGS'
23450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23453
23454   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23455 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23456   if test "$ac_cv_link_use_r" = yes
23457   then
23458
23459 cat >>confdefs.h <<\_ACEOF
23460 #define HAVE_LINK_R 1
23461 _ACEOF
23462
23463   fi
23464
23465
23466 # Check whether --enable-optimized or --disable-optimized was given.
23467 if test "${enable_optimized+set}" = set; then
23468   enableval="$enable_optimized"
23469
23470 else
23471   enableval=no
23472 fi;
23473 if test ${enableval} = "no"
23474 then
23475         ENABLE_OPTIMIZED=
23476
23477 else
23478         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23479
23480 fi
23481
23482 # Check whether --enable-jit or --disable-jit was given.
23483 if test "${enable_jit+set}" = set; then
23484   enableval="$enable_jit"
23485
23486 else
23487   enableval=default
23488 fi;
23489 if test ${enableval} = "no"
23490 then
23491         JIT=
23492
23493 else
23494         case $target in
23495                 *i*86*)
23496                         JIT=TARGET_HAS_JIT=1
23497
23498                         ;;
23499                 *sparc*)
23500                         JIT=TARGET_HAS_JIT=1
23501
23502                         ;;
23503                 *)
23504                         JIT=
23505
23506                         ;;
23507         esac
23508 fi
23509
23510
23511 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23512 if test "${with_llvmgccdir+set}" = set; then
23513   withval="$with_llvmgccdir"
23514   LLVMGCCDIR=$withval
23515
23516 fi;
23517 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23518 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23519 LLVM_GCC_CHECK=no
23520 if test -d "$LLVMGCCDIR"
23521 then
23522         if test -x "$LLVMGCCDIR/bin/gcc"
23523         then
23524                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23525         fi
23526 fi
23527 llvmgccwarn=no
23528 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23529 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23530 if test "$LLVM_GCC_CHECK" = "no"
23531 then
23532     llvmgccwarn=yes
23533 fi
23534 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23535 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23536 LLVM_GCC_SANE=no
23537 if test -x "$LLVM_GCC_CHECK"
23538 then
23539         cp /dev/null conftest.c
23540     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23541         if test $? -eq 0
23542         then
23543                 LLVM_GCC_SANE=yes
23544         fi
23545         rm conftest.c
23546         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23547         LLVMCC1=$llvmcc1path
23548
23549         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23550         LLVMCC1PLUS=$llvmcc1pluspath
23551
23552 fi
23553 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23554 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23555 if test "$LLVM_GCC_SANE" = "no"
23556 then
23557         llvmgccwarn=yes
23558 fi
23559
23560
23561 # Check whether --with-papi or --without-papi was given.
23562 if test "${with_papi+set}" = set; then
23563   withval="$with_papi"
23564   PAPIDIR=$withval
23565
23566 else
23567   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23568
23569 fi;
23570
23571 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23572 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23573 eval "SHLIBEXT=$shrext"
23574 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23575 echo "${ECHO_T}$SHLIBEXT" >&6
23576 SHLIBEXT=$SHLIBEXT
23577
23578
23579 cat >>confdefs.h <<_ACEOF
23580 #define SHLIBEXT "$SHLIBEXT"
23581 _ACEOF
23582
23583
23584 # Translate the various configuration directories and other basic
23585 # information into substitutions that will end up in config.h.in so
23586 # that these configured values can be hard-wired into a program.
23587 eval LLVM_PREFIX="${prefix}";
23588 eval LLVM_BINDIR="${prefix}/bin";
23589 eval LLVM_LIBDIR="${prefix}/lib";
23590 eval LLVM_DATADIR="${prefix}/data";
23591 eval LLVM_DOCSDIR="${prefix}/docs";
23592 eval LLVM_ETCDIR="${prefix}/etc";
23593 eval LLVM_INCLUDEDIR="${prefix}/include";
23594 eval LLVM_INFODIR="${prefix}/info";
23595 eval LLVM_MANDIR="${prefix}/man";
23596 LLVM_CONFIGTIME=`date`
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608 cat >>confdefs.h <<_ACEOF
23609 #define LLVM_PREFIX "$LLVM_PREFIX"
23610 _ACEOF
23611
23612
23613 cat >>confdefs.h <<_ACEOF
23614 #define LLVM_BINDIR "$LLVM_BINDIR"
23615 _ACEOF
23616
23617
23618 cat >>confdefs.h <<_ACEOF
23619 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23620 _ACEOF
23621
23622
23623 cat >>confdefs.h <<_ACEOF
23624 #define LLVM_DATADIR "$LLVM_DATADIR"
23625 _ACEOF
23626
23627
23628 cat >>confdefs.h <<_ACEOF
23629 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23630 _ACEOF
23631
23632
23633 cat >>confdefs.h <<_ACEOF
23634 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23635 _ACEOF
23636
23637
23638 cat >>confdefs.h <<_ACEOF
23639 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23640 _ACEOF
23641
23642
23643 cat >>confdefs.h <<_ACEOF
23644 #define LLVM_INFODIR "$LLVM_INFODIR"
23645 _ACEOF
23646
23647
23648 cat >>confdefs.h <<_ACEOF
23649 #define LLVM_MANDIR "$LLVM_MANDIR"
23650 _ACEOF
23651
23652
23653 cat >>confdefs.h <<_ACEOF
23654 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23655 _ACEOF
23656
23657
23658 cat >confcache <<\_ACEOF
23659 # This file is a shell script that caches the results of configure
23660 # tests run on this system so they can be shared between configure
23661 # scripts and configure runs, see configure's option --config-cache.
23662 # It is not useful on other systems.  If it contains results you don't
23663 # want to keep, you may remove or edit it.
23664 #
23665 # config.status only pays attention to the cache file if you give it
23666 # the --recheck option to rerun configure.
23667 #
23668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23670 # following values.
23671
23672 _ACEOF
23673
23674 # The following way of writing the cache mishandles newlines in values,
23675 # but we know of no workaround that is simple, portable, and efficient.
23676 # So, don't put newlines in cache variables' values.
23677 # Ultrix sh set writes to stderr and can't be redirected directly,
23678 # and sets the high bit in the cache file unless we assign to the vars.
23679 {
23680   (set) 2>&1 |
23681     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23682     *ac_space=\ *)
23683       # `set' does not quote correctly, so add quotes (double-quote
23684       # substitution turns \\\\ into \\, and sed turns \\ into \).
23685       sed -n \
23686         "s/'/'\\\\''/g;
23687           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23688       ;;
23689     *)
23690       # `set' quotes correctly as required by POSIX, so do not add quotes.
23691       sed -n \
23692         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23693       ;;
23694     esac;
23695 } |
23696   sed '
23697      t clear
23698      : clear
23699      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23700      t end
23701      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23702      : end' >>confcache
23703 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23704   if test -w $cache_file; then
23705     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23706     cat confcache >$cache_file
23707   else
23708     echo "not updating unwritable cache $cache_file"
23709   fi
23710 fi
23711 rm -f confcache
23712
23713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23714 # Let make expand exec_prefix.
23715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23716
23717 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23718 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23719 # trailing colons and then remove the whole line if VPATH becomes empty
23720 # (actually we leave an empty line to preserve line numbers).
23721 if test "x$srcdir" = x.; then
23722   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23723 s/:*\$(srcdir):*/:/;
23724 s/:*\${srcdir}:*/:/;
23725 s/:*@srcdir@:*/:/;
23726 s/^\([^=]*=[     ]*\):*/\1/;
23727 s/:*$//;
23728 s/^[^=]*=[       ]*$//;
23729 }'
23730 fi
23731
23732 DEFS=-DHAVE_CONFIG_H
23733
23734 ac_libobjs=
23735 ac_ltlibobjs=
23736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23737   # 1. Remove the extension, and $U if already installed.
23738   ac_i=`echo "$ac_i" |
23739          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23740   # 2. Add them.
23741   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23742   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23743 done
23744 LIBOBJS=$ac_libobjs
23745
23746 LTLIBOBJS=$ac_ltlibobjs
23747
23748
23749
23750 : ${CONFIG_STATUS=./config.status}
23751 ac_clean_files_save=$ac_clean_files
23752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23755 cat >$CONFIG_STATUS <<_ACEOF
23756 #! $SHELL
23757 # Generated by $as_me.
23758 # Run this file to recreate the current configuration.
23759 # Compiler output produced by configure, useful for debugging
23760 # configure, is in config.log if it exists.
23761
23762 debug=false
23763 ac_cs_recheck=false
23764 ac_cs_silent=false
23765 SHELL=\${CONFIG_SHELL-$SHELL}
23766 _ACEOF
23767
23768 cat >>$CONFIG_STATUS <<\_ACEOF
23769 ## --------------------- ##
23770 ## M4sh Initialization.  ##
23771 ## --------------------- ##
23772
23773 # Be Bourne compatible
23774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23775   emulate sh
23776   NULLCMD=:
23777   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23778   # is contrary to our usage.  Disable this feature.
23779   alias -g '${1+"$@"}'='"$@"'
23780 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23781   set -o posix
23782 fi
23783 DUALCASE=1; export DUALCASE # for MKS sh
23784
23785 # Support unset when possible.
23786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23787   as_unset=unset
23788 else
23789   as_unset=false
23790 fi
23791
23792
23793 # Work around bugs in pre-3.0 UWIN ksh.
23794 $as_unset ENV MAIL MAILPATH
23795 PS1='$ '
23796 PS2='> '
23797 PS4='+ '
23798
23799 # NLS nuisances.
23800 for as_var in \
23801   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23802   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23803   LC_TELEPHONE LC_TIME
23804 do
23805   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23806     eval $as_var=C; export $as_var
23807   else
23808     $as_unset $as_var
23809   fi
23810 done
23811
23812 # Required to use basename.
23813 if expr a : '\(a\)' >/dev/null 2>&1; then
23814   as_expr=expr
23815 else
23816   as_expr=false
23817 fi
23818
23819 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23820   as_basename=basename
23821 else
23822   as_basename=false
23823 fi
23824
23825
23826 # Name of the executable.
23827 as_me=`$as_basename "$0" ||
23828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23829          X"$0" : 'X\(//\)$' \| \
23830          X"$0" : 'X\(/\)$' \| \
23831          .     : '\(.\)' 2>/dev/null ||
23832 echo X/"$0" |
23833     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23834           /^X\/\(\/\/\)$/{ s//\1/; q; }
23835           /^X\/\(\/\).*/{ s//\1/; q; }
23836           s/.*/./; q'`
23837
23838
23839 # PATH needs CR, and LINENO needs CR and PATH.
23840 # Avoid depending upon Character Ranges.
23841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23844 as_cr_digits='0123456789'
23845 as_cr_alnum=$as_cr_Letters$as_cr_digits
23846
23847 # The user is always right.
23848 if test "${PATH_SEPARATOR+set}" != set; then
23849   echo "#! /bin/sh" >conf$$.sh
23850   echo  "exit 0"   >>conf$$.sh
23851   chmod +x conf$$.sh
23852   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23853     PATH_SEPARATOR=';'
23854   else
23855     PATH_SEPARATOR=:
23856   fi
23857   rm -f conf$$.sh
23858 fi
23859
23860
23861   as_lineno_1=$LINENO
23862   as_lineno_2=$LINENO
23863   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23864   test "x$as_lineno_1" != "x$as_lineno_2" &&
23865   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23866   # Find who we are.  Look in the path if we contain no path at all
23867   # relative or not.
23868   case $0 in
23869     *[\\/]* ) as_myself=$0 ;;
23870     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23871 for as_dir in $PATH
23872 do
23873   IFS=$as_save_IFS
23874   test -z "$as_dir" && as_dir=.
23875   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23876 done
23877
23878        ;;
23879   esac
23880   # We did not find ourselves, most probably we were run as `sh COMMAND'
23881   # in which case we are not to be found in the path.
23882   if test "x$as_myself" = x; then
23883     as_myself=$0
23884   fi
23885   if test ! -f "$as_myself"; then
23886     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23887 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23888    { (exit 1); exit 1; }; }
23889   fi
23890   case $CONFIG_SHELL in
23891   '')
23892     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23893 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23894 do
23895   IFS=$as_save_IFS
23896   test -z "$as_dir" && as_dir=.
23897   for as_base in sh bash ksh sh5; do
23898          case $as_dir in
23899          /*)
23900            if ("$as_dir/$as_base" -c '
23901   as_lineno_1=$LINENO
23902   as_lineno_2=$LINENO
23903   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23904   test "x$as_lineno_1" != "x$as_lineno_2" &&
23905   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23906              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23907              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23908              CONFIG_SHELL=$as_dir/$as_base
23909              export CONFIG_SHELL
23910              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23911            fi;;
23912          esac
23913        done
23914 done
23915 ;;
23916   esac
23917
23918   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23919   # uniformly replaced by the line number.  The first 'sed' inserts a
23920   # line-number line before each line; the second 'sed' does the real
23921   # work.  The second script uses 'N' to pair each line-number line
23922   # with the numbered line, and appends trailing '-' during
23923   # substitution so that $LINENO is not a special case at line end.
23924   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23925   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23926   sed '=' <$as_myself |
23927     sed '
23928       N
23929       s,$,-,
23930       : loop
23931       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23932       t loop
23933       s,-$,,
23934       s,^['$as_cr_digits']*\n,,
23935     ' >$as_me.lineno &&
23936   chmod +x $as_me.lineno ||
23937     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23938 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23939    { (exit 1); exit 1; }; }
23940
23941   # Don't try to exec as it changes $[0], causing all sort of problems
23942   # (the dirname of $[0] is not the place where we might find the
23943   # original and so on.  Autoconf is especially sensible to this).
23944   . ./$as_me.lineno
23945   # Exit status is that of the last command.
23946   exit
23947 }
23948
23949
23950 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23951   *c*,-n*) ECHO_N= ECHO_C='
23952 ' ECHO_T='      ' ;;
23953   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23954   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23955 esac
23956
23957 if expr a : '\(a\)' >/dev/null 2>&1; then
23958   as_expr=expr
23959 else
23960   as_expr=false
23961 fi
23962
23963 rm -f conf$$ conf$$.exe conf$$.file
23964 echo >conf$$.file
23965 if ln -s conf$$.file conf$$ 2>/dev/null; then
23966   # We could just check for DJGPP; but this test a) works b) is more generic
23967   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23968   if test -f conf$$.exe; then
23969     # Don't use ln at all; we don't have any links
23970     as_ln_s='cp -p'
23971   else
23972     as_ln_s='ln -s'
23973   fi
23974 elif ln conf$$.file conf$$ 2>/dev/null; then
23975   as_ln_s=ln
23976 else
23977   as_ln_s='cp -p'
23978 fi
23979 rm -f conf$$ conf$$.exe conf$$.file
23980
23981 if mkdir -p . 2>/dev/null; then
23982   as_mkdir_p=:
23983 else
23984   test -d ./-p && rmdir ./-p
23985   as_mkdir_p=false
23986 fi
23987
23988 as_executable_p="test -f"
23989
23990 # Sed expression to map a string onto a valid CPP name.
23991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23992
23993 # Sed expression to map a string onto a valid variable name.
23994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23995
23996
23997 # IFS
23998 # We need space, tab and new line, in precisely that order.
23999 as_nl='
24000 '
24001 IFS="   $as_nl"
24002
24003 # CDPATH.
24004 $as_unset CDPATH
24005
24006 exec 6>&1
24007
24008 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24009 # report actual input values of CONFIG_FILES etc. instead of their
24010 # values after options handling.  Logging --version etc. is OK.
24011 exec 5>>config.log
24012 {
24013   echo
24014   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24015 ## Running $as_me. ##
24016 _ASBOX
24017 } >&5
24018 cat >&5 <<_CSEOF
24019
24020 This file was extended by LLVM $as_me 1.4, which was
24021 generated by GNU Autoconf 2.59.  Invocation command line was
24022
24023   CONFIG_FILES    = $CONFIG_FILES
24024   CONFIG_HEADERS  = $CONFIG_HEADERS
24025   CONFIG_LINKS    = $CONFIG_LINKS
24026   CONFIG_COMMANDS = $CONFIG_COMMANDS
24027   $ $0 $@
24028
24029 _CSEOF
24030 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24031 echo >&5
24032 _ACEOF
24033
24034 # Files that config.status was made for.
24035 if test -n "$ac_config_files"; then
24036   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24037 fi
24038
24039 if test -n "$ac_config_headers"; then
24040   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24041 fi
24042
24043 if test -n "$ac_config_links"; then
24044   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24045 fi
24046
24047 if test -n "$ac_config_commands"; then
24048   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24049 fi
24050
24051 cat >>$CONFIG_STATUS <<\_ACEOF
24052
24053 ac_cs_usage="\
24054 \`$as_me' instantiates files from templates according to the
24055 current configuration.
24056
24057 Usage: $0 [OPTIONS] [FILE]...
24058
24059   -h, --help       print this help, then exit
24060   -V, --version    print version number, then exit
24061   -q, --quiet      do not print progress messages
24062   -d, --debug      don't remove temporary files
24063       --recheck    update $as_me by reconfiguring in the same conditions
24064   --file=FILE[:TEMPLATE]
24065                    instantiate the configuration file FILE
24066   --header=FILE[:TEMPLATE]
24067                    instantiate the configuration header FILE
24068
24069 Configuration files:
24070 $config_files
24071
24072 Configuration headers:
24073 $config_headers
24074
24075 Configuration links:
24076 $config_links
24077
24078 Configuration commands:
24079 $config_commands
24080
24081 Report bugs to <bug-autoconf@gnu.org>."
24082 _ACEOF
24083
24084 cat >>$CONFIG_STATUS <<_ACEOF
24085 ac_cs_version="\\
24086 LLVM config.status 1.4
24087 configured by $0, generated by GNU Autoconf 2.59,
24088   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24089
24090 Copyright (C) 2003 Free Software Foundation, Inc.
24091 This config.status script is free software; the Free Software Foundation
24092 gives unlimited permission to copy, distribute and modify it."
24093 srcdir=$srcdir
24094 INSTALL="$INSTALL"
24095 _ACEOF
24096
24097 cat >>$CONFIG_STATUS <<\_ACEOF
24098 # If no file are specified by the user, then we need to provide default
24099 # value.  By we need to know if files were specified by the user.
24100 ac_need_defaults=:
24101 while test $# != 0
24102 do
24103   case $1 in
24104   --*=*)
24105     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24106     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24107     ac_shift=:
24108     ;;
24109   -*)
24110     ac_option=$1
24111     ac_optarg=$2
24112     ac_shift=shift
24113     ;;
24114   *) # This is not an option, so the user has probably given explicit
24115      # arguments.
24116      ac_option=$1
24117      ac_need_defaults=false;;
24118   esac
24119
24120   case $ac_option in
24121   # Handling of the options.
24122 _ACEOF
24123 cat >>$CONFIG_STATUS <<\_ACEOF
24124   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24125     ac_cs_recheck=: ;;
24126   --version | --vers* | -V )
24127     echo "$ac_cs_version"; exit 0 ;;
24128   --he | --h)
24129     # Conflict between --help and --header
24130     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24131 Try \`$0 --help' for more information." >&5
24132 echo "$as_me: error: ambiguous option: $1
24133 Try \`$0 --help' for more information." >&2;}
24134    { (exit 1); exit 1; }; };;
24135   --help | --hel | -h )
24136     echo "$ac_cs_usage"; exit 0 ;;
24137   --debug | --d* | -d )
24138     debug=: ;;
24139   --file | --fil | --fi | --f )
24140     $ac_shift
24141     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24142     ac_need_defaults=false;;
24143   --header | --heade | --head | --hea )
24144     $ac_shift
24145     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24146     ac_need_defaults=false;;
24147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24148   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24149     ac_cs_silent=: ;;
24150
24151   # This is an error.
24152   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24153 Try \`$0 --help' for more information." >&5
24154 echo "$as_me: error: unrecognized option: $1
24155 Try \`$0 --help' for more information." >&2;}
24156    { (exit 1); exit 1; }; } ;;
24157
24158   *) ac_config_targets="$ac_config_targets $1" ;;
24159
24160   esac
24161   shift
24162 done
24163
24164 ac_configure_extra_args=
24165
24166 if $ac_cs_silent; then
24167   exec 6>/dev/null
24168   ac_configure_extra_args="$ac_configure_extra_args --silent"
24169 fi
24170
24171 _ACEOF
24172 cat >>$CONFIG_STATUS <<_ACEOF
24173 if \$ac_cs_recheck; then
24174   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24175   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24176 fi
24177
24178 _ACEOF
24179
24180 cat >>$CONFIG_STATUS <<_ACEOF
24181 #
24182 # INIT-COMMANDS section.
24183 #
24184
24185 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24186 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24187 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24188 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24189 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24190 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24191 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24192 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24193 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24194 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24195 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24196 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24197
24198 _ACEOF
24199
24200
24201
24202 cat >>$CONFIG_STATUS <<\_ACEOF
24203 for ac_config_target in $ac_config_targets
24204 do
24205   case "$ac_config_target" in
24206   # Handling of arguments.
24207   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24208   "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
24209   "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24210   "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24211   "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24212   "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
24213   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24214   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24215   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24216   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24217   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24218   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24219   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24220   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24221   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24222   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24223   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24224   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24225   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24226   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24227   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24228 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24229    { (exit 1); exit 1; }; };;
24230   esac
24231 done
24232
24233 # If the user did not use the arguments to specify the items to instantiate,
24234 # then the envvar interface is used.  Set only those that are not.
24235 # We use the long form for the default assignment because of an extremely
24236 # bizarre bug on SunOS 4.1.3.
24237 if $ac_need_defaults; then
24238   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24239   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24240   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24241   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24242 fi
24243
24244 # Have a temporary directory for convenience.  Make it in the build tree
24245 # simply because there is no reason to put it here, and in addition,
24246 # creating and moving files from /tmp can sometimes cause problems.
24247 # Create a temporary directory, and hook for its removal unless debugging.
24248 $debug ||
24249 {
24250   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24251   trap '{ (exit 1); exit 1; }' 1 2 13 15
24252 }
24253
24254 # Create a (secure) tmp directory for tmp files.
24255
24256 {
24257   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24258   test -n "$tmp" && test -d "$tmp"
24259 }  ||
24260 {
24261   tmp=./confstat$$-$RANDOM
24262   (umask 077 && mkdir $tmp)
24263 } ||
24264 {
24265    echo "$me: cannot create a temporary directory in ." >&2
24266    { (exit 1); exit 1; }
24267 }
24268
24269 _ACEOF
24270
24271 cat >>$CONFIG_STATUS <<_ACEOF
24272
24273 #
24274 # CONFIG_FILES section.
24275 #
24276
24277 # No need to generate the scripts if there are no CONFIG_FILES.
24278 # This happens for instance when ./config.status config.h
24279 if test -n "\$CONFIG_FILES"; then
24280   # Protect against being on the right side of a sed subst in config.status.
24281   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24282    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24283 s,@SHELL@,$SHELL,;t t
24284 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24285 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24286 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24287 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24288 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24289 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24290 s,@exec_prefix@,$exec_prefix,;t t
24291 s,@prefix@,$prefix,;t t
24292 s,@program_transform_name@,$program_transform_name,;t t
24293 s,@bindir@,$bindir,;t t
24294 s,@sbindir@,$sbindir,;t t
24295 s,@libexecdir@,$libexecdir,;t t
24296 s,@datadir@,$datadir,;t t
24297 s,@sysconfdir@,$sysconfdir,;t t
24298 s,@sharedstatedir@,$sharedstatedir,;t t
24299 s,@localstatedir@,$localstatedir,;t t
24300 s,@libdir@,$libdir,;t t
24301 s,@includedir@,$includedir,;t t
24302 s,@oldincludedir@,$oldincludedir,;t t
24303 s,@infodir@,$infodir,;t t
24304 s,@mandir@,$mandir,;t t
24305 s,@build_alias@,$build_alias,;t t
24306 s,@host_alias@,$host_alias,;t t
24307 s,@target_alias@,$target_alias,;t t
24308 s,@DEFS@,$DEFS,;t t
24309 s,@ECHO_C@,$ECHO_C,;t t
24310 s,@ECHO_N@,$ECHO_N,;t t
24311 s,@ECHO_T@,$ECHO_T,;t t
24312 s,@LIBS@,$LIBS,;t t
24313 s,@subdirs@,$subdirs,;t t
24314 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24315 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24316 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24317 s,@build@,$build,;t t
24318 s,@build_cpu@,$build_cpu,;t t
24319 s,@build_vendor@,$build_vendor,;t t
24320 s,@build_os@,$build_os,;t t
24321 s,@host@,$host,;t t
24322 s,@host_cpu@,$host_cpu,;t t
24323 s,@host_vendor@,$host_vendor,;t t
24324 s,@host_os@,$host_os,;t t
24325 s,@target@,$target,;t t
24326 s,@target_cpu@,$target_cpu,;t t
24327 s,@target_vendor@,$target_vendor,;t t
24328 s,@target_os@,$target_os,;t t
24329 s,@OS@,$OS,;t t
24330 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24331 s,@ARCH@,$ARCH,;t t
24332 s,@CXX@,$CXX,;t t
24333 s,@CXXFLAGS@,$CXXFLAGS,;t t
24334 s,@LDFLAGS@,$LDFLAGS,;t t
24335 s,@CPPFLAGS@,$CPPFLAGS,;t t
24336 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24337 s,@EXEEXT@,$EXEEXT,;t t
24338 s,@OBJEXT@,$OBJEXT,;t t
24339 s,@CC@,$CC,;t t
24340 s,@CFLAGS@,$CFLAGS,;t t
24341 s,@ac_ct_CC@,$ac_ct_CC,;t t
24342 s,@CPP@,$CPP,;t t
24343 s,@ifGNUmake@,$ifGNUmake,;t t
24344 s,@LEX@,$LEX,;t t
24345 s,@LEXLIB@,$LEXLIB,;t t
24346 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24347 s,@YACC@,$YACC,;t t
24348 s,@BISON@,$BISON,;t t
24349 s,@EGREP@,$EGREP,;t t
24350 s,@LN_S@,$LN_S,;t t
24351 s,@ECHO@,$ECHO,;t t
24352 s,@AR@,$AR,;t t
24353 s,@ac_ct_AR@,$ac_ct_AR,;t t
24354 s,@RANLIB@,$RANLIB,;t t
24355 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24356 s,@STRIP@,$STRIP,;t t
24357 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24358 s,@CXXCPP@,$CXXCPP,;t t
24359 s,@F77@,$F77,;t t
24360 s,@FFLAGS@,$FFLAGS,;t t
24361 s,@ac_ct_F77@,$ac_ct_F77,;t t
24362 s,@LIBTOOL@,$LIBTOOL,;t t
24363 s,@DOT@,$DOT,;t t
24364 s,@ETAGS@,$ETAGS,;t t
24365 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24366 s,@PYTHON@,$PYTHON,;t t
24367 s,@QMTEST@,$QMTEST,;t t
24368 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24369 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24370 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24371 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24372 s,@ENDIAN@,$ENDIAN,;t t
24373 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24374 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24375 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24376 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24377 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24378 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24379 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24380 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24381 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24382 s,@ALLOCA@,$ALLOCA,;t t
24383 s,@MMAP_FILE@,$MMAP_FILE,;t t
24384 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24385 s,@JIT@,$JIT,;t t
24386 s,@LLVMCC1@,$LLVMCC1,;t t
24387 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24388 s,@PAPIDIR@,$PAPIDIR,;t t
24389 s,@SHLIBEXT@,$SHLIBEXT,;t t
24390 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24391 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24392 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24393 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24394 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24395 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24396 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24397 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24398 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24399 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24400 s,@LIBOBJS@,$LIBOBJS,;t t
24401 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24402 CEOF
24403
24404 _ACEOF
24405
24406   cat >>$CONFIG_STATUS <<\_ACEOF
24407   # Split the substitutions into bite-sized pieces for seds with
24408   # small command number limits, like on Digital OSF/1 and HP-UX.
24409   ac_max_sed_lines=48
24410   ac_sed_frag=1 # Number of current file.
24411   ac_beg=1 # First line for current file.
24412   ac_end=$ac_max_sed_lines # Line after last line for current file.
24413   ac_more_lines=:
24414   ac_sed_cmds=
24415   while $ac_more_lines; do
24416     if test $ac_beg -gt 1; then
24417       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24418     else
24419       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24420     fi
24421     if test ! -s $tmp/subs.frag; then
24422       ac_more_lines=false
24423     else
24424       # The purpose of the label and of the branching condition is to
24425       # speed up the sed processing (if there are no `@' at all, there
24426       # is no need to browse any of the substitutions).
24427       # These are the two extra sed commands mentioned above.
24428       (echo ':t
24429   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24430       if test -z "$ac_sed_cmds"; then
24431         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24432       else
24433         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24434       fi
24435       ac_sed_frag=`expr $ac_sed_frag + 1`
24436       ac_beg=$ac_end
24437       ac_end=`expr $ac_end + $ac_max_sed_lines`
24438     fi
24439   done
24440   if test -z "$ac_sed_cmds"; then
24441     ac_sed_cmds=cat
24442   fi
24443 fi # test -n "$CONFIG_FILES"
24444
24445 _ACEOF
24446 cat >>$CONFIG_STATUS <<\_ACEOF
24447 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24448   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24449   case $ac_file in
24450   - | *:- | *:-:* ) # input from stdin
24451         cat >$tmp/stdin
24452         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24453         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24454   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24455         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24456   * )   ac_file_in=$ac_file.in ;;
24457   esac
24458
24459   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24460   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24462          X"$ac_file" : 'X\(//\)[^/]' \| \
24463          X"$ac_file" : 'X\(//\)$' \| \
24464          X"$ac_file" : 'X\(/\)' \| \
24465          .     : '\(.\)' 2>/dev/null ||
24466 echo X"$ac_file" |
24467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24469           /^X\(\/\/\)$/{ s//\1/; q; }
24470           /^X\(\/\).*/{ s//\1/; q; }
24471           s/.*/./; q'`
24472   { if $as_mkdir_p; then
24473     mkdir -p "$ac_dir"
24474   else
24475     as_dir="$ac_dir"
24476     as_dirs=
24477     while test ! -d "$as_dir"; do
24478       as_dirs="$as_dir $as_dirs"
24479       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24481          X"$as_dir" : 'X\(//\)[^/]' \| \
24482          X"$as_dir" : 'X\(//\)$' \| \
24483          X"$as_dir" : 'X\(/\)' \| \
24484          .     : '\(.\)' 2>/dev/null ||
24485 echo X"$as_dir" |
24486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24488           /^X\(\/\/\)$/{ s//\1/; q; }
24489           /^X\(\/\).*/{ s//\1/; q; }
24490           s/.*/./; q'`
24491     done
24492     test ! -n "$as_dirs" || mkdir $as_dirs
24493   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24495    { (exit 1); exit 1; }; }; }
24496
24497   ac_builddir=.
24498
24499 if test "$ac_dir" != .; then
24500   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24501   # A "../" for each directory in $ac_dir_suffix.
24502   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24503 else
24504   ac_dir_suffix= ac_top_builddir=
24505 fi
24506
24507 case $srcdir in
24508   .)  # No --srcdir option.  We are building in place.
24509     ac_srcdir=.
24510     if test -z "$ac_top_builddir"; then
24511        ac_top_srcdir=.
24512     else
24513        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24514     fi ;;
24515   [\\/]* | ?:[\\/]* )  # Absolute path.
24516     ac_srcdir=$srcdir$ac_dir_suffix;
24517     ac_top_srcdir=$srcdir ;;
24518   *) # Relative path.
24519     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24520     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24521 esac
24522
24523 # Do not use `cd foo && pwd` to compute absolute paths, because
24524 # the directories may not exist.
24525 case `pwd` in
24526 .) ac_abs_builddir="$ac_dir";;
24527 *)
24528   case "$ac_dir" in
24529   .) ac_abs_builddir=`pwd`;;
24530   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24531   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24532   esac;;
24533 esac
24534 case $ac_abs_builddir in
24535 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24536 *)
24537   case ${ac_top_builddir}. in
24538   .) ac_abs_top_builddir=$ac_abs_builddir;;
24539   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24540   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24541   esac;;
24542 esac
24543 case $ac_abs_builddir in
24544 .) ac_abs_srcdir=$ac_srcdir;;
24545 *)
24546   case $ac_srcdir in
24547   .) ac_abs_srcdir=$ac_abs_builddir;;
24548   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24549   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24550   esac;;
24551 esac
24552 case $ac_abs_builddir in
24553 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24554 *)
24555   case $ac_top_srcdir in
24556   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24557   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24558   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24559   esac;;
24560 esac
24561
24562
24563   case $INSTALL in
24564   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24565   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24566   esac
24567
24568   if test x"$ac_file" != x-; then
24569     { echo "$as_me:$LINENO: creating $ac_file" >&5
24570 echo "$as_me: creating $ac_file" >&6;}
24571     rm -f "$ac_file"
24572   fi
24573   # Let's still pretend it is `configure' which instantiates (i.e., don't
24574   # use $as_me), people would be surprised to read:
24575   #    /* config.h.  Generated by config.status.  */
24576   if test x"$ac_file" = x-; then
24577     configure_input=
24578   else
24579     configure_input="$ac_file.  "
24580   fi
24581   configure_input=$configure_input"Generated from `echo $ac_file_in |
24582                                      sed 's,.*/,,'` by configure."
24583
24584   # First look for the input files in the build tree, otherwise in the
24585   # src tree.
24586   ac_file_inputs=`IFS=:
24587     for f in $ac_file_in; do
24588       case $f in
24589       -) echo $tmp/stdin ;;
24590       [\\/$]*)
24591          # Absolute (can't be DOS-style, as IFS=:)
24592          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24593 echo "$as_me: error: cannot find input file: $f" >&2;}
24594    { (exit 1); exit 1; }; }
24595          echo "$f";;
24596       *) # Relative
24597          if test -f "$f"; then
24598            # Build tree
24599            echo "$f"
24600          elif test -f "$srcdir/$f"; then
24601            # Source tree
24602            echo "$srcdir/$f"
24603          else
24604            # /dev/null tree
24605            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24606 echo "$as_me: error: cannot find input file: $f" >&2;}
24607    { (exit 1); exit 1; }; }
24608          fi;;
24609       esac
24610     done` || { (exit 1); exit 1; }
24611 _ACEOF
24612 cat >>$CONFIG_STATUS <<_ACEOF
24613   sed "$ac_vpsub
24614 $extrasub
24615 _ACEOF
24616 cat >>$CONFIG_STATUS <<\_ACEOF
24617 :t
24618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24619 s,@configure_input@,$configure_input,;t t
24620 s,@srcdir@,$ac_srcdir,;t t
24621 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24622 s,@top_srcdir@,$ac_top_srcdir,;t t
24623 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24624 s,@builddir@,$ac_builddir,;t t
24625 s,@abs_builddir@,$ac_abs_builddir,;t t
24626 s,@top_builddir@,$ac_top_builddir,;t t
24627 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24628 s,@INSTALL@,$ac_INSTALL,;t t
24629 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24630   rm -f $tmp/stdin
24631   if test x"$ac_file" != x-; then
24632     mv $tmp/out $ac_file
24633   else
24634     cat $tmp/out
24635     rm -f $tmp/out
24636   fi
24637
24638 done
24639 _ACEOF
24640 cat >>$CONFIG_STATUS <<\_ACEOF
24641
24642 #
24643 # CONFIG_HEADER section.
24644 #
24645
24646 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24647 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24648 #
24649 # ac_d sets the value in "#define NAME VALUE" lines.
24650 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24651 ac_dB='[         ].*$,\1#\2'
24652 ac_dC=' '
24653 ac_dD=',;t'
24654 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24655 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24656 ac_uB='$,\1#\2define\3'
24657 ac_uC=' '
24658 ac_uD=',;t'
24659
24660 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24661   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24662   case $ac_file in
24663   - | *:- | *:-:* ) # input from stdin
24664         cat >$tmp/stdin
24665         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24666         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24667   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24668         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24669   * )   ac_file_in=$ac_file.in ;;
24670   esac
24671
24672   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24673 echo "$as_me: creating $ac_file" >&6;}
24674
24675   # First look for the input files in the build tree, otherwise in the
24676   # src tree.
24677   ac_file_inputs=`IFS=:
24678     for f in $ac_file_in; do
24679       case $f in
24680       -) echo $tmp/stdin ;;
24681       [\\/$]*)
24682          # Absolute (can't be DOS-style, as IFS=:)
24683          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24684 echo "$as_me: error: cannot find input file: $f" >&2;}
24685    { (exit 1); exit 1; }; }
24686          # Do quote $f, to prevent DOS paths from being IFS'd.
24687          echo "$f";;
24688       *) # Relative
24689          if test -f "$f"; then
24690            # Build tree
24691            echo "$f"
24692          elif test -f "$srcdir/$f"; then
24693            # Source tree
24694            echo "$srcdir/$f"
24695          else
24696            # /dev/null tree
24697            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24698 echo "$as_me: error: cannot find input file: $f" >&2;}
24699    { (exit 1); exit 1; }; }
24700          fi;;
24701       esac
24702     done` || { (exit 1); exit 1; }
24703   # Remove the trailing spaces.
24704   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24705
24706 _ACEOF
24707
24708 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24709 # `conftest.undefs', that substitutes the proper values into
24710 # config.h.in to produce config.h.  The first handles `#define'
24711 # templates, and the second `#undef' templates.
24712 # And first: Protect against being on the right side of a sed subst in
24713 # config.status.  Protect against being in an unquoted here document
24714 # in config.status.
24715 rm -f conftest.defines conftest.undefs
24716 # Using a here document instead of a string reduces the quoting nightmare.
24717 # Putting comments in sed scripts is not portable.
24718 #
24719 # `end' is used to avoid that the second main sed command (meant for
24720 # 0-ary CPP macros) applies to n-ary macro definitions.
24721 # See the Autoconf documentation for `clear'.
24722 cat >confdef2sed.sed <<\_ACEOF
24723 s/[\\&,]/\\&/g
24724 s,[\\$`],\\&,g
24725 t clear
24726 : clear
24727 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24728 t end
24729 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24730 : end
24731 _ACEOF
24732 # If some macros were called several times there might be several times
24733 # the same #defines, which is useless.  Nevertheless, we may not want to
24734 # sort them, since we want the *last* AC-DEFINE to be honored.
24735 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24736 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24737 rm -f confdef2sed.sed
24738
24739 # This sed command replaces #undef with comments.  This is necessary, for
24740 # example, in the case of _POSIX_SOURCE, which is predefined and required
24741 # on some systems where configure will not decide to define it.
24742 cat >>conftest.undefs <<\_ACEOF
24743 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24744 _ACEOF
24745
24746 # Break up conftest.defines because some shells have a limit on the size
24747 # of here documents, and old seds have small limits too (100 cmds).
24748 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24749 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24750 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24751 echo '  :' >>$CONFIG_STATUS
24752 rm -f conftest.tail
24753 while grep . conftest.defines >/dev/null
24754 do
24755   # Write a limited-size here document to $tmp/defines.sed.
24756   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24757   # Speed up: don't consider the non `#define' lines.
24758   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24759   # Work around the forget-to-reset-the-flag bug.
24760   echo 't clr' >>$CONFIG_STATUS
24761   echo ': clr' >>$CONFIG_STATUS
24762   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24763   echo 'CEOF
24764   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24765   rm -f $tmp/in
24766   mv $tmp/out $tmp/in
24767 ' >>$CONFIG_STATUS
24768   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24769   rm -f conftest.defines
24770   mv conftest.tail conftest.defines
24771 done
24772 rm -f conftest.defines
24773 echo '  fi # grep' >>$CONFIG_STATUS
24774 echo >>$CONFIG_STATUS
24775
24776 # Break up conftest.undefs because some shells have a limit on the size
24777 # of here documents, and old seds have small limits too (100 cmds).
24778 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24779 rm -f conftest.tail
24780 while grep . conftest.undefs >/dev/null
24781 do
24782   # Write a limited-size here document to $tmp/undefs.sed.
24783   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24784   # Speed up: don't consider the non `#undef'
24785   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24786   # Work around the forget-to-reset-the-flag bug.
24787   echo 't clr' >>$CONFIG_STATUS
24788   echo ': clr' >>$CONFIG_STATUS
24789   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24790   echo 'CEOF
24791   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24792   rm -f $tmp/in
24793   mv $tmp/out $tmp/in
24794 ' >>$CONFIG_STATUS
24795   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24796   rm -f conftest.undefs
24797   mv conftest.tail conftest.undefs
24798 done
24799 rm -f conftest.undefs
24800
24801 cat >>$CONFIG_STATUS <<\_ACEOF
24802   # Let's still pretend it is `configure' which instantiates (i.e., don't
24803   # use $as_me), people would be surprised to read:
24804   #    /* config.h.  Generated by config.status.  */
24805   if test x"$ac_file" = x-; then
24806     echo "/* Generated by configure.  */" >$tmp/config.h
24807   else
24808     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24809   fi
24810   cat $tmp/in >>$tmp/config.h
24811   rm -f $tmp/in
24812   if test x"$ac_file" != x-; then
24813     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24814       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24815 echo "$as_me: $ac_file is unchanged" >&6;}
24816     else
24817       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24819          X"$ac_file" : 'X\(//\)[^/]' \| \
24820          X"$ac_file" : 'X\(//\)$' \| \
24821          X"$ac_file" : 'X\(/\)' \| \
24822          .     : '\(.\)' 2>/dev/null ||
24823 echo X"$ac_file" |
24824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24825           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24826           /^X\(\/\/\)$/{ s//\1/; q; }
24827           /^X\(\/\).*/{ s//\1/; q; }
24828           s/.*/./; q'`
24829       { if $as_mkdir_p; then
24830     mkdir -p "$ac_dir"
24831   else
24832     as_dir="$ac_dir"
24833     as_dirs=
24834     while test ! -d "$as_dir"; do
24835       as_dirs="$as_dir $as_dirs"
24836       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24838          X"$as_dir" : 'X\(//\)[^/]' \| \
24839          X"$as_dir" : 'X\(//\)$' \| \
24840          X"$as_dir" : 'X\(/\)' \| \
24841          .     : '\(.\)' 2>/dev/null ||
24842 echo X"$as_dir" |
24843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24844           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24845           /^X\(\/\/\)$/{ s//\1/; q; }
24846           /^X\(\/\).*/{ s//\1/; q; }
24847           s/.*/./; q'`
24848     done
24849     test ! -n "$as_dirs" || mkdir $as_dirs
24850   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24851 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24852    { (exit 1); exit 1; }; }; }
24853
24854       rm -f $ac_file
24855       mv $tmp/config.h $ac_file
24856     fi
24857   else
24858     cat $tmp/config.h
24859     rm -f $tmp/config.h
24860   fi
24861 done
24862 _ACEOF
24863 cat >>$CONFIG_STATUS <<\_ACEOF
24864
24865 #
24866 # CONFIG_LINKS section.
24867 #
24868
24869 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24870   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24871   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24872
24873   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24874 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24875
24876   if test ! -r $srcdir/$ac_source; then
24877     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24878 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24879    { (exit 1); exit 1; }; }
24880   fi
24881   rm -f $ac_dest
24882
24883   # Make relative symlinks.
24884   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24885 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24886          X"$ac_dest" : 'X\(//\)[^/]' \| \
24887          X"$ac_dest" : 'X\(//\)$' \| \
24888          X"$ac_dest" : 'X\(/\)' \| \
24889          .     : '\(.\)' 2>/dev/null ||
24890 echo X"$ac_dest" |
24891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24892           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24893           /^X\(\/\/\)$/{ s//\1/; q; }
24894           /^X\(\/\).*/{ s//\1/; q; }
24895           s/.*/./; q'`
24896   { if $as_mkdir_p; then
24897     mkdir -p "$ac_dest_dir"
24898   else
24899     as_dir="$ac_dest_dir"
24900     as_dirs=
24901     while test ! -d "$as_dir"; do
24902       as_dirs="$as_dir $as_dirs"
24903       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24905          X"$as_dir" : 'X\(//\)[^/]' \| \
24906          X"$as_dir" : 'X\(//\)$' \| \
24907          X"$as_dir" : 'X\(/\)' \| \
24908          .     : '\(.\)' 2>/dev/null ||
24909 echo X"$as_dir" |
24910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24911           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24912           /^X\(\/\/\)$/{ s//\1/; q; }
24913           /^X\(\/\).*/{ s//\1/; q; }
24914           s/.*/./; q'`
24915     done
24916     test ! -n "$as_dirs" || mkdir $as_dirs
24917   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24918 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24919    { (exit 1); exit 1; }; }; }
24920
24921   ac_builddir=.
24922
24923 if test "$ac_dest_dir" != .; then
24924   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24925   # A "../" for each directory in $ac_dir_suffix.
24926   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24927 else
24928   ac_dir_suffix= ac_top_builddir=
24929 fi
24930
24931 case $srcdir in
24932   .)  # No --srcdir option.  We are building in place.
24933     ac_srcdir=.
24934     if test -z "$ac_top_builddir"; then
24935        ac_top_srcdir=.
24936     else
24937        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24938     fi ;;
24939   [\\/]* | ?:[\\/]* )  # Absolute path.
24940     ac_srcdir=$srcdir$ac_dir_suffix;
24941     ac_top_srcdir=$srcdir ;;
24942   *) # Relative path.
24943     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24944     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24945 esac
24946
24947 # Do not use `cd foo && pwd` to compute absolute paths, because
24948 # the directories may not exist.
24949 case `pwd` in
24950 .) ac_abs_builddir="$ac_dest_dir";;
24951 *)
24952   case "$ac_dest_dir" in
24953   .) ac_abs_builddir=`pwd`;;
24954   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24955   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24956   esac;;
24957 esac
24958 case $ac_abs_builddir in
24959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24960 *)
24961   case ${ac_top_builddir}. in
24962   .) ac_abs_top_builddir=$ac_abs_builddir;;
24963   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24964   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24965   esac;;
24966 esac
24967 case $ac_abs_builddir in
24968 .) ac_abs_srcdir=$ac_srcdir;;
24969 *)
24970   case $ac_srcdir in
24971   .) ac_abs_srcdir=$ac_abs_builddir;;
24972   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24973   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24974   esac;;
24975 esac
24976 case $ac_abs_builddir in
24977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24978 *)
24979   case $ac_top_srcdir in
24980   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24981   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24982   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24983   esac;;
24984 esac
24985
24986
24987   case $srcdir in
24988   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24989       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24990   esac
24991
24992   # Try a symlink, then a hard link, then a copy.
24993   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24994     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24995     cp -p $srcdir/$ac_source $ac_dest ||
24996     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24997 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24998    { (exit 1); exit 1; }; }
24999 done
25000 _ACEOF
25001 cat >>$CONFIG_STATUS <<\_ACEOF
25002
25003 #
25004 # CONFIG_COMMANDS section.
25005 #
25006 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25007   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25008   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25009   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25010 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25011          X"$ac_dest" : 'X\(//\)[^/]' \| \
25012          X"$ac_dest" : 'X\(//\)$' \| \
25013          X"$ac_dest" : 'X\(/\)' \| \
25014          .     : '\(.\)' 2>/dev/null ||
25015 echo X"$ac_dest" |
25016     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25017           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25018           /^X\(\/\/\)$/{ s//\1/; q; }
25019           /^X\(\/\).*/{ s//\1/; q; }
25020           s/.*/./; q'`
25021   { if $as_mkdir_p; then
25022     mkdir -p "$ac_dir"
25023   else
25024     as_dir="$ac_dir"
25025     as_dirs=
25026     while test ! -d "$as_dir"; do
25027       as_dirs="$as_dir $as_dirs"
25028       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25030          X"$as_dir" : 'X\(//\)[^/]' \| \
25031          X"$as_dir" : 'X\(//\)$' \| \
25032          X"$as_dir" : 'X\(/\)' \| \
25033          .     : '\(.\)' 2>/dev/null ||
25034 echo X"$as_dir" |
25035     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25036           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25037           /^X\(\/\/\)$/{ s//\1/; q; }
25038           /^X\(\/\).*/{ s//\1/; q; }
25039           s/.*/./; q'`
25040     done
25041     test ! -n "$as_dirs" || mkdir $as_dirs
25042   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25043 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25044    { (exit 1); exit 1; }; }; }
25045
25046   ac_builddir=.
25047
25048 if test "$ac_dir" != .; then
25049   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25050   # A "../" for each directory in $ac_dir_suffix.
25051   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25052 else
25053   ac_dir_suffix= ac_top_builddir=
25054 fi
25055
25056 case $srcdir in
25057   .)  # No --srcdir option.  We are building in place.
25058     ac_srcdir=.
25059     if test -z "$ac_top_builddir"; then
25060        ac_top_srcdir=.
25061     else
25062        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25063     fi ;;
25064   [\\/]* | ?:[\\/]* )  # Absolute path.
25065     ac_srcdir=$srcdir$ac_dir_suffix;
25066     ac_top_srcdir=$srcdir ;;
25067   *) # Relative path.
25068     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25069     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25070 esac
25071
25072 # Do not use `cd foo && pwd` to compute absolute paths, because
25073 # the directories may not exist.
25074 case `pwd` in
25075 .) ac_abs_builddir="$ac_dir";;
25076 *)
25077   case "$ac_dir" in
25078   .) ac_abs_builddir=`pwd`;;
25079   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25080   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25081   esac;;
25082 esac
25083 case $ac_abs_builddir in
25084 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25085 *)
25086   case ${ac_top_builddir}. in
25087   .) ac_abs_top_builddir=$ac_abs_builddir;;
25088   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25089   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25090   esac;;
25091 esac
25092 case $ac_abs_builddir in
25093 .) ac_abs_srcdir=$ac_srcdir;;
25094 *)
25095   case $ac_srcdir in
25096   .) ac_abs_srcdir=$ac_abs_builddir;;
25097   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25098   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25099   esac;;
25100 esac
25101 case $ac_abs_builddir in
25102 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25103 *)
25104   case $ac_top_srcdir in
25105   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25106   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25107   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25108   esac;;
25109 esac
25110
25111
25112   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25113 echo "$as_me: executing $ac_dest commands" >&6;}
25114   case $ac_dest in
25115     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25116     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25117     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25118     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25119     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25120     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25121     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25122     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25123     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25124     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25125     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25126     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25127   esac
25128 done
25129 _ACEOF
25130
25131 cat >>$CONFIG_STATUS <<\_ACEOF
25132
25133 { (exit 0); exit 0; }
25134 _ACEOF
25135 chmod +x $CONFIG_STATUS
25136 ac_clean_files=$ac_clean_files_save
25137
25138
25139 # configure is writing to config.log, and then calls config.status.
25140 # config.status does its own redirection, appending to config.log.
25141 # Unfortunately, on DOS this fails, as config.log is still kept open
25142 # by configure, so config.status won't be able to write to it; its
25143 # output is simply discarded.  So we exec the FD to /dev/null,
25144 # effectively closing config.log, so it can be properly (re)opened and
25145 # appended to by config.status.  When coming back to configure, we
25146 # need to make the FD available again.
25147 if test "$no_create" != yes; then
25148   ac_cs_success=:
25149   ac_config_status_args=
25150   test "$silent" = yes &&
25151     ac_config_status_args="$ac_config_status_args --quiet"
25152   exec 5>/dev/null
25153   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25154   exec 5>>config.log
25155   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25156   # would make configure fail if this is the last instruction.
25157   $ac_cs_success || { (exit 1); exit 1; }
25158 fi
25159
25160 #
25161 # CONFIG_SUBDIRS section.
25162 #
25163 if test "$no_recursion" != yes; then
25164
25165   # Remove --cache-file and --srcdir arguments so they do not pile up.
25166   ac_sub_configure_args=
25167   ac_prev=
25168   for ac_arg in $ac_configure_args; do
25169     if test -n "$ac_prev"; then
25170       ac_prev=
25171       continue
25172     fi
25173     case $ac_arg in
25174     -cache-file | --cache-file | --cache-fil | --cache-fi \
25175     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25176       ac_prev=cache_file ;;
25177     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25178     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25179     | --c=*)
25180       ;;
25181     --config-cache | -C)
25182       ;;
25183     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25184       ac_prev=srcdir ;;
25185     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25186       ;;
25187     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25188       ac_prev=prefix ;;
25189     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25190       ;;
25191     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25192     esac
25193   done
25194
25195   # Always prepend --prefix to ensure using the same prefix
25196   # in subdir configurations.
25197   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25198
25199   ac_popdir=`pwd`
25200   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25201
25202     # Do not complain, so a configure script can configure whichever
25203     # parts of a large source tree are present.
25204     test -d $srcdir/$ac_dir || continue
25205
25206     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25207 echo "$as_me: configuring in $ac_dir" >&6;}
25208     { if $as_mkdir_p; then
25209     mkdir -p "$ac_dir"
25210   else
25211     as_dir="$ac_dir"
25212     as_dirs=
25213     while test ! -d "$as_dir"; do
25214       as_dirs="$as_dir $as_dirs"
25215       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25217          X"$as_dir" : 'X\(//\)[^/]' \| \
25218          X"$as_dir" : 'X\(//\)$' \| \
25219          X"$as_dir" : 'X\(/\)' \| \
25220          .     : '\(.\)' 2>/dev/null ||
25221 echo X"$as_dir" |
25222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25224           /^X\(\/\/\)$/{ s//\1/; q; }
25225           /^X\(\/\).*/{ s//\1/; q; }
25226           s/.*/./; q'`
25227     done
25228     test ! -n "$as_dirs" || mkdir $as_dirs
25229   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25231    { (exit 1); exit 1; }; }; }
25232
25233     ac_builddir=.
25234
25235 if test "$ac_dir" != .; then
25236   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25237   # A "../" for each directory in $ac_dir_suffix.
25238   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25239 else
25240   ac_dir_suffix= ac_top_builddir=
25241 fi
25242
25243 case $srcdir in
25244   .)  # No --srcdir option.  We are building in place.
25245     ac_srcdir=.
25246     if test -z "$ac_top_builddir"; then
25247        ac_top_srcdir=.
25248     else
25249        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25250     fi ;;
25251   [\\/]* | ?:[\\/]* )  # Absolute path.
25252     ac_srcdir=$srcdir$ac_dir_suffix;
25253     ac_top_srcdir=$srcdir ;;
25254   *) # Relative path.
25255     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25256     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25257 esac
25258
25259 # Do not use `cd foo && pwd` to compute absolute paths, because
25260 # the directories may not exist.
25261 case `pwd` in
25262 .) ac_abs_builddir="$ac_dir";;
25263 *)
25264   case "$ac_dir" in
25265   .) ac_abs_builddir=`pwd`;;
25266   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25267   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25268   esac;;
25269 esac
25270 case $ac_abs_builddir in
25271 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25272 *)
25273   case ${ac_top_builddir}. in
25274   .) ac_abs_top_builddir=$ac_abs_builddir;;
25275   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25276   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25277   esac;;
25278 esac
25279 case $ac_abs_builddir in
25280 .) ac_abs_srcdir=$ac_srcdir;;
25281 *)
25282   case $ac_srcdir in
25283   .) ac_abs_srcdir=$ac_abs_builddir;;
25284   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25285   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25286   esac;;
25287 esac
25288 case $ac_abs_builddir in
25289 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25290 *)
25291   case $ac_top_srcdir in
25292   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25293   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25294   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25295   esac;;
25296 esac
25297
25298
25299     cd $ac_dir
25300
25301     # Check for guested configure; otherwise get Cygnus style configure.
25302     if test -f $ac_srcdir/configure.gnu; then
25303       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25304     elif test -f $ac_srcdir/configure; then
25305       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25306     elif test -f $ac_srcdir/configure.in; then
25307       ac_sub_configure=$ac_configure
25308     else
25309       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25310 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25311       ac_sub_configure=
25312     fi
25313
25314     # The recursion is here.
25315     if test -n "$ac_sub_configure"; then
25316       # Make the cache file name correct relative to the subdirectory.
25317       case $cache_file in
25318       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25319       *) # Relative path.
25320         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25321       esac
25322
25323       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25324 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25325       # The eval makes quoting arguments work.
25326       eval $ac_sub_configure $ac_sub_configure_args \
25327            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25328         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25329 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25330    { (exit 1); exit 1; }; }
25331     fi
25332
25333     cd $ac_popdir
25334   done
25335 fi
25336
25337
25338 if test $llvmgccwarn = yes
25339 then
25340         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25341 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25342         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25343 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25344         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25345 echo "$as_me: WARNING: ***** " >&2;}
25346         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25347 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25348         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25349 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25350         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25351 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25352 fi
25353