Generated a new configure script.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_unique_file=""Makefile.config.in""
467 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 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SED RM MKDIR DATE MV DOT ETAGS PURIFY ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB JIT SPEC_ROOT BCR PAPIDIR OBJROOT LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
925 ac_env_CC_value=$CC
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012   --target=TARGET   configure for building compilers for TARGET [HOST]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032   --enable-purify         Compile with purify (default is NO)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec           Compile SPEC benchmarks (default is NO)
1035   --enable-precompiled_bytecode
1036                           Use pre-compiled bytecode (default is NO)
1037   --enable-jit            Enable Just In Time Compiling (default is NO)
1038
1039 Optional Packages:
1040   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1041   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1042   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1043   --with-pic              try to use only PIC/non-PIC objects [default=use
1044                           both]
1045   --with-tags[=TAGS]
1046                           include additional configurations [automatic]
1047   --with-spec             Location of SPEC benchmarks
1048   --with-llvmgccdir       Location of LLVM GCC front-end
1049   --with-bcrepos          Location of Bytecode Repository
1050   --with-papi             Location of PAPI
1051   --with-objroot          Location where object files should be placed
1052                           (default is .)
1053   --with-purify           Location of purify program
1054
1055 Some influential environment variables:
1056   CXX         C++ compiler command
1057   CXXFLAGS    C++ compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   CPP         C preprocessor
1065   CXXCPP      C++ preprocessor
1066   F77         Fortran 77 compiler command
1067   FFLAGS      Fortran 77 compiler flags
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 # absolute.
1108 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1109 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1110 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112
1113     cd $ac_dir
1114     # Check for guested configure; otherwise get Cygnus style configure.
1115     if test -f $ac_srcdir/configure.gnu; then
1116       echo
1117       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1118     elif test -f $ac_srcdir/configure; then
1119       echo
1120       $SHELL $ac_srcdir/configure  --help=recursive
1121     elif test -f $ac_srcdir/configure.ac ||
1122            test -f $ac_srcdir/configure.in; then
1123       echo
1124       $ac_configure --help
1125     else
1126       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127     fi
1128     cd $ac_popdir
1129   done
1130 fi
1131
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134   cat <<\_ACEOF
1135 [LLVM] configure [1.0]
1136 generated by GNU Autoconf 2.57
1137
1138 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143   exit 0
1144 fi
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1149
1150 It was created by [LLVM] $as_me [1.0], which was
1151 generated by GNU Autoconf 2.57.  Invocation command line was
1152
1153   $ $0 $@
1154
1155 _ACEOF
1156 {
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1161
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1170
1171 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1172 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1175 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1176 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1177 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1178
1179 _ASUNAME
1180
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1183 do
1184   IFS=$as_save_IFS
1185   test -z "$as_dir" && as_dir=.
1186   echo "PATH: $as_dir"
1187 done
1188
1189 } >&5
1190
1191 cat >&5 <<_ACEOF
1192
1193
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1197
1198 _ACEOF
1199
1200
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1212 do
1213   for ac_arg
1214   do
1215     case $ac_arg in
1216     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218     | -silent | --silent | --silen | --sile | --sil)
1219       continue ;;
1220     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222     esac
1223     case $ac_pass in
1224     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225     2)
1226       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227       if test $ac_must_keep_next = true; then
1228         ac_must_keep_next=false # Got value, back to normal.
1229       else
1230         case $ac_arg in
1231           *=* | --config-cache | -C | -disable-* | --disable-* \
1232           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234           | -with-* | --with-* | -without-* | --without-* | --x)
1235             case "$ac_configure_args0 " in
1236               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237             esac
1238             ;;
1239           -* ) ac_must_keep_next=true ;;
1240         esac
1241       fi
1242       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243       # Get rid of the leading space.
1244       ac_sep=" "
1245       ;;
1246     esac
1247   done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log.  We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258   # Save into config.log some information that might help in debugging.
1259   {
1260     echo
1261
1262     cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267     echo
1268     # The following way of writing the cache mishandles newlines in values,
1269 {
1270   (set) 2>&1 |
1271     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272     *ac_space=\ *)
1273       sed -n \
1274         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276       ;;
1277     *)
1278       sed -n \
1279         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280       ;;
1281     esac;
1282 }
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290     echo
1291     for ac_var in $ac_subst_vars
1292     do
1293       eval ac_val=$`echo $ac_var`
1294       echo "$ac_var='"'"'$ac_val'"'"'"
1295     done | sort
1296     echo
1297
1298     if test -n "$ac_subst_files"; then
1299       cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304       echo
1305       for ac_var in $ac_subst_files
1306       do
1307         eval ac_val=$`echo $ac_var`
1308         echo "$ac_var='"'"'$ac_val'"'"'"
1309       done | sort
1310       echo
1311     fi
1312
1313     if test -s confdefs.h; then
1314       cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319       echo
1320       sed "/^$/d" confdefs.h | sort
1321       echo
1322     fi
1323     test "$ac_signal" != 0 &&
1324       echo "$as_me: caught signal $ac_signal"
1325     echo "$as_me: exit $exit_status"
1326   } >&5
1327   rm -f core core.* *.core &&
1328   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329     exit $exit_status
1330      ' 0
1331 for ac_signal in 1 2 13 15; do
1332   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1335
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1340
1341 # Predefined preprocessor variables.
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1366
1367
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371   if test "x$prefix" != xNONE; then
1372     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373   else
1374     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375   fi
1376 fi
1377 for ac_site_file in $CONFIG_SITE; do
1378   if test -r "$ac_site_file"; then
1379     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381     sed 's/^/| /' "$ac_site_file" >&5
1382     . "$ac_site_file"
1383   fi
1384 done
1385
1386 if test -r "$cache_file"; then
1387   # Some versions of bash will fail to source /dev/null (special
1388   # files actually), so we avoid doing that.
1389   if test -f "$cache_file"; then
1390     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392     case $cache_file in
1393       [\\/]* | ?:[\\/]* ) . $cache_file;;
1394       *)                      . ./$cache_file;;
1395     esac
1396   fi
1397 else
1398   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400   >$cache_file
1401 fi
1402
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409   eval ac_new_set=\$ac_env_${ac_var}_set
1410   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411   eval ac_new_val="\$ac_env_${ac_var}_value"
1412   case $ac_old_set,$ac_new_set in
1413     set,)
1414       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416       ac_cache_corrupted=: ;;
1417     ,set)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,);;
1422     *)
1423       if test "x$ac_old_val" != "x$ac_new_val"; then
1424         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1427 echo "$as_me:   former value:  $ac_old_val" >&2;}
1428         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1429 echo "$as_me:   current value: $ac_new_val" >&2;}
1430         ac_cache_corrupted=:
1431       fi;;
1432   esac
1433   # Pass precious variables to config.status.
1434   if test "$ac_new_set" = set; then
1435     case $ac_new_val in
1436     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438     *) ac_arg=$ac_var=$ac_new_val ;;
1439     esac
1440     case " $ac_configure_args " in
1441       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1442       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443     esac
1444   fi
1445 done
1446 if $ac_cache_corrupted; then
1447   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451    { (exit 1); exit 1; }; }
1452 fi
1453
1454 ac_ext=c
1455 ac_cpp='$CPP $CPPFLAGS'
1456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 ac_aux_dir=
1488 for ac_dir in autoconf $srcdir/autoconf; do
1489   if test -f $ac_dir/install-sh; then
1490     ac_aux_dir=$ac_dir
1491     ac_install_sh="$ac_aux_dir/install-sh -c"
1492     break
1493   elif test -f $ac_dir/install.sh; then
1494     ac_aux_dir=$ac_dir
1495     ac_install_sh="$ac_aux_dir/install.sh -c"
1496     break
1497   elif test -f $ac_dir/shtool; then
1498     ac_aux_dir=$ac_dir
1499     ac_install_sh="$ac_aux_dir/shtool install -c"
1500     break
1501   fi
1502 done
1503 if test -z "$ac_aux_dir"; then
1504   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
1512
1513           ac_config_headers="$ac_config_headers include/Config/config.h"
1514
1515
1516
1517 # Find a good install program.  We prefer a C program (faster),
1518 # so one script is as good as another.  But avoid the broken or
1519 # incompatible versions:
1520 # SysV /etc/install, /usr/sbin/install
1521 # SunOS /usr/etc/install
1522 # IRIX /sbin/install
1523 # AIX /bin/install
1524 # AmigaOS /C/install, which installs bootblocks on floppy discs
1525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1528 # ./install, which can be erroneously created by make from ./install.sh.
1529 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1530 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1531 if test -z "$INSTALL"; then
1532 if test "${ac_cv_path_install+set}" = set; then
1533   echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   # Account for people who put trailing slashes in PATH elements.
1541 case $as_dir/ in
1542   ./ | .// | /cC/* | \
1543   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1544   /usr/ucb/* ) ;;
1545   *)
1546     # OSF1 and SCO ODT 3.0 have their own names for install.
1547     # Don't use installbsd from OSF since it installs stuff as root
1548     # by default.
1549     for ac_prog in ginstall scoinst install; do
1550       for ac_exec_ext in '' $ac_executable_extensions; do
1551         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1552           if test $ac_prog = install &&
1553             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1554             # AIX install.  It has an incompatible calling convention.
1555             :
1556           elif test $ac_prog = install &&
1557             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1558             # program-specific install script used by HP pwplus--don't use.
1559             :
1560           else
1561             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1562             break 3
1563           fi
1564         fi
1565       done
1566     done
1567     ;;
1568 esac
1569 done
1570
1571
1572 fi
1573   if test "${ac_cv_path_install+set}" = set; then
1574     INSTALL=$ac_cv_path_install
1575   else
1576     # As a last resort, use the slow shell script.  We don't cache a
1577     # path for INSTALL within a source directory, because that will
1578     # break other packages using the cache if that directory is
1579     # removed, or if the path is relative.
1580     INSTALL=$ac_install_sh
1581   fi
1582 fi
1583 echo "$as_me:$LINENO: result: $INSTALL" >&5
1584 echo "${ECHO_T}$INSTALL" >&6
1585
1586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1587 # It thinks the first close brace ends the variable substitution.
1588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1589
1590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1591
1592 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1593
1594
1595 # Make sure we can run config.sub.
1596 $ac_config_sub sun4 >/dev/null 2>&1 ||
1597   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1598 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1599    { (exit 1); exit 1; }; }
1600
1601 echo "$as_me:$LINENO: checking build system type" >&5
1602 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1603 if test "${ac_cv_build+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   ac_cv_build_alias=$build_alias
1607 test -z "$ac_cv_build_alias" &&
1608   ac_cv_build_alias=`$ac_config_guess`
1609 test -z "$ac_cv_build_alias" &&
1610   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1611 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1612    { (exit 1); exit 1; }; }
1613 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1614   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1615 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1616    { (exit 1); exit 1; }; }
1617
1618 fi
1619 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1620 echo "${ECHO_T}$ac_cv_build" >&6
1621 build=$ac_cv_build
1622 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1623 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1624 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625
1626
1627 echo "$as_me:$LINENO: checking host system type" >&5
1628 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1629 if test "${ac_cv_host+set}" = set; then
1630   echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632   ac_cv_host_alias=$host_alias
1633 test -z "$ac_cv_host_alias" &&
1634   ac_cv_host_alias=$ac_cv_build_alias
1635 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1636   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1638    { (exit 1); exit 1; }; }
1639
1640 fi
1641 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1642 echo "${ECHO_T}$ac_cv_host" >&6
1643 host=$ac_cv_host
1644 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649 echo "$as_me:$LINENO: checking target system type" >&5
1650 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1651 if test "${ac_cv_target+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   ac_cv_target_alias=$target_alias
1655 test "x$ac_cv_target_alias" = "x" &&
1656   ac_cv_target_alias=$ac_cv_host_alias
1657 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1658   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1660    { (exit 1); exit 1; }; }
1661
1662 fi
1663 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1664 echo "${ECHO_T}$ac_cv_target" >&6
1665 target=$ac_cv_target
1666 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671 # The aliases save the names the user supplied, while $host etc.
1672 # will get canonicalized.
1673 test -n "$target_alias" &&
1674   test "$program_prefix$program_suffix$program_transform_name" = \
1675     NONENONEs,x,x, &&
1676   program_prefix=${target_alias}-
1677
1678 case $build in
1679         *i*86*)  OS=Linux
1680
1681                                                                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1682
1683                  ;;
1684
1685         *sparc*) OS=SunOS
1686
1687                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1688
1689                  ;;
1690
1691         *)       OS=Unknown
1692
1693                  ;;
1694 esac
1695
1696 case $target in
1697         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
1698
1699                           ;;
1700 esac
1701
1702 case $target in
1703         *i*86*)           ARCH=x86
1704
1705                           ;;
1706         *sparc*solaris*)  ARCH=Sparc
1707
1708                           ;;
1709 esac
1710
1711
1712 ac_ext=cc
1713 ac_cpp='$CXXCPP $CPPFLAGS'
1714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1717 if test -n "$ac_tool_prefix"; then
1718   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1719   do
1720     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CXX+set}" = set; then
1725   echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727   if test -n "$CXX"; then
1728   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1732 do
1733   IFS=$as_save_IFS
1734   test -z "$as_dir" && as_dir=.
1735   for ac_exec_ext in '' $ac_executable_extensions; do
1736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739     break 2
1740   fi
1741 done
1742 done
1743
1744 fi
1745 fi
1746 CXX=$ac_cv_prog_CXX
1747 if test -n "$CXX"; then
1748   echo "$as_me:$LINENO: result: $CXX" >&5
1749 echo "${ECHO_T}$CXX" >&6
1750 else
1751   echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1753 fi
1754
1755     test -n "$CXX" && break
1756   done
1757 fi
1758 if test -z "$CXX"; then
1759   ac_ct_CXX=$CXX
1760   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1761 do
1762   # Extract the first word of "$ac_prog", so it can be a program name with args.
1763 set dummy $ac_prog; ac_word=$2
1764 echo "$as_me:$LINENO: checking for $ac_word" >&5
1765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1767   echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769   if test -n "$ac_ct_CXX"; then
1770   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1771 else
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775   IFS=$as_save_IFS
1776   test -z "$as_dir" && as_dir=.
1777   for ac_exec_ext in '' $ac_executable_extensions; do
1778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779     ac_cv_prog_ac_ct_CXX="$ac_prog"
1780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781     break 2
1782   fi
1783 done
1784 done
1785
1786 fi
1787 fi
1788 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1789 if test -n "$ac_ct_CXX"; then
1790   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1791 echo "${ECHO_T}$ac_ct_CXX" >&6
1792 else
1793   echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1795 fi
1796
1797   test -n "$ac_ct_CXX" && break
1798 done
1799 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1800
1801   CXX=$ac_ct_CXX
1802 fi
1803
1804
1805 # Provide some information about the compiler.
1806 echo "$as_me:$LINENO:" \
1807      "checking for C++ compiler version" >&5
1808 ac_compiler=`set X $ac_compile; echo $2`
1809 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1810   (eval $ac_compiler --version </dev/null >&5) 2>&5
1811   ac_status=$?
1812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813   (exit $ac_status); }
1814 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1815   (eval $ac_compiler -v </dev/null >&5) 2>&5
1816   ac_status=$?
1817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818   (exit $ac_status); }
1819 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1820   (eval $ac_compiler -V </dev/null >&5) 2>&5
1821   ac_status=$?
1822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823   (exit $ac_status); }
1824
1825 cat >conftest.$ac_ext <<_ACEOF
1826 #line $LINENO "configure"
1827 /* confdefs.h.  */
1828 _ACEOF
1829 cat confdefs.h >>conftest.$ac_ext
1830 cat >>conftest.$ac_ext <<_ACEOF
1831 /* end confdefs.h.  */
1832
1833 int
1834 main ()
1835 {
1836
1837   ;
1838   return 0;
1839 }
1840 _ACEOF
1841 ac_clean_files_save=$ac_clean_files
1842 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1843 # Try to create an executable without -o first, disregard a.out.
1844 # It will help us diagnose broken compilers, and finding out an intuition
1845 # of exeext.
1846 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1847 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1848 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1849 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1850   (eval $ac_link_default) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }; then
1854   # Find the output, starting from the most likely.  This scheme is
1855 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1856 # resort.
1857
1858 # Be careful to initialize this variable, since it used to be cached.
1859 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1860 ac_cv_exeext=
1861 # b.out is created by i960 compilers.
1862 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1863 do
1864   test -f "$ac_file" || continue
1865   case $ac_file in
1866     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1867         ;;
1868     conftest.$ac_ext )
1869         # This is the source file.
1870         ;;
1871     [ab].out )
1872         # We found the default executable, but exeext='' is most
1873         # certainly right.
1874         break;;
1875     *.* )
1876         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1877         # FIXME: I believe we export ac_cv_exeext for Libtool,
1878         # but it would be cool to find out if it's true.  Does anybody
1879         # maintain Libtool? --akim.
1880         export ac_cv_exeext
1881         break;;
1882     * )
1883         break;;
1884   esac
1885 done
1886 else
1887   echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1891 See \`config.log' for more details." >&5
1892 echo "$as_me: error: C++ compiler cannot create executables
1893 See \`config.log' for more details." >&2;}
1894    { (exit 77); exit 77; }; }
1895 fi
1896
1897 ac_exeext=$ac_cv_exeext
1898 echo "$as_me:$LINENO: result: $ac_file" >&5
1899 echo "${ECHO_T}$ac_file" >&6
1900
1901 # Check the compiler produces executables we can run.  If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1904 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1905 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1906 # If not cross compiling, check that we can run a simple program.
1907 if test "$cross_compiling" != yes; then
1908   if { ac_try='./$ac_file'
1909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910   (eval $ac_try) 2>&5
1911   ac_status=$?
1912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913   (exit $ac_status); }; }; then
1914     cross_compiling=no
1915   else
1916     if test "$cross_compiling" = maybe; then
1917         cross_compiling=yes
1918     else
1919         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1920 If you meant to cross compile, use \`--host'.
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: cannot run C++ compiled programs.
1923 If you meant to cross compile, use \`--host'.
1924 See \`config.log' for more details." >&2;}
1925    { (exit 1); exit 1; }; }
1926     fi
1927   fi
1928 fi
1929 echo "$as_me:$LINENO: result: yes" >&5
1930 echo "${ECHO_T}yes" >&6
1931
1932 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1933 ac_clean_files=$ac_clean_files_save
1934 # Check the compiler produces executables we can run.  If not, either
1935 # the compiler is broken, or we cross compile.
1936 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1937 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1938 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1939 echo "${ECHO_T}$cross_compiling" >&6
1940
1941 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1942 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1944   (eval $ac_link) 2>&5
1945   ac_status=$?
1946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947   (exit $ac_status); }; then
1948   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1949 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1950 # work properly (i.e., refer to `conftest.exe'), while it won't with
1951 # `rm'.
1952 for ac_file in conftest.exe conftest conftest.*; do
1953   test -f "$ac_file" || continue
1954   case $ac_file in
1955     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1956     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1957           export ac_cv_exeext
1958           break;;
1959     * ) break;;
1960   esac
1961 done
1962 else
1963   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1966 See \`config.log' for more details." >&2;}
1967    { (exit 1); exit 1; }; }
1968 fi
1969
1970 rm -f conftest$ac_cv_exeext
1971 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1972 echo "${ECHO_T}$ac_cv_exeext" >&6
1973
1974 rm -f conftest.$ac_ext
1975 EXEEXT=$ac_cv_exeext
1976 ac_exeext=$EXEEXT
1977 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1978 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1979 if test "${ac_cv_objext+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   cat >conftest.$ac_ext <<_ACEOF
1983 #line $LINENO "configure"
1984 /* confdefs.h.  */
1985 _ACEOF
1986 cat confdefs.h >>conftest.$ac_ext
1987 cat >>conftest.$ac_ext <<_ACEOF
1988 /* end confdefs.h.  */
1989
1990 int
1991 main ()
1992 {
1993
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 rm -f conftest.o conftest.obj
1999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000   (eval $ac_compile) 2>&5
2001   ac_status=$?
2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003   (exit $ac_status); }; then
2004   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2005   case $ac_file in
2006     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2007     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2008        break;;
2009   esac
2010 done
2011 else
2012   echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2016 See \`config.log' for more details." >&5
2017 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2018 See \`config.log' for more details." >&2;}
2019    { (exit 1); exit 1; }; }
2020 fi
2021
2022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2023 fi
2024 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2025 echo "${ECHO_T}$ac_cv_objext" >&6
2026 OBJEXT=$ac_cv_objext
2027 ac_objext=$OBJEXT
2028 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2029 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2030 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   cat >conftest.$ac_ext <<_ACEOF
2034 #line $LINENO "configure"
2035 /* confdefs.h.  */
2036 _ACEOF
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h.  */
2040
2041 int
2042 main ()
2043 {
2044 #ifndef __GNUC__
2045        choke me
2046 #endif
2047
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054   (eval $ac_compile) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); } &&
2058          { ac_try='test -s conftest.$ac_objext'
2059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060   (eval $ac_try) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }; }; then
2064   ac_compiler_gnu=yes
2065 else
2066   echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2068
2069 ac_compiler_gnu=no
2070 fi
2071 rm -f conftest.$ac_objext conftest.$ac_ext
2072 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2073
2074 fi
2075 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2076 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2077 GXX=`test $ac_compiler_gnu = yes && echo yes`
2078 ac_test_CXXFLAGS=${CXXFLAGS+set}
2079 ac_save_CXXFLAGS=$CXXFLAGS
2080 CXXFLAGS="-g"
2081 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2082 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2083 if test "${ac_cv_prog_cxx_g+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   cat >conftest.$ac_ext <<_ACEOF
2087 #line $LINENO "configure"
2088 /* confdefs.h.  */
2089 _ACEOF
2090 cat confdefs.h >>conftest.$ac_ext
2091 cat >>conftest.$ac_ext <<_ACEOF
2092 /* end confdefs.h.  */
2093
2094 int
2095 main ()
2096 {
2097
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104   (eval $ac_compile) 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); } &&
2108          { ac_try='test -s conftest.$ac_objext'
2109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110   (eval $ac_try) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }; }; then
2114   ac_cv_prog_cxx_g=yes
2115 else
2116   echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2118
2119 ac_cv_prog_cxx_g=no
2120 fi
2121 rm -f conftest.$ac_objext conftest.$ac_ext
2122 fi
2123 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2124 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2125 if test "$ac_test_CXXFLAGS" = set; then
2126   CXXFLAGS=$ac_save_CXXFLAGS
2127 elif test $ac_cv_prog_cxx_g = yes; then
2128   if test "$GXX" = yes; then
2129     CXXFLAGS="-g -O2"
2130   else
2131     CXXFLAGS="-g"
2132   fi
2133 else
2134   if test "$GXX" = yes; then
2135     CXXFLAGS="-O2"
2136   else
2137     CXXFLAGS=
2138   fi
2139 fi
2140 for ac_declaration in \
2141    ''\
2142    '#include <stdlib.h>' \
2143    'extern "C" void std::exit (int) throw (); using std::exit;' \
2144    'extern "C" void std::exit (int); using std::exit;' \
2145    'extern "C" void exit (int) throw ();' \
2146    'extern "C" void exit (int);' \
2147    'void exit (int);'
2148 do
2149   cat >conftest.$ac_ext <<_ACEOF
2150 #line $LINENO "configure"
2151 /* confdefs.h.  */
2152 _ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h.  */
2156 #include <stdlib.h>
2157 $ac_declaration
2158 int
2159 main ()
2160 {
2161 exit (42);
2162   ;
2163   return 0;
2164 }
2165 _ACEOF
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168   (eval $ac_compile) 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); } &&
2172          { ac_try='test -s conftest.$ac_objext'
2173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174   (eval $ac_try) 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }; }; then
2178   :
2179 else
2180   echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2182
2183 continue
2184 fi
2185 rm -f conftest.$ac_objext conftest.$ac_ext
2186   cat >conftest.$ac_ext <<_ACEOF
2187 #line $LINENO "configure"
2188 /* confdefs.h.  */
2189 _ACEOF
2190 cat confdefs.h >>conftest.$ac_ext
2191 cat >>conftest.$ac_ext <<_ACEOF
2192 /* end confdefs.h.  */
2193 $ac_declaration
2194 int
2195 main ()
2196 {
2197 exit (42);
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 rm -f conftest.$ac_objext
2203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204   (eval $ac_compile) 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); } &&
2208          { ac_try='test -s conftest.$ac_objext'
2209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210   (eval $ac_try) 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); }; }; then
2214   break
2215 else
2216   echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2218
2219 fi
2220 rm -f conftest.$ac_objext conftest.$ac_ext
2221 done
2222 rm -f conftest*
2223 if test -n "$ac_declaration"; then
2224   echo '#ifdef __cplusplus' >>confdefs.h
2225   echo $ac_declaration      >>confdefs.h
2226   echo '#endif'             >>confdefs.h
2227 fi
2228
2229 ac_ext=c
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235 ac_ext=c
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240 if test -n "$ac_tool_prefix"; then
2241   for ac_prog in gcc
2242   do
2243     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2245 echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250   if test -n "$CC"; then
2251   ac_cv_prog_CC="$CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256   IFS=$as_save_IFS
2257   test -z "$as_dir" && as_dir=.
2258   for ac_exec_ext in '' $ac_executable_extensions; do
2259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262     break 2
2263   fi
2264 done
2265 done
2266
2267 fi
2268 fi
2269 CC=$ac_cv_prog_CC
2270 if test -n "$CC"; then
2271   echo "$as_me:$LINENO: result: $CC" >&5
2272 echo "${ECHO_T}$CC" >&6
2273 else
2274   echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2276 fi
2277
2278     test -n "$CC" && break
2279   done
2280 fi
2281 if test -z "$CC"; then
2282   ac_ct_CC=$CC
2283   for ac_prog in gcc
2284 do
2285   # Extract the first word of "$ac_prog", so it can be a program name with args.
2286 set dummy $ac_prog; ac_word=$2
2287 echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   if test -n "$ac_ct_CC"; then
2293   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   for ac_exec_ext in '' $ac_executable_extensions; do
2301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302     ac_cv_prog_ac_ct_CC="$ac_prog"
2303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304     break 2
2305   fi
2306 done
2307 done
2308
2309 fi
2310 fi
2311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312 if test -n "$ac_ct_CC"; then
2313   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314 echo "${ECHO_T}$ac_ct_CC" >&6
2315 else
2316   echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6
2318 fi
2319
2320   test -n "$ac_ct_CC" && break
2321 done
2322
2323   CC=$ac_ct_CC
2324 fi
2325
2326
2327 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&2;}
2331    { (exit 1); exit 1; }; }
2332
2333 # Provide some information about the compiler.
2334 echo "$as_me:$LINENO:" \
2335      "checking for C compiler version" >&5
2336 ac_compiler=`set X $ac_compile; echo $2`
2337 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2338   (eval $ac_compiler --version </dev/null >&5) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }
2342 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2343   (eval $ac_compiler -v </dev/null >&5) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }
2347 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2348   (eval $ac_compiler -V </dev/null >&5) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }
2352
2353 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2355 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356   echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358   cat >conftest.$ac_ext <<_ACEOF
2359 #line $LINENO "configure"
2360 /* confdefs.h.  */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h.  */
2365
2366 int
2367 main ()
2368 {
2369 #ifndef __GNUC__
2370        choke me
2371 #endif
2372
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379   (eval $ac_compile) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); } &&
2383          { ac_try='test -s conftest.$ac_objext'
2384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385   (eval $ac_try) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; }; then
2389   ac_compiler_gnu=yes
2390 else
2391   echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_compiler_gnu=no
2395 fi
2396 rm -f conftest.$ac_objext conftest.$ac_ext
2397 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2398
2399 fi
2400 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2401 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2402 GCC=`test $ac_compiler_gnu = yes && echo yes`
2403 ac_test_CFLAGS=${CFLAGS+set}
2404 ac_save_CFLAGS=$CFLAGS
2405 CFLAGS="-g"
2406 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2407 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2408 if test "${ac_cv_prog_cc_g+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2413 /* confdefs.h.  */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h.  */
2418
2419 int
2420 main ()
2421 {
2422
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>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   ac_cv_prog_cc_g=yes
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 ac_cv_prog_cc_g=no
2445 fi
2446 rm -f conftest.$ac_objext conftest.$ac_ext
2447 fi
2448 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2449 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2450 if test "$ac_test_CFLAGS" = set; then
2451   CFLAGS=$ac_save_CFLAGS
2452 elif test $ac_cv_prog_cc_g = yes; then
2453   if test "$GCC" = yes; then
2454     CFLAGS="-g -O2"
2455   else
2456     CFLAGS="-g"
2457   fi
2458 else
2459   if test "$GCC" = yes; then
2460     CFLAGS="-O2"
2461   else
2462     CFLAGS=
2463   fi
2464 fi
2465 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2466 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2467 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   ac_cv_prog_cc_stdc=no
2471 ac_save_CC=$CC
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #line $LINENO "configure"
2474 /* confdefs.h.  */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h.  */
2479 #include <stdarg.h>
2480 #include <stdio.h>
2481 #include <sys/types.h>
2482 #include <sys/stat.h>
2483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2484 struct buf { int x; };
2485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2486 static char *e (p, i)
2487      char **p;
2488      int i;
2489 {
2490   return p[i];
2491 }
2492 static char *f (char * (*g) (char **, int), char **p, ...)
2493 {
2494   char *s;
2495   va_list v;
2496   va_start (v,p);
2497   s = g (p, va_arg (v,int));
2498   va_end (v);
2499   return s;
2500 }
2501 int test (int i, double x);
2502 struct s1 {int (*f) (int a);};
2503 struct s2 {int (*f) (double a);};
2504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2505 int argc;
2506 char **argv;
2507 int
2508 main ()
2509 {
2510 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 # Don't try gcc -ansi; that turns off useful extensions and
2516 # breaks some systems' header files.
2517 # AIX                   -qlanglvl=ansi
2518 # Ultrix and OSF/1      -std1
2519 # HP-UX 10.20 and later -Ae
2520 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2521 # SVR4                  -Xc -D__EXTENSIONS__
2522 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2523 do
2524   CC="$ac_save_CC $ac_arg"
2525   rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527   (eval $ac_compile) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); } &&
2531          { ac_try='test -s conftest.$ac_objext'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   ac_cv_prog_cc_stdc=$ac_arg
2538 break
2539 else
2540   echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2542
2543 fi
2544 rm -f conftest.$ac_objext
2545 done
2546 rm -f conftest.$ac_ext conftest.$ac_objext
2547 CC=$ac_save_CC
2548
2549 fi
2550
2551 case "x$ac_cv_prog_cc_stdc" in
2552   x|xno)
2553     echo "$as_me:$LINENO: result: none needed" >&5
2554 echo "${ECHO_T}none needed" >&6 ;;
2555   *)
2556     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2557 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2558     CC="$CC $ac_cv_prog_cc_stdc" ;;
2559 esac
2560
2561 # Some people use a C++ compiler to compile C.  Since we use `exit',
2562 # in C++ we need to declare it.  In case someone uses the same compiler
2563 # for both compiling C and C++ we need to have the C++ compiler decide
2564 # the declaration of exit, since it's the most demanding environment.
2565 cat >conftest.$ac_ext <<_ACEOF
2566 #ifndef __cplusplus
2567   choke me
2568 #endif
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572   (eval $ac_compile) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); } &&
2576          { ac_try='test -s conftest.$ac_objext'
2577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578   (eval $ac_try) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; }; then
2582   for ac_declaration in \
2583    ''\
2584    '#include <stdlib.h>' \
2585    'extern "C" void std::exit (int) throw (); using std::exit;' \
2586    'extern "C" void std::exit (int); using std::exit;' \
2587    'extern "C" void exit (int) throw ();' \
2588    'extern "C" void exit (int);' \
2589    'void exit (int);'
2590 do
2591   cat >conftest.$ac_ext <<_ACEOF
2592 #line $LINENO "configure"
2593 /* confdefs.h.  */
2594 _ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h.  */
2598 #include <stdlib.h>
2599 $ac_declaration
2600 int
2601 main ()
2602 {
2603 exit (42);
2604   ;
2605   return 0;
2606 }
2607 _ACEOF
2608 rm -f conftest.$ac_objext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610   (eval $ac_compile) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   :
2621 else
2622   echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2624
2625 continue
2626 fi
2627 rm -f conftest.$ac_objext conftest.$ac_ext
2628   cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635 $ac_declaration
2636 int
2637 main ()
2638 {
2639 exit (42);
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -s conftest.$ac_objext'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; }; then
2656   break
2657 else
2658   echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661 fi
2662 rm -f conftest.$ac_objext conftest.$ac_ext
2663 done
2664 rm -f conftest*
2665 if test -n "$ac_declaration"; then
2666   echo '#ifdef __cplusplus' >>confdefs.h
2667   echo $ac_declaration      >>confdefs.h
2668   echo '#endif'             >>confdefs.h
2669 fi
2670
2671 else
2672   echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675 fi
2676 rm -f conftest.$ac_objext conftest.$ac_ext
2677 ac_ext=c
2678 ac_cpp='$CPP $CPPFLAGS'
2679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
2683 ac_ext=c
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2689 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2690 # On Suns, sometimes $CPP names a directory.
2691 if test -n "$CPP" && test -d "$CPP"; then
2692   CPP=
2693 fi
2694 if test -z "$CPP"; then
2695   if test "${ac_cv_prog_CPP+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698       # Double quotes because CPP needs to be expanded
2699     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2700     do
2701       ac_preproc_ok=false
2702 for ac_c_preproc_warn_flag in '' yes
2703 do
2704   # Use a header file that comes with gcc, so configuring glibc
2705   # with a fresh cross-compiler works.
2706   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2707   # <limits.h> exists even on freestanding compilers.
2708   # On the NeXT, cc -E runs the code through the compiler's parser,
2709   # not just through cpp. "Syntax error" is here to catch this case.
2710   cat >conftest.$ac_ext <<_ACEOF
2711 #line $LINENO "configure"
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717 #ifdef __STDC__
2718 # include <limits.h>
2719 #else
2720 # include <assert.h>
2721 #endif
2722                      Syntax error
2723 _ACEOF
2724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2726   ac_status=$?
2727   grep -v '^ *+' conftest.er1 >conftest.err
2728   rm -f conftest.er1
2729   cat conftest.err >&5
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); } >/dev/null; then
2732   if test -s conftest.err; then
2733     ac_cpp_err=$ac_c_preproc_warn_flag
2734   else
2735     ac_cpp_err=
2736   fi
2737 else
2738   ac_cpp_err=yes
2739 fi
2740 if test -z "$ac_cpp_err"; then
2741   :
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746   # Broken: fails on valid input.
2747 continue
2748 fi
2749 rm -f conftest.err conftest.$ac_ext
2750
2751   # OK, works on sane cases.  Now check whether non-existent headers
2752   # can be detected and how.
2753   cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760 #include <ac_nonexistent.h>
2761 _ACEOF
2762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2764   ac_status=$?
2765   grep -v '^ *+' conftest.er1 >conftest.err
2766   rm -f conftest.er1
2767   cat conftest.err >&5
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); } >/dev/null; then
2770   if test -s conftest.err; then
2771     ac_cpp_err=$ac_c_preproc_warn_flag
2772   else
2773     ac_cpp_err=
2774   fi
2775 else
2776   ac_cpp_err=yes
2777 fi
2778 if test -z "$ac_cpp_err"; then
2779   # Broken: success on invalid input.
2780 continue
2781 else
2782   echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785   # Passes both tests.
2786 ac_preproc_ok=:
2787 break
2788 fi
2789 rm -f conftest.err conftest.$ac_ext
2790
2791 done
2792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2793 rm -f conftest.err conftest.$ac_ext
2794 if $ac_preproc_ok; then
2795   break
2796 fi
2797
2798     done
2799     ac_cv_prog_CPP=$CPP
2800
2801 fi
2802   CPP=$ac_cv_prog_CPP
2803 else
2804   ac_cv_prog_CPP=$CPP
2805 fi
2806 echo "$as_me:$LINENO: result: $CPP" >&5
2807 echo "${ECHO_T}$CPP" >&6
2808 ac_preproc_ok=false
2809 for ac_c_preproc_warn_flag in '' yes
2810 do
2811   # Use a header file that comes with gcc, so configuring glibc
2812   # with a fresh cross-compiler works.
2813   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814   # <limits.h> exists even on freestanding compilers.
2815   # On the NeXT, cc -E runs the code through the compiler's parser,
2816   # not just through cpp. "Syntax error" is here to catch this case.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #ifdef __STDC__
2825 # include <limits.h>
2826 #else
2827 # include <assert.h>
2828 #endif
2829                      Syntax error
2830 _ACEOF
2831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833   ac_status=$?
2834   grep -v '^ *+' conftest.er1 >conftest.err
2835   rm -f conftest.er1
2836   cat conftest.err >&5
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); } >/dev/null; then
2839   if test -s conftest.err; then
2840     ac_cpp_err=$ac_c_preproc_warn_flag
2841   else
2842     ac_cpp_err=
2843   fi
2844 else
2845   ac_cpp_err=yes
2846 fi
2847 if test -z "$ac_cpp_err"; then
2848   :
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853   # Broken: fails on valid input.
2854 continue
2855 fi
2856 rm -f conftest.err conftest.$ac_ext
2857
2858   # OK, works on sane cases.  Now check whether non-existent headers
2859   # can be detected and how.
2860   cat >conftest.$ac_ext <<_ACEOF
2861 #line $LINENO "configure"
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 #include <ac_nonexistent.h>
2868 _ACEOF
2869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2871   ac_status=$?
2872   grep -v '^ *+' conftest.er1 >conftest.err
2873   rm -f conftest.er1
2874   cat conftest.err >&5
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); } >/dev/null; then
2877   if test -s conftest.err; then
2878     ac_cpp_err=$ac_c_preproc_warn_flag
2879   else
2880     ac_cpp_err=
2881   fi
2882 else
2883   ac_cpp_err=yes
2884 fi
2885 if test -z "$ac_cpp_err"; then
2886   # Broken: success on invalid input.
2887 continue
2888 else
2889   echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892   # Passes both tests.
2893 ac_preproc_ok=:
2894 break
2895 fi
2896 rm -f conftest.err conftest.$ac_ext
2897
2898 done
2899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2900 rm -f conftest.err conftest.$ac_ext
2901 if $ac_preproc_ok; then
2902   :
2903 else
2904   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2907 See \`config.log' for more details." >&2;}
2908    { (exit 1); exit 1; }; }
2909 fi
2910
2911 ac_ext=c
2912 ac_cpp='$CPP $CPPFLAGS'
2913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916
2917
2918 if test "$GCC" != "yes"
2919 then
2920         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2921 echo "$as_me: error: gcc required but not found" >&2;}
2922    { (exit 1); exit 1; }; }
2923 fi
2924
2925 if test "$GXX" != "yes"
2926 then
2927         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2928 echo "$as_me: error: g++ required but not found" >&2;}
2929    { (exit 1); exit 1; }; }
2930 fi
2931
2932  echo "$as_me:$LINENO: checking for GNU make" >&5
2933 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2934 if test "${_cv_gnu_make_command+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   _cv_gnu_make_command='' ;
2938                 for a in "$MAKE" make gmake gnumake ; do
2939                         if test -z "$a" ; then continue ; fi ;
2940                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
2941                                 _cv_gnu_make_command=$a ;
2942                                 break;
2943                         fi
2944                 done ;
2945
2946 fi
2947 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2948 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2949         if test  "x$_cv_gnu_make_command" != "x"  ; then
2950                 ifGNUmake='' ;
2951         else
2952                 ifGNUmake='#' ;
2953                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2954 echo "${ECHO_T}\"Not found\"" >&6;
2955         fi
2956
2957
2958 if test -z "$_cv_gnu_make_command"
2959 then
2960         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2961 echo "$as_me: error: GNU Make required but not found" >&2;}
2962    { (exit 1); exit 1; }; }
2963 fi
2964
2965
2966 echo "$as_me:$LINENO: checking " >&5
2967 echo $ECHO_N "checking ... $ECHO_C" >&6
2968 if test "${ac_cv_has_flex+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   for ac_prog in flex lex
2972 do
2973   # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 echo "$as_me:$LINENO: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977 if test "${ac_cv_prog_LEX+set}" = set; then
2978   echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980   if test -n "$LEX"; then
2981   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988   for ac_exec_ext in '' $ac_executable_extensions; do
2989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     ac_cv_prog_LEX="$ac_prog"
2991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995 done
2996
2997 fi
2998 fi
2999 LEX=$ac_cv_prog_LEX
3000 if test -n "$LEX"; then
3001   echo "$as_me:$LINENO: result: $LEX" >&5
3002 echo "${ECHO_T}$LEX" >&6
3003 else
3004   echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6
3006 fi
3007
3008   test -n "$LEX" && break
3009 done
3010 test -n "$LEX" || LEX=":"
3011
3012 if test -z "$LEXLIB"
3013 then
3014   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3015 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3016 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019   ac_check_lib_save_LIBS=$LIBS
3020 LIBS="-lfl  $LIBS"
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 /* Override any gcc2 internal prototype to avoid an error.  */
3030 #ifdef __cplusplus
3031 extern "C"
3032 #endif
3033 /* We use char because int might match the return type of a gcc2
3034    builtin and then its argument prototype would still apply.  */
3035 char yywrap ();
3036 int
3037 main ()
3038 {
3039 yywrap ();
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext conftest$ac_exeext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046   (eval $ac_link) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); } &&
3050          { ac_try='test -s conftest$ac_exeext'
3051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; }; then
3056   ac_cv_lib_fl_yywrap=yes
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 ac_cv_lib_fl_yywrap=no
3062 fi
3063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3064 LIBS=$ac_check_lib_save_LIBS
3065 fi
3066 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3067 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3068 if test $ac_cv_lib_fl_yywrap = yes; then
3069   LEXLIB="-lfl"
3070 else
3071   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3072 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3073 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   ac_check_lib_save_LIBS=$LIBS
3077 LIBS="-ll  $LIBS"
3078 cat >conftest.$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 /* Override any gcc2 internal prototype to avoid an error.  */
3087 #ifdef __cplusplus
3088 extern "C"
3089 #endif
3090 /* We use char because int might match the return type of a gcc2
3091    builtin and then its argument prototype would still apply.  */
3092 char yywrap ();
3093 int
3094 main ()
3095 {
3096 yywrap ();
3097   ;
3098   return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext conftest$ac_exeext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3103   (eval $ac_link) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } &&
3107          { ac_try='test -s conftest$ac_exeext'
3108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109   (eval $ac_try) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   ac_cv_lib_l_yywrap=yes
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 ac_cv_lib_l_yywrap=no
3119 fi
3120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3121 LIBS=$ac_check_lib_save_LIBS
3122 fi
3123 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3124 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3125 if test $ac_cv_lib_l_yywrap = yes; then
3126   LEXLIB="-ll"
3127 fi
3128
3129 fi
3130
3131 fi
3132
3133 if test "x$LEX" != "x:"; then
3134   echo "$as_me:$LINENO: checking lex output file root" >&5
3135 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3136 if test "${ac_cv_prog_lex_root+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   # The minimal lex program is just a single line: %%.  But some broken lexes
3140 # (Solaris, I think it was) want two %% lines, so accommodate them.
3141 cat >conftest.l <<_ACEOF
3142 %%
3143 %%
3144 _ACEOF
3145 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3146   (eval $LEX conftest.l) 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }
3150 if test -f lex.yy.c; then
3151   ac_cv_prog_lex_root=lex.yy
3152 elif test -f lexyy.c; then
3153   ac_cv_prog_lex_root=lexyy
3154 else
3155   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3156 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3157    { (exit 1); exit 1; }; }
3158 fi
3159 fi
3160 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3161 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3162 rm -f conftest.l
3163 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3164
3165 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3166 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3167 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3168   echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170   # POSIX says lex can declare yytext either as a pointer or an array; the
3171 # default is implementation-dependent. Figure out which it is, since
3172 # not all implementations provide the %pointer and %array declarations.
3173 ac_cv_prog_lex_yytext_pointer=no
3174 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3175 ac_save_LIBS=$LIBS
3176 LIBS="$LIBS $LEXLIB"
3177 cat >conftest.$ac_ext <<_ACEOF
3178 `cat $LEX_OUTPUT_ROOT.c`
3179 _ACEOF
3180 rm -f conftest.$ac_objext conftest$ac_exeext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3182   (eval $ac_link) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -s conftest$ac_exeext'
3187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188   (eval $ac_try) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; }; then
3192   ac_cv_prog_lex_yytext_pointer=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 fi
3198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3199 LIBS=$ac_save_LIBS
3200 rm -f "${LEX_OUTPUT_ROOT}.c"
3201
3202 fi
3203 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3204 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3205 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3206
3207 cat >>confdefs.h <<\_ACEOF
3208 #define YYTEXT_POINTER 1
3209 _ACEOF
3210
3211 fi
3212
3213 fi
3214
3215 fi
3216 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3217 echo "${ECHO_T}$ac_cv_has_flex" >&6
3218 if test "$LEX" != "flex"; then
3219   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3220 echo "$as_me: error: flex not found but required" >&2;}
3221    { (exit 1); exit 1; }; }
3222 fi
3223
3224 echo "$as_me:$LINENO: checking " >&5
3225 echo $ECHO_N "checking ... $ECHO_C" >&6
3226 if test "${ac_cv_has_bison+set}" = set; then
3227   echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229   for ac_prog in 'bison -y' byacc
3230 do
3231   # Extract the first word of "$ac_prog", so it can be a program name with args.
3232 set dummy $ac_prog; ac_word=$2
3233 echo "$as_me:$LINENO: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235 if test "${ac_cv_prog_YACC+set}" = set; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238   if test -n "$YACC"; then
3239   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246   for ac_exec_ext in '' $ac_executable_extensions; do
3247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248     ac_cv_prog_YACC="$ac_prog"
3249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253 done
3254
3255 fi
3256 fi
3257 YACC=$ac_cv_prog_YACC
3258 if test -n "$YACC"; then
3259   echo "$as_me:$LINENO: result: $YACC" >&5
3260 echo "${ECHO_T}$YACC" >&6
3261 else
3262   echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6
3264 fi
3265
3266   test -n "$YACC" && break
3267 done
3268 test -n "$YACC" || YACC="yacc"
3269
3270
3271 fi
3272 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3273 echo "${ECHO_T}$ac_cv_has_bison" >&6
3274 if test "$YACC" != "bison -y"; then
3275   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3276 echo "$as_me: error: bison not found but required" >&2;}
3277    { (exit 1); exit 1; }; }
3278 else
3279   YACC=bison
3280
3281 fi
3282
3283
3284 # Check whether --enable-shared or --disable-shared was given.
3285 if test "${enable_shared+set}" = set; then
3286   enableval="$enable_shared"
3287   p=${PACKAGE-default}
3288     case $enableval in
3289     yes) enable_shared=yes ;;
3290     no) enable_shared=no ;;
3291     *)
3292       enable_shared=no
3293       # Look at the argument we got.  We use all the common list separators.
3294       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3295       for pkg in $enableval; do
3296         IFS="$lt_save_ifs"
3297         if test "X$pkg" = "X$p"; then
3298           enable_shared=yes
3299         fi
3300       done
3301       IFS="$lt_save_ifs"
3302       ;;
3303     esac
3304 else
3305   enable_shared=yes
3306 fi;
3307
3308 # Check whether --enable-static or --disable-static was given.
3309 if test "${enable_static+set}" = set; then
3310   enableval="$enable_static"
3311   p=${PACKAGE-default}
3312     case $enableval in
3313     yes) enable_static=yes ;;
3314     no) enable_static=no ;;
3315     *)
3316      enable_static=no
3317       # Look at the argument we got.  We use all the common list separators.
3318       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3319       for pkg in $enableval; do
3320         IFS="$lt_save_ifs"
3321         if test "X$pkg" = "X$p"; then
3322           enable_static=yes
3323         fi
3324       done
3325       IFS="$lt_save_ifs"
3326       ;;
3327     esac
3328 else
3329   enable_static=yes
3330 fi;
3331
3332 # Check whether --enable-fast-install or --disable-fast-install was given.
3333 if test "${enable_fast_install+set}" = set; then
3334   enableval="$enable_fast_install"
3335   p=${PACKAGE-default}
3336     case $enableval in
3337     yes) enable_fast_install=yes ;;
3338     no) enable_fast_install=no ;;
3339     *)
3340       enable_fast_install=no
3341       # Look at the argument we got.  We use all the common list separators.
3342       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3343       for pkg in $enableval; do
3344         IFS="$lt_save_ifs"
3345         if test "X$pkg" = "X$p"; then
3346           enable_fast_install=yes
3347         fi
3348       done
3349       IFS="$lt_save_ifs"
3350       ;;
3351     esac
3352 else
3353   enable_fast_install=yes
3354 fi;
3355
3356 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3357 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3358 if test "${lt_cv_path_SED+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   # Loop through the user's path and test for sed and gsed.
3362 # Then use that list of sed's as ones to test for truncation.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368   for lt_ac_prog in sed gsed; do
3369     for ac_exec_ext in '' $ac_executable_extensions; do
3370       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3371         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3372       fi
3373     done
3374   done
3375 done
3376 lt_ac_max=0
3377 lt_ac_count=0
3378 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3379 # along with /bin/sed that truncates output.
3380 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3381   test ! -f $lt_ac_sed && break
3382   cat /dev/null > conftest.in
3383   lt_ac_count=0
3384   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3385   # Check for GNU sed and select it if it is found.
3386   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3387     lt_cv_path_SED=$lt_ac_sed
3388     break
3389   fi
3390   while true; do
3391     cat conftest.in conftest.in >conftest.tmp
3392     mv conftest.tmp conftest.in
3393     cp conftest.in conftest.nl
3394     echo >>conftest.nl
3395     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3396     cmp -s conftest.out conftest.nl || break
3397     # 10000 chars as input seems more than enough
3398     test $lt_ac_count -gt 10 && break
3399     lt_ac_count=`expr $lt_ac_count + 1`
3400     if test $lt_ac_count -gt $lt_ac_max; then
3401       lt_ac_max=$lt_ac_count
3402       lt_cv_path_SED=$lt_ac_sed
3403     fi
3404   done
3405 done
3406 SED=$lt_cv_path_SED
3407
3408 fi
3409
3410 echo "$as_me:$LINENO: result: $SED" >&5
3411 echo "${ECHO_T}$SED" >&6
3412
3413 echo "$as_me:$LINENO: checking for egrep" >&5
3414 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3415 if test "${ac_cv_prog_egrep+set}" = set; then
3416   echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3419     then ac_cv_prog_egrep='grep -E'
3420     else ac_cv_prog_egrep='egrep'
3421     fi
3422 fi
3423 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3424 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3425  EGREP=$ac_cv_prog_egrep
3426
3427
3428
3429 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3430 if test "${with_gnu_ld+set}" = set; then
3431   withval="$with_gnu_ld"
3432   test "$withval" = no || with_gnu_ld=yes
3433 else
3434   with_gnu_ld=no
3435 fi;
3436 ac_prog=ld
3437 if test "$GCC" = yes; then
3438   # Check if gcc -print-prog-name=ld gives a path.
3439   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3440 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3441   case $host in
3442   *-*-mingw*)
3443     # gcc leaves a trailing carriage return which upsets mingw
3444     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3445   *)
3446     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3447   esac
3448   case $ac_prog in
3449     # Accept absolute paths.
3450     [\\/]* | ?:[\\/]*)
3451       re_direlt='/[^/][^/]*/\.\./'
3452       # Canonicalize the path of ld
3453       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3454       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3455         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3456       done
3457       test -z "$LD" && LD="$ac_prog"
3458       ;;
3459   "")
3460     # If it fails, then pretend we aren't using GCC.
3461     ac_prog=ld
3462     ;;
3463   *)
3464     # If it is relative, then search for the first ld in PATH.
3465     with_gnu_ld=unknown
3466     ;;
3467   esac
3468 elif test "$with_gnu_ld" = yes; then
3469   echo "$as_me:$LINENO: checking for GNU ld" >&5
3470 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3471 else
3472   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3473 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3474 fi
3475 if test "${lt_cv_path_LD+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   if test -z "$LD"; then
3479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3480   for ac_dir in $PATH; do
3481     IFS="$lt_save_ifs"
3482     test -z "$ac_dir" && ac_dir=.
3483     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3484       lt_cv_path_LD="$ac_dir/$ac_prog"
3485       # Check to see if the program is GNU ld.  I'd rather use --version,
3486       # but apparently some GNU ld's only accept -v.
3487       # Break only if it was the GNU/non-GNU ld that we prefer.
3488       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3489       *GNU* | *'with BFD'*)
3490         test "$with_gnu_ld" != no && break
3491         ;;
3492       *)
3493         test "$with_gnu_ld" != yes && break
3494         ;;
3495       esac
3496     fi
3497   done
3498   IFS="$lt_save_ifs"
3499 else
3500   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3501 fi
3502 fi
3503
3504 LD="$lt_cv_path_LD"
3505 if test -n "$LD"; then
3506   echo "$as_me:$LINENO: result: $LD" >&5
3507 echo "${ECHO_T}$LD" >&6
3508 else
3509   echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6
3511 fi
3512 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3513 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3514    { (exit 1); exit 1; }; }
3515 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3516 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3517 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3521 case `"$LD" -v 2>&1 </dev/null` in
3522 *GNU* | *'with BFD'*)
3523   lt_cv_prog_gnu_ld=yes
3524   ;;
3525 *)
3526   lt_cv_prog_gnu_ld=no
3527   ;;
3528 esac
3529 fi
3530 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3531 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3532 with_gnu_ld=$lt_cv_prog_gnu_ld
3533
3534
3535 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3536 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3537 if test "${lt_cv_ld_reload_flag+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   lt_cv_ld_reload_flag='-r'
3541 fi
3542 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3543 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3544 reload_flag=$lt_cv_ld_reload_flag
3545 case $reload_flag in
3546 "" | " "*) ;;
3547 *) reload_flag=" $reload_flag" ;;
3548 esac
3549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3550
3551 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3552 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3553 if test "${lt_cv_path_NM+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   if test -n "$NM"; then
3557   # Let the user override the test.
3558   lt_cv_path_NM="$NM"
3559 else
3560   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3561   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3562     IFS="$lt_save_ifs"
3563     test -z "$ac_dir" && ac_dir=.
3564     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3565     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3566       # Check to see if the nm accepts a BSD-compat flag.
3567       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3568       #   nm: unknown option "B" ignored
3569       # Tru64's nm complains that /dev/null is an invalid object file
3570       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3571       */dev/null* | *'Invalid file or object type'*)
3572         lt_cv_path_NM="$tmp_nm -B"
3573         break
3574         ;;
3575       *)
3576         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3577         */dev/null*)
3578           lt_cv_path_NM="$tmp_nm -p"
3579           break
3580           ;;
3581         *)
3582           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3583           continue # so that we can try to find one that supports BSD flags
3584           ;;
3585         esac
3586       esac
3587     fi
3588   done
3589   IFS="$lt_save_ifs"
3590   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3591 fi
3592 fi
3593 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3594 echo "${ECHO_T}$lt_cv_path_NM" >&6
3595 NM="$lt_cv_path_NM"
3596
3597 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3598 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3599 LN_S=$as_ln_s
3600 if test "$LN_S" = "ln -s"; then
3601   echo "$as_me:$LINENO: result: yes" >&5
3602 echo "${ECHO_T}yes" >&6
3603 else
3604   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3605 echo "${ECHO_T}no, using $LN_S" >&6
3606 fi
3607
3608 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3609 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3610 if test "${lt_cv_deplibs_check_method+set}" = set; then
3611   echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613   lt_cv_file_magic_cmd='$MAGIC_CMD'
3614 lt_cv_file_magic_test_file=
3615 lt_cv_deplibs_check_method='unknown'
3616 # Need to set the preceding variable on all platforms that support
3617 # interlibrary dependencies.
3618 # 'none' -- dependencies not supported.
3619 # `unknown' -- same as none, but documents that we really don't know.
3620 # 'pass_all' -- all dependencies passed with no checks.
3621 # 'test_compile' -- check by making test program.
3622 # 'file_magic [[regex]]' -- check by looking for files in library path
3623 # which responds to the $file_magic_cmd with a given extended regex.
3624 # If you have `file' or equivalent on your system and you're not sure
3625 # whether `pass_all' will *always* work, you probably want this one.
3626
3627 case $host_os in
3628 aix4* | aix5*)
3629   lt_cv_deplibs_check_method=pass_all
3630   ;;
3631
3632 beos*)
3633   lt_cv_deplibs_check_method=pass_all
3634   ;;
3635
3636 bsdi4*)
3637   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3638   lt_cv_file_magic_cmd='/usr/bin/file -L'
3639   lt_cv_file_magic_test_file=/shlib/libc.so
3640   ;;
3641
3642 cygwin* | mingw* | pw32*)
3643   # win32_libid is a shell function defined in ltmain.sh
3644   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3645   lt_cv_file_magic_cmd='win32_libid'
3646   ;;
3647
3648 darwin* | rhapsody*)
3649   # this will be overwritten by pass_all, but leave it in just in case
3650   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3651   lt_cv_file_magic_cmd='/usr/bin/file -L'
3652   case "$host_os" in
3653   rhapsody* | darwin1.[012])
3654     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3655     ;;
3656   *) # Darwin 1.3 on
3657     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3658     ;;
3659   esac
3660   lt_cv_deplibs_check_method=pass_all
3661   ;;
3662
3663 freebsd*)
3664   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3665     case $host_cpu in
3666     i*86 )
3667       # Not sure whether the presence of OpenBSD here was a mistake.
3668       # Let's accept both of them until this is cleared up.
3669       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3670       lt_cv_file_magic_cmd=/usr/bin/file
3671       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3672       ;;
3673     esac
3674   else
3675     lt_cv_deplibs_check_method=pass_all
3676   fi
3677   ;;
3678
3679 gnu*)
3680   lt_cv_deplibs_check_method=pass_all
3681   ;;
3682
3683 hpux10.20* | hpux11*)
3684   lt_cv_file_magic_cmd=/usr/bin/file
3685   case "$host_cpu" in
3686   ia64*)
3687     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3688     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3689     ;;
3690   hppa*64*)
3691     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]'
3692     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3693     ;;
3694   *)
3695     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3696     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3697     ;;
3698   esac
3699   ;;
3700
3701 irix5* | irix6* | nonstopux*)
3702   case $host_os in
3703   irix5* | nonstopux*)
3704     # this will be overridden with pass_all, but let us keep it just in case
3705     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3706     ;;
3707   *)
3708     case $LD in
3709     *-32|*"-32 ") libmagic=32-bit;;
3710     *-n32|*"-n32 ") libmagic=N32;;
3711     *-64|*"-64 ") libmagic=64-bit;;
3712     *) libmagic=never-match;;
3713     esac
3714     # this will be overridden with pass_all, but let us keep it just in case
3715     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3716     ;;
3717   esac
3718   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3719   lt_cv_deplibs_check_method=pass_all
3720   ;;
3721
3722 # This must be Linux ELF.
3723 linux*)
3724   case $host_cpu in
3725   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3726     lt_cv_deplibs_check_method=pass_all ;;
3727   *)
3728     # glibc up to 2.1.1 does not perform some relocations on ARM
3729     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3730   esac
3731   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3732   ;;
3733
3734 netbsd*)
3735   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3736     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3737   else
3738     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3739   fi
3740   ;;
3741
3742 newos6*)
3743   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3744   lt_cv_file_magic_cmd=/usr/bin/file
3745   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3746   ;;
3747
3748 nto-qnx)
3749   lt_cv_deplibs_check_method=unknown
3750   ;;
3751
3752 openbsd*)
3753   lt_cv_file_magic_cmd=/usr/bin/file
3754   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3755   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3756     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3757   else
3758     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3759   fi
3760   ;;
3761
3762 osf3* | osf4* | osf5*)
3763   # this will be overridden with pass_all, but let us keep it just in case
3764   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3765   lt_cv_file_magic_test_file=/shlib/libc.so
3766   lt_cv_deplibs_check_method=pass_all
3767   ;;
3768
3769 sco3.2v5*)
3770   lt_cv_deplibs_check_method=pass_all
3771   ;;
3772
3773 solaris*)
3774   lt_cv_deplibs_check_method=pass_all
3775   lt_cv_file_magic_test_file=/lib/libc.so
3776   ;;
3777
3778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3779   case $host_vendor in
3780   motorola)
3781     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]'
3782     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3783     ;;
3784   ncr)
3785     lt_cv_deplibs_check_method=pass_all
3786     ;;
3787   sequent)
3788     lt_cv_file_magic_cmd='/bin/file'
3789     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3790     ;;
3791   sni)
3792     lt_cv_file_magic_cmd='/bin/file'
3793     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3794     lt_cv_file_magic_test_file=/lib/libc.so
3795     ;;
3796   siemens)
3797     lt_cv_deplibs_check_method=pass_all
3798     ;;
3799   esac
3800   ;;
3801
3802 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3803   lt_cv_deplibs_check_method=pass_all
3804   ;;
3805 esac
3806
3807 fi
3808 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3809 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3810 file_magic_cmd=$lt_cv_file_magic_cmd
3811 deplibs_check_method=$lt_cv_deplibs_check_method
3812 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3813
3814
3815
3816
3817 # If no C compiler was specified, use CC.
3818 LTCC=${LTCC-"$CC"}
3819
3820 # Allow CC to be a program name with arguments.
3821 compiler=$CC
3822
3823 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3824 if test "${enable_libtool_lock+set}" = set; then
3825   enableval="$enable_libtool_lock"
3826
3827 fi;
3828 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3829
3830 # Some flags need to be propagated to the compiler or linker for good
3831 # libtool support.
3832 case $host in
3833 ia64-*-hpux*)
3834   # Find out which ABI we are using.
3835   echo 'int i;' > conftest.$ac_ext
3836   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837   (eval $ac_compile) 2>&5
3838   ac_status=$?
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); }; then
3841     case `/usr/bin/file conftest.$ac_objext` in
3842     *ELF-32*)
3843       HPUX_IA64_MODE="32"
3844       ;;
3845     *ELF-64*)
3846       HPUX_IA64_MODE="64"
3847       ;;
3848     esac
3849   fi
3850   rm -rf conftest*
3851   ;;
3852 *-*-irix6*)
3853   # Find out which ABI we are using.
3854   echo '#line 3854 "configure"' > conftest.$ac_ext
3855   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856   (eval $ac_compile) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; then
3860    if test "$lt_cv_prog_gnu_ld" = yes; then
3861     case `/usr/bin/file conftest.$ac_objext` in
3862     *32-bit*)
3863       LD="${LD-ld} -melf32bsmip"
3864       ;;
3865     *N32*)
3866       LD="${LD-ld} -melf32bmipn32"
3867       ;;
3868     *64-bit*)
3869       LD="${LD-ld} -melf64bmip"
3870       ;;
3871     esac
3872    else
3873     case `/usr/bin/file conftest.$ac_objext` in
3874     *32-bit*)
3875       LD="${LD-ld} -32"
3876       ;;
3877     *N32*)
3878       LD="${LD-ld} -n32"
3879       ;;
3880     *64-bit*)
3881       LD="${LD-ld} -64"
3882       ;;
3883     esac
3884    fi
3885   fi
3886   rm -rf conftest*
3887   ;;
3888
3889 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3890   # Find out which ABI we are using.
3891   echo 'int i;' > conftest.$ac_ext
3892   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893   (eval $ac_compile) 2>&5
3894   ac_status=$?
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); }; then
3897     case "`/usr/bin/file conftest.o`" in
3898     *32-bit*)
3899       case $host in
3900         x86_64-*linux*)
3901           LD="${LD-ld} -m elf_i386"
3902           ;;
3903         ppc64-*linux*)
3904           LD="${LD-ld} -m elf32ppclinux"
3905           ;;
3906         s390x-*linux*)
3907           LD="${LD-ld} -m elf_s390"
3908           ;;
3909         sparc64-*linux*)
3910           LD="${LD-ld} -m elf32_sparc"
3911           ;;
3912       esac
3913       ;;
3914     *64-bit*)
3915       case $host in
3916         x86_64-*linux*)
3917           LD="${LD-ld} -m elf_x86_64"
3918           ;;
3919         ppc*-*linux*|powerpc*-*linux*)
3920           LD="${LD-ld} -m elf64ppc"
3921           ;;
3922         s390*-*linux*)
3923           LD="${LD-ld} -m elf64_s390"
3924           ;;
3925         sparc*-*linux*)
3926           LD="${LD-ld} -m elf64_sparc"
3927           ;;
3928       esac
3929       ;;
3930     esac
3931   fi
3932   rm -rf conftest*
3933   ;;
3934
3935 *-*-sco3.2v5*)
3936   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3937   SAVE_CFLAGS="$CFLAGS"
3938   CFLAGS="$CFLAGS -belf"
3939   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3940 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3941 if test "${lt_cv_cc_needs_belf+set}" = set; then
3942   echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944   ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949
3950      cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3952 /* confdefs.h.  */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h.  */
3957
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.$ac_objext conftest$ac_exeext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968   (eval $ac_link) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } &&
3972          { ac_try='test -s conftest$ac_exeext'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; }; then
3978   lt_cv_cc_needs_belf=yes
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 lt_cv_cc_needs_belf=no
3984 fi
3985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3986      ac_ext=c
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991
3992 fi
3993 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3994 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3995   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3996     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3997     CFLAGS="$SAVE_CFLAGS"
3998   fi
3999   ;;
4000
4001 esac
4002
4003 need_locks="$enable_libtool_lock"
4004
4005
4006
4007 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4008 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4009 if test "${ac_cv_header_stdc+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   cat >conftest.$ac_ext <<_ACEOF
4013 #line $LINENO "configure"
4014 /* confdefs.h.  */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h.  */
4019 #include <stdlib.h>
4020 #include <stdarg.h>
4021 #include <string.h>
4022 #include <float.h>
4023
4024 int
4025 main ()
4026 {
4027
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034   (eval $ac_compile) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } &&
4038          { ac_try='test -s conftest.$ac_objext'
4039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040   (eval $ac_try) 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; }; then
4044   ac_cv_header_stdc=yes
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 ac_cv_header_stdc=no
4050 fi
4051 rm -f conftest.$ac_objext conftest.$ac_ext
4052
4053 if test $ac_cv_header_stdc = yes; then
4054   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4055   cat >conftest.$ac_ext <<_ACEOF
4056 #line $LINENO "configure"
4057 /* confdefs.h.  */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h.  */
4062 #include <string.h>
4063
4064 _ACEOF
4065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066   $EGREP "memchr" >/dev/null 2>&1; then
4067   :
4068 else
4069   ac_cv_header_stdc=no
4070 fi
4071 rm -f conftest*
4072
4073 fi
4074
4075 if test $ac_cv_header_stdc = yes; then
4076   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4077   cat >conftest.$ac_ext <<_ACEOF
4078 #line $LINENO "configure"
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084 #include <stdlib.h>
4085
4086 _ACEOF
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088   $EGREP "free" >/dev/null 2>&1; then
4089   :
4090 else
4091   ac_cv_header_stdc=no
4092 fi
4093 rm -f conftest*
4094
4095 fi
4096
4097 if test $ac_cv_header_stdc = yes; then
4098   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4099   if test "$cross_compiling" = yes; then
4100   :
4101 else
4102   cat >conftest.$ac_ext <<_ACEOF
4103 #line $LINENO "configure"
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109 #include <ctype.h>
4110 #if ((' ' & 0x0FF) == 0x020)
4111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4113 #else
4114 # define ISLOWER(c) \
4115                    (('a' <= (c) && (c) <= 'i') \
4116                      || ('j' <= (c) && (c) <= 'r') \
4117                      || ('s' <= (c) && (c) <= 'z'))
4118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4119 #endif
4120
4121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4122 int
4123 main ()
4124 {
4125   int i;
4126   for (i = 0; i < 256; i++)
4127     if (XOR (islower (i), ISLOWER (i))
4128         || toupper (i) != TOUPPER (i))
4129       exit(2);
4130   exit (0);
4131 }
4132 _ACEOF
4133 rm -f conftest$ac_exeext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4135   (eval $ac_link) 2>&5
4136   ac_status=$?
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140   (eval $ac_try) 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); }; }; then
4144   :
4145 else
4146   echo "$as_me: program exited with status $ac_status" >&5
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150 ( exit $ac_status )
4151 ac_cv_header_stdc=no
4152 fi
4153 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4154 fi
4155 fi
4156 fi
4157 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4158 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4159 if test $ac_cv_header_stdc = yes; then
4160
4161 cat >>confdefs.h <<\_ACEOF
4162 #define STDC_HEADERS 1
4163 _ACEOF
4164
4165 fi
4166
4167 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4178                   inttypes.h stdint.h unistd.h
4179 do
4180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4181 echo "$as_me:$LINENO: checking for $ac_header" >&5
4182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4184   echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186   cat >conftest.$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 $ac_includes_default
4194
4195 #include <$ac_header>
4196 _ACEOF
4197 rm -f conftest.$ac_objext
4198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4199   (eval $ac_compile) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); } &&
4203          { ac_try='test -s conftest.$ac_objext'
4204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; }; then
4209   eval "$as_ac_Header=yes"
4210 else
4211   echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 eval "$as_ac_Header=no"
4215 fi
4216 rm -f conftest.$ac_objext conftest.$ac_ext
4217 fi
4218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4221   cat >>confdefs.h <<_ACEOF
4222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4223 _ACEOF
4224
4225 fi
4226
4227 done
4228
4229
4230
4231 for ac_header in dlfcn.h
4232 do
4233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4235   echo "$as_me:$LINENO: checking for $ac_header" >&5
4236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 fi
4240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4242 else
4243   # Is the header compilable?
4244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 $ac_includes_default
4254 #include <$ac_header>
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258   (eval $ac_compile) 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -s conftest.$ac_objext'
4263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264   (eval $ac_try) 2>&5
4265   ac_status=$?
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); }; }; then
4268   ac_header_compiler=yes
4269 else
4270   echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 ac_header_compiler=no
4274 fi
4275 rm -f conftest.$ac_objext conftest.$ac_ext
4276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4277 echo "${ECHO_T}$ac_header_compiler" >&6
4278
4279 # Is the header present?
4280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4282 cat >conftest.$ac_ext <<_ACEOF
4283 #line $LINENO "configure"
4284 /* confdefs.h.  */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h.  */
4289 #include <$ac_header>
4290 _ACEOF
4291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } >/dev/null; then
4299   if test -s conftest.err; then
4300     ac_cpp_err=$ac_c_preproc_warn_flag
4301   else
4302     ac_cpp_err=
4303   fi
4304 else
4305   ac_cpp_err=yes
4306 fi
4307 if test -z "$ac_cpp_err"; then
4308   ac_header_preproc=yes
4309 else
4310   echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4312
4313   ac_header_preproc=no
4314 fi
4315 rm -f conftest.err conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4317 echo "${ECHO_T}$ac_header_preproc" >&6
4318
4319 # So?  What about this header?
4320 case $ac_header_compiler:$ac_header_preproc in
4321   yes:no )
4322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4326     (
4327       cat <<\_ASBOX
4328 ## ------------------------------------ ##
4329 ## Report this to bug-autoconf@gnu.org. ##
4330 ## ------------------------------------ ##
4331 _ASBOX
4332     ) |
4333       sed "s/^/$as_me: WARNING:     /" >&2
4334     ;;
4335   no:yes )
4336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4338     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4342     (
4343       cat <<\_ASBOX
4344 ## ------------------------------------ ##
4345 ## Report this to bug-autoconf@gnu.org. ##
4346 ## ------------------------------------ ##
4347 _ASBOX
4348     ) |
4349       sed "s/^/$as_me: WARNING:     /" >&2
4350     ;;
4351 esac
4352 echo "$as_me:$LINENO: checking for $ac_header" >&5
4353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   eval "$as_ac_Header=$ac_header_preproc"
4358 fi
4359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4361
4362 fi
4363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4364   cat >>confdefs.h <<_ACEOF
4365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 _ACEOF
4367
4368 fi
4369
4370 done
4371
4372 ac_ext=cc
4373 ac_cpp='$CXXCPP $CPPFLAGS'
4374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4377 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4378 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4379 if test -z "$CXXCPP"; then
4380   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383       # Double quotes because CXXCPP needs to be expanded
4384     for CXXCPP in "$CXX -E" "/lib/cpp"
4385     do
4386       ac_preproc_ok=false
4387 for ac_cxx_preproc_warn_flag in '' yes
4388 do
4389   # Use a header file that comes with gcc, so configuring glibc
4390   # with a fresh cross-compiler works.
4391   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392   # <limits.h> exists even on freestanding compilers.
4393   # On the NeXT, cc -E runs the code through the compiler's parser,
4394   # not just through cpp. "Syntax error" is here to catch this case.
4395   cat >conftest.$ac_ext <<_ACEOF
4396 #line $LINENO "configure"
4397 /* confdefs.h.  */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h.  */
4402 #ifdef __STDC__
4403 # include <limits.h>
4404 #else
4405 # include <assert.h>
4406 #endif
4407                      Syntax error
4408 _ACEOF
4409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4411   ac_status=$?
4412   grep -v '^ *+' conftest.er1 >conftest.err
4413   rm -f conftest.er1
4414   cat conftest.err >&5
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); } >/dev/null; then
4417   if test -s conftest.err; then
4418     ac_cpp_err=$ac_cxx_preproc_warn_flag
4419   else
4420     ac_cpp_err=
4421   fi
4422 else
4423   ac_cpp_err=yes
4424 fi
4425 if test -z "$ac_cpp_err"; then
4426   :
4427 else
4428   echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4430
4431   # Broken: fails on valid input.
4432 continue
4433 fi
4434 rm -f conftest.err conftest.$ac_ext
4435
4436   # OK, works on sane cases.  Now check whether non-existent headers
4437   # can be detected and how.
4438   cat >conftest.$ac_ext <<_ACEOF
4439 #line $LINENO "configure"
4440 /* confdefs.h.  */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h.  */
4445 #include <ac_nonexistent.h>
4446 _ACEOF
4447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4449   ac_status=$?
4450   grep -v '^ *+' conftest.er1 >conftest.err
4451   rm -f conftest.er1
4452   cat conftest.err >&5
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } >/dev/null; then
4455   if test -s conftest.err; then
4456     ac_cpp_err=$ac_cxx_preproc_warn_flag
4457   else
4458     ac_cpp_err=
4459   fi
4460 else
4461   ac_cpp_err=yes
4462 fi
4463 if test -z "$ac_cpp_err"; then
4464   # Broken: success on invalid input.
4465 continue
4466 else
4467   echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470   # Passes both tests.
4471 ac_preproc_ok=:
4472 break
4473 fi
4474 rm -f conftest.err conftest.$ac_ext
4475
4476 done
4477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478 rm -f conftest.err conftest.$ac_ext
4479 if $ac_preproc_ok; then
4480   break
4481 fi
4482
4483     done
4484     ac_cv_prog_CXXCPP=$CXXCPP
4485
4486 fi
4487   CXXCPP=$ac_cv_prog_CXXCPP
4488 else
4489   ac_cv_prog_CXXCPP=$CXXCPP
4490 fi
4491 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4492 echo "${ECHO_T}$CXXCPP" >&6
4493 ac_preproc_ok=false
4494 for ac_cxx_preproc_warn_flag in '' yes
4495 do
4496   # Use a header file that comes with gcc, so configuring glibc
4497   # with a fresh cross-compiler works.
4498   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4499   # <limits.h> exists even on freestanding compilers.
4500   # On the NeXT, cc -E runs the code through the compiler's parser,
4501   # not just through cpp. "Syntax error" is here to catch this case.
4502   cat >conftest.$ac_ext <<_ACEOF
4503 #line $LINENO "configure"
4504 /* confdefs.h.  */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h.  */
4509 #ifdef __STDC__
4510 # include <limits.h>
4511 #else
4512 # include <assert.h>
4513 #endif
4514                      Syntax error
4515 _ACEOF
4516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } >/dev/null; then
4524   if test -s conftest.err; then
4525     ac_cpp_err=$ac_cxx_preproc_warn_flag
4526   else
4527     ac_cpp_err=
4528   fi
4529 else
4530   ac_cpp_err=yes
4531 fi
4532 if test -z "$ac_cpp_err"; then
4533   :
4534 else
4535   echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538   # Broken: fails on valid input.
4539 continue
4540 fi
4541 rm -f conftest.err conftest.$ac_ext
4542
4543   # OK, works on sane cases.  Now check whether non-existent headers
4544   # can be detected and how.
4545   cat >conftest.$ac_ext <<_ACEOF
4546 #line $LINENO "configure"
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552 #include <ac_nonexistent.h>
4553 _ACEOF
4554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4555   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4556   ac_status=$?
4557   grep -v '^ *+' conftest.er1 >conftest.err
4558   rm -f conftest.er1
4559   cat conftest.err >&5
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); } >/dev/null; then
4562   if test -s conftest.err; then
4563     ac_cpp_err=$ac_cxx_preproc_warn_flag
4564   else
4565     ac_cpp_err=
4566   fi
4567 else
4568   ac_cpp_err=yes
4569 fi
4570 if test -z "$ac_cpp_err"; then
4571   # Broken: success on invalid input.
4572 continue
4573 else
4574   echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577   # Passes both tests.
4578 ac_preproc_ok=:
4579 break
4580 fi
4581 rm -f conftest.err conftest.$ac_ext
4582
4583 done
4584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4585 rm -f conftest.err conftest.$ac_ext
4586 if $ac_preproc_ok; then
4587   :
4588 else
4589   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4590 See \`config.log' for more details." >&5
4591 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4592 See \`config.log' for more details." >&2;}
4593    { (exit 1); exit 1; }; }
4594 fi
4595
4596 ac_ext=cc
4597 ac_cpp='$CXXCPP $CPPFLAGS'
4598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4601
4602
4603 ac_ext=f
4604 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4605 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4607 if test -n "$ac_tool_prefix"; then
4608   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4609   do
4610     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4612 echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4614 if test "${ac_cv_prog_F77+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   if test -n "$F77"; then
4618   ac_cv_prog_F77="$F77" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625   for ac_exec_ext in '' $ac_executable_extensions; do
4626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633
4634 fi
4635 fi
4636 F77=$ac_cv_prog_F77
4637 if test -n "$F77"; then
4638   echo "$as_me:$LINENO: result: $F77" >&5
4639 echo "${ECHO_T}$F77" >&6
4640 else
4641   echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6
4643 fi
4644
4645     test -n "$F77" && break
4646   done
4647 fi
4648 if test -z "$F77"; then
4649   ac_ct_F77=$F77
4650   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4651 do
4652   # Extract the first word of "$ac_prog", so it can be a program name with args.
4653 set dummy $ac_prog; ac_word=$2
4654 echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4656 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   if test -n "$ac_ct_F77"; then
4660   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665   IFS=$as_save_IFS
4666   test -z "$as_dir" && as_dir=.
4667   for ac_exec_ext in '' $ac_executable_extensions; do
4668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669     ac_cv_prog_ac_ct_F77="$ac_prog"
4670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671     break 2
4672   fi
4673 done
4674 done
4675
4676 fi
4677 fi
4678 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4679 if test -n "$ac_ct_F77"; then
4680   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4681 echo "${ECHO_T}$ac_ct_F77" >&6
4682 else
4683   echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6
4685 fi
4686
4687   test -n "$ac_ct_F77" && break
4688 done
4689
4690   F77=$ac_ct_F77
4691 fi
4692
4693
4694 # Provide some information about the compiler.
4695 echo "$as_me:4695:" \
4696      "checking for Fortran 77 compiler version" >&5
4697 ac_compiler=`set X $ac_compile; echo $2`
4698 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4699   (eval $ac_compiler --version </dev/null >&5) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }
4703 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4704   (eval $ac_compiler -v </dev/null >&5) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }
4708 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4709   (eval $ac_compiler -V </dev/null >&5) 2>&5
4710   ac_status=$?
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); }
4713
4714 # If we don't use `.F' as extension, the preprocessor is not run on the
4715 # input file.
4716 ac_save_ext=$ac_ext
4717 ac_ext=F
4718 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4719 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4720 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   cat >conftest.$ac_ext <<_ACEOF
4724       program main
4725 #ifndef __GNUC__
4726        choke me
4727 #endif
4728
4729       end
4730 _ACEOF
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733   (eval $ac_compile) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } &&
4737          { ac_try='test -s conftest.$ac_objext'
4738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739   (eval $ac_try) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; }; then
4743   ac_compiler_gnu=yes
4744 else
4745   echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 ac_compiler_gnu=no
4749 fi
4750 rm -f conftest.$ac_objext conftest.$ac_ext
4751 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4752
4753 fi
4754 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4755 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4756 ac_ext=$ac_save_ext
4757 G77=`test $ac_compiler_gnu = yes && echo yes`
4758 ac_test_FFLAGS=${FFLAGS+set}
4759 ac_save_FFLAGS=$FFLAGS
4760 FFLAGS=
4761 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4762 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4763 if test "${ac_cv_prog_f77_g+set}" = set; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   FFLAGS=-g
4767 cat >conftest.$ac_ext <<_ACEOF
4768       program main
4769
4770       end
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774   (eval $ac_compile) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } &&
4778          { ac_try='test -s conftest.$ac_objext'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; }; then
4784   ac_cv_prog_f77_g=yes
4785 else
4786   echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 ac_cv_prog_f77_g=no
4790 fi
4791 rm -f conftest.$ac_objext conftest.$ac_ext
4792
4793 fi
4794 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4795 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4796 if test "$ac_test_FFLAGS" = set; then
4797   FFLAGS=$ac_save_FFLAGS
4798 elif test $ac_cv_prog_f77_g = yes; then
4799   if test "$G77" = yes; then
4800     FFLAGS="-g -O2"
4801   else
4802     FFLAGS="-g"
4803   fi
4804 else
4805   if test "$G77" = yes; then
4806     FFLAGS="-O2"
4807   else
4808     FFLAGS=
4809   fi
4810 fi
4811 ac_ext=c
4812 ac_cpp='$CPP $CPPFLAGS'
4813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4816
4817
4818
4819 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4820
4821 # find the maximum length of command line arguments
4822 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4823 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4824 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827     i=0
4828   testring="ABCD"
4829
4830   case $build_os in
4831   msdosdjgpp*)
4832     # On DJGPP, this test can blow up pretty badly due to problems in libc
4833     # (any single argument exceeding 2000 bytes causes a buffer overrun
4834     # during glob expansion).  Even if it were fixed, the result of this
4835     # check would be larger than it should be.
4836     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4837     ;;
4838
4839   gnu*)
4840     # Under GNU Hurd, this test is not required because there is
4841     # no limit to the length of command line arguments.
4842     # Libtool will interpret -1 as no limit whatsoever
4843     lt_cv_sys_max_cmd_len=-1;
4844     ;;
4845
4846   cygwin* | mingw*)
4847     # On Win9x/ME, this test blows up -- it succeeds, but takes
4848     # about 5 minutes as the teststring grows exponentially.
4849     # Worse, since 9x/ME are not pre-emptively multitasking,
4850     # you end up with a "frozen" computer, even though with patience
4851     # the test eventually succeeds (with a max line length of 256k).
4852     # Instead, let's just punt: use the minimum linelength reported by
4853     # all of the supported platforms: 8192 (on NT/2K/XP).
4854     lt_cv_sys_max_cmd_len=8192;
4855     ;;
4856
4857  *)
4858     # If test is not a shell built-in, we'll probably end up computing a
4859     # maximum length that is only half of the actual maximum length, but
4860     # we can't tell.
4861     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4862                = "XX$testring") >/dev/null 2>&1 &&
4863             new_result=`expr "X$testring" : ".*" 2>&1` &&
4864             lt_cv_sys_max_cmd_len=$new_result &&
4865             test $i != 17 # 1/2 MB should be enough
4866     do
4867       i=`expr $i + 1`
4868       testring=$testring$testring
4869     done
4870     testring=
4871     # Add a significant safety factor because C++ compilers can tack on massive
4872     # amounts of additional arguments before passing them to the linker.
4873     # It appears as though 1/2 is a usable value.
4874     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4875     ;;
4876   esac
4877
4878 fi
4879
4880 if test -n $lt_cv_sys_max_cmd_len ; then
4881   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4882 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4883 else
4884   echo "$as_me:$LINENO: result: none" >&5
4885 echo "${ECHO_T}none" >&6
4886 fi
4887
4888
4889
4890
4891 # Check for command to grab the raw symbol name followed by C symbol from nm.
4892 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4893 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4894 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897
4898 # These are sane defaults that work on at least a few old systems.
4899 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4900
4901 # Character class describing NM global symbol codes.
4902 symcode='[BCDEGRST]'
4903
4904 # Regexp to match symbols that can be accessed directly from C.
4905 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4906
4907 # Transform the above into a raw symbol and a C symbol.
4908 symxfrm='\1 \2\3 \3'
4909
4910 # Transform an extracted symbol line into a proper C declaration
4911 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4912
4913 # Transform an extracted symbol line into symbol name and symbol address
4914 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'"
4915
4916 # Define system-specific variables.
4917 case $host_os in
4918 aix*)
4919   symcode='[BCDT]'
4920   ;;
4921 cygwin* | mingw* | pw32*)
4922   symcode='[ABCDGISTW]'
4923   ;;
4924 hpux*) # Its linker distinguishes data from code symbols
4925   if test "$host_cpu" = ia64; then
4926     symcode='[ABCDEGRST]'
4927   fi
4928   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4929   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'"
4930   ;;
4931 irix* | nonstopux*)
4932   symcode='[BCDEGRST]'
4933   ;;
4934 osf*)
4935   symcode='[BCDEGQRST]'
4936   ;;
4937 solaris* | sysv5*)
4938   symcode='[BDT]'
4939   ;;
4940 sysv4)
4941   symcode='[DFNSTU]'
4942   ;;
4943 esac
4944
4945 # Handle CRLF in mingw tool chain
4946 opt_cr=
4947 case $build_os in
4948 mingw*)
4949   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4950   ;;
4951 esac
4952
4953 # If we're using GNU nm, then use its standard symbol codes.
4954 case `$NM -V 2>&1` in
4955 *GNU* | *'with BFD'*)
4956   symcode='[ABCDGISTW]' ;;
4957 esac
4958
4959 # Try without a prefix undercore, then with it.
4960 for ac_symprfx in "" "_"; do
4961
4962   # Write the raw and C identifiers.
4963   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4964
4965   # Check to see that the pipe works correctly.
4966   pipe_works=no
4967
4968   rm -f conftest*
4969   cat > conftest.$ac_ext <<EOF
4970 #ifdef __cplusplus
4971 extern "C" {
4972 #endif
4973 char nm_test_var;
4974 void nm_test_func(){}
4975 #ifdef __cplusplus
4976 }
4977 #endif
4978 int main(){nm_test_var='a';nm_test_func();return(0);}
4979 EOF
4980
4981   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982   (eval $ac_compile) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; then
4986     # Now try to grab the symbols.
4987     nlist=conftest.nm
4988     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4989   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4990   ac_status=$?
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); } && test -s "$nlist"; then
4993       # Try sorting and uniquifying the output.
4994       if sort "$nlist" | uniq > "$nlist"T; then
4995         mv -f "$nlist"T "$nlist"
4996       else
4997         rm -f "$nlist"T
4998       fi
4999
5000       # Make sure that we snagged all the symbols we need.
5001       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5002         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5003           cat <<EOF > conftest.$ac_ext
5004 #ifdef __cplusplus
5005 extern "C" {
5006 #endif
5007
5008 EOF
5009           # Now generate the symbol file.
5010           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5011
5012           cat <<EOF >> conftest.$ac_ext
5013 #if defined (__STDC__) && __STDC__
5014 # define lt_ptr_t void *
5015 #else
5016 # define lt_ptr_t char *
5017 # define const
5018 #endif
5019
5020 /* The mapping between symbol names and symbols. */
5021 const struct {
5022   const char *name;
5023   lt_ptr_t address;
5024 }
5025 lt_preloaded_symbols[] =
5026 {
5027 EOF
5028           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5029           cat <<\EOF >> conftest.$ac_ext
5030   {0, (lt_ptr_t) 0}
5031 };
5032
5033 #ifdef __cplusplus
5034 }
5035 #endif
5036 EOF
5037           # Now try linking the two files.
5038           mv conftest.$ac_objext conftstm.$ac_objext
5039           lt_save_LIBS="$LIBS"
5040           lt_save_CFLAGS="$CFLAGS"
5041           LIBS="conftstm.$ac_objext"
5042           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5043           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5044   (eval $ac_link) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5048             pipe_works=yes
5049           fi
5050           LIBS="$lt_save_LIBS"
5051           CFLAGS="$lt_save_CFLAGS"
5052         else
5053           echo "cannot find nm_test_func in $nlist" >&5
5054         fi
5055       else
5056         echo "cannot find nm_test_var in $nlist" >&5
5057       fi
5058     else
5059       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5060     fi
5061   else
5062     echo "$progname: failed program was:" >&5
5063     cat conftest.$ac_ext >&5
5064   fi
5065   rm -f conftest* conftst*
5066
5067   # Do not use the global_symbol_pipe unless it works.
5068   if test "$pipe_works" = yes; then
5069     break
5070   else
5071     lt_cv_sys_global_symbol_pipe=
5072   fi
5073 done
5074
5075 fi
5076
5077 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5078   lt_cv_sys_global_symbol_to_cdecl=
5079 fi
5080 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5081   echo "$as_me:$LINENO: result: failed" >&5
5082 echo "${ECHO_T}failed" >&6
5083 else
5084   echo "$as_me:$LINENO: result: ok" >&5
5085 echo "${ECHO_T}ok" >&6
5086 fi
5087
5088 echo "$as_me:$LINENO: checking for objdir" >&5
5089 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5090 if test "${lt_cv_objdir+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   rm -f .libs 2>/dev/null
5094 mkdir .libs 2>/dev/null
5095 if test -d .libs; then
5096   lt_cv_objdir=.libs
5097 else
5098   # MS-DOS does not allow filenames that begin with a dot.
5099   lt_cv_objdir=_libs
5100 fi
5101 rmdir .libs 2>/dev/null
5102 fi
5103 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5104 echo "${ECHO_T}$lt_cv_objdir" >&6
5105 objdir=$lt_cv_objdir
5106
5107
5108
5109
5110
5111 case $host_os in
5112 aix3*)
5113   # AIX sometimes has problems with the GCC collect2 program.  For some
5114   # reason, if we set the COLLECT_NAMES environment variable, the problems
5115   # vanish in a puff of smoke.
5116   if test "X${COLLECT_NAMES+set}" != Xset; then
5117     COLLECT_NAMES=
5118     export COLLECT_NAMES
5119   fi
5120   ;;
5121 esac
5122
5123 # Sed substitution that helps us do robust quoting.  It backslashifies
5124 # metacharacters that are still active within double-quoted strings.
5125 Xsed='sed -e s/^X//'
5126 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5127
5128 # Same as above, but do not quote variable references.
5129 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5130
5131 # Sed substitution to delay expansion of an escaped shell variable in a
5132 # double_quote_subst'ed string.
5133 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5134
5135 # Sed substitution to avoid accidental globbing in evaled expressions
5136 no_glob_subst='s/\*/\\\*/g'
5137
5138 # Constants:
5139 rm="rm -f"
5140
5141 # Global variables:
5142 default_ofile=libtool
5143 can_build_shared=yes
5144
5145 # All known linkers require a `.a' archive for static linking (except M$VC,
5146 # which needs '.lib').
5147 libext=a
5148 ltmain="$ac_aux_dir/ltmain.sh"
5149 ofile="$default_ofile"
5150 with_gnu_ld="$lt_cv_prog_gnu_ld"
5151
5152 if test -n "$ac_tool_prefix"; then
5153   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}ar; ac_word=$2
5155 echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157 if test "${ac_cv_prog_AR+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   if test -n "$AR"; then
5161   ac_cv_prog_AR="$AR" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168   for ac_exec_ext in '' $ac_executable_extensions; do
5169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170     ac_cv_prog_AR="${ac_tool_prefix}ar"
5171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172     break 2
5173   fi
5174 done
5175 done
5176
5177 fi
5178 fi
5179 AR=$ac_cv_prog_AR
5180 if test -n "$AR"; then
5181   echo "$as_me:$LINENO: result: $AR" >&5
5182 echo "${ECHO_T}$AR" >&6
5183 else
5184   echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6
5186 fi
5187
5188 fi
5189 if test -z "$ac_cv_prog_AR"; then
5190   ac_ct_AR=$AR
5191   # Extract the first word of "ar", so it can be a program name with args.
5192 set dummy ar; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   if test -n "$ac_ct_AR"; then
5199   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204   IFS=$as_save_IFS
5205   test -z "$as_dir" && as_dir=.
5206   for ac_exec_ext in '' $ac_executable_extensions; do
5207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208     ac_cv_prog_ac_ct_AR="ar"
5209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210     break 2
5211   fi
5212 done
5213 done
5214
5215   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5216 fi
5217 fi
5218 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5219 if test -n "$ac_ct_AR"; then
5220   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5221 echo "${ECHO_T}$ac_ct_AR" >&6
5222 else
5223   echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5225 fi
5226
5227   AR=$ac_ct_AR
5228 else
5229   AR="$ac_cv_prog_AR"
5230 fi
5231
5232 if test -n "$ac_tool_prefix"; then
5233   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5235 echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237 if test "${ac_cv_prog_RANLIB+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   if test -n "$RANLIB"; then
5241   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248   for ac_exec_ext in '' $ac_executable_extensions; do
5249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255 done
5256
5257 fi
5258 fi
5259 RANLIB=$ac_cv_prog_RANLIB
5260 if test -n "$RANLIB"; then
5261   echo "$as_me:$LINENO: result: $RANLIB" >&5
5262 echo "${ECHO_T}$RANLIB" >&6
5263 else
5264   echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6
5266 fi
5267
5268 fi
5269 if test -z "$ac_cv_prog_RANLIB"; then
5270   ac_ct_RANLIB=$RANLIB
5271   # Extract the first word of "ranlib", so it can be a program name with args.
5272 set dummy ranlib; ac_word=$2
5273 echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   if test -n "$ac_ct_RANLIB"; then
5279   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284   IFS=$as_save_IFS
5285   test -z "$as_dir" && as_dir=.
5286   for ac_exec_ext in '' $ac_executable_extensions; do
5287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288     ac_cv_prog_ac_ct_RANLIB="ranlib"
5289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290     break 2
5291   fi
5292 done
5293 done
5294
5295   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5296 fi
5297 fi
5298 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5299 if test -n "$ac_ct_RANLIB"; then
5300   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5301 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5302 else
5303   echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5305 fi
5306
5307   RANLIB=$ac_ct_RANLIB
5308 else
5309   RANLIB="$ac_cv_prog_RANLIB"
5310 fi
5311
5312 if test -n "$ac_tool_prefix"; then
5313   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}strip; ac_word=$2
5315 echo "$as_me:$LINENO: checking for $ac_word" >&5
5316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5317 if test "${ac_cv_prog_STRIP+set}" = set; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320   if test -n "$STRIP"; then
5321   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326   IFS=$as_save_IFS
5327   test -z "$as_dir" && as_dir=.
5328   for ac_exec_ext in '' $ac_executable_extensions; do
5329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332     break 2
5333   fi
5334 done
5335 done
5336
5337 fi
5338 fi
5339 STRIP=$ac_cv_prog_STRIP
5340 if test -n "$STRIP"; then
5341   echo "$as_me:$LINENO: result: $STRIP" >&5
5342 echo "${ECHO_T}$STRIP" >&6
5343 else
5344   echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5346 fi
5347
5348 fi
5349 if test -z "$ac_cv_prog_STRIP"; then
5350   ac_ct_STRIP=$STRIP
5351   # Extract the first word of "strip", so it can be a program name with args.
5352 set dummy strip; ac_word=$2
5353 echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358   if test -n "$ac_ct_STRIP"; then
5359   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5363 do
5364   IFS=$as_save_IFS
5365   test -z "$as_dir" && as_dir=.
5366   for ac_exec_ext in '' $ac_executable_extensions; do
5367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368     ac_cv_prog_ac_ct_STRIP="strip"
5369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370     break 2
5371   fi
5372 done
5373 done
5374
5375   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5376 fi
5377 fi
5378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5379 if test -n "$ac_ct_STRIP"; then
5380   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5381 echo "${ECHO_T}$ac_ct_STRIP" >&6
5382 else
5383   echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6
5385 fi
5386
5387   STRIP=$ac_ct_STRIP
5388 else
5389   STRIP="$ac_cv_prog_STRIP"
5390 fi
5391
5392
5393 old_CC="$CC"
5394 old_CFLAGS="$CFLAGS"
5395
5396 # Set sane defaults for various variables
5397 test -z "$AR" && AR=ar
5398 test -z "$AR_FLAGS" && AR_FLAGS=cru
5399 test -z "$AS" && AS=as
5400 test -z "$CC" && CC=cc
5401 test -z "$LTCC" && LTCC=$CC
5402 test -z "$DLLTOOL" && DLLTOOL=dlltool
5403 test -z "$LD" && LD=ld
5404 test -z "$LN_S" && LN_S="ln -s"
5405 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5406 test -z "$NM" && NM=nm
5407 test -z "$SED" && SED=sed
5408 test -z "$OBJDUMP" && OBJDUMP=objdump
5409 test -z "$RANLIB" && RANLIB=:
5410 test -z "$STRIP" && STRIP=:
5411 test -z "$ac_objext" && ac_objext=o
5412
5413 # Determine commands to create old-style static archives.
5414 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5415 old_postinstall_cmds='chmod 644 $oldlib'
5416 old_postuninstall_cmds=
5417
5418 if test -n "$RANLIB"; then
5419   case $host_os in
5420   openbsd*)
5421     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5422     ;;
5423   *)
5424     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5425     ;;
5426   esac
5427   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5428 fi
5429
5430 # Only perform the check for file, if the check method requires it
5431 case $deplibs_check_method in
5432 file_magic*)
5433   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5434     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5435 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5436 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   case $MAGIC_CMD in
5440 [\\/*] |  ?:[\\/]*)
5441   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5442   ;;
5443 *)
5444   lt_save_MAGIC_CMD="$MAGIC_CMD"
5445   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5446   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5447   for ac_dir in $ac_dummy; do
5448     IFS="$lt_save_ifs"
5449     test -z "$ac_dir" && ac_dir=.
5450     if test -f $ac_dir/${ac_tool_prefix}file; then
5451       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5452       if test -n "$file_magic_test_file"; then
5453         case $deplibs_check_method in
5454         "file_magic "*)
5455           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5456           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5457           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5458             $EGREP "$file_magic_regex" > /dev/null; then
5459             :
5460           else
5461             cat <<EOF 1>&2
5462
5463 *** Warning: the command libtool uses to detect shared libraries,
5464 *** $file_magic_cmd, produces output that libtool cannot recognize.
5465 *** The result is that libtool may fail to recognize shared libraries
5466 *** as such.  This will affect the creation of libtool libraries that
5467 *** depend on shared libraries, but programs linked with such libtool
5468 *** libraries will work regardless of this problem.  Nevertheless, you
5469 *** may want to report the problem to your system manager and/or to
5470 *** bug-libtool@gnu.org
5471
5472 EOF
5473           fi ;;
5474         esac
5475       fi
5476       break
5477     fi
5478   done
5479   IFS="$lt_save_ifs"
5480   MAGIC_CMD="$lt_save_MAGIC_CMD"
5481   ;;
5482 esac
5483 fi
5484
5485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5486 if test -n "$MAGIC_CMD"; then
5487   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5488 echo "${ECHO_T}$MAGIC_CMD" >&6
5489 else
5490   echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5492 fi
5493
5494 if test -z "$lt_cv_path_MAGIC_CMD"; then
5495   if test -n "$ac_tool_prefix"; then
5496     echo "$as_me:$LINENO: checking for file" >&5
5497 echo $ECHO_N "checking for file... $ECHO_C" >&6
5498 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   case $MAGIC_CMD in
5502 [\\/*] |  ?:[\\/]*)
5503   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5504   ;;
5505 *)
5506   lt_save_MAGIC_CMD="$MAGIC_CMD"
5507   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5508   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5509   for ac_dir in $ac_dummy; do
5510     IFS="$lt_save_ifs"
5511     test -z "$ac_dir" && ac_dir=.
5512     if test -f $ac_dir/file; then
5513       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5514       if test -n "$file_magic_test_file"; then
5515         case $deplibs_check_method in
5516         "file_magic "*)
5517           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5518           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5519           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5520             $EGREP "$file_magic_regex" > /dev/null; then
5521             :
5522           else
5523             cat <<EOF 1>&2
5524
5525 *** Warning: the command libtool uses to detect shared libraries,
5526 *** $file_magic_cmd, produces output that libtool cannot recognize.
5527 *** The result is that libtool may fail to recognize shared libraries
5528 *** as such.  This will affect the creation of libtool libraries that
5529 *** depend on shared libraries, but programs linked with such libtool
5530 *** libraries will work regardless of this problem.  Nevertheless, you
5531 *** may want to report the problem to your system manager and/or to
5532 *** bug-libtool@gnu.org
5533
5534 EOF
5535           fi ;;
5536         esac
5537       fi
5538       break
5539     fi
5540   done
5541   IFS="$lt_save_ifs"
5542   MAGIC_CMD="$lt_save_MAGIC_CMD"
5543   ;;
5544 esac
5545 fi
5546
5547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5548 if test -n "$MAGIC_CMD"; then
5549   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5550 echo "${ECHO_T}$MAGIC_CMD" >&6
5551 else
5552   echo "$as_me:$LINENO: result: no" >&5
5553 echo "${ECHO_T}no" >&6
5554 fi
5555
5556   else
5557     MAGIC_CMD=:
5558   fi
5559 fi
5560
5561   fi
5562   ;;
5563 esac
5564
5565 enable_dlopen=no
5566 enable_win32_dll=no
5567
5568 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5569 if test "${enable_libtool_lock+set}" = set; then
5570   enableval="$enable_libtool_lock"
5571
5572 fi;
5573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5574
5575
5576 # Check whether --with-pic or --without-pic was given.
5577 if test "${with_pic+set}" = set; then
5578   withval="$with_pic"
5579   pic_mode="$withval"
5580 else
5581   pic_mode=default
5582 fi;
5583 test -z "$pic_mode" && pic_mode=default
5584
5585 # Use C for the default configuration in the libtool script
5586 tagname=
5587 lt_save_CC="$CC"
5588 ac_ext=c
5589 ac_cpp='$CPP $CPPFLAGS'
5590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5593
5594
5595 # Source file extension for C test sources.
5596 ac_ext=c
5597
5598 # Object file extension for compiled C test sources.
5599 objext=o
5600 objext=$objext
5601
5602 # Code to be used in simple compile tests
5603 lt_simple_compile_test_code="int some_variable = 0;\n"
5604
5605 # Code to be used in simple link tests
5606 lt_simple_link_test_code='int main(){return(0);}\n'
5607
5608
5609 # If no C compiler was specified, use CC.
5610 LTCC=${LTCC-"$CC"}
5611
5612 # Allow CC to be a program name with arguments.
5613 compiler=$CC
5614
5615
5616 #
5617 # Check for any special shared library compilation flags.
5618 #
5619 lt_prog_cc_shlib=
5620 if test "$GCC" = no; then
5621   case $host_os in
5622   sco3.2v5*)
5623     lt_prog_cc_shlib='-belf'
5624     ;;
5625   esac
5626 fi
5627 if test -n "$lt_prog_cc_shlib"; then
5628   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5629 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5630   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5631   else
5632     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5633 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5634     lt_cv_prog_cc_can_build_shared=no
5635   fi
5636 fi
5637
5638
5639 #
5640 # Check to make sure the static flag actually works.
5641 #
5642 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5643 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5644 if test "${lt_prog_compiler_static_works+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   lt_prog_compiler_static_works=no
5648    save_LDFLAGS="$LDFLAGS"
5649    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5650    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5651    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5652      # The compiler can only warn and ignore the option if not recognized
5653      # So say no if there are warnings
5654      if test -s conftest.err; then
5655        # Append any errors to the config.log.
5656        cat conftest.err 1>&5
5657      else
5658        lt_prog_compiler_static_works=yes
5659      fi
5660    fi
5661    $rm conftest*
5662    LDFLAGS="$save_LDFLAGS"
5663
5664 fi
5665 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5666 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5667
5668 if test x"$lt_prog_compiler_static_works" = xyes; then
5669     :
5670 else
5671     lt_prog_compiler_static=
5672 fi
5673
5674
5675
5676 ## CAVEAT EMPTOR:
5677 ## There is no encapsulation within the following macros, do not change
5678 ## the running order or otherwise move them around unless you know exactly
5679 ## what you are doing...
5680
5681 lt_prog_compiler_no_builtin_flag=
5682
5683 if test "$GCC" = yes; then
5684   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5685
5686   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5687 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5688 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   lt_cv_prog_compiler_rtti_exceptions=no
5692   ac_outfile=conftest.$ac_objext
5693    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5694    lt_compiler_flag="-fno-rtti -fno-exceptions"
5695    # Insert the option either (1) after the last *FLAGS variable, or
5696    # (2) before a word containing "conftest.", or (3) at the end.
5697    # Note that $ac_compile itself does not contain backslashes and begins
5698    # with a dollar sign (not a hyphen), so the echo should work correctly.
5699    # The option is referenced via a variable to avoid confusing sed.
5700    lt_compile=`echo "$ac_compile" | $SED \
5701    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5702    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5703    -e 's:$: $lt_compiler_flag:'`
5704    (eval echo "\"\$as_me:5704: $lt_compile\"" >&5)
5705    (eval "$lt_compile" 2>conftest.err)
5706    ac_status=$?
5707    cat conftest.err >&5
5708    echo "$as_me:5708: \$? = $ac_status" >&5
5709    if (exit $ac_status) && test -s "$ac_outfile"; then
5710      # The compiler can only warn and ignore the option if not recognized
5711      # So say no if there are warnings
5712      if test ! -s conftest.err; then
5713        lt_cv_prog_compiler_rtti_exceptions=yes
5714      fi
5715    fi
5716    $rm conftest*
5717
5718 fi
5719 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5720 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5721
5722 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5723     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5724 else
5725     :
5726 fi
5727
5728 fi
5729
5730 lt_prog_compiler_wl=
5731 lt_prog_compiler_pic=
5732 lt_prog_compiler_static=
5733
5734 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5735 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5736
5737   if test "$GCC" = yes; then
5738     lt_prog_compiler_wl='-Wl,'
5739     lt_prog_compiler_static='-static'
5740
5741     case $host_os in
5742       aix*)
5743       # All AIX code is PIC.
5744       if test "$host_cpu" = ia64; then
5745         # AIX 5 now supports IA64 processor
5746         lt_prog_compiler_static='-Bstatic'
5747       fi
5748       ;;
5749
5750     amigaos*)
5751       # FIXME: we need at least 68020 code to build shared libraries, but
5752       # adding the `-m68020' flag to GCC prevents building anything better,
5753       # like `-m68040'.
5754       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5755       ;;
5756
5757     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5758       # PIC is the default for these OSes.
5759       ;;
5760
5761     mingw* | pw32* | os2*)
5762       # This hack is so that the source file can tell whether it is being
5763       # built for inclusion in a dll (and should export symbols for example).
5764       lt_prog_compiler_pic='-DDLL_EXPORT'
5765       ;;
5766
5767     darwin* | rhapsody*)
5768       # PIC is the default on this platform
5769       # Common symbols not allowed in MH_DYLIB files
5770       lt_prog_compiler_pic='-fno-common'
5771       ;;
5772
5773     msdosdjgpp*)
5774       # Just because we use GCC doesn't mean we suddenly get shared libraries
5775       # on systems that don't support them.
5776       lt_prog_compiler_can_build_shared=no
5777       enable_shared=no
5778       ;;
5779
5780     sysv4*MP*)
5781       if test -d /usr/nec; then
5782         lt_prog_compiler_pic=-Kconform_pic
5783       fi
5784       ;;
5785
5786     hpux*)
5787       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5788       # not for PA HP-UX.
5789       case "$host_cpu" in
5790       hppa*64*|ia64*)
5791         # +Z the default
5792         ;;
5793       *)
5794         lt_prog_compiler_pic='-fPIC'
5795         ;;
5796       esac
5797       ;;
5798
5799     *)
5800       lt_prog_compiler_pic='-fPIC'
5801       ;;
5802     esac
5803   else
5804     # PORTME Check for flag to pass linker flags through the system compiler.
5805     case $host_os in
5806     aix*)
5807       lt_prog_compiler_wl='-Wl,'
5808       if test "$host_cpu" = ia64; then
5809         # AIX 5 now supports IA64 processor
5810         lt_prog_compiler_static='-Bstatic'
5811       else
5812         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5813       fi
5814       ;;
5815
5816     mingw* | pw32* | os2*)
5817       # This hack is so that the source file can tell whether it is being
5818       # built for inclusion in a dll (and should export symbols for example).
5819       lt_prog_compiler_pic='-DDLL_EXPORT'
5820       ;;
5821
5822     hpux9* | hpux10* | hpux11*)
5823       lt_prog_compiler_wl='-Wl,'
5824       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5825       # not for PA HP-UX.
5826       case "$host_cpu" in
5827       hppa*64*|ia64*)
5828         # +Z the default
5829         ;;
5830       *)
5831         lt_prog_compiler_pic='+Z'
5832         ;;
5833       esac
5834       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5835       lt_prog_compiler_static='${wl}-a ${wl}archive'
5836       ;;
5837
5838     irix5* | irix6* | nonstopux*)
5839       lt_prog_compiler_wl='-Wl,'
5840       # PIC (with -KPIC) is the default.
5841       lt_prog_compiler_static='-non_shared'
5842       ;;
5843
5844     newsos6)
5845       lt_prog_compiler_pic='-KPIC'
5846       lt_prog_compiler_static='-Bstatic'
5847       ;;
5848
5849     linux*)
5850       case $CC in
5851       icc|ecc)
5852         lt_prog_compiler_wl='-Wl,'
5853         lt_prog_compiler_pic='-KPIC'
5854         lt_prog_compiler_static='-static'
5855         ;;
5856       ccc)
5857         lt_prog_compiler_wl='-Wl,'
5858         # All Alpha code is PIC.
5859         lt_prog_compiler_static='-non_shared'
5860         ;;
5861       esac
5862       ;;
5863
5864     osf3* | osf4* | osf5*)
5865       lt_prog_compiler_wl='-Wl,'
5866       # All OSF/1 code is PIC.
5867       lt_prog_compiler_static='-non_shared'
5868       ;;
5869
5870     sco3.2v5*)
5871       lt_prog_compiler_pic='-Kpic'
5872       lt_prog_compiler_static='-dn'
5873       ;;
5874
5875     solaris*)
5876       lt_prog_compiler_wl='-Wl,'
5877       lt_prog_compiler_pic='-KPIC'
5878       lt_prog_compiler_static='-Bstatic'
5879       ;;
5880
5881     sunos4*)
5882       lt_prog_compiler_wl='-Qoption ld '
5883       lt_prog_compiler_pic='-PIC'
5884       lt_prog_compiler_static='-Bstatic'
5885       ;;
5886
5887     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5888       lt_prog_compiler_wl='-Wl,'
5889       lt_prog_compiler_pic='-KPIC'
5890       lt_prog_compiler_static='-Bstatic'
5891       ;;
5892
5893     sysv4*MP*)
5894       if test -d /usr/nec ;then
5895         lt_prog_compiler_pic='-Kconform_pic'
5896         lt_prog_compiler_static='-Bstatic'
5897       fi
5898       ;;
5899
5900     uts4*)
5901       lt_prog_compiler_pic='-pic'
5902       lt_prog_compiler_static='-Bstatic'
5903       ;;
5904
5905     *)
5906       lt_prog_compiler_can_build_shared=no
5907       ;;
5908     esac
5909   fi
5910
5911 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5912 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5913
5914 #
5915 # Check to make sure the PIC flag actually works.
5916 #
5917 if test -n "$lt_prog_compiler_pic"; then
5918   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5919 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5920 if test "${lt_prog_compiler_pic_works+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   lt_prog_compiler_pic_works=no
5924   ac_outfile=conftest.$ac_objext
5925    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5926    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5927    # Insert the option either (1) after the last *FLAGS variable, or
5928    # (2) before a word containing "conftest.", or (3) at the end.
5929    # Note that $ac_compile itself does not contain backslashes and begins
5930    # with a dollar sign (not a hyphen), so the echo should work correctly.
5931    # The option is referenced via a variable to avoid confusing sed.
5932    lt_compile=`echo "$ac_compile" | $SED \
5933    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5934    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5935    -e 's:$: $lt_compiler_flag:'`
5936    (eval echo "\"\$as_me:5936: $lt_compile\"" >&5)
5937    (eval "$lt_compile" 2>conftest.err)
5938    ac_status=$?
5939    cat conftest.err >&5
5940    echo "$as_me:5940: \$? = $ac_status" >&5
5941    if (exit $ac_status) && test -s "$ac_outfile"; then
5942      # The compiler can only warn and ignore the option if not recognized
5943      # So say no if there are warnings
5944      if test ! -s conftest.err; then
5945        lt_prog_compiler_pic_works=yes
5946      fi
5947    fi
5948    $rm conftest*
5949
5950 fi
5951 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5952 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5953
5954 if test x"$lt_prog_compiler_pic_works" = xyes; then
5955     case $lt_prog_compiler_pic in
5956      "" | " "*) ;;
5957      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5958      esac
5959 else
5960     lt_prog_compiler_pic=
5961      lt_prog_compiler_can_build_shared=no
5962 fi
5963
5964 fi
5965 case "$host_os" in
5966   # For platforms which do not support PIC, -DPIC is meaningless:
5967   *djgpp*)
5968     lt_prog_compiler_pic=
5969     ;;
5970   *)
5971     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5972     ;;
5973 esac
5974
5975 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5976 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5977 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   lt_cv_prog_compiler_c_o=no
5981    $rm -r conftest 2>/dev/null
5982    mkdir conftest
5983    cd conftest
5984    mkdir out
5985    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5986
5987    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5988    # that will create temporary files in the current directory regardless of
5989    # the output directory.  Thus, making CWD read-only will cause this test
5990    # to fail, enabling locking or at least warning the user not to do parallel
5991    # builds.
5992    chmod -w .
5993
5994    lt_compiler_flag="-o out/conftest2.$ac_objext"
5995    # Insert the option either (1) after the last *FLAGS variable, or
5996    # (2) before a word containing "conftest.", or (3) at the end.
5997    # Note that $ac_compile itself does not contain backslashes and begins
5998    # with a dollar sign (not a hyphen), so the echo should work correctly.
5999    lt_compile=`echo "$ac_compile" | $SED \
6000    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6001    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6002    -e 's:$: $lt_compiler_flag:'`
6003    (eval echo "\"\$as_me:6003: $lt_compile\"" >&5)
6004    (eval "$lt_compile" 2>out/conftest.err)
6005    ac_status=$?
6006    cat out/conftest.err >&5
6007    echo "$as_me:6007: \$? = $ac_status" >&5
6008    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6009    then
6010      # The compiler can only warn and ignore the option if not recognized
6011      # So say no if there are warnings
6012      if test ! -s out/conftest.err; then
6013        lt_cv_prog_compiler_c_o=yes
6014      fi
6015    fi
6016    chmod u+w .
6017    $rm conftest* out/*
6018    rmdir out
6019    cd ..
6020    rmdir conftest
6021    $rm conftest*
6022
6023 fi
6024 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6025 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6026
6027
6028 hard_links="nottested"
6029 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6030   # do not overwrite the value of need_locks provided by the user
6031   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6032 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6033   hard_links=yes
6034   $rm conftest*
6035   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6036   touch conftest.a
6037   ln conftest.a conftest.b 2>&5 || hard_links=no
6038   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6039   echo "$as_me:$LINENO: result: $hard_links" >&5
6040 echo "${ECHO_T}$hard_links" >&6
6041   if test "$hard_links" = no; then
6042     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6043 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6044     need_locks=warn
6045   fi
6046 else
6047   need_locks=no
6048 fi
6049
6050 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6051 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6052
6053   runpath_var=
6054   allow_undefined_flag=
6055   enable_shared_with_static_runtimes=no
6056   archive_cmds=
6057   archive_expsym_cmds=
6058   old_archive_From_new_cmds=
6059   old_archive_from_expsyms_cmds=
6060   export_dynamic_flag_spec=
6061   whole_archive_flag_spec=
6062   thread_safe_flag_spec=
6063   hardcode_libdir_flag_spec=
6064   hardcode_libdir_flag_spec_ld=
6065   hardcode_libdir_separator=
6066   hardcode_direct=no
6067   hardcode_minus_L=no
6068   hardcode_shlibpath_var=unsupported
6069   link_all_deplibs=unknown
6070   hardcode_automatic=no
6071   module_cmds=
6072   module_expsym_cmds=
6073   always_export_symbols=no
6074   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6075   # include_expsyms should be a list of space-separated symbols to be *always*
6076   # included in the symbol list
6077   include_expsyms=
6078   # exclude_expsyms can be an extended regexp of symbols to exclude
6079   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6080   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6081   # as well as any symbol that contains `d'.
6082   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6083   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6084   # platforms (ab)use it in PIC code, but their linkers get confused if
6085   # the symbol is explicitly referenced.  Since portable code cannot
6086   # rely on this symbol name, it's probably fine to never include it in
6087   # preloaded symbol tables.
6088   extract_expsyms_cmds=
6089
6090   case $host_os in
6091   cygwin* | mingw* | pw32*)
6092     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6093     # When not using gcc, we currently assume that we are using
6094     # Microsoft Visual C++.
6095     if test "$GCC" != yes; then
6096       with_gnu_ld=no
6097     fi
6098     ;;
6099   openbsd*)
6100     with_gnu_ld=no
6101     ;;
6102   esac
6103
6104   ld_shlibs=yes
6105   if test "$with_gnu_ld" = yes; then
6106     # If archive_cmds runs LD, not CC, wlarc should be empty
6107     wlarc='${wl}'
6108
6109     # See if GNU ld supports shared libraries.
6110     case $host_os in
6111     aix3* | aix4* | aix5*)
6112       # On AIX/PPC, the GNU linker is very broken
6113       if test "$host_cpu" != ia64; then
6114         ld_shlibs=no
6115         cat <<EOF 1>&2
6116
6117 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6118 *** to be unable to reliably create shared libraries on AIX.
6119 *** Therefore, libtool is disabling shared libraries support.  If you
6120 *** really care for shared libraries, you may want to modify your PATH
6121 *** so that a non-GNU linker is found, and then restart.
6122
6123 EOF
6124       fi
6125       ;;
6126
6127     amigaos*)
6128       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)'
6129       hardcode_libdir_flag_spec='-L$libdir'
6130       hardcode_minus_L=yes
6131
6132       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6133       # that the semantics of dynamic libraries on AmigaOS, at least up
6134       # to version 4, is to share data among multiple programs linked
6135       # with the same dynamic library.  Since this doesn't match the
6136       # behavior of shared libraries on other platforms, we can't use
6137       # them.
6138       ld_shlibs=no
6139       ;;
6140
6141     beos*)
6142       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6143         allow_undefined_flag=unsupported
6144         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6145         # support --undefined.  This deserves some investigation.  FIXME
6146         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6147       else
6148         ld_shlibs=no
6149       fi
6150       ;;
6151
6152     cygwin* | mingw* | pw32*)
6153       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6154       # as there is no search path for DLLs.
6155       hardcode_libdir_flag_spec='-L$libdir'
6156       allow_undefined_flag=unsupported
6157       always_export_symbols=no
6158       enable_shared_with_static_runtimes=yes
6159       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6160
6161       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6162         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6163         # If the export-symbols file already is a .def file (1st line
6164         # is EXPORTS), use it as is; otherwise, prepend...
6165         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6166           cp $export_symbols $output_objdir/$soname.def;
6167         else
6168           echo EXPORTS > $output_objdir/$soname.def;
6169           cat $export_symbols >> $output_objdir/$soname.def;
6170         fi~
6171         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6172       else
6173         ld_shlibs=no
6174       fi
6175       ;;
6176
6177     netbsd*)
6178       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6179         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6180         wlarc=
6181       else
6182         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6183         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6184       fi
6185       ;;
6186
6187     solaris* | sysv5*)
6188       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6189         ld_shlibs=no
6190         cat <<EOF 1>&2
6191
6192 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6193 *** create shared libraries on Solaris systems.  Therefore, libtool
6194 *** is disabling shared libraries support.  We urge you to upgrade GNU
6195 *** binutils to release 2.9.1 or newer.  Another option is to modify
6196 *** your PATH or compiler configuration so that the native linker is
6197 *** used, and then restart.
6198
6199 EOF
6200       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6201         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6202         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6203       else
6204         ld_shlibs=no
6205       fi
6206       ;;
6207
6208     sunos4*)
6209       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6210       wlarc=
6211       hardcode_direct=yes
6212       hardcode_shlibpath_var=no
6213       ;;
6214
6215     *)
6216       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6217         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6218         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6219       else
6220         ld_shlibs=no
6221       fi
6222       ;;
6223     esac
6224
6225     if test "$ld_shlibs" = yes; then
6226       runpath_var=LD_RUN_PATH
6227       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6228       export_dynamic_flag_spec='${wl}--export-dynamic'
6229       # ancient GNU ld didn't support --whole-archive et. al.
6230       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6231         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6232       else
6233         whole_archive_flag_spec=
6234       fi
6235     fi
6236   else
6237     # PORTME fill in a description of your system's linker (not GNU ld)
6238     case $host_os in
6239     aix3*)
6240       allow_undefined_flag=unsupported
6241       always_export_symbols=yes
6242       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'
6243       # Note: this linker hardcodes the directories in LIBPATH if there
6244       # are no directories specified by -L.
6245       hardcode_minus_L=yes
6246       if test "$GCC" = yes && test -z "$link_static_flag"; then
6247         # Neither direct hardcoding nor static linking is supported with a
6248         # broken collect2.
6249         hardcode_direct=unsupported
6250       fi
6251       ;;
6252
6253     aix4* | aix5*)
6254       if test "$host_cpu" = ia64; then
6255         # On IA64, the linker does run time linking by default, so we don't
6256         # have to do anything special.
6257         aix_use_runtimelinking=no
6258         exp_sym_flag='-Bexport'
6259         no_entry_flag=""
6260       else
6261         # If we're using GNU nm, then we don't want the "-C" option.
6262         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6263         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6264           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'
6265         else
6266           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'
6267         fi
6268         aix_use_runtimelinking=no
6269
6270         # Test if we are trying to use run time linking or normal
6271         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6272         # need to do runtime linking.
6273         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6274           for ld_flag in $LDFLAGS; do
6275           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6276             aix_use_runtimelinking=yes
6277             break
6278           fi
6279           done
6280         esac
6281
6282         exp_sym_flag='-bexport'
6283         no_entry_flag='-bnoentry'
6284       fi
6285
6286       # When large executables or shared objects are built, AIX ld can
6287       # have problems creating the table of contents.  If linking a library
6288       # or program results in "error TOC overflow" add -mminimal-toc to
6289       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6290       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6291
6292       archive_cmds=''
6293       hardcode_direct=yes
6294       hardcode_libdir_separator=':'
6295       link_all_deplibs=yes
6296
6297       if test "$GCC" = yes; then
6298         case $host_os in aix4.012|aix4.012.*)
6299         # We only want to do this on AIX 4.2 and lower, the check
6300         # below for broken collect2 doesn't work under 4.3+
6301           collect2name=`${CC} -print-prog-name=collect2`
6302           if test -f "$collect2name" && \
6303            strings "$collect2name" | grep resolve_lib_name >/dev/null
6304           then
6305           # We have reworked collect2
6306           hardcode_direct=yes
6307           else
6308           # We have old collect2
6309           hardcode_direct=unsupported
6310           # It fails to find uninstalled libraries when the uninstalled
6311           # path is not listed in the libpath.  Setting hardcode_minus_L
6312           # to unsupported forces relinking
6313           hardcode_minus_L=yes
6314           hardcode_libdir_flag_spec='-L$libdir'
6315           hardcode_libdir_separator=
6316           fi
6317         esac
6318         shared_flag='-shared'
6319       else
6320         # not using gcc
6321         if test "$host_cpu" = ia64; then
6322         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6323         # chokes on -Wl,-G. The following line is correct:
6324           shared_flag='-G'
6325         else
6326         if test "$aix_use_runtimelinking" = yes; then
6327             shared_flag='${wl}-G'
6328           else
6329             shared_flag='${wl}-bM:SRE'
6330         fi
6331         fi
6332       fi
6333
6334       # It seems that -bexpall does not export symbols beginning with
6335       # underscore (_), so it is better to generate a list of symbols to export.
6336       always_export_symbols=yes
6337       if test "$aix_use_runtimelinking" = yes; then
6338         # Warning - without using the other runtime loading flags (-brtl),
6339         # -berok will link without error, but may produce a broken library.
6340         allow_undefined_flag='-berok'
6341        # Determine the default libpath from the value encoded in an empty executable.
6342        cat >conftest.$ac_ext <<_ACEOF
6343 #line $LINENO "configure"
6344 /* confdefs.h.  */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h.  */
6349
6350 int
6351 main ()
6352 {
6353
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360   (eval $ac_link) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } &&
6364          { ac_try='test -s conftest$ac_exeext'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; }; then
6370
6371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6372 }'`
6373 # Check for a 64-bit object if we didn't find anything.
6374 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; }
6375 }'`; fi
6376 else
6377   echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 fi
6381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6383
6384        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6385         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"
6386        else
6387         if test "$host_cpu" = ia64; then
6388           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6389           allow_undefined_flag="-z nodefs"
6390           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"
6391         else
6392          # Determine the default libpath from the value encoded in an empty executable.
6393          cat >conftest.$ac_ext <<_ACEOF
6394 #line $LINENO "configure"
6395 /* confdefs.h.  */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h.  */
6400
6401 int
6402 main ()
6403 {
6404
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411   (eval $ac_link) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } &&
6415          { ac_try='test -s conftest$ac_exeext'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421
6422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6423 }'`
6424 # Check for a 64-bit object if we didn't find anything.
6425 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; }
6426 }'`; fi
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 fi
6432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6434
6435          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6436           # Warning - without using the other run time loading flags,
6437           # -berok will link without error, but may produce a broken library.
6438           no_undefined_flag=' ${wl}-bernotok'
6439           allow_undefined_flag=' ${wl}-berok'
6440           # -bexpall does not export symbols beginning with underscore (_)
6441           always_export_symbols=yes
6442           # Exported symbols can be pulled into shared objects from archives
6443           whole_archive_flag_spec=' '
6444           archive_cmds_need_lc=yes
6445           # This is similar to how AIX traditionally builds it's shared libraries.
6446           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'
6447         fi
6448       fi
6449       ;;
6450
6451     amigaos*)
6452       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)'
6453       hardcode_libdir_flag_spec='-L$libdir'
6454       hardcode_minus_L=yes
6455       # see comment about different semantics on the GNU ld section
6456       ld_shlibs=no
6457       ;;
6458
6459     bsdi4*)
6460       export_dynamic_flag_spec=-rdynamic
6461       ;;
6462
6463     cygwin* | mingw* | pw32*)
6464       # When not using gcc, we currently assume that we are using
6465       # Microsoft Visual C++.
6466       # hardcode_libdir_flag_spec is actually meaningless, as there is
6467       # no search path for DLLs.
6468       hardcode_libdir_flag_spec=' '
6469       allow_undefined_flag=unsupported
6470       # Tell ltmain to make .lib files, not .a files.
6471       libext=lib
6472       # Tell ltmain to make .dll files, not .so files.
6473       shrext=".dll"
6474       # FIXME: Setting linknames here is a bad hack.
6475       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6476       # The linker will automatically build a .lib file if we build a DLL.
6477       old_archive_From_new_cmds='true'
6478       # FIXME: Should let the user specify the lib program.
6479       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6480       fix_srcfile_path='`cygpath -w "$srcfile"`'
6481       enable_shared_with_static_runtimes=yes
6482       ;;
6483
6484     darwin* | rhapsody*)
6485     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6486       archive_cmds_need_lc=no
6487       case "$host_os" in
6488       rhapsody* | darwin1.[012])
6489         allow_undefined_flag='-undefined suppress'
6490         ;;
6491       *) # Darwin 1.3 on
6492         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6493         ;;
6494       esac
6495       # FIXME: Relying on posixy $() will cause problems for
6496       #        cross-compilation, but unfortunately the echo tests do not
6497       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6498       #        `"' quotes if we put them in here... so don't!
6499         lt_int_apple_cc_single_mod=no
6500         output_verbose_link_cmd='echo'
6501         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6502           lt_int_apple_cc_single_mod=yes
6503         fi
6504         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6505           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6506         else
6507         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'
6508       fi
6509       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6510       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6511         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6512           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}'
6513         else
6514           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}'
6515         fi
6516           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}'
6517       hardcode_direct=no
6518       hardcode_automatic=yes
6519       hardcode_shlibpath_var=unsupported
6520       whole_archive_flag_spec='-all_load $convenience'
6521       link_all_deplibs=yes
6522     fi
6523       ;;
6524
6525     dgux*)
6526       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6527       hardcode_libdir_flag_spec='-L$libdir'
6528       hardcode_shlibpath_var=no
6529       ;;
6530
6531     freebsd1*)
6532       ld_shlibs=no
6533       ;;
6534
6535     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6536     # support.  Future versions do this automatically, but an explicit c++rt0.o
6537     # does not break anything, and helps significantly (at the cost of a little
6538     # extra space).
6539     freebsd2.2*)
6540       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6541       hardcode_libdir_flag_spec='-R$libdir'
6542       hardcode_direct=yes
6543       hardcode_shlibpath_var=no
6544       ;;
6545
6546     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6547     freebsd2*)
6548       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6549       hardcode_direct=yes
6550       hardcode_minus_L=yes
6551       hardcode_shlibpath_var=no
6552       ;;
6553
6554     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6555     freebsd*)
6556       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6557       hardcode_libdir_flag_spec='-R$libdir'
6558       hardcode_direct=yes
6559       hardcode_shlibpath_var=no
6560       ;;
6561
6562     hpux9*)
6563       if test "$GCC" = yes; then
6564         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'
6565       else
6566         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'
6567       fi
6568       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6569       hardcode_libdir_separator=:
6570       hardcode_direct=yes
6571
6572       # hardcode_minus_L: Not really in the search PATH,
6573       # but as the default location of the library.
6574       hardcode_minus_L=yes
6575       export_dynamic_flag_spec='${wl}-E'
6576       ;;
6577
6578     hpux10* | hpux11*)
6579       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6580         case "$host_cpu" in
6581         hppa*64*|ia64*)
6582           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6583           ;;
6584         *)
6585           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6586           ;;
6587         esac
6588       else
6589         case "$host_cpu" in
6590         hppa*64*|ia64*)
6591           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6592           ;;
6593         *)
6594           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6595           ;;
6596         esac
6597       fi
6598       if test "$with_gnu_ld" = no; then
6599         case "$host_cpu" in
6600         hppa*64*)
6601           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6602           hardcode_libdir_flag_spec_ld='+b $libdir'
6603           hardcode_libdir_separator=:
6604           hardcode_direct=no
6605           hardcode_shlibpath_var=no
6606           ;;
6607         ia64*)
6608           hardcode_libdir_flag_spec='-L$libdir'
6609           hardcode_direct=no
6610           hardcode_shlibpath_var=no
6611
6612           # hardcode_minus_L: Not really in the search PATH,
6613           # but as the default location of the library.
6614           hardcode_minus_L=yes
6615           ;;
6616         *)
6617           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6618           hardcode_libdir_separator=:
6619           hardcode_direct=yes
6620           export_dynamic_flag_spec='${wl}-E'
6621
6622           # hardcode_minus_L: Not really in the search PATH,
6623           # but as the default location of the library.
6624           hardcode_minus_L=yes
6625           ;;
6626         esac
6627       fi
6628       ;;
6629
6630     irix5* | irix6* | nonstopux*)
6631       if test "$GCC" = yes; then
6632         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'
6633       else
6634         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'
6635         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6636       fi
6637       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6638       hardcode_libdir_separator=:
6639       link_all_deplibs=yes
6640       ;;
6641
6642     netbsd*)
6643       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6644         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6645       else
6646         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6647       fi
6648       hardcode_libdir_flag_spec='-R$libdir'
6649       hardcode_direct=yes
6650       hardcode_shlibpath_var=no
6651       ;;
6652
6653     newsos6)
6654       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6655       hardcode_direct=yes
6656       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6657       hardcode_libdir_separator=:
6658       hardcode_shlibpath_var=no
6659       ;;
6660
6661     openbsd*)
6662       hardcode_direct=yes
6663       hardcode_shlibpath_var=no
6664       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6665         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6666         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6667         export_dynamic_flag_spec='${wl}-E'
6668       else
6669        case $host_os in
6670          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6671            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6672            hardcode_libdir_flag_spec='-R$libdir'
6673            ;;
6674          *)
6675            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6676            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6677            ;;
6678        esac
6679       fi
6680       ;;
6681
6682     os2*)
6683       hardcode_libdir_flag_spec='-L$libdir'
6684       hardcode_minus_L=yes
6685       allow_undefined_flag=unsupported
6686       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'
6687       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6688       ;;
6689
6690     osf3*)
6691       if test "$GCC" = yes; then
6692         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6693         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'
6694       else
6695         allow_undefined_flag=' -expect_unresolved \*'
6696         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'
6697       fi
6698       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6699       hardcode_libdir_separator=:
6700       ;;
6701
6702     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6703       if test "$GCC" = yes; then
6704         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6705         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'
6706         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6707       else
6708         allow_undefined_flag=' -expect_unresolved \*'
6709         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'
6710         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6711         $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'
6712
6713         # Both c and cxx compiler support -rpath directly
6714         hardcode_libdir_flag_spec='-rpath $libdir'
6715       fi
6716       hardcode_libdir_separator=:
6717       ;;
6718
6719     sco3.2v5*)
6720       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6721       hardcode_shlibpath_var=no
6722       export_dynamic_flag_spec='${wl}-Bexport'
6723       runpath_var=LD_RUN_PATH
6724       hardcode_runpath_var=yes
6725       ;;
6726
6727     solaris*)
6728       no_undefined_flag=' -z text'
6729       if test "$GCC" = yes; then
6730         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6731         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6732           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6733       else
6734         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6735         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6736         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6737       fi
6738       hardcode_libdir_flag_spec='-R$libdir'
6739       hardcode_shlibpath_var=no
6740       case $host_os in
6741       solaris2.[0-5] | solaris2.[0-5].*) ;;
6742       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6743         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6744       esac
6745       link_all_deplibs=yes
6746       ;;
6747
6748     sunos4*)
6749       if test "x$host_vendor" = xsequent; then
6750         # Use $CC to link under sequent, because it throws in some extra .o
6751         # files that make .init and .fini sections work.
6752         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6753       else
6754         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6755       fi
6756       hardcode_libdir_flag_spec='-L$libdir'
6757       hardcode_direct=yes
6758       hardcode_minus_L=yes
6759       hardcode_shlibpath_var=no
6760       ;;
6761
6762     sysv4)
6763       case $host_vendor in
6764         sni)
6765           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6766           hardcode_direct=yes # is this really true???
6767         ;;
6768         siemens)
6769           ## LD is ld it makes a PLAMLIB
6770           ## CC just makes a GrossModule.
6771           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6772           reload_cmds='$CC -r -o $output$reload_objs'
6773           hardcode_direct=no
6774         ;;
6775         motorola)
6776           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6777           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6778         ;;
6779       esac
6780       runpath_var='LD_RUN_PATH'
6781       hardcode_shlibpath_var=no
6782       ;;
6783
6784     sysv4.3*)
6785       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6786       hardcode_shlibpath_var=no
6787       export_dynamic_flag_spec='-Bexport'
6788       ;;
6789
6790     sysv4*MP*)
6791       if test -d /usr/nec; then
6792         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6793         hardcode_shlibpath_var=no
6794         runpath_var=LD_RUN_PATH
6795         hardcode_runpath_var=yes
6796         ld_shlibs=yes
6797       fi
6798       ;;
6799
6800     sysv4.2uw2*)
6801       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6802       hardcode_direct=yes
6803       hardcode_minus_L=no
6804       hardcode_shlibpath_var=no
6805       hardcode_runpath_var=yes
6806       runpath_var=LD_RUN_PATH
6807       ;;
6808
6809    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6810       no_undefined_flag='${wl}-z ${wl}text'
6811       if test "$GCC" = yes; then
6812         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6813       else
6814         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6815       fi
6816       runpath_var='LD_RUN_PATH'
6817       hardcode_shlibpath_var=no
6818       ;;
6819
6820     sysv5*)
6821       no_undefined_flag=' -z text'
6822       # $CC -shared without GNU ld will not create a library from C++
6823       # object files and a static libstdc++, better avoid it by now
6824       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6825       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6826                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6827       hardcode_libdir_flag_spec=
6828       hardcode_shlibpath_var=no
6829       runpath_var='LD_RUN_PATH'
6830       ;;
6831
6832     uts4*)
6833       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6834       hardcode_libdir_flag_spec='-L$libdir'
6835       hardcode_shlibpath_var=no
6836       ;;
6837
6838     *)
6839       ld_shlibs=no
6840       ;;
6841     esac
6842   fi
6843
6844 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6845 echo "${ECHO_T}$ld_shlibs" >&6
6846 test "$ld_shlibs" = no && can_build_shared=no
6847
6848 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6849 if test "$GCC" = yes; then
6850   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6851 fi
6852
6853 #
6854 # Do we need to explicitly link libc?
6855 #
6856 case "x$archive_cmds_need_lc" in
6857 x|xyes)
6858   # Assume -lc should be added
6859   archive_cmds_need_lc=yes
6860
6861   if test "$enable_shared" = yes && test "$GCC" = yes; then
6862     case $archive_cmds in
6863     *'~'*)
6864       # FIXME: we may have to deal with multi-command sequences.
6865       ;;
6866     '$CC '*)
6867       # Test whether the compiler implicitly links with -lc since on some
6868       # systems, -lgcc has to come before -lc. If gcc already passes -lc
6869       # to ld, don't add -lc before -lgcc.
6870       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6871 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6872       $rm conftest*
6873       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6874
6875       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876   (eval $ac_compile) 2>&5
6877   ac_status=$?
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); } 2>conftest.err; then
6880         soname=conftest
6881         lib=conftest
6882         libobjs=conftest.$ac_objext
6883         deplibs=
6884         wl=$lt_prog_compiler_wl
6885         compiler_flags=-v
6886         linker_flags=-v
6887         verstring=
6888         output_objdir=.
6889         libname=conftest
6890         lt_save_allow_undefined_flag=$allow_undefined_flag
6891         allow_undefined_flag=
6892         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6893   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }
6897         then
6898           archive_cmds_need_lc=no
6899         else
6900           archive_cmds_need_lc=yes
6901         fi
6902         allow_undefined_flag=$lt_save_allow_undefined_flag
6903       else
6904         cat conftest.err 1>&5
6905       fi
6906       $rm conftest*
6907       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6908 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6909       ;;
6910     esac
6911   fi
6912   ;;
6913 esac
6914
6915 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6917 hardcode_action=
6918 if test -n "$hardcode_libdir_flag_spec" || \
6919    test -n "$runpath_var " || \
6920    test "X$hardcode_automatic"="Xyes" ; then
6921
6922   # We can hardcode non-existant directories.
6923   if test "$hardcode_direct" != no &&
6924      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6925      # have to relink, otherwise we might link with an installed library
6926      # when we should be linking with a yet-to-be-installed one
6927      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6928      test "$hardcode_minus_L" != no; then
6929     # Linking always hardcodes the temporary library directory.
6930     hardcode_action=relink
6931   else
6932     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6933     hardcode_action=immediate
6934   fi
6935 else
6936   # We cannot hardcode anything, or else we can only hardcode existing
6937   # directories.
6938   hardcode_action=unsupported
6939 fi
6940 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6941 echo "${ECHO_T}$hardcode_action" >&6
6942
6943 if test "$hardcode_action" = relink; then
6944   # Fast installation is not supported
6945   enable_fast_install=no
6946 elif test "$shlibpath_overrides_runpath" = yes ||
6947      test "$enable_shared" = no; then
6948   # Fast installation is not necessary
6949   enable_fast_install=needless
6950 fi
6951
6952 striplib=
6953 old_striplib=
6954 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6955 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6956 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6957   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6958   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6959   echo "$as_me:$LINENO: result: yes" >&5
6960 echo "${ECHO_T}yes" >&6
6961 else
6962 # FIXME - insert some real tests, host_os isn't really good enough
6963   case $host_os in
6964    darwin*)
6965        if test -n "$STRIP" ; then
6966          striplib="$STRIP -x"
6967          echo "$as_me:$LINENO: result: yes" >&5
6968 echo "${ECHO_T}yes" >&6
6969        else
6970   echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6
6972 fi
6973        ;;
6974    *)
6975   echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6
6977     ;;
6978   esac
6979 fi
6980
6981 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6982 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6983 library_names_spec=
6984 libname_spec='lib$name'
6985 soname_spec=
6986 shrext=".so"
6987 postinstall_cmds=
6988 postuninstall_cmds=
6989 finish_cmds=
6990 finish_eval=
6991 shlibpath_var=
6992 shlibpath_overrides_runpath=unknown
6993 version_type=none
6994 dynamic_linker="$host_os ld.so"
6995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6996 if test "$GCC" = yes; then
6997   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6998   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6999     # if the path contains ";" then we assume it to be the separator
7000     # otherwise default to the standard path separator (i.e. ":") - it is
7001     # assumed that no part of a normal pathname contains ";" but that should
7002     # okay in the real world where ";" in dirpaths is itself problematic.
7003     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7004   else
7005     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7006   fi
7007 else
7008   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7009 fi
7010 need_lib_prefix=unknown
7011 hardcode_into_libs=no
7012
7013 # when you set need_version to no, make sure it does not cause -set_version
7014 # flags to be left without arguments
7015 need_version=unknown
7016
7017 case $host_os in
7018 aix3*)
7019   version_type=linux
7020   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7021   shlibpath_var=LIBPATH
7022
7023   # AIX 3 has no versioning support, so we append a major version to the name.
7024   soname_spec='${libname}${release}${shared_ext}$major'
7025   ;;
7026
7027 aix4* | aix5*)
7028   version_type=linux
7029   need_lib_prefix=no
7030   need_version=no
7031   hardcode_into_libs=yes
7032   if test "$host_cpu" = ia64; then
7033     # AIX 5 supports IA64
7034     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7035     shlibpath_var=LD_LIBRARY_PATH
7036   else
7037     # With GCC up to 2.95.x, collect2 would create an import file
7038     # for dependence libraries.  The import file would start with
7039     # the line `#! .'.  This would cause the generated library to
7040     # depend on `.', always an invalid library.  This was fixed in
7041     # development snapshots of GCC prior to 3.0.
7042     case $host_os in
7043       aix4 | aix4.[01] | aix4.[01].*)
7044       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7045            echo ' yes '
7046            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7047         :
7048       else
7049         can_build_shared=no
7050       fi
7051       ;;
7052     esac
7053     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7054     # soname into executable. Probably we can add versioning support to
7055     # collect2, so additional links can be useful in future.
7056     if test "$aix_use_runtimelinking" = yes; then
7057       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7058       # instead of lib<name>.a to let people know that these are not
7059       # typical AIX shared libraries.
7060       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7061     else
7062       # We preserve .a as extension for shared libraries through AIX4.2
7063       # and later when we are not doing run time linking.
7064       library_names_spec='${libname}${release}.a $libname.a'
7065       soname_spec='${libname}${release}${shared_ext}$major'
7066     fi
7067     shlibpath_var=LIBPATH
7068   fi
7069   ;;
7070
7071 amigaos*)
7072   library_names_spec='$libname.ixlibrary $libname.a'
7073   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7074   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'
7075   ;;
7076
7077 beos*)
7078   library_names_spec='${libname}${shared_ext}'
7079   dynamic_linker="$host_os ld.so"
7080   shlibpath_var=LIBRARY_PATH
7081   ;;
7082
7083 bsdi4*)
7084   version_type=linux
7085   need_version=no
7086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7087   soname_spec='${libname}${release}${shared_ext}$major'
7088   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7089   shlibpath_var=LD_LIBRARY_PATH
7090   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7091   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7092   # the default ld.so.conf also contains /usr/contrib/lib and
7093   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7094   # libtool to hard-code these into programs
7095   ;;
7096
7097 cygwin* | mingw* | pw32*)
7098   version_type=windows
7099   shrext=".dll"
7100   need_version=no
7101   need_lib_prefix=no
7102
7103   case $GCC,$host_os in
7104   yes,cygwin* | yes,mingw* | yes,pw32*)
7105     library_names_spec='$libname.dll.a'
7106     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7107     postinstall_cmds='base_file=`basename \${file}`~
7108       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7109       dldir=$destdir/`dirname \$dlpath`~
7110       test -d \$dldir || mkdir -p \$dldir~
7111       $install_prog $dir/$dlname \$dldir/$dlname'
7112     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7113       dlpath=$dir/\$dldll~
7114        $rm \$dlpath'
7115     shlibpath_overrides_runpath=yes
7116
7117     case $host_os in
7118     cygwin*)
7119       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7120       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7121       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7122       ;;
7123     mingw*)
7124       # MinGW DLLs use traditional 'lib' prefix
7125       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7126       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7127       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7128         # It is most probably a Windows format PATH printed by
7129         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7130         # path with ; separators, and with drive letters. We can handle the
7131         # drive letters (cygwin fileutils understands them), so leave them,
7132         # especially as we might pass files found there to a mingw objdump,
7133         # which wouldn't understand a cygwinified path. Ahh.
7134         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7135       else
7136         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7137       fi
7138       ;;
7139     pw32*)
7140       # pw32 DLLs use 'pw' prefix rather than 'lib'
7141       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7142       ;;
7143     esac
7144     ;;
7145
7146   *)
7147     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7148     ;;
7149   esac
7150   dynamic_linker='Win32 ld.exe'
7151   # FIXME: first we should search . and the directory the executable is in
7152   shlibpath_var=PATH
7153   ;;
7154
7155 darwin* | rhapsody*)
7156   dynamic_linker="$host_os dyld"
7157   version_type=darwin
7158   need_lib_prefix=no
7159   need_version=no
7160   # FIXME: Relying on posixy $() will cause problems for
7161   #        cross-compilation, but unfortunately the echo tests do not
7162   #        yet detect zsh echo's removal of \ escapes.
7163   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7164   soname_spec='${libname}${release}${major}$shared_ext'
7165   shlibpath_overrides_runpath=yes
7166   shlibpath_var=DYLD_LIBRARY_PATH
7167   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7168   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7169   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7170   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"`
7171   fi
7172   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7173   ;;
7174
7175 dgux*)
7176   version_type=linux
7177   need_lib_prefix=no
7178   need_version=no
7179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7180   soname_spec='${libname}${release}${shared_ext}$major'
7181   shlibpath_var=LD_LIBRARY_PATH
7182   ;;
7183
7184 freebsd1*)
7185   dynamic_linker=no
7186   ;;
7187
7188 freebsd*)
7189   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7190   version_type=freebsd-$objformat
7191   case $version_type in
7192     freebsd-elf*)
7193       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7194       need_version=no
7195       need_lib_prefix=no
7196       ;;
7197     freebsd-*)
7198       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7199       need_version=yes
7200       ;;
7201   esac
7202   shlibpath_var=LD_LIBRARY_PATH
7203   case $host_os in
7204   freebsd2*)
7205     shlibpath_overrides_runpath=yes
7206     ;;
7207   freebsd3.01* | freebsdelf3.01*)
7208     shlibpath_overrides_runpath=yes
7209     hardcode_into_libs=yes
7210     ;;
7211   *) # from 3.2 on
7212     shlibpath_overrides_runpath=no
7213     hardcode_into_libs=yes
7214     ;;
7215   esac
7216   ;;
7217
7218 gnu*)
7219   version_type=linux
7220   need_lib_prefix=no
7221   need_version=no
7222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7223   soname_spec='${libname}${release}${shared_ext}$major'
7224   shlibpath_var=LD_LIBRARY_PATH
7225   hardcode_into_libs=yes
7226   ;;
7227
7228 hpux9* | hpux10* | hpux11*)
7229   # Give a soname corresponding to the major version so that dld.sl refuses to
7230   # link against other versions.
7231   version_type=sunos
7232   need_lib_prefix=no
7233   need_version=no
7234   case "$host_cpu" in
7235   ia64*)
7236     shrext='.so'
7237     hardcode_into_libs=yes
7238     dynamic_linker="$host_os dld.so"
7239     shlibpath_var=LD_LIBRARY_PATH
7240     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7241     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7242     soname_spec='${libname}${release}${shared_ext}$major'
7243     if test "X$HPUX_IA64_MODE" = X32; then
7244       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7245     else
7246       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7247     fi
7248     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7249     ;;
7250    hppa*64*)
7251      shrext='.sl'
7252      hardcode_into_libs=yes
7253      dynamic_linker="$host_os dld.sl"
7254      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7255      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7256      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7257      soname_spec='${libname}${release}${shared_ext}$major'
7258      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7259      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7260      ;;
7261    *)
7262     shrext='.sl'
7263     dynamic_linker="$host_os dld.sl"
7264     shlibpath_var=SHLIB_PATH
7265     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7267     soname_spec='${libname}${release}${shared_ext}$major'
7268     ;;
7269   esac
7270   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7271   postinstall_cmds='chmod 555 $lib'
7272   ;;
7273
7274 irix5* | irix6* | nonstopux*)
7275   case $host_os in
7276     nonstopux*) version_type=nonstopux ;;
7277     *)
7278         if test "$lt_cv_prog_gnu_ld" = yes; then
7279                 version_type=linux
7280         else
7281                 version_type=irix
7282         fi ;;
7283   esac
7284   need_lib_prefix=no
7285   need_version=no
7286   soname_spec='${libname}${release}${shared_ext}$major'
7287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7288   case $host_os in
7289   irix5* | nonstopux*)
7290     libsuff= shlibsuff=
7291     ;;
7292   *)
7293     case $LD in # libtool.m4 will add one of these switches to LD
7294     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7295       libsuff= shlibsuff= libmagic=32-bit;;
7296     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7297       libsuff=32 shlibsuff=N32 libmagic=N32;;
7298     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7299       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7300     *) libsuff= shlibsuff= libmagic=never-match;;
7301     esac
7302     ;;
7303   esac
7304   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7305   shlibpath_overrides_runpath=no
7306   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7307   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7308   hardcode_into_libs=yes
7309   ;;
7310
7311 # No shared lib support for Linux oldld, aout, or coff.
7312 linux*oldld* | linux*aout* | linux*coff*)
7313   dynamic_linker=no
7314   ;;
7315
7316 # This must be Linux ELF.
7317 linux*)
7318   version_type=linux
7319   need_lib_prefix=no
7320   need_version=no
7321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7322   soname_spec='${libname}${release}${shared_ext}$major'
7323   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7324   shlibpath_var=LD_LIBRARY_PATH
7325   shlibpath_overrides_runpath=no
7326   # This implies no fast_install, which is unacceptable.
7327   # Some rework will be needed to allow for fast_install
7328   # before this can be enabled.
7329   hardcode_into_libs=yes
7330
7331   # We used to test for /lib/ld.so.1 and disable shared libraries on
7332   # powerpc, because MkLinux only supported shared libraries with the
7333   # GNU dynamic linker.  Since this was broken with cross compilers,
7334   # most powerpc-linux boxes support dynamic linking these days and
7335   # people can always --disable-shared, the test was removed, and we
7336   # assume the GNU/Linux dynamic linker is in use.
7337   dynamic_linker='GNU/Linux ld.so'
7338   ;;
7339
7340 netbsd*)
7341   version_type=sunos
7342   need_lib_prefix=no
7343   need_version=no
7344   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7346     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7347     dynamic_linker='NetBSD (a.out) ld.so'
7348   else
7349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7350     soname_spec='${libname}${release}${shared_ext}$major'
7351     dynamic_linker='NetBSD ld.elf_so'
7352   fi
7353   shlibpath_var=LD_LIBRARY_PATH
7354   shlibpath_overrides_runpath=yes
7355   hardcode_into_libs=yes
7356   ;;
7357
7358 newsos6)
7359   version_type=linux
7360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7361   shlibpath_var=LD_LIBRARY_PATH
7362   shlibpath_overrides_runpath=yes
7363   ;;
7364
7365 nto-qnx)
7366   version_type=linux
7367   need_lib_prefix=no
7368   need_version=no
7369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7370   soname_spec='${libname}${release}${shared_ext}$major'
7371   shlibpath_var=LD_LIBRARY_PATH
7372   shlibpath_overrides_runpath=yes
7373   ;;
7374
7375 openbsd*)
7376   version_type=sunos
7377   need_lib_prefix=no
7378   need_version=no
7379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7380   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7381   shlibpath_var=LD_LIBRARY_PATH
7382   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7383     case $host_os in
7384       openbsd2.[89] | openbsd2.[89].*)
7385         shlibpath_overrides_runpath=no
7386         ;;
7387       *)
7388         shlibpath_overrides_runpath=yes
7389         ;;
7390       esac
7391   else
7392     shlibpath_overrides_runpath=yes
7393   fi
7394   ;;
7395
7396 os2*)
7397   libname_spec='$name'
7398   shrext=".dll"
7399   need_lib_prefix=no
7400   library_names_spec='$libname${shared_ext} $libname.a'
7401   dynamic_linker='OS/2 ld.exe'
7402   shlibpath_var=LIBPATH
7403   ;;
7404
7405 osf3* | osf4* | osf5*)
7406   version_type=osf
7407   need_lib_prefix=no
7408   need_version=no
7409   soname_spec='${libname}${release}${shared_ext}$major'
7410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7411   shlibpath_var=LD_LIBRARY_PATH
7412   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7413   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7414   ;;
7415
7416 sco3.2v5*)
7417   version_type=osf
7418   soname_spec='${libname}${release}${shared_ext}$major'
7419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7420   shlibpath_var=LD_LIBRARY_PATH
7421   ;;
7422
7423 solaris*)
7424   version_type=linux
7425   need_lib_prefix=no
7426   need_version=no
7427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7428   soname_spec='${libname}${release}${shared_ext}$major'
7429   shlibpath_var=LD_LIBRARY_PATH
7430   shlibpath_overrides_runpath=yes
7431   hardcode_into_libs=yes
7432   # ldd complains unless libraries are executable
7433   postinstall_cmds='chmod +x $lib'
7434   ;;
7435
7436 sunos4*)
7437   version_type=sunos
7438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7439   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7440   shlibpath_var=LD_LIBRARY_PATH
7441   shlibpath_overrides_runpath=yes
7442   if test "$with_gnu_ld" = yes; then
7443     need_lib_prefix=no
7444   fi
7445   need_version=yes
7446   ;;
7447
7448 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7449   version_type=linux
7450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451   soname_spec='${libname}${release}${shared_ext}$major'
7452   shlibpath_var=LD_LIBRARY_PATH
7453   case $host_vendor in
7454     sni)
7455       shlibpath_overrides_runpath=no
7456       need_lib_prefix=no
7457       export_dynamic_flag_spec='${wl}-Blargedynsym'
7458       runpath_var=LD_RUN_PATH
7459       ;;
7460     siemens)
7461       need_lib_prefix=no
7462       ;;
7463     motorola)
7464       need_lib_prefix=no
7465       need_version=no
7466       shlibpath_overrides_runpath=no
7467       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7468       ;;
7469   esac
7470   ;;
7471
7472 sysv4*MP*)
7473   if test -d /usr/nec ;then
7474     version_type=linux
7475     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7476     soname_spec='$libname${shared_ext}.$major'
7477     shlibpath_var=LD_LIBRARY_PATH
7478   fi
7479   ;;
7480
7481 uts4*)
7482   version_type=linux
7483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7484   soname_spec='${libname}${release}${shared_ext}$major'
7485   shlibpath_var=LD_LIBRARY_PATH
7486   ;;
7487
7488 *)
7489   dynamic_linker=no
7490   ;;
7491 esac
7492 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7493 echo "${ECHO_T}$dynamic_linker" >&6
7494 test "$dynamic_linker" = no && can_build_shared=no
7495
7496 if test "x$enable_dlopen" != xyes; then
7497   enable_dlopen=unknown
7498   enable_dlopen_self=unknown
7499   enable_dlopen_self_static=unknown
7500 else
7501   lt_cv_dlopen=no
7502   lt_cv_dlopen_libs=
7503
7504   case $host_os in
7505   beos*)
7506     lt_cv_dlopen="load_add_on"
7507     lt_cv_dlopen_libs=
7508     lt_cv_dlopen_self=yes
7509     ;;
7510
7511   mingw* | pw32*)
7512     lt_cv_dlopen="LoadLibrary"
7513     lt_cv_dlopen_libs=
7514    ;;
7515
7516   cygwin*)
7517     lt_cv_dlopen="dlopen"
7518     lt_cv_dlopen_libs=
7519    ;;
7520
7521   darwin*)
7522   # if libdl is installed we need to link against it
7523     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7524 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7525 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528   ac_check_lib_save_LIBS=$LIBS
7529 LIBS="-ldl  $LIBS"
7530 cat >conftest.$ac_ext <<_ACEOF
7531 #line $LINENO "configure"
7532 /* confdefs.h.  */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h.  */
7537
7538 /* Override any gcc2 internal prototype to avoid an error.  */
7539 #ifdef __cplusplus
7540 extern "C"
7541 #endif
7542 /* We use char because int might match the return type of a gcc2
7543    builtin and then its argument prototype would still apply.  */
7544 char dlopen ();
7545 int
7546 main ()
7547 {
7548 dlopen ();
7549   ;
7550   return 0;
7551 }
7552 _ACEOF
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555   (eval $ac_link) 2>&5
7556   ac_status=$?
7557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); } &&
7559          { ac_try='test -s conftest$ac_exeext'
7560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561   (eval $ac_try) 2>&5
7562   ac_status=$?
7563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564   (exit $ac_status); }; }; then
7565   ac_cv_lib_dl_dlopen=yes
7566 else
7567   echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7569
7570 ac_cv_lib_dl_dlopen=no
7571 fi
7572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7574 fi
7575 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7576 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7577 if test $ac_cv_lib_dl_dlopen = yes; then
7578   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7579 else
7580
7581     lt_cv_dlopen="dyld"
7582     lt_cv_dlopen_libs=
7583     lt_cv_dlopen_self=yes
7584
7585 fi
7586
7587    ;;
7588
7589   *)
7590     echo "$as_me:$LINENO: checking for shl_load" >&5
7591 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7592 if test "${ac_cv_func_shl_load+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   cat >conftest.$ac_ext <<_ACEOF
7596 #line $LINENO "configure"
7597 /* confdefs.h.  */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h.  */
7602 /* System header to define __stub macros and hopefully few prototypes,
7603     which can conflict with char shl_load (); below.
7604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7605     <limits.h> exists even on freestanding compilers.  */
7606 #ifdef __STDC__
7607 # include <limits.h>
7608 #else
7609 # include <assert.h>
7610 #endif
7611 /* Override any gcc2 internal prototype to avoid an error.  */
7612 #ifdef __cplusplus
7613 extern "C"
7614 {
7615 #endif
7616 /* We use char because int might match the return type of a gcc2
7617    builtin and then its argument prototype would still apply.  */
7618 char shl_load ();
7619 /* The GNU C library defines this for functions which it implements
7620     to always fail with ENOSYS.  Some functions are actually named
7621     something starting with __ and the normal name is an alias.  */
7622 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7623 choke me
7624 #else
7625 char (*f) () = shl_load;
7626 #endif
7627 #ifdef __cplusplus
7628 }
7629 #endif
7630
7631 int
7632 main ()
7633 {
7634 return f != shl_load;
7635   ;
7636   return 0;
7637 }
7638 _ACEOF
7639 rm -f conftest.$ac_objext conftest$ac_exeext
7640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7641   (eval $ac_link) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); } &&
7645          { ac_try='test -s conftest$ac_exeext'
7646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647   (eval $ac_try) 2>&5
7648   ac_status=$?
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); }; }; then
7651   ac_cv_func_shl_load=yes
7652 else
7653   echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7655
7656 ac_cv_func_shl_load=no
7657 fi
7658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7659 fi
7660 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7661 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7662 if test $ac_cv_func_shl_load = yes; then
7663   lt_cv_dlopen="shl_load"
7664 else
7665   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7666 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7667 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   ac_check_lib_save_LIBS=$LIBS
7671 LIBS="-ldld  $LIBS"
7672 cat >conftest.$ac_ext <<_ACEOF
7673 #line $LINENO "configure"
7674 /* confdefs.h.  */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h.  */
7679
7680 /* Override any gcc2 internal prototype to avoid an error.  */
7681 #ifdef __cplusplus
7682 extern "C"
7683 #endif
7684 /* We use char because int might match the return type of a gcc2
7685    builtin and then its argument prototype would still apply.  */
7686 char shl_load ();
7687 int
7688 main ()
7689 {
7690 shl_load ();
7691   ;
7692   return 0;
7693 }
7694 _ACEOF
7695 rm -f conftest.$ac_objext conftest$ac_exeext
7696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7697   (eval $ac_link) 2>&5
7698   ac_status=$?
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); } &&
7701          { ac_try='test -s conftest$ac_exeext'
7702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703   (eval $ac_try) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); }; }; then
7707   ac_cv_lib_dld_shl_load=yes
7708 else
7709   echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7711
7712 ac_cv_lib_dld_shl_load=no
7713 fi
7714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7715 LIBS=$ac_check_lib_save_LIBS
7716 fi
7717 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7718 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7719 if test $ac_cv_lib_dld_shl_load = yes; then
7720   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7721 else
7722   echo "$as_me:$LINENO: checking for dlopen" >&5
7723 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7724 if test "${ac_cv_func_dlopen+set}" = set; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 /* confdefs.h.  */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h.  */
7734 /* System header to define __stub macros and hopefully few prototypes,
7735     which can conflict with char dlopen (); below.
7736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7737     <limits.h> exists even on freestanding compilers.  */
7738 #ifdef __STDC__
7739 # include <limits.h>
7740 #else
7741 # include <assert.h>
7742 #endif
7743 /* Override any gcc2 internal prototype to avoid an error.  */
7744 #ifdef __cplusplus
7745 extern "C"
7746 {
7747 #endif
7748 /* We use char because int might match the return type of a gcc2
7749    builtin and then its argument prototype would still apply.  */
7750 char dlopen ();
7751 /* The GNU C library defines this for functions which it implements
7752     to always fail with ENOSYS.  Some functions are actually named
7753     something starting with __ and the normal name is an alias.  */
7754 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7755 choke me
7756 #else
7757 char (*f) () = dlopen;
7758 #endif
7759 #ifdef __cplusplus
7760 }
7761 #endif
7762
7763 int
7764 main ()
7765 {
7766 return f != dlopen;
7767   ;
7768   return 0;
7769 }
7770 _ACEOF
7771 rm -f conftest.$ac_objext conftest$ac_exeext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773   (eval $ac_link) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } &&
7777          { ac_try='test -s conftest$ac_exeext'
7778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779   (eval $ac_try) 2>&5
7780   ac_status=$?
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); }; }; then
7783   ac_cv_func_dlopen=yes
7784 else
7785   echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7787
7788 ac_cv_func_dlopen=no
7789 fi
7790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7791 fi
7792 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7793 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7794 if test $ac_cv_func_dlopen = yes; then
7795   lt_cv_dlopen="dlopen"
7796 else
7797   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7798 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   ac_check_lib_save_LIBS=$LIBS
7803 LIBS="-ldl  $LIBS"
7804 cat >conftest.$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811
7812 /* Override any gcc2 internal prototype to avoid an error.  */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 /* We use char because int might match the return type of a gcc2
7817    builtin and then its argument prototype would still apply.  */
7818 char dlopen ();
7819 int
7820 main ()
7821 {
7822 dlopen ();
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829   (eval $ac_link) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -s conftest$ac_exeext'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; }; then
7839   ac_cv_lib_dl_dlopen=yes
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 ac_cv_lib_dl_dlopen=no
7845 fi
7846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7847 LIBS=$ac_check_lib_save_LIBS
7848 fi
7849 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7850 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7851 if test $ac_cv_lib_dl_dlopen = yes; then
7852   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7853 else
7854   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7855 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7856 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-lsvld  $LIBS"
7861 cat >conftest.$ac_ext <<_ACEOF
7862 #line $LINENO "configure"
7863 /* confdefs.h.  */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h.  */
7868
7869 /* Override any gcc2 internal prototype to avoid an error.  */
7870 #ifdef __cplusplus
7871 extern "C"
7872 #endif
7873 /* We use char because int might match the return type of a gcc2
7874    builtin and then its argument prototype would still apply.  */
7875 char dlopen ();
7876 int
7877 main ()
7878 {
7879 dlopen ();
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886   (eval $ac_link) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } &&
7890          { ac_try='test -s conftest$ac_exeext'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   ac_cv_lib_svld_dlopen=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 ac_cv_lib_svld_dlopen=no
7902 fi
7903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7904 LIBS=$ac_check_lib_save_LIBS
7905 fi
7906 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7907 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7908 if test $ac_cv_lib_svld_dlopen = yes; then
7909   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7910 else
7911   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7912 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7913 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   ac_check_lib_save_LIBS=$LIBS
7917 LIBS="-ldld  $LIBS"
7918 cat >conftest.$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925
7926 /* Override any gcc2 internal prototype to avoid an error.  */
7927 #ifdef __cplusplus
7928 extern "C"
7929 #endif
7930 /* We use char because int might match the return type of a gcc2
7931    builtin and then its argument prototype would still apply.  */
7932 char dld_link ();
7933 int
7934 main ()
7935 {
7936 dld_link ();
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943   (eval $ac_link) 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); } &&
7947          { ac_try='test -s conftest$ac_exeext'
7948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949   (eval $ac_try) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; }; then
7953   ac_cv_lib_dld_dld_link=yes
7954 else
7955   echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7957
7958 ac_cv_lib_dld_dld_link=no
7959 fi
7960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7961 LIBS=$ac_check_lib_save_LIBS
7962 fi
7963 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7964 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7965 if test $ac_cv_lib_dld_dld_link = yes; then
7966   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7967 fi
7968
7969
7970 fi
7971
7972
7973 fi
7974
7975
7976 fi
7977
7978
7979 fi
7980
7981
7982 fi
7983
7984     ;;
7985   esac
7986
7987   if test "x$lt_cv_dlopen" != xno; then
7988     enable_dlopen=yes
7989   else
7990     enable_dlopen=no
7991   fi
7992
7993   case $lt_cv_dlopen in
7994   dlopen)
7995     save_CPPFLAGS="$CPPFLAGS"
7996     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7997
7998     save_LDFLAGS="$LDFLAGS"
7999     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8000
8001     save_LIBS="$LIBS"
8002     LIBS="$lt_cv_dlopen_libs $LIBS"
8003
8004     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8005 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8006 if test "${lt_cv_dlopen_self+set}" = set; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009           if test "$cross_compiling" = yes; then :
8010   lt_cv_dlopen_self=cross
8011 else
8012   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8013   lt_status=$lt_dlunknown
8014   cat > conftest.$ac_ext <<EOF
8015 #line 8015 "configure"
8016 #include "confdefs.h"
8017
8018 #if HAVE_DLFCN_H
8019 #include <dlfcn.h>
8020 #endif
8021
8022 #include <stdio.h>
8023
8024 #ifdef RTLD_GLOBAL
8025 #  define LT_DLGLOBAL           RTLD_GLOBAL
8026 #else
8027 #  ifdef DL_GLOBAL
8028 #    define LT_DLGLOBAL         DL_GLOBAL
8029 #  else
8030 #    define LT_DLGLOBAL         0
8031 #  endif
8032 #endif
8033
8034 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8035    find out it does not work in some platform. */
8036 #ifndef LT_DLLAZY_OR_NOW
8037 #  ifdef RTLD_LAZY
8038 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8039 #  else
8040 #    ifdef DL_LAZY
8041 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8042 #    else
8043 #      ifdef RTLD_NOW
8044 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8045 #      else
8046 #        ifdef DL_NOW
8047 #          define LT_DLLAZY_OR_NOW      DL_NOW
8048 #        else
8049 #          define LT_DLLAZY_OR_NOW      0
8050 #        endif
8051 #      endif
8052 #    endif
8053 #  endif
8054 #endif
8055
8056 #ifdef __cplusplus
8057 extern "C" void exit (int);
8058 #endif
8059
8060 void fnord() { int i=42;}
8061 int main ()
8062 {
8063   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8064   int status = $lt_dlunknown;
8065
8066   if (self)
8067     {
8068       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8069       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8070       /* dlclose (self); */
8071     }
8072
8073     exit (status);
8074 }
8075 EOF
8076   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077   (eval $ac_link) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8081     (./conftest; exit; ) 2>/dev/null
8082     lt_status=$?
8083     case x$lt_status in
8084       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8085       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8086       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8087     esac
8088   else :
8089     # compilation failed
8090     lt_cv_dlopen_self=no
8091   fi
8092 fi
8093 rm -fr conftest*
8094
8095
8096 fi
8097 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8098 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8099
8100     if test "x$lt_cv_dlopen_self" = xyes; then
8101       LDFLAGS="$LDFLAGS $link_static_flag"
8102       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8103 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8104 if test "${lt_cv_dlopen_self_static+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107           if test "$cross_compiling" = yes; then :
8108   lt_cv_dlopen_self_static=cross
8109 else
8110   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8111   lt_status=$lt_dlunknown
8112   cat > conftest.$ac_ext <<EOF
8113 #line 8113 "configure"
8114 #include "confdefs.h"
8115
8116 #if HAVE_DLFCN_H
8117 #include <dlfcn.h>
8118 #endif
8119
8120 #include <stdio.h>
8121
8122 #ifdef RTLD_GLOBAL
8123 #  define LT_DLGLOBAL           RTLD_GLOBAL
8124 #else
8125 #  ifdef DL_GLOBAL
8126 #    define LT_DLGLOBAL         DL_GLOBAL
8127 #  else
8128 #    define LT_DLGLOBAL         0
8129 #  endif
8130 #endif
8131
8132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8133    find out it does not work in some platform. */
8134 #ifndef LT_DLLAZY_OR_NOW
8135 #  ifdef RTLD_LAZY
8136 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8137 #  else
8138 #    ifdef DL_LAZY
8139 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8140 #    else
8141 #      ifdef RTLD_NOW
8142 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8143 #      else
8144 #        ifdef DL_NOW
8145 #          define LT_DLLAZY_OR_NOW      DL_NOW
8146 #        else
8147 #          define LT_DLLAZY_OR_NOW      0
8148 #        endif
8149 #      endif
8150 #    endif
8151 #  endif
8152 #endif
8153
8154 #ifdef __cplusplus
8155 extern "C" void exit (int);
8156 #endif
8157
8158 void fnord() { int i=42;}
8159 int main ()
8160 {
8161   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8162   int status = $lt_dlunknown;
8163
8164   if (self)
8165     {
8166       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8167       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8168       /* dlclose (self); */
8169     }
8170
8171     exit (status);
8172 }
8173 EOF
8174   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175   (eval $ac_link) 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8179     (./conftest; exit; ) 2>/dev/null
8180     lt_status=$?
8181     case x$lt_status in
8182       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8183       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8184       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8185     esac
8186   else :
8187     # compilation failed
8188     lt_cv_dlopen_self_static=no
8189   fi
8190 fi
8191 rm -fr conftest*
8192
8193
8194 fi
8195 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8196 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8197     fi
8198
8199     CPPFLAGS="$save_CPPFLAGS"
8200     LDFLAGS="$save_LDFLAGS"
8201     LIBS="$save_LIBS"
8202     ;;
8203   esac
8204
8205   case $lt_cv_dlopen_self in
8206   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8207   *) enable_dlopen_self=unknown ;;
8208   esac
8209
8210   case $lt_cv_dlopen_self_static in
8211   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8212   *) enable_dlopen_self_static=unknown ;;
8213   esac
8214 fi
8215
8216
8217 # Report which librarie types wil actually be built
8218 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8219 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8220 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8221 echo "${ECHO_T}$can_build_shared" >&6
8222
8223 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8224 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8225 test "$can_build_shared" = "no" && enable_shared=no
8226
8227 # On AIX, shared libraries and static libraries use the same namespace, and
8228 # are all built from PIC.
8229 case "$host_os" in
8230 aix3*)
8231   test "$enable_shared" = yes && enable_static=no
8232   if test -n "$RANLIB"; then
8233     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8234     postinstall_cmds='$RANLIB $lib'
8235   fi
8236   ;;
8237
8238 aix4*)
8239   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8240     test "$enable_shared" = yes && enable_static=no
8241   fi
8242   ;;
8243   darwin* | rhapsody*)
8244   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8245     archive_cmds_need_lc=no
8246     case "$host_os" in
8247     rhapsody* | darwin1.[012])
8248       allow_undefined_flag='-undefined suppress'
8249       ;;
8250     *) # Darwin 1.3 on
8251       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8252       ;;
8253     esac
8254     # FIXME: Relying on posixy $() will cause problems for
8255     #        cross-compilation, but unfortunately the echo tests do not
8256     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8257     #          `"' quotes if we put them in here... so don't!
8258                 output_verbose_link_cmd='echo'
8259     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8260     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8261     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8262                   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}'
8263                   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}'
8264     hardcode_direct=no
8265     hardcode_automatic=yes
8266     hardcode_shlibpath_var=unsupported
8267     whole_archive_flag_spec='-all_load $convenience'
8268     link_all_deplibs=yes
8269     fi
8270     ;;
8271 esac
8272 echo "$as_me:$LINENO: result: $enable_shared" >&5
8273 echo "${ECHO_T}$enable_shared" >&6
8274
8275 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8276 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8277 # Make sure either enable_shared or enable_static is yes.
8278 test "$enable_shared" = yes || enable_static=yes
8279 echo "$as_me:$LINENO: result: $enable_static" >&5
8280 echo "${ECHO_T}$enable_static" >&6
8281
8282 # The else clause should only fire when bootstrapping the
8283 # libtool distribution, otherwise you forgot to ship ltmain.sh
8284 # with your package, and you will get complaints that there are
8285 # no rules to generate ltmain.sh.
8286 if test -f "$ltmain"; then
8287   # See if we are running on zsh, and set the options which allow our commands through
8288   # without removal of \ escapes.
8289   if test -n "${ZSH_VERSION+set}" ; then
8290     setopt NO_GLOB_SUBST
8291   fi
8292   # Now quote all the things that may contain metacharacters while being
8293   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8294   # variables and quote the copies for generation of the libtool script.
8295   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8296     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8297     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8298     deplibs_check_method reload_flag reload_cmds need_locks \
8299     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8300     lt_cv_sys_global_symbol_to_c_name_address \
8301     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8302     old_postinstall_cmds old_postuninstall_cmds \
8303     compiler \
8304     CC \
8305     LD \
8306     lt_prog_compiler_wl \
8307     lt_prog_compiler_pic \
8308     lt_prog_compiler_static \
8309     lt_prog_compiler_no_builtin_flag \
8310     export_dynamic_flag_spec \
8311     thread_safe_flag_spec \
8312     whole_archive_flag_spec \
8313     enable_shared_with_static_runtimes \
8314     old_archive_cmds \
8315     old_archive_from_new_cmds \
8316     predep_objects \
8317     postdep_objects \
8318     predeps \
8319     postdeps \
8320     compiler_lib_search_path \
8321     archive_cmds \
8322     archive_expsym_cmds \
8323     postinstall_cmds \
8324     postuninstall_cmds \
8325     old_archive_from_expsyms_cmds \
8326     allow_undefined_flag \
8327     no_undefined_flag \
8328     export_symbols_cmds \
8329     hardcode_libdir_flag_spec \
8330     hardcode_libdir_flag_spec_ld \
8331     hardcode_libdir_separator \
8332     hardcode_automatic \
8333     module_cmds \
8334     module_expsym_cmds \
8335     lt_cv_prog_compiler_c_o \
8336     exclude_expsyms \
8337     include_expsyms; do
8338
8339     case $var in
8340     old_archive_cmds | \
8341     old_archive_from_new_cmds | \
8342     archive_cmds | \
8343     archive_expsym_cmds | \
8344     module_cmds | \
8345     module_expsym_cmds | \
8346     old_archive_from_expsyms_cmds | \
8347     export_symbols_cmds | \
8348     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8349     postinstall_cmds | postuninstall_cmds | \
8350     old_postinstall_cmds | old_postuninstall_cmds | \
8351     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8352       # Double-quote double-evaled strings.
8353       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8354       ;;
8355     *)
8356       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8357       ;;
8358     esac
8359   done
8360
8361   case $lt_echo in
8362   *'\$0 --fallback-echo"')
8363     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8364     ;;
8365   esac
8366
8367 cfgfile="${ofile}T"
8368   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8369   $rm -f "$cfgfile"
8370   { echo "$as_me:$LINENO: creating $ofile" >&5
8371 echo "$as_me: creating $ofile" >&6;}
8372
8373   cat <<__EOF__ >> "$cfgfile"
8374 #! $SHELL
8375
8376 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8377 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8378 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8379 #
8380 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8381 # Free Software Foundation, Inc.
8382 #
8383 # This file is part of GNU Libtool:
8384 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8385 #
8386 # This program is free software; you can redistribute it and/or modify
8387 # it under the terms of the GNU General Public License as published by
8388 # the Free Software Foundation; either version 2 of the License, or
8389 # (at your option) any later version.
8390 #
8391 # This program is distributed in the hope that it will be useful, but
8392 # WITHOUT ANY WARRANTY; without even the implied warranty of
8393 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8394 # General Public License for more details.
8395 #
8396 # You should have received a copy of the GNU General Public License
8397 # along with this program; if not, write to the Free Software
8398 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8399 #
8400 # As a special exception to the GNU General Public License, if you
8401 # distribute this file as part of a program that contains a
8402 # configuration script generated by Autoconf, you may include it under
8403 # the same distribution terms that you use for the rest of that program.
8404
8405 # A sed program that does not truncate output.
8406 SED=$lt_SED
8407
8408 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8409 Xsed="$SED -e s/^X//"
8410
8411 # The HP-UX ksh and POSIX shell print the target directory to stdout
8412 # if CDPATH is set.
8413 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8414
8415 # The names of the tagged configurations supported by this script.
8416 available_tags=
8417
8418 # ### BEGIN LIBTOOL CONFIG
8419
8420 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8421
8422 # Shell to use when invoking shell scripts.
8423 SHELL=$lt_SHELL
8424
8425 # Whether or not to build shared libraries.
8426 build_libtool_libs=$enable_shared
8427
8428 # Whether or not to build static libraries.
8429 build_old_libs=$enable_static
8430
8431 # Whether or not to add -lc for building shared libraries.
8432 build_libtool_need_lc=$archive_cmds_need_lc
8433
8434 # Whether or not to disallow shared libs when runtime libs are static
8435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8436
8437 # Whether or not to optimize for fast installation.
8438 fast_install=$enable_fast_install
8439
8440 # The host system.
8441 host_alias=$host_alias
8442 host=$host
8443
8444 # An echo program that does not interpret backslashes.
8445 echo=$lt_echo
8446
8447 # The archiver.
8448 AR=$lt_AR
8449 AR_FLAGS=$lt_AR_FLAGS
8450
8451 # A C compiler.
8452 LTCC=$lt_LTCC
8453
8454 # A language-specific compiler.
8455 CC=$lt_compiler
8456
8457 # Is the compiler the GNU C compiler?
8458 with_gcc=$GCC
8459
8460 # An ERE matcher.
8461 EGREP=$lt_EGREP
8462
8463 # The linker used to build libraries.
8464 LD=$lt_LD
8465
8466 # Whether we need hard or soft links.
8467 LN_S=$lt_LN_S
8468
8469 # A BSD-compatible nm program.
8470 NM=$lt_NM
8471
8472 # A symbol stripping program
8473 STRIP=$STRIP
8474
8475 # Used to examine libraries when file_magic_cmd begins "file"
8476 MAGIC_CMD=$MAGIC_CMD
8477
8478 # Used on cygwin: DLL creation program.
8479 DLLTOOL="$DLLTOOL"
8480
8481 # Used on cygwin: object dumper.
8482 OBJDUMP="$OBJDUMP"
8483
8484 # Used on cygwin: assembler.
8485 AS="$AS"
8486
8487 # The name of the directory that contains temporary libtool files.
8488 objdir=$objdir
8489
8490 # How to create reloadable object files.
8491 reload_flag=$lt_reload_flag
8492 reload_cmds=$lt_reload_cmds
8493
8494 # How to pass a linker flag through the compiler.
8495 wl=$lt_lt_prog_compiler_wl
8496
8497 # Object file suffix (normally "o").
8498 objext="$ac_objext"
8499
8500 # Old archive suffix (normally "a").
8501 libext="$libext"
8502
8503 # Shared library suffix (normally ".so").
8504 shrext='$shrext'
8505
8506 # Executable file suffix (normally "").
8507 exeext="$exeext"
8508
8509 # Additional compiler flags for building library objects.
8510 pic_flag=$lt_lt_prog_compiler_pic
8511 pic_mode=$pic_mode
8512
8513 # What is the maximum length of a command?
8514 max_cmd_len=$lt_cv_sys_max_cmd_len
8515
8516 # Does compiler simultaneously support -c and -o options?
8517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8518
8519 # Must we lock files when doing compilation ?
8520 need_locks=$lt_need_locks
8521
8522 # Do we need the lib prefix for modules?
8523 need_lib_prefix=$need_lib_prefix
8524
8525 # Do we need a version for libraries?
8526 need_version=$need_version
8527
8528 # Whether dlopen is supported.
8529 dlopen_support=$enable_dlopen
8530
8531 # Whether dlopen of programs is supported.
8532 dlopen_self=$enable_dlopen_self
8533
8534 # Whether dlopen of statically linked programs is supported.
8535 dlopen_self_static=$enable_dlopen_self_static
8536
8537 # Compiler flag to prevent dynamic linking.
8538 link_static_flag=$lt_lt_prog_compiler_static
8539
8540 # Compiler flag to turn off builtin functions.
8541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8542
8543 # Compiler flag to allow reflexive dlopens.
8544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8545
8546 # Compiler flag to generate shared objects directly from archives.
8547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8548
8549 # Compiler flag to generate thread-safe objects.
8550 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8551
8552 # Library versioning type.
8553 version_type=$version_type
8554
8555 # Format of library name prefix.
8556 libname_spec=$lt_libname_spec
8557
8558 # List of archive names.  First name is the real one, the rest are links.
8559 # The last name is the one that the linker finds with -lNAME.
8560 library_names_spec=$lt_library_names_spec
8561
8562 # The coded name of the library, if different from the real name.
8563 soname_spec=$lt_soname_spec
8564
8565 # Commands used to build and install an old-style archive.
8566 RANLIB=$lt_RANLIB
8567 old_archive_cmds=$lt_old_archive_cmds
8568 old_postinstall_cmds=$lt_old_postinstall_cmds
8569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8570
8571 # Create an old-style archive from a shared archive.
8572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8573
8574 # Create a temporary old-style archive to link instead of a shared archive.
8575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8576
8577 # Commands used to build and install a shared archive.
8578 archive_cmds=$lt_archive_cmds
8579 archive_expsym_cmds=$lt_archive_expsym_cmds
8580 postinstall_cmds=$lt_postinstall_cmds
8581 postuninstall_cmds=$lt_postuninstall_cmds
8582
8583 # Commands used to build a loadable module (assumed same as above if empty)
8584 module_cmds=$lt_module_cmds
8585 module_expsym_cmds=$lt_module_expsym_cmds
8586
8587 # Commands to strip libraries.
8588 old_striplib=$lt_old_striplib
8589 striplib=$lt_striplib
8590
8591 # Dependencies to place before the objects being linked to create a
8592 # shared library.
8593 predep_objects=$lt_predep_objects
8594
8595 # Dependencies to place after the objects being linked to create a
8596 # shared library.
8597 postdep_objects=$lt_postdep_objects
8598
8599 # Dependencies to place before the objects being linked to create a
8600 # shared library.
8601 predeps=$lt_predeps
8602
8603 # Dependencies to place after the objects being linked to create a
8604 # shared library.
8605 postdeps=$lt_postdeps
8606
8607 # The library search path used internally by the compiler when linking
8608 # a shared library.
8609 compiler_lib_search_path=$lt_compiler_lib_search_path
8610
8611 # Method to check whether dependent libraries are shared objects.
8612 deplibs_check_method=$lt_deplibs_check_method
8613
8614 # Command to use when deplibs_check_method == file_magic.
8615 file_magic_cmd=$lt_file_magic_cmd
8616
8617 # Flag that allows shared libraries with undefined symbols to be built.
8618 allow_undefined_flag=$lt_allow_undefined_flag
8619
8620 # Flag that forces no undefined symbols.
8621 no_undefined_flag=$lt_no_undefined_flag
8622
8623 # Commands used to finish a libtool library installation in a directory.
8624 finish_cmds=$lt_finish_cmds
8625
8626 # Same as above, but a single script fragment to be evaled but not shown.
8627 finish_eval=$lt_finish_eval
8628
8629 # Take the output of nm and produce a listing of raw symbols and C names.
8630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8631
8632 # Transform the output of nm in a proper C declaration
8633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8634
8635 # Transform the output of nm in a C name address pair
8636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8637
8638 # This is the shared library runtime path variable.
8639 runpath_var=$runpath_var
8640
8641 # This is the shared library path variable.
8642 shlibpath_var=$shlibpath_var
8643
8644 # Is shlibpath searched before the hard-coded library search path?
8645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8646
8647 # How to hardcode a shared library path into an executable.
8648 hardcode_action=$hardcode_action
8649
8650 # Whether we should hardcode library paths into libraries.
8651 hardcode_into_libs=$hardcode_into_libs
8652
8653 # Flag to hardcode \$libdir into a binary during linking.
8654 # This must work even if \$libdir does not exist.
8655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8656
8657 # If ld is used when linking, flag to hardcode \$libdir into
8658 # a binary during linking. This must work even if \$libdir does
8659 # not exist.
8660 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8661
8662 # Whether we need a single -rpath flag with a separated argument.
8663 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8664
8665 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8666 # resulting binary.
8667 hardcode_direct=$hardcode_direct
8668
8669 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8670 # resulting binary.
8671 hardcode_minus_L=$hardcode_minus_L
8672
8673 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8674 # the resulting binary.
8675 hardcode_shlibpath_var=$hardcode_shlibpath_var
8676
8677 # Set to yes if building a shared library automatically hardcodes DIR into the library
8678 # and all subsequent libraries and executables linked against it.
8679 hardcode_automatic=$hardcode_automatic
8680
8681 # Variables whose values should be saved in libtool wrapper scripts and
8682 # restored at relink time.
8683 variables_saved_for_relink="$variables_saved_for_relink"
8684
8685 # Whether libtool must link a program against all its dependency libraries.
8686 link_all_deplibs=$link_all_deplibs
8687
8688 # Compile-time system search path for libraries
8689 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8690
8691 # Run-time system search path for libraries
8692 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8693
8694 # Fix the shell variable \$srcfile for the compiler.
8695 fix_srcfile_path="$fix_srcfile_path"
8696
8697 # Set to yes if exported symbols are required.
8698 always_export_symbols=$always_export_symbols
8699
8700 # The commands to list exported symbols.
8701 export_symbols_cmds=$lt_export_symbols_cmds
8702
8703 # The commands to extract the exported symbol list from a shared archive.
8704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8705
8706 # Symbols that should not be listed in the preloaded symbols.
8707 exclude_expsyms=$lt_exclude_expsyms
8708
8709 # Symbols that must always be exported.
8710 include_expsyms=$lt_include_expsyms
8711
8712 # ### END LIBTOOL CONFIG
8713
8714 __EOF__
8715
8716
8717   case $host_os in
8718   aix3*)
8719     cat <<\EOF >> "$cfgfile"
8720
8721 # AIX sometimes has problems with the GCC collect2 program.  For some
8722 # reason, if we set the COLLECT_NAMES environment variable, the problems
8723 # vanish in a puff of smoke.
8724 if test "X${COLLECT_NAMES+set}" != Xset; then
8725   COLLECT_NAMES=
8726   export COLLECT_NAMES
8727 fi
8728 EOF
8729     ;;
8730   esac
8731
8732   # We use sed instead of cat because bash on DJGPP gets confused if
8733   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8734   # text mode, it properly converts lines to CR/LF.  This bash problem
8735   # is reportedly fixed, but why not run on old versions too?
8736   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8737
8738   mv -f "$cfgfile" "$ofile" || \
8739     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8740   chmod +x "$ofile"
8741
8742 else
8743   # If there is no Makefile yet, we rely on a make rule to execute
8744   # `config.status --recheck' to rerun these tests and create the
8745   # libtool script then.
8746   test -f Makefile && make "$ltmain"
8747 fi
8748
8749
8750 ac_ext=c
8751 ac_cpp='$CPP $CPPFLAGS'
8752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8755
8756 CC="$lt_save_CC"
8757
8758
8759 # Check whether --with-tags or --without-tags was given.
8760 if test "${with_tags+set}" = set; then
8761   withval="$with_tags"
8762   tagnames="$withval"
8763 fi;
8764
8765 if test -f "$ltmain" && test -n "$tagnames"; then
8766   if test ! -f "${ofile}"; then
8767     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8768 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8769   fi
8770
8771   if test -z "$LTCC"; then
8772     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8773     if test -z "$LTCC"; then
8774       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8775 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8776     else
8777       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8778 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8779     fi
8780   fi
8781
8782   # Extract list of available tagged configurations in $ofile.
8783   # Note that this assumes the entire list is on one line.
8784   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8785
8786   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8787   for tagname in $tagnames; do
8788     IFS="$lt_save_ifs"
8789     # Check whether tagname contains only valid characters
8790     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8791     "") ;;
8792     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8793 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8794    { (exit 1); exit 1; }; }
8795         ;;
8796     esac
8797
8798     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8799     then
8800       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8801 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8802    { (exit 1); exit 1; }; }
8803     fi
8804
8805     # Update the list of available tags.
8806     if test -n "$tagname"; then
8807       echo appending configuration tag \"$tagname\" to $ofile
8808
8809       case $tagname in
8810       CXX)
8811         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8812           ac_ext=cc
8813 ac_cpp='$CXXCPP $CPPFLAGS'
8814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8817
8818
8819
8820
8821 archive_cmds_need_lc_CXX=no
8822 allow_undefined_flag_CXX=
8823 always_export_symbols_CXX=no
8824 archive_expsym_cmds_CXX=
8825 export_dynamic_flag_spec_CXX=
8826 hardcode_direct_CXX=no
8827 hardcode_libdir_flag_spec_CXX=
8828 hardcode_libdir_flag_spec_ld_CXX=
8829 hardcode_libdir_separator_CXX=
8830 hardcode_minus_L_CXX=no
8831 hardcode_automatic_CXX=no
8832 module_cmds_CXX=
8833 module_expsym_cmds_CXX=
8834 link_all_deplibs_CXX=unknown
8835 old_archive_cmds_CXX=$old_archive_cmds
8836 no_undefined_flag_CXX=
8837 whole_archive_flag_spec_CXX=
8838 enable_shared_with_static_runtimes_CXX=no
8839
8840 # Dependencies to place before and after the object being linked:
8841 predep_objects_CXX=
8842 postdep_objects_CXX=
8843 predeps_CXX=
8844 postdeps_CXX=
8845 compiler_lib_search_path_CXX=
8846
8847 # Source file extension for C++ test sources.
8848 ac_ext=cc
8849
8850 # Object file extension for compiled C++ test sources.
8851 objext=o
8852 objext_CXX=$objext
8853
8854 # Code to be used in simple compile tests
8855 lt_simple_compile_test_code="int some_variable = 0;\n"
8856
8857 # Code to be used in simple link tests
8858 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8859
8860 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8861
8862 # If no C compiler was specified, use CC.
8863 LTCC=${LTCC-"$CC"}
8864
8865 # Allow CC to be a program name with arguments.
8866 compiler=$CC
8867
8868
8869 # Allow CC to be a program name with arguments.
8870 lt_save_CC=$CC
8871 lt_save_LD=$LD
8872 lt_save_GCC=$GCC
8873 GCC=$GXX
8874 lt_save_with_gnu_ld=$with_gnu_ld
8875 lt_save_path_LD=$lt_cv_path_LD
8876 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8877   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8878 else
8879   unset lt_cv_prog_gnu_ld
8880 fi
8881 if test -n "${lt_cv_path_LDCXX+set}"; then
8882   lt_cv_path_LD=$lt_cv_path_LDCXX
8883 else
8884   unset lt_cv_path_LD
8885 fi
8886 test -z "${LDCXX+set}" || LD=$LDCXX
8887 CC=${CXX-"c++"}
8888 compiler=$CC
8889 compiler_CXX=$CC
8890 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8891
8892 # We don't want -fno-exception wen compiling C++ code, so set the
8893 # no_builtin_flag separately
8894 if test "$GXX" = yes; then
8895   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8896 else
8897   lt_prog_compiler_no_builtin_flag_CXX=
8898 fi
8899
8900 if test "$GXX" = yes; then
8901   # Set up default GNU C++ configuration
8902
8903
8904 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8905 if test "${with_gnu_ld+set}" = set; then
8906   withval="$with_gnu_ld"
8907   test "$withval" = no || with_gnu_ld=yes
8908 else
8909   with_gnu_ld=no
8910 fi;
8911 ac_prog=ld
8912 if test "$GCC" = yes; then
8913   # Check if gcc -print-prog-name=ld gives a path.
8914   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8915 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8916   case $host in
8917   *-*-mingw*)
8918     # gcc leaves a trailing carriage return which upsets mingw
8919     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8920   *)
8921     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8922   esac
8923   case $ac_prog in
8924     # Accept absolute paths.
8925     [\\/]* | ?:[\\/]*)
8926       re_direlt='/[^/][^/]*/\.\./'
8927       # Canonicalize the path of ld
8928       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8929       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8930         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8931       done
8932       test -z "$LD" && LD="$ac_prog"
8933       ;;
8934   "")
8935     # If it fails, then pretend we aren't using GCC.
8936     ac_prog=ld
8937     ;;
8938   *)
8939     # If it is relative, then search for the first ld in PATH.
8940     with_gnu_ld=unknown
8941     ;;
8942   esac
8943 elif test "$with_gnu_ld" = yes; then
8944   echo "$as_me:$LINENO: checking for GNU ld" >&5
8945 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8946 else
8947   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8948 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8949 fi
8950 if test "${lt_cv_path_LD+set}" = set; then
8951   echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953   if test -z "$LD"; then
8954   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8955   for ac_dir in $PATH; do
8956     IFS="$lt_save_ifs"
8957     test -z "$ac_dir" && ac_dir=.
8958     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8959       lt_cv_path_LD="$ac_dir/$ac_prog"
8960       # Check to see if the program is GNU ld.  I'd rather use --version,
8961       # but apparently some GNU ld's only accept -v.
8962       # Break only if it was the GNU/non-GNU ld that we prefer.
8963       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8964       *GNU* | *'with BFD'*)
8965         test "$with_gnu_ld" != no && break
8966         ;;
8967       *)
8968         test "$with_gnu_ld" != yes && break
8969         ;;
8970       esac
8971     fi
8972   done
8973   IFS="$lt_save_ifs"
8974 else
8975   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8976 fi
8977 fi
8978
8979 LD="$lt_cv_path_LD"
8980 if test -n "$LD"; then
8981   echo "$as_me:$LINENO: result: $LD" >&5
8982 echo "${ECHO_T}$LD" >&6
8983 else
8984   echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6
8986 fi
8987 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8988 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8989    { (exit 1); exit 1; }; }
8990 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8991 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8992 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8993   echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8996 case `"$LD" -v 2>&1 </dev/null` in
8997 *GNU* | *'with BFD'*)
8998   lt_cv_prog_gnu_ld=yes
8999   ;;
9000 *)
9001   lt_cv_prog_gnu_ld=no
9002   ;;
9003 esac
9004 fi
9005 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9006 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9007 with_gnu_ld=$lt_cv_prog_gnu_ld
9008
9009
9010
9011   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9012   # archiving commands below assume that GNU ld is being used.
9013   if test "$with_gnu_ld" = yes; then
9014     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015     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'
9016
9017     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9018     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9019
9020     # If archive_cmds runs LD, not CC, wlarc should be empty
9021     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9022     #     investigate it a little bit more. (MM)
9023     wlarc='${wl}'
9024
9025     # ancient GNU ld didn't support --whole-archive et. al.
9026     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9027         grep 'no-whole-archive' > /dev/null; then
9028       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9029     else
9030       whole_archive_flag_spec_CXX=
9031     fi
9032   else
9033     with_gnu_ld=no
9034     wlarc=
9035
9036     # A generic and very simple default shared library creation
9037     # command for GNU C++ for the case where it uses the native
9038     # linker, instead of GNU ld.  If possible, this setting should
9039     # overridden to take advantage of the native linker features on
9040     # the platform it is being used on.
9041     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9042   fi
9043
9044   # Commands to make compiler produce verbose output that lists
9045   # what "hidden" libraries, object files and flags are used when
9046   # linking a shared library.
9047   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9048
9049 else
9050   GXX=no
9051   with_gnu_ld=no
9052   wlarc=
9053 fi
9054
9055 # PORTME: fill in a description of your system's C++ link characteristics
9056 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9057 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9058 ld_shlibs_CXX=yes
9059 case $host_os in
9060   aix3*)
9061     # FIXME: insert proper C++ library support
9062     ld_shlibs_CXX=no
9063     ;;
9064   aix4* | aix5*)
9065     if test "$host_cpu" = ia64; then
9066       # On IA64, the linker does run time linking by default, so we don't
9067       # have to do anything special.
9068       aix_use_runtimelinking=no
9069       exp_sym_flag='-Bexport'
9070       no_entry_flag=""
9071     else
9072       aix_use_runtimelinking=no
9073
9074       # Test if we are trying to use run time linking or normal
9075       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9076       # need to do runtime linking.
9077       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9078         for ld_flag in $LDFLAGS; do
9079           case $ld_flag in
9080           *-brtl*)
9081             aix_use_runtimelinking=yes
9082             break
9083             ;;
9084           esac
9085         done
9086       esac
9087
9088       exp_sym_flag='-bexport'
9089       no_entry_flag='-bnoentry'
9090     fi
9091
9092     # When large executables or shared objects are built, AIX ld can
9093     # have problems creating the table of contents.  If linking a library
9094     # or program results in "error TOC overflow" add -mminimal-toc to
9095     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9096     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9097
9098     archive_cmds_CXX=''
9099     hardcode_direct_CXX=yes
9100     hardcode_libdir_separator_CXX=':'
9101     link_all_deplibs_CXX=yes
9102
9103     if test "$GXX" = yes; then
9104       case $host_os in aix4.012|aix4.012.*)
9105       # We only want to do this on AIX 4.2 and lower, the check
9106       # below for broken collect2 doesn't work under 4.3+
9107         collect2name=`${CC} -print-prog-name=collect2`
9108         if test -f "$collect2name" && \
9109            strings "$collect2name" | grep resolve_lib_name >/dev/null
9110         then
9111           # We have reworked collect2
9112           hardcode_direct_CXX=yes
9113         else
9114           # We have old collect2
9115           hardcode_direct_CXX=unsupported
9116           # It fails to find uninstalled libraries when the uninstalled
9117           # path is not listed in the libpath.  Setting hardcode_minus_L
9118           # to unsupported forces relinking
9119           hardcode_minus_L_CXX=yes
9120           hardcode_libdir_flag_spec_CXX='-L$libdir'
9121           hardcode_libdir_separator_CXX=
9122         fi
9123       esac
9124       shared_flag='-shared'
9125     else
9126       # not using gcc
9127       if test "$host_cpu" = ia64; then
9128         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9129         # chokes on -Wl,-G. The following line is correct:
9130         shared_flag='-G'
9131       else
9132         if test "$aix_use_runtimelinking" = yes; then
9133           shared_flag='${wl}-G'
9134         else
9135           shared_flag='${wl}-bM:SRE'
9136         fi
9137       fi
9138     fi
9139
9140     # It seems that -bexpall does not export symbols beginning with
9141     # underscore (_), so it is better to generate a list of symbols to export.
9142     always_export_symbols_CXX=yes
9143     if test "$aix_use_runtimelinking" = yes; then
9144       # Warning - without using the other runtime loading flags (-brtl),
9145       # -berok will link without error, but may produce a broken library.
9146       allow_undefined_flag_CXX='-berok'
9147       # Determine the default libpath from the value encoded in an empty executable.
9148       cat >conftest.$ac_ext <<_ACEOF
9149 #line $LINENO "configure"
9150 /* confdefs.h.  */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h.  */
9155
9156 int
9157 main ()
9158 {
9159
9160   ;
9161   return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166   (eval $ac_link) 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } &&
9170          { ac_try='test -s conftest$ac_exeext'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; }; then
9176
9177 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9178 }'`
9179 # Check for a 64-bit object if we didn't find anything.
9180 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; }
9181 }'`; fi
9182 else
9183   echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9185
9186 fi
9187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9189
9190       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9191
9192       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"
9193      else
9194       if test "$host_cpu" = ia64; then
9195         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9196         allow_undefined_flag_CXX="-z nodefs"
9197         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"
9198       else
9199         # Determine the default libpath from the value encoded in an empty executable.
9200         cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9202 /* confdefs.h.  */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h.  */
9207
9208 int
9209 main ()
9210 {
9211
9212   ;
9213   return 0;
9214 }
9215 _ACEOF
9216 rm -f conftest.$ac_objext conftest$ac_exeext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9218   (eval $ac_link) 2>&5
9219   ac_status=$?
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); } &&
9222          { ac_try='test -s conftest$ac_exeext'
9223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224   (eval $ac_try) 2>&5
9225   ac_status=$?
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); }; }; then
9228
9229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9230 }'`
9231 # Check for a 64-bit object if we didn't find anything.
9232 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; }
9233 }'`; fi
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 fi
9239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9240 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9241
9242         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9243         # Warning - without using the other run time loading flags,
9244         # -berok will link without error, but may produce a broken library.
9245         no_undefined_flag_CXX=' ${wl}-bernotok'
9246         allow_undefined_flag_CXX=' ${wl}-berok'
9247         # -bexpall does not export symbols beginning with underscore (_)
9248         always_export_symbols_CXX=yes
9249         # Exported symbols can be pulled into shared objects from archives
9250         whole_archive_flag_spec_CXX=' '
9251         archive_cmds_need_lc_CXX=yes
9252         # This is similar to how AIX traditionally builds it's shared libraries.
9253         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'
9254       fi
9255     fi
9256     ;;
9257   chorus*)
9258     case $cc_basename in
9259       *)
9260         # FIXME: insert proper C++ library support
9261         ld_shlibs_CXX=no
9262         ;;
9263     esac
9264     ;;
9265
9266   cygwin* | mingw* | pw32*)
9267     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9268     # as there is no search path for DLLs.
9269     hardcode_libdir_flag_spec_CXX='-L$libdir'
9270     allow_undefined_flag_CXX=unsupported
9271     always_export_symbols_CXX=no
9272     enable_shared_with_static_runtimes_CXX=yes
9273
9274     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9275       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'
9276       # If the export-symbols file already is a .def file (1st line
9277       # is EXPORTS), use it as is; otherwise, prepend...
9278       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9279         cp $export_symbols $output_objdir/$soname.def;
9280       else
9281         echo EXPORTS > $output_objdir/$soname.def;
9282         cat $export_symbols >> $output_objdir/$soname.def;
9283       fi~
9284       $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'
9285     else
9286       ld_shlibs_CXX=no
9287     fi
9288   ;;
9289
9290   darwin* | rhapsody*)
9291    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9292     archive_cmds_need_lc_CXX=no
9293     case "$host_os" in
9294     rhapsody* | darwin1.[012])
9295       allow_undefined_flag_CXX='-undefined suppress'
9296       ;;
9297     *) # Darwin 1.3 on
9298       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9299       ;;
9300     esac
9301         lt_int_apple_cc_single_mod=no
9302         output_verbose_link_cmd='echo'
9303         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9304           lt_int_apple_cc_single_mod=yes
9305         fi
9306         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9307           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9308         else
9309         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'
9310       fi
9311       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9312
9313     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9314       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9315         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}'
9316       else
9317         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}'
9318       fi
9319         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}'
9320     hardcode_direct_CXX=no
9321     hardcode_automatic_CXX=yes
9322     hardcode_shlibpath_var_CXX=unsupported
9323     whole_archive_flag_spec_CXX='-all_load $convenience'
9324     link_all_deplibs_CXX=yes
9325    fi
9326     ;;
9327
9328   dgux*)
9329     case $cc_basename in
9330       ec++)
9331         # FIXME: insert proper C++ library support
9332         ld_shlibs_CXX=no
9333         ;;
9334       ghcx)
9335         # Green Hills C++ Compiler
9336         # FIXME: insert proper C++ library support
9337         ld_shlibs_CXX=no
9338         ;;
9339       *)
9340         # FIXME: insert proper C++ library support
9341         ld_shlibs_CXX=no
9342         ;;
9343     esac
9344     ;;
9345   freebsd12*)
9346     # C++ shared libraries reported to be fairly broken before switch to ELF
9347     ld_shlibs_CXX=no
9348     ;;
9349   freebsd-elf*)
9350     archive_cmds_need_lc_CXX=no
9351     ;;
9352   freebsd*)
9353     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9354     # conventions
9355     ld_shlibs_CXX=yes
9356     ;;
9357   gnu*)
9358     ;;
9359   hpux9*)
9360     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9361     hardcode_libdir_separator_CXX=:
9362     export_dynamic_flag_spec_CXX='${wl}-E'
9363     hardcode_direct_CXX=yes
9364     hardcode_minus_L_CXX=yes # Not in the search PATH,
9365                                 # but as the default
9366                                 # location of the library.
9367
9368     case $cc_basename in
9369     CC)
9370       # FIXME: insert proper C++ library support
9371       ld_shlibs_CXX=no
9372       ;;
9373     aCC)
9374       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'
9375       # Commands to make compiler produce verbose output that lists
9376       # what "hidden" libraries, object files and flags are used when
9377       # linking a shared library.
9378       #
9379       # There doesn't appear to be a way to prevent this compiler from
9380       # explicitly linking system object files so we need to strip them
9381       # from the output so that they don't get included in the library
9382       # dependencies.
9383       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'
9384       ;;
9385     *)
9386       if test "$GXX" = yes; then
9387         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'
9388       else
9389         # FIXME: insert proper C++ library support
9390         ld_shlibs_CXX=no
9391       fi
9392       ;;
9393     esac
9394     ;;
9395   hpux10*|hpux11*)
9396     if test $with_gnu_ld = no; then
9397       case "$host_cpu" in
9398       hppa*64*)
9399         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9400         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9401         hardcode_libdir_separator_CXX=:
9402         ;;
9403       ia64*)
9404         hardcode_libdir_flag_spec_CXX='-L$libdir'
9405         ;;
9406       *)
9407         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9408         hardcode_libdir_separator_CXX=:
9409         export_dynamic_flag_spec_CXX='${wl}-E'
9410         ;;
9411       esac
9412     fi
9413     case "$host_cpu" in
9414     hppa*64*)
9415       hardcode_direct_CXX=no
9416       hardcode_shlibpath_var_CXX=no
9417       ;;
9418     ia64*)
9419       hardcode_direct_CXX=no
9420       hardcode_shlibpath_var_CXX=no
9421       hardcode_minus_L_CXX=yes # Not in the search PATH,
9422                                               # but as the default
9423                                               # location of the library.
9424       ;;
9425     *)
9426       hardcode_direct_CXX=yes
9427       hardcode_minus_L_CXX=yes # Not in the search PATH,
9428                                               # but as the default
9429                                               # location of the library.
9430       ;;
9431     esac
9432
9433     case $cc_basename in
9434       CC)
9435         # FIXME: insert proper C++ library support
9436         ld_shlibs_CXX=no
9437         ;;
9438       aCC)
9439         case "$host_cpu" in
9440         hppa*64*|ia64*)
9441           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9442           ;;
9443         *)
9444           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9445           ;;
9446         esac
9447         # Commands to make compiler produce verbose output that lists
9448         # what "hidden" libraries, object files and flags are used when
9449         # linking a shared library.
9450         #
9451         # There doesn't appear to be a way to prevent this compiler from
9452         # explicitly linking system object files so we need to strip them
9453         # from the output so that they don't get included in the library
9454         # dependencies.
9455         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'
9456         ;;
9457       *)
9458         if test "$GXX" = yes; then
9459           if test $with_gnu_ld = no; then
9460             case "$host_cpu" in
9461             ia64*|hppa*64*)
9462               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9463               ;;
9464             *)
9465               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'
9466               ;;
9467             esac
9468           fi
9469         else
9470           # FIXME: insert proper C++ library support
9471           ld_shlibs_CXX=no
9472         fi
9473         ;;
9474     esac
9475     ;;
9476   irix5* | irix6*)
9477     case $cc_basename in
9478       CC)
9479         # SGI C++
9480         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'
9481
9482         # Archives containing C++ object files must be created using
9483         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9484         # necessary to make sure instantiated templates are included
9485         # in the archive.
9486         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9487         ;;
9488       *)
9489         if test "$GXX" = yes; then
9490           if test "$with_gnu_ld" = no; then
9491             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'
9492           else
9493             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'
9494           fi
9495         fi
9496         link_all_deplibs_CXX=yes
9497         ;;
9498     esac
9499     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9500     hardcode_libdir_separator_CXX=:
9501     ;;
9502   linux*)
9503     case $cc_basename in
9504       KCC)
9505         # Kuck and Associates, Inc. (KAI) C++ Compiler
9506
9507         # KCC will only create a shared library if the output file
9508         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9509         # to its proper name (with version) after linking.
9510         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'
9511         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'
9512         # Commands to make compiler produce verbose output that lists
9513         # what "hidden" libraries, object files and flags are used when
9514         # linking a shared library.
9515         #
9516         # There doesn't appear to be a way to prevent this compiler from
9517         # explicitly linking system object files so we need to strip them
9518         # from the output so that they don't get included in the library
9519         # dependencies.
9520         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'
9521
9522         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9523         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9524
9525         # Archives containing C++ object files must be created using
9526         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9527         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9528         ;;
9529       icpc)
9530         # Intel C++
9531         with_gnu_ld=yes
9532         archive_cmds_need_lc_CXX=no
9533         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534         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'
9535         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9536         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9537         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9538         ;;
9539       cxx)
9540         # Compaq C++
9541         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542         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'
9543
9544         runpath_var=LD_RUN_PATH
9545         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9546         hardcode_libdir_separator_CXX=:
9547
9548         # Commands to make compiler produce verbose output that lists
9549         # what "hidden" libraries, object files and flags are used when
9550         # linking a shared library.
9551         #
9552         # There doesn't appear to be a way to prevent this compiler from
9553         # explicitly linking system object files so we need to strip them
9554         # from the output so that they don't get included in the library
9555         # dependencies.
9556         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'
9557         ;;
9558     esac
9559     ;;
9560   lynxos*)
9561     # FIXME: insert proper C++ library support
9562     ld_shlibs_CXX=no
9563     ;;
9564   m88k*)
9565     # FIXME: insert proper C++ library support
9566     ld_shlibs_CXX=no
9567     ;;
9568   mvs*)
9569     case $cc_basename in
9570       cxx)
9571         # FIXME: insert proper C++ library support
9572         ld_shlibs_CXX=no
9573         ;;
9574       *)
9575         # FIXME: insert proper C++ library support
9576         ld_shlibs_CXX=no
9577         ;;
9578     esac
9579     ;;
9580   netbsd*)
9581     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9582       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9583       wlarc=
9584       hardcode_libdir_flag_spec_CXX='-R$libdir'
9585       hardcode_direct_CXX=yes
9586       hardcode_shlibpath_var_CXX=no
9587     fi
9588     # Workaround some broken pre-1.5 toolchains
9589     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9590     ;;
9591   osf3*)
9592     case $cc_basename in
9593       KCC)
9594         # Kuck and Associates, Inc. (KAI) C++ Compiler
9595
9596         # KCC will only create a shared library if the output file
9597         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9598         # to its proper name (with version) after linking.
9599         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'
9600
9601         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9602         hardcode_libdir_separator_CXX=:
9603
9604         # Archives containing C++ object files must be created using
9605         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9606         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9607
9608         ;;
9609       RCC)
9610         # Rational C++ 2.4.1
9611         # FIXME: insert proper C++ library support
9612         ld_shlibs_CXX=no
9613         ;;
9614       cxx)
9615         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9616         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'
9617
9618         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9619         hardcode_libdir_separator_CXX=:
9620
9621         # Commands to make compiler produce verbose output that lists
9622         # what "hidden" libraries, object files and flags are used when
9623         # linking a shared library.
9624         #
9625         # There doesn't appear to be a way to prevent this compiler from
9626         # explicitly linking system object files so we need to strip them
9627         # from the output so that they don't get included in the library
9628         # dependencies.
9629         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'
9630         ;;
9631       *)
9632         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9633           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9634           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'
9635
9636           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9637           hardcode_libdir_separator_CXX=:
9638
9639           # Commands to make compiler produce verbose output that lists
9640           # what "hidden" libraries, object files and flags are used when
9641           # linking a shared library.
9642           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9643
9644         else
9645           # FIXME: insert proper C++ library support
9646           ld_shlibs_CXX=no
9647         fi
9648         ;;
9649     esac
9650     ;;
9651   osf4* | osf5*)
9652     case $cc_basename in
9653       KCC)
9654         # Kuck and Associates, Inc. (KAI) C++ Compiler
9655
9656         # KCC will only create a shared library if the output file
9657         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9658         # to its proper name (with version) after linking.
9659         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'
9660
9661         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9662         hardcode_libdir_separator_CXX=:
9663
9664         # Archives containing C++ object files must be created using
9665         # the KAI C++ compiler.
9666         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9667         ;;
9668       RCC)
9669         # Rational C++ 2.4.1
9670         # FIXME: insert proper C++ library support
9671         ld_shlibs_CXX=no
9672         ;;
9673       cxx)
9674         allow_undefined_flag_CXX=' -expect_unresolved \*'
9675         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'
9676         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9677           echo "-hidden">> $lib.exp~
9678           $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~
9679           $rm $lib.exp'
9680
9681         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9682         hardcode_libdir_separator_CXX=:
9683
9684         # Commands to make compiler produce verbose output that lists
9685         # what "hidden" libraries, object files and flags are used when
9686         # linking a shared library.
9687         #
9688         # There doesn't appear to be a way to prevent this compiler from
9689         # explicitly linking system object files so we need to strip them
9690         # from the output so that they don't get included in the library
9691         # dependencies.
9692         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'
9693         ;;
9694       *)
9695         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9696           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9697          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'
9698
9699           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9700           hardcode_libdir_separator_CXX=:
9701
9702           # Commands to make compiler produce verbose output that lists
9703           # what "hidden" libraries, object files and flags are used when
9704           # linking a shared library.
9705           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9706
9707         else
9708           # FIXME: insert proper C++ library support
9709           ld_shlibs_CXX=no
9710         fi
9711         ;;
9712     esac
9713     ;;
9714   psos*)
9715     # FIXME: insert proper C++ library support
9716     ld_shlibs_CXX=no
9717     ;;
9718   sco*)
9719     archive_cmds_need_lc_CXX=no
9720     case $cc_basename in
9721       CC)
9722         # FIXME: insert proper C++ library support
9723         ld_shlibs_CXX=no
9724         ;;
9725       *)
9726         # FIXME: insert proper C++ library support
9727         ld_shlibs_CXX=no
9728         ;;
9729     esac
9730     ;;
9731   sunos4*)
9732     case $cc_basename in
9733       CC)
9734         # Sun C++ 4.x
9735         # FIXME: insert proper C++ library support
9736         ld_shlibs_CXX=no
9737         ;;
9738       lcc)
9739         # Lucid
9740         # FIXME: insert proper C++ library support
9741         ld_shlibs_CXX=no
9742         ;;
9743       *)
9744         # FIXME: insert proper C++ library support
9745         ld_shlibs_CXX=no
9746         ;;
9747     esac
9748     ;;
9749   solaris*)
9750     case $cc_basename in
9751       CC)
9752         # Sun C++ 4.2, 5.x and Centerline C++
9753         no_undefined_flag_CXX=' -zdefs'
9754         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9755         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9756         $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'
9757
9758         hardcode_libdir_flag_spec_CXX='-R$libdir'
9759         hardcode_shlibpath_var_CXX=no
9760         case $host_os in
9761           solaris2.0-5 | solaris2.0-5.*) ;;
9762           *)
9763             # The C++ compiler is used as linker so we must use $wl
9764             # flag to pass the commands to the underlying system
9765             # linker.
9766             # Supported since Solaris 2.6 (maybe 2.5.1?)
9767             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9768             ;;
9769         esac
9770         link_all_deplibs_CXX=yes
9771
9772         # Commands to make compiler produce verbose output that lists
9773         # what "hidden" libraries, object files and flags are used when
9774         # linking a shared library.
9775         #
9776         # There doesn't appear to be a way to prevent this compiler from
9777         # explicitly linking system object files so we need to strip them
9778         # from the output so that they don't get included in the library
9779         # dependencies.
9780         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'
9781
9782         # Archives containing C++ object files must be created using
9783         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9784         # necessary to make sure instantiated templates are included
9785         # in the archive.
9786         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9787         ;;
9788       gcx)
9789         # Green Hills C++ Compiler
9790         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9791
9792         # The C++ compiler must be used to create the archive.
9793         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9794         ;;
9795       *)
9796         # GNU C++ compiler with Solaris linker
9797         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9798           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9799           if $CC --version | grep -v '^2\.7' > /dev/null; then
9800             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9801             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9802                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9803
9804             # Commands to make compiler produce verbose output that lists
9805             # what "hidden" libraries, object files and flags are used when
9806             # linking a shared library.
9807             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9808           else
9809             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9810             # platform.
9811             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9812             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9813                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9814
9815             # Commands to make compiler produce verbose output that lists
9816             # what "hidden" libraries, object files and flags are used when
9817             # linking a shared library.
9818             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9819           fi
9820
9821           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9822         fi
9823         ;;
9824     esac
9825     ;;
9826   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9827     archive_cmds_need_lc_CXX=no
9828     ;;
9829   tandem*)
9830     case $cc_basename in
9831       NCC)
9832         # NonStop-UX NCC 3.20
9833         # FIXME: insert proper C++ library support
9834         ld_shlibs_CXX=no
9835         ;;
9836       *)
9837         # FIXME: insert proper C++ library support
9838         ld_shlibs_CXX=no
9839         ;;
9840     esac
9841     ;;
9842   vxworks*)
9843     # FIXME: insert proper C++ library support
9844     ld_shlibs_CXX=no
9845     ;;
9846   *)
9847     # FIXME: insert proper C++ library support
9848     ld_shlibs_CXX=no
9849     ;;
9850 esac
9851 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9852 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9853 test "$ld_shlibs_CXX" = no && can_build_shared=no
9854
9855 GCC_CXX="$GXX"
9856 LD_CXX="$LD"
9857
9858 ## CAVEAT EMPTOR:
9859 ## There is no encapsulation within the following macros, do not change
9860 ## the running order or otherwise move them around unless you know exactly
9861 ## what you are doing...
9862
9863 cat > conftest.$ac_ext <<EOF
9864 class Foo
9865 {
9866 public:
9867   Foo (void) { a = 0; }
9868 private:
9869   int a;
9870 };
9871 EOF
9872
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874   (eval $ac_compile) 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; then
9878   # Parse the compiler output and extract the necessary
9879   # objects, libraries and library flags.
9880
9881   # Sentinel used to keep track of whether or not we are before
9882   # the conftest object file.
9883   pre_test_object_deps_done=no
9884
9885   # The `*' in the case matches for architectures that use `case' in
9886   # $output_verbose_cmd can trigger glob expansion during the loop
9887   # eval without this substitution.
9888   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9889
9890   for p in `eval $output_verbose_link_cmd`; do
9891     case $p in
9892
9893     -L* | -R* | -l*)
9894        # Some compilers place space between "-{L,R}" and the path.
9895        # Remove the space.
9896        if test $p = "-L" \
9897           || test $p = "-R"; then
9898          prev=$p
9899          continue
9900        else
9901          prev=
9902        fi
9903
9904        if test "$pre_test_object_deps_done" = no; then
9905          case $p in
9906          -L* | -R*)
9907            # Internal compiler library paths should come after those
9908            # provided the user.  The postdeps already come after the
9909            # user supplied libs so there is no need to process them.
9910            if test -z "$compiler_lib_search_path_CXX"; then
9911              compiler_lib_search_path_CXX="${prev}${p}"
9912            else
9913              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9914            fi
9915            ;;
9916          # The "-l" case would never come before the object being
9917          # linked, so don't bother handling this case.
9918          esac
9919        else
9920          if test -z "$postdeps_CXX"; then
9921            postdeps_CXX="${prev}${p}"
9922          else
9923            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9924          fi
9925        fi
9926        ;;
9927
9928     *.$objext)
9929        # This assumes that the test object file only shows up
9930        # once in the compiler output.
9931        if test "$p" = "conftest.$objext"; then
9932          pre_test_object_deps_done=yes
9933          continue
9934        fi
9935
9936        if test "$pre_test_object_deps_done" = no; then
9937          if test -z "$predep_objects_CXX"; then
9938            predep_objects_CXX="$p"
9939          else
9940            predep_objects_CXX="$predep_objects_CXX $p"
9941          fi
9942        else
9943          if test -z "$postdep_objects_CXX"; then
9944            postdep_objects_CXX="$p"
9945          else
9946            postdep_objects_CXX="$postdep_objects_CXX $p"
9947          fi
9948        fi
9949        ;;
9950
9951     *) ;; # Ignore the rest.
9952
9953     esac
9954   done
9955
9956   # Clean up.
9957   rm -f a.out a.exe
9958 else
9959   echo "libtool.m4: error: problem compiling CXX test program"
9960 fi
9961
9962 $rm -f confest.$objext
9963
9964 case " $postdeps_CXX " in
9965 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9966 esac
9967
9968 lt_prog_compiler_wl_CXX=
9969 lt_prog_compiler_pic_CXX=
9970 lt_prog_compiler_static_CXX=
9971
9972 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9973 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9974
9975   # C++ specific cases for pic, static, wl, etc.
9976   if test "$GXX" = yes; then
9977     lt_prog_compiler_wl_CXX='-Wl,'
9978     lt_prog_compiler_static_CXX='-static'
9979
9980     case $host_os in
9981     aix*)
9982       # All AIX code is PIC.
9983       if test "$host_cpu" = ia64; then
9984         # AIX 5 now supports IA64 processor
9985         lt_prog_compiler_static_CXX='-Bstatic'
9986       fi
9987       ;;
9988     amigaos*)
9989       # FIXME: we need at least 68020 code to build shared libraries, but
9990       # adding the `-m68020' flag to GCC prevents building anything better,
9991       # like `-m68040'.
9992       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9993       ;;
9994     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9995       # PIC is the default for these OSes.
9996       ;;
9997     mingw* | os2* | pw32*)
9998       # This hack is so that the source file can tell whether it is being
9999       # built for inclusion in a dll (and should export symbols for example).
10000       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10001       ;;
10002     darwin* | rhapsody*)
10003       # PIC is the default on this platform
10004       # Common symbols not allowed in MH_DYLIB files
10005       lt_prog_compiler_pic_CXX='-fno-common'
10006       ;;
10007     *djgpp*)
10008       # DJGPP does not support shared libraries at all
10009       lt_prog_compiler_pic_CXX=
10010       ;;
10011     sysv4*MP*)
10012       if test -d /usr/nec; then
10013         lt_prog_compiler_pic_CXX=-Kconform_pic
10014       fi
10015       ;;
10016     hpux*)
10017       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10018       # not for PA HP-UX.
10019       case "$host_cpu" in
10020       hppa*64*|ia64*)
10021         ;;
10022       *)
10023         lt_prog_compiler_pic_CXX='-fPIC'
10024         ;;
10025       esac
10026       ;;
10027     *)
10028       lt_prog_compiler_pic_CXX='-fPIC'
10029       ;;
10030     esac
10031   else
10032     case $host_os in
10033       aix4* | aix5*)
10034         # All AIX code is PIC.
10035         if test "$host_cpu" = ia64; then
10036           # AIX 5 now supports IA64 processor
10037           lt_prog_compiler_static_CXX='-Bstatic'
10038         else
10039           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10040         fi
10041         ;;
10042       chorus*)
10043         case $cc_basename in
10044         cxch68)
10045           # Green Hills C++ Compiler
10046           # _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"
10047           ;;
10048         esac
10049         ;;
10050       dgux*)
10051         case $cc_basename in
10052           ec++)
10053             lt_prog_compiler_pic_CXX='-KPIC'
10054             ;;
10055           ghcx)
10056             # Green Hills C++ Compiler
10057             lt_prog_compiler_pic_CXX='-pic'
10058             ;;
10059           *)
10060             ;;
10061         esac
10062         ;;
10063       freebsd*)
10064         # FreeBSD uses GNU C++
10065         ;;
10066       hpux9* | hpux10* | hpux11*)
10067         case $cc_basename in
10068           CC)
10069             lt_prog_compiler_wl_CXX='-Wl,'
10070             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10071             if test "$host_cpu" != ia64; then
10072               lt_prog_compiler_pic_CXX='+Z'
10073             fi
10074             ;;
10075           aCC)
10076             lt_prog_compiler_wl_CXX='-Wl,'
10077             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10078             case "$host_cpu" in
10079             hppa*64*|ia64*)
10080               # +Z the default
10081               ;;
10082             *)
10083               lt_prog_compiler_pic_CXX='+Z'
10084               ;;
10085             esac
10086             ;;
10087           *)
10088             ;;
10089         esac
10090         ;;
10091       irix5* | irix6* | nonstopux*)
10092         case $cc_basename in
10093           CC)
10094             lt_prog_compiler_wl_CXX='-Wl,'
10095             lt_prog_compiler_static_CXX='-non_shared'
10096             # CC pic flag -KPIC is the default.
10097             ;;
10098           *)
10099             ;;
10100         esac
10101         ;;
10102       linux*)
10103         case $cc_basename in
10104           KCC)
10105             # KAI C++ Compiler
10106             lt_prog_compiler_wl_CXX='--backend -Wl,'
10107             lt_prog_compiler_pic_CXX='-fPIC'
10108             ;;
10109           icpc)
10110             # Intel C++
10111             lt_prog_compiler_wl_CXX='-Wl,'
10112             lt_prog_compiler_pic_CXX='-KPIC'
10113             lt_prog_compiler_static_CXX='-static'
10114             ;;
10115           cxx)
10116             # Compaq C++
10117             # Make sure the PIC flag is empty.  It appears that all Alpha
10118             # Linux and Compaq Tru64 Unix objects are PIC.
10119             lt_prog_compiler_pic_CXX=
10120             lt_prog_compiler_static_CXX='-non_shared'
10121             ;;
10122           *)
10123             ;;
10124         esac
10125         ;;
10126       lynxos*)
10127         ;;
10128       m88k*)
10129         ;;
10130       mvs*)
10131         case $cc_basename in
10132           cxx)
10133             lt_prog_compiler_pic_CXX='-W c,exportall'
10134             ;;
10135           *)
10136             ;;
10137         esac
10138         ;;
10139       netbsd*)
10140         ;;
10141       osf3* | osf4* | osf5*)
10142         case $cc_basename in
10143           KCC)
10144             lt_prog_compiler_wl_CXX='--backend -Wl,'
10145             ;;
10146           RCC)
10147             # Rational C++ 2.4.1
10148             lt_prog_compiler_pic_CXX='-pic'
10149             ;;
10150           cxx)
10151             # Digital/Compaq C++
10152             lt_prog_compiler_wl_CXX='-Wl,'
10153             # Make sure the PIC flag is empty.  It appears that all Alpha
10154             # Linux and Compaq Tru64 Unix objects are PIC.
10155             lt_prog_compiler_pic_CXX=
10156             lt_prog_compiler_static_CXX='-non_shared'
10157             ;;
10158           *)
10159             ;;
10160         esac
10161         ;;
10162       psos*)
10163         ;;
10164       sco*)
10165         case $cc_basename in
10166           CC)
10167             lt_prog_compiler_pic_CXX='-fPIC'
10168             ;;
10169           *)
10170             ;;
10171         esac
10172         ;;
10173       solaris*)
10174         case $cc_basename in
10175           CC)
10176             # Sun C++ 4.2, 5.x and Centerline C++
10177             lt_prog_compiler_pic_CXX='-KPIC'
10178             lt_prog_compiler_static_CXX='-Bstatic'
10179             lt_prog_compiler_wl_CXX='-Qoption ld '
10180             ;;
10181           gcx)
10182             # Green Hills C++ Compiler
10183             lt_prog_compiler_pic_CXX='-PIC'
10184             ;;
10185           *)
10186             ;;
10187         esac
10188         ;;
10189       sunos4*)
10190         case $cc_basename in
10191           CC)
10192             # Sun C++ 4.x
10193             lt_prog_compiler_pic_CXX='-pic'
10194             lt_prog_compiler_static_CXX='-Bstatic'
10195             ;;
10196           lcc)
10197             # Lucid
10198             lt_prog_compiler_pic_CXX='-pic'
10199             ;;
10200           *)
10201             ;;
10202         esac
10203         ;;
10204       tandem*)
10205         case $cc_basename in
10206           NCC)
10207             # NonStop-UX NCC 3.20
10208             lt_prog_compiler_pic_CXX='-KPIC'
10209             ;;
10210           *)
10211             ;;
10212         esac
10213         ;;
10214       unixware*)
10215         ;;
10216       vxworks*)
10217         ;;
10218       *)
10219         lt_prog_compiler_can_build_shared_CXX=no
10220         ;;
10221     esac
10222   fi
10223
10224 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10225 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10226
10227 #
10228 # Check to make sure the PIC flag actually works.
10229 #
10230 if test -n "$lt_prog_compiler_pic_CXX"; then
10231   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10232 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10233 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10234   echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236   lt_prog_compiler_pic_works_CXX=no
10237   ac_outfile=conftest.$ac_objext
10238    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10239    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10240    # Insert the option either (1) after the last *FLAGS variable, or
10241    # (2) before a word containing "conftest.", or (3) at the end.
10242    # Note that $ac_compile itself does not contain backslashes and begins
10243    # with a dollar sign (not a hyphen), so the echo should work correctly.
10244    # The option is referenced via a variable to avoid confusing sed.
10245    lt_compile=`echo "$ac_compile" | $SED \
10246    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10248    -e 's:$: $lt_compiler_flag:'`
10249    (eval echo "\"\$as_me:10249: $lt_compile\"" >&5)
10250    (eval "$lt_compile" 2>conftest.err)
10251    ac_status=$?
10252    cat conftest.err >&5
10253    echo "$as_me:10253: \$? = $ac_status" >&5
10254    if (exit $ac_status) && test -s "$ac_outfile"; then
10255      # The compiler can only warn and ignore the option if not recognized
10256      # So say no if there are warnings
10257      if test ! -s conftest.err; then
10258        lt_prog_compiler_pic_works_CXX=yes
10259      fi
10260    fi
10261    $rm conftest*
10262
10263 fi
10264 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10265 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10266
10267 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10268     case $lt_prog_compiler_pic_CXX in
10269      "" | " "*) ;;
10270      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10271      esac
10272 else
10273     lt_prog_compiler_pic_CXX=
10274      lt_prog_compiler_can_build_shared_CXX=no
10275 fi
10276
10277 fi
10278 case "$host_os" in
10279   # For platforms which do not support PIC, -DPIC is meaningless:
10280   *djgpp*)
10281     lt_prog_compiler_pic_CXX=
10282     ;;
10283   *)
10284     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10285     ;;
10286 esac
10287
10288 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10289 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10290 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   lt_cv_prog_compiler_c_o_CXX=no
10294    $rm -r conftest 2>/dev/null
10295    mkdir conftest
10296    cd conftest
10297    mkdir out
10298    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10299
10300    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10301    # that will create temporary files in the current directory regardless of
10302    # the output directory.  Thus, making CWD read-only will cause this test
10303    # to fail, enabling locking or at least warning the user not to do parallel
10304    # builds.
10305    chmod -w .
10306
10307    lt_compiler_flag="-o out/conftest2.$ac_objext"
10308    # Insert the option either (1) after the last *FLAGS variable, or
10309    # (2) before a word containing "conftest.", or (3) at the end.
10310    # Note that $ac_compile itself does not contain backslashes and begins
10311    # with a dollar sign (not a hyphen), so the echo should work correctly.
10312    lt_compile=`echo "$ac_compile" | $SED \
10313    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10315    -e 's:$: $lt_compiler_flag:'`
10316    (eval echo "\"\$as_me:10316: $lt_compile\"" >&5)
10317    (eval "$lt_compile" 2>out/conftest.err)
10318    ac_status=$?
10319    cat out/conftest.err >&5
10320    echo "$as_me:10320: \$? = $ac_status" >&5
10321    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10322    then
10323      # The compiler can only warn and ignore the option if not recognized
10324      # So say no if there are warnings
10325      if test ! -s out/conftest.err; then
10326        lt_cv_prog_compiler_c_o_CXX=yes
10327      fi
10328    fi
10329    chmod u+w .
10330    $rm conftest* out/*
10331    rmdir out
10332    cd ..
10333    rmdir conftest
10334    $rm conftest*
10335
10336 fi
10337 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10338 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10339
10340
10341 hard_links="nottested"
10342 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10343   # do not overwrite the value of need_locks provided by the user
10344   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10345 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10346   hard_links=yes
10347   $rm conftest*
10348   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10349   touch conftest.a
10350   ln conftest.a conftest.b 2>&5 || hard_links=no
10351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10352   echo "$as_me:$LINENO: result: $hard_links" >&5
10353 echo "${ECHO_T}$hard_links" >&6
10354   if test "$hard_links" = no; then
10355     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10356 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10357     need_locks=warn
10358   fi
10359 else
10360   need_locks=no
10361 fi
10362
10363 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10364 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10365
10366   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10367   case $host_os in
10368   aix4* | aix5*)
10369     # If we're using GNU nm, then we don't want the "-C" option.
10370     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10371     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10372       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'
10373     else
10374       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'
10375     fi
10376     ;;
10377   pw32*)
10378     export_symbols_cmds_CXX="$ltdll_cmds"
10379   ;;
10380   cygwin* | mingw*)
10381     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10382   ;;
10383   *)
10384     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10385   ;;
10386   esac
10387
10388 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10389 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10390 test "$ld_shlibs_CXX" = no && can_build_shared=no
10391
10392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10393 if test "$GCC" = yes; then
10394   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10395 fi
10396
10397 #
10398 # Do we need to explicitly link libc?
10399 #
10400 case "x$archive_cmds_need_lc_CXX" in
10401 x|xyes)
10402   # Assume -lc should be added
10403   archive_cmds_need_lc_CXX=yes
10404
10405   if test "$enable_shared" = yes && test "$GCC" = yes; then
10406     case $archive_cmds_CXX in
10407     *'~'*)
10408       # FIXME: we may have to deal with multi-command sequences.
10409       ;;
10410     '$CC '*)
10411       # Test whether the compiler implicitly links with -lc since on some
10412       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10413       # to ld, don't add -lc before -lgcc.
10414       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10415 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10416       $rm conftest*
10417       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10418
10419       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420   (eval $ac_compile) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } 2>conftest.err; then
10424         soname=conftest
10425         lib=conftest
10426         libobjs=conftest.$ac_objext
10427         deplibs=
10428         wl=$lt_prog_compiler_wl_CXX
10429         compiler_flags=-v
10430         linker_flags=-v
10431         verstring=
10432         output_objdir=.
10433         libname=conftest
10434         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10435         allow_undefined_flag_CXX=
10436         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10437   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); }
10441         then
10442           archive_cmds_need_lc_CXX=no
10443         else
10444           archive_cmds_need_lc_CXX=yes
10445         fi
10446         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10447       else
10448         cat conftest.err 1>&5
10449       fi
10450       $rm conftest*
10451       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10452 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10453       ;;
10454     esac
10455   fi
10456   ;;
10457 esac
10458
10459 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10460 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10461 hardcode_action_CXX=
10462 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10463    test -n "$runpath_var CXX" || \
10464    test "X$hardcode_automatic_CXX"="Xyes" ; then
10465
10466   # We can hardcode non-existant directories.
10467   if test "$hardcode_direct_CXX" != no &&
10468      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10469      # have to relink, otherwise we might link with an installed library
10470      # when we should be linking with a yet-to-be-installed one
10471      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10472      test "$hardcode_minus_L_CXX" != no; then
10473     # Linking always hardcodes the temporary library directory.
10474     hardcode_action_CXX=relink
10475   else
10476     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10477     hardcode_action_CXX=immediate
10478   fi
10479 else
10480   # We cannot hardcode anything, or else we can only hardcode existing
10481   # directories.
10482   hardcode_action_CXX=unsupported
10483 fi
10484 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10485 echo "${ECHO_T}$hardcode_action_CXX" >&6
10486
10487 if test "$hardcode_action_CXX" = relink; then
10488   # Fast installation is not supported
10489   enable_fast_install=no
10490 elif test "$shlibpath_overrides_runpath" = yes ||
10491      test "$enable_shared" = no; then
10492   # Fast installation is not necessary
10493   enable_fast_install=needless
10494 fi
10495
10496 striplib=
10497 old_striplib=
10498 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10499 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10500 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10501   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10502   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10503   echo "$as_me:$LINENO: result: yes" >&5
10504 echo "${ECHO_T}yes" >&6
10505 else
10506 # FIXME - insert some real tests, host_os isn't really good enough
10507   case $host_os in
10508    darwin*)
10509        if test -n "$STRIP" ; then
10510          striplib="$STRIP -x"
10511          echo "$as_me:$LINENO: result: yes" >&5
10512 echo "${ECHO_T}yes" >&6
10513        else
10514   echo "$as_me:$LINENO: result: no" >&5
10515 echo "${ECHO_T}no" >&6
10516 fi
10517        ;;
10518    *)
10519   echo "$as_me:$LINENO: result: no" >&5
10520 echo "${ECHO_T}no" >&6
10521     ;;
10522   esac
10523 fi
10524
10525 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10526 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10527 library_names_spec=
10528 libname_spec='lib$name'
10529 soname_spec=
10530 shrext=".so"
10531 postinstall_cmds=
10532 postuninstall_cmds=
10533 finish_cmds=
10534 finish_eval=
10535 shlibpath_var=
10536 shlibpath_overrides_runpath=unknown
10537 version_type=none
10538 dynamic_linker="$host_os ld.so"
10539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10540 if test "$GCC" = yes; then
10541   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10542   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10543     # if the path contains ";" then we assume it to be the separator
10544     # otherwise default to the standard path separator (i.e. ":") - it is
10545     # assumed that no part of a normal pathname contains ";" but that should
10546     # okay in the real world where ";" in dirpaths is itself problematic.
10547     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10548   else
10549     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10550   fi
10551 else
10552   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10553 fi
10554 need_lib_prefix=unknown
10555 hardcode_into_libs=no
10556
10557 # when you set need_version to no, make sure it does not cause -set_version
10558 # flags to be left without arguments
10559 need_version=unknown
10560
10561 case $host_os in
10562 aix3*)
10563   version_type=linux
10564   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10565   shlibpath_var=LIBPATH
10566
10567   # AIX 3 has no versioning support, so we append a major version to the name.
10568   soname_spec='${libname}${release}${shared_ext}$major'
10569   ;;
10570
10571 aix4* | aix5*)
10572   version_type=linux
10573   need_lib_prefix=no
10574   need_version=no
10575   hardcode_into_libs=yes
10576   if test "$host_cpu" = ia64; then
10577     # AIX 5 supports IA64
10578     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10579     shlibpath_var=LD_LIBRARY_PATH
10580   else
10581     # With GCC up to 2.95.x, collect2 would create an import file
10582     # for dependence libraries.  The import file would start with
10583     # the line `#! .'.  This would cause the generated library to
10584     # depend on `.', always an invalid library.  This was fixed in
10585     # development snapshots of GCC prior to 3.0.
10586     case $host_os in
10587       aix4 | aix4.[01] | aix4.[01].*)
10588       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10589            echo ' yes '
10590            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10591         :
10592       else
10593         can_build_shared=no
10594       fi
10595       ;;
10596     esac
10597     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10598     # soname into executable. Probably we can add versioning support to
10599     # collect2, so additional links can be useful in future.
10600     if test "$aix_use_runtimelinking" = yes; then
10601       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10602       # instead of lib<name>.a to let people know that these are not
10603       # typical AIX shared libraries.
10604       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605     else
10606       # We preserve .a as extension for shared libraries through AIX4.2
10607       # and later when we are not doing run time linking.
10608       library_names_spec='${libname}${release}.a $libname.a'
10609       soname_spec='${libname}${release}${shared_ext}$major'
10610     fi
10611     shlibpath_var=LIBPATH
10612   fi
10613   ;;
10614
10615 amigaos*)
10616   library_names_spec='$libname.ixlibrary $libname.a'
10617   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10618   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'
10619   ;;
10620
10621 beos*)
10622   library_names_spec='${libname}${shared_ext}'
10623   dynamic_linker="$host_os ld.so"
10624   shlibpath_var=LIBRARY_PATH
10625   ;;
10626
10627 bsdi4*)
10628   version_type=linux
10629   need_version=no
10630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631   soname_spec='${libname}${release}${shared_ext}$major'
10632   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10633   shlibpath_var=LD_LIBRARY_PATH
10634   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10635   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10636   # the default ld.so.conf also contains /usr/contrib/lib and
10637   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10638   # libtool to hard-code these into programs
10639   ;;
10640
10641 cygwin* | mingw* | pw32*)
10642   version_type=windows
10643   shrext=".dll"
10644   need_version=no
10645   need_lib_prefix=no
10646
10647   case $GCC,$host_os in
10648   yes,cygwin* | yes,mingw* | yes,pw32*)
10649     library_names_spec='$libname.dll.a'
10650     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10651     postinstall_cmds='base_file=`basename \${file}`~
10652       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10653       dldir=$destdir/`dirname \$dlpath`~
10654       test -d \$dldir || mkdir -p \$dldir~
10655       $install_prog $dir/$dlname \$dldir/$dlname'
10656     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10657       dlpath=$dir/\$dldll~
10658        $rm \$dlpath'
10659     shlibpath_overrides_runpath=yes
10660
10661     case $host_os in
10662     cygwin*)
10663       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10664       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10665       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10666       ;;
10667     mingw*)
10668       # MinGW DLLs use traditional 'lib' prefix
10669       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10671       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10672         # It is most probably a Windows format PATH printed by
10673         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10674         # path with ; separators, and with drive letters. We can handle the
10675         # drive letters (cygwin fileutils understands them), so leave them,
10676         # especially as we might pass files found there to a mingw objdump,
10677         # which wouldn't understand a cygwinified path. Ahh.
10678         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10679       else
10680         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10681       fi
10682       ;;
10683     pw32*)
10684       # pw32 DLLs use 'pw' prefix rather than 'lib'
10685       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10686       ;;
10687     esac
10688     ;;
10689
10690   *)
10691     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10692     ;;
10693   esac
10694   dynamic_linker='Win32 ld.exe'
10695   # FIXME: first we should search . and the directory the executable is in
10696   shlibpath_var=PATH
10697   ;;
10698
10699 darwin* | rhapsody*)
10700   dynamic_linker="$host_os dyld"
10701   version_type=darwin
10702   need_lib_prefix=no
10703   need_version=no
10704   # FIXME: Relying on posixy $() will cause problems for
10705   #        cross-compilation, but unfortunately the echo tests do not
10706   #        yet detect zsh echo's removal of \ escapes.
10707   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10708   soname_spec='${libname}${release}${major}$shared_ext'
10709   shlibpath_overrides_runpath=yes
10710   shlibpath_var=DYLD_LIBRARY_PATH
10711   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10712   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10713   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10714   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"`
10715   fi
10716   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10717   ;;
10718
10719 dgux*)
10720   version_type=linux
10721   need_lib_prefix=no
10722   need_version=no
10723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10724   soname_spec='${libname}${release}${shared_ext}$major'
10725   shlibpath_var=LD_LIBRARY_PATH
10726   ;;
10727
10728 freebsd1*)
10729   dynamic_linker=no
10730   ;;
10731
10732 freebsd*)
10733   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10734   version_type=freebsd-$objformat
10735   case $version_type in
10736     freebsd-elf*)
10737       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10738       need_version=no
10739       need_lib_prefix=no
10740       ;;
10741     freebsd-*)
10742       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10743       need_version=yes
10744       ;;
10745   esac
10746   shlibpath_var=LD_LIBRARY_PATH
10747   case $host_os in
10748   freebsd2*)
10749     shlibpath_overrides_runpath=yes
10750     ;;
10751   freebsd3.01* | freebsdelf3.01*)
10752     shlibpath_overrides_runpath=yes
10753     hardcode_into_libs=yes
10754     ;;
10755   *) # from 3.2 on
10756     shlibpath_overrides_runpath=no
10757     hardcode_into_libs=yes
10758     ;;
10759   esac
10760   ;;
10761
10762 gnu*)
10763   version_type=linux
10764   need_lib_prefix=no
10765   need_version=no
10766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10767   soname_spec='${libname}${release}${shared_ext}$major'
10768   shlibpath_var=LD_LIBRARY_PATH
10769   hardcode_into_libs=yes
10770   ;;
10771
10772 hpux9* | hpux10* | hpux11*)
10773   # Give a soname corresponding to the major version so that dld.sl refuses to
10774   # link against other versions.
10775   version_type=sunos
10776   need_lib_prefix=no
10777   need_version=no
10778   case "$host_cpu" in
10779   ia64*)
10780     shrext='.so'
10781     hardcode_into_libs=yes
10782     dynamic_linker="$host_os dld.so"
10783     shlibpath_var=LD_LIBRARY_PATH
10784     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786     soname_spec='${libname}${release}${shared_ext}$major'
10787     if test "X$HPUX_IA64_MODE" = X32; then
10788       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10789     else
10790       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10791     fi
10792     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10793     ;;
10794    hppa*64*)
10795      shrext='.sl'
10796      hardcode_into_libs=yes
10797      dynamic_linker="$host_os dld.sl"
10798      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10799      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10800      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801      soname_spec='${libname}${release}${shared_ext}$major'
10802      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10803      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10804      ;;
10805    *)
10806     shrext='.sl'
10807     dynamic_linker="$host_os dld.sl"
10808     shlibpath_var=SHLIB_PATH
10809     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811     soname_spec='${libname}${release}${shared_ext}$major'
10812     ;;
10813   esac
10814   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10815   postinstall_cmds='chmod 555 $lib'
10816   ;;
10817
10818 irix5* | irix6* | nonstopux*)
10819   case $host_os in
10820     nonstopux*) version_type=nonstopux ;;
10821     *)
10822         if test "$lt_cv_prog_gnu_ld" = yes; then
10823                 version_type=linux
10824         else
10825                 version_type=irix
10826         fi ;;
10827   esac
10828   need_lib_prefix=no
10829   need_version=no
10830   soname_spec='${libname}${release}${shared_ext}$major'
10831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10832   case $host_os in
10833   irix5* | nonstopux*)
10834     libsuff= shlibsuff=
10835     ;;
10836   *)
10837     case $LD in # libtool.m4 will add one of these switches to LD
10838     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10839       libsuff= shlibsuff= libmagic=32-bit;;
10840     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10841       libsuff=32 shlibsuff=N32 libmagic=N32;;
10842     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10843       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10844     *) libsuff= shlibsuff= libmagic=never-match;;
10845     esac
10846     ;;
10847   esac
10848   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10849   shlibpath_overrides_runpath=no
10850   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10851   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10852   hardcode_into_libs=yes
10853   ;;
10854
10855 # No shared lib support for Linux oldld, aout, or coff.
10856 linux*oldld* | linux*aout* | linux*coff*)
10857   dynamic_linker=no
10858   ;;
10859
10860 # This must be Linux ELF.
10861 linux*)
10862   version_type=linux
10863   need_lib_prefix=no
10864   need_version=no
10865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866   soname_spec='${libname}${release}${shared_ext}$major'
10867   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10868   shlibpath_var=LD_LIBRARY_PATH
10869   shlibpath_overrides_runpath=no
10870   # This implies no fast_install, which is unacceptable.
10871   # Some rework will be needed to allow for fast_install
10872   # before this can be enabled.
10873   hardcode_into_libs=yes
10874
10875   # We used to test for /lib/ld.so.1 and disable shared libraries on
10876   # powerpc, because MkLinux only supported shared libraries with the
10877   # GNU dynamic linker.  Since this was broken with cross compilers,
10878   # most powerpc-linux boxes support dynamic linking these days and
10879   # people can always --disable-shared, the test was removed, and we
10880   # assume the GNU/Linux dynamic linker is in use.
10881   dynamic_linker='GNU/Linux ld.so'
10882   ;;
10883
10884 netbsd*)
10885   version_type=sunos
10886   need_lib_prefix=no
10887   need_version=no
10888   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10890     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10891     dynamic_linker='NetBSD (a.out) ld.so'
10892   else
10893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10894     soname_spec='${libname}${release}${shared_ext}$major'
10895     dynamic_linker='NetBSD ld.elf_so'
10896   fi
10897   shlibpath_var=LD_LIBRARY_PATH
10898   shlibpath_overrides_runpath=yes
10899   hardcode_into_libs=yes
10900   ;;
10901
10902 newsos6)
10903   version_type=linux
10904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905   shlibpath_var=LD_LIBRARY_PATH
10906   shlibpath_overrides_runpath=yes
10907   ;;
10908
10909 nto-qnx)
10910   version_type=linux
10911   need_lib_prefix=no
10912   need_version=no
10913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914   soname_spec='${libname}${release}${shared_ext}$major'
10915   shlibpath_var=LD_LIBRARY_PATH
10916   shlibpath_overrides_runpath=yes
10917   ;;
10918
10919 openbsd*)
10920   version_type=sunos
10921   need_lib_prefix=no
10922   need_version=no
10923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10924   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10925   shlibpath_var=LD_LIBRARY_PATH
10926   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10927     case $host_os in
10928       openbsd2.[89] | openbsd2.[89].*)
10929         shlibpath_overrides_runpath=no
10930         ;;
10931       *)
10932         shlibpath_overrides_runpath=yes
10933         ;;
10934       esac
10935   else
10936     shlibpath_overrides_runpath=yes
10937   fi
10938   ;;
10939
10940 os2*)
10941   libname_spec='$name'
10942   shrext=".dll"
10943   need_lib_prefix=no
10944   library_names_spec='$libname${shared_ext} $libname.a'
10945   dynamic_linker='OS/2 ld.exe'
10946   shlibpath_var=LIBPATH
10947   ;;
10948
10949 osf3* | osf4* | osf5*)
10950   version_type=osf
10951   need_lib_prefix=no
10952   need_version=no
10953   soname_spec='${libname}${release}${shared_ext}$major'
10954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955   shlibpath_var=LD_LIBRARY_PATH
10956   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10957   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10958   ;;
10959
10960 sco3.2v5*)
10961   version_type=osf
10962   soname_spec='${libname}${release}${shared_ext}$major'
10963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964   shlibpath_var=LD_LIBRARY_PATH
10965   ;;
10966
10967 solaris*)
10968   version_type=linux
10969   need_lib_prefix=no
10970   need_version=no
10971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972   soname_spec='${libname}${release}${shared_ext}$major'
10973   shlibpath_var=LD_LIBRARY_PATH
10974   shlibpath_overrides_runpath=yes
10975   hardcode_into_libs=yes
10976   # ldd complains unless libraries are executable
10977   postinstall_cmds='chmod +x $lib'
10978   ;;
10979
10980 sunos4*)
10981   version_type=sunos
10982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10983   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   shlibpath_overrides_runpath=yes
10986   if test "$with_gnu_ld" = yes; then
10987     need_lib_prefix=no
10988   fi
10989   need_version=yes
10990   ;;
10991
10992 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10993   version_type=linux
10994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995   soname_spec='${libname}${release}${shared_ext}$major'
10996   shlibpath_var=LD_LIBRARY_PATH
10997   case $host_vendor in
10998     sni)
10999       shlibpath_overrides_runpath=no
11000       need_lib_prefix=no
11001       export_dynamic_flag_spec='${wl}-Blargedynsym'
11002       runpath_var=LD_RUN_PATH
11003       ;;
11004     siemens)
11005       need_lib_prefix=no
11006       ;;
11007     motorola)
11008       need_lib_prefix=no
11009       need_version=no
11010       shlibpath_overrides_runpath=no
11011       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11012       ;;
11013   esac
11014   ;;
11015
11016 sysv4*MP*)
11017   if test -d /usr/nec ;then
11018     version_type=linux
11019     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11020     soname_spec='$libname${shared_ext}.$major'
11021     shlibpath_var=LD_LIBRARY_PATH
11022   fi
11023   ;;
11024
11025 uts4*)
11026   version_type=linux
11027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028   soname_spec='${libname}${release}${shared_ext}$major'
11029   shlibpath_var=LD_LIBRARY_PATH
11030   ;;
11031
11032 *)
11033   dynamic_linker=no
11034   ;;
11035 esac
11036 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11037 echo "${ECHO_T}$dynamic_linker" >&6
11038 test "$dynamic_linker" = no && can_build_shared=no
11039
11040 if test "x$enable_dlopen" != xyes; then
11041   enable_dlopen=unknown
11042   enable_dlopen_self=unknown
11043   enable_dlopen_self_static=unknown
11044 else
11045   lt_cv_dlopen=no
11046   lt_cv_dlopen_libs=
11047
11048   case $host_os in
11049   beos*)
11050     lt_cv_dlopen="load_add_on"
11051     lt_cv_dlopen_libs=
11052     lt_cv_dlopen_self=yes
11053     ;;
11054
11055   mingw* | pw32*)
11056     lt_cv_dlopen="LoadLibrary"
11057     lt_cv_dlopen_libs=
11058    ;;
11059
11060   cygwin*)
11061     lt_cv_dlopen="dlopen"
11062     lt_cv_dlopen_libs=
11063    ;;
11064
11065   darwin*)
11066   # if libdl is installed we need to link against it
11067     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11068 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11069 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11070   echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072   ac_check_lib_save_LIBS=$LIBS
11073 LIBS="-ldl  $LIBS"
11074 cat >conftest.$ac_ext <<_ACEOF
11075 #line $LINENO "configure"
11076 /* confdefs.h.  */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h.  */
11081
11082 /* Override any gcc2 internal prototype to avoid an error.  */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 /* We use char because int might match the return type of a gcc2
11087    builtin and then its argument prototype would still apply.  */
11088 char dlopen ();
11089 int
11090 main ()
11091 {
11092 dlopen ();
11093   ;
11094   return 0;
11095 }
11096 _ACEOF
11097 rm -f conftest.$ac_objext conftest$ac_exeext
11098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11099   (eval $ac_link) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); } &&
11103          { ac_try='test -s conftest$ac_exeext'
11104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105   (eval $ac_try) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; }; then
11109   ac_cv_lib_dl_dlopen=yes
11110 else
11111   echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11113
11114 ac_cv_lib_dl_dlopen=no
11115 fi
11116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11117 LIBS=$ac_check_lib_save_LIBS
11118 fi
11119 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11120 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11121 if test $ac_cv_lib_dl_dlopen = yes; then
11122   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11123 else
11124
11125     lt_cv_dlopen="dyld"
11126     lt_cv_dlopen_libs=
11127     lt_cv_dlopen_self=yes
11128
11129 fi
11130
11131    ;;
11132
11133   *)
11134     echo "$as_me:$LINENO: checking for shl_load" >&5
11135 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11136 if test "${ac_cv_func_shl_load+set}" = set; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139   cat >conftest.$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11141 /* confdefs.h.  */
11142 _ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h.  */
11146 /* System header to define __stub macros and hopefully few prototypes,
11147     which can conflict with char shl_load (); below.
11148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149     <limits.h> exists even on freestanding compilers.  */
11150 #ifdef __STDC__
11151 # include <limits.h>
11152 #else
11153 # include <assert.h>
11154 #endif
11155 /* Override any gcc2 internal prototype to avoid an error.  */
11156 #ifdef __cplusplus
11157 extern "C"
11158 {
11159 #endif
11160 /* We use char because int might match the return type of a gcc2
11161    builtin and then its argument prototype would still apply.  */
11162 char shl_load ();
11163 /* The GNU C library defines this for functions which it implements
11164     to always fail with ENOSYS.  Some functions are actually named
11165     something starting with __ and the normal name is an alias.  */
11166 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11167 choke me
11168 #else
11169 char (*f) () = shl_load;
11170 #endif
11171 #ifdef __cplusplus
11172 }
11173 #endif
11174
11175 int
11176 main ()
11177 {
11178 return f != shl_load;
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185   (eval $ac_link) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } &&
11189          { ac_try='test -s conftest$ac_exeext'
11190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191   (eval $ac_try) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; }; then
11195   ac_cv_func_shl_load=yes
11196 else
11197   echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200 ac_cv_func_shl_load=no
11201 fi
11202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11203 fi
11204 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11205 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11206 if test $ac_cv_func_shl_load = yes; then
11207   lt_cv_dlopen="shl_load"
11208 else
11209   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11210 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11211 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11212   echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214   ac_check_lib_save_LIBS=$LIBS
11215 LIBS="-ldld  $LIBS"
11216 cat >conftest.$ac_ext <<_ACEOF
11217 #line $LINENO "configure"
11218 /* confdefs.h.  */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h.  */
11223
11224 /* Override any gcc2 internal prototype to avoid an error.  */
11225 #ifdef __cplusplus
11226 extern "C"
11227 #endif
11228 /* We use char because int might match the return type of a gcc2
11229    builtin and then its argument prototype would still apply.  */
11230 char shl_load ();
11231 int
11232 main ()
11233 {
11234 shl_load ();
11235   ;
11236   return 0;
11237 }
11238 _ACEOF
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241   (eval $ac_link) 2>&5
11242   ac_status=$?
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); } &&
11245          { ac_try='test -s conftest$ac_exeext'
11246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247   (eval $ac_try) 2>&5
11248   ac_status=$?
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); }; }; then
11251   ac_cv_lib_dld_shl_load=yes
11252 else
11253   echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256 ac_cv_lib_dld_shl_load=no
11257 fi
11258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11260 fi
11261 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11262 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11263 if test $ac_cv_lib_dld_shl_load = yes; then
11264   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11265 else
11266   echo "$as_me:$LINENO: checking for dlopen" >&5
11267 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11268 if test "${ac_cv_func_dlopen+set}" = set; then
11269   echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271   cat >conftest.$ac_ext <<_ACEOF
11272 #line $LINENO "configure"
11273 /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278 /* System header to define __stub macros and hopefully few prototypes,
11279     which can conflict with char dlopen (); below.
11280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11281     <limits.h> exists even on freestanding compilers.  */
11282 #ifdef __STDC__
11283 # include <limits.h>
11284 #else
11285 # include <assert.h>
11286 #endif
11287 /* Override any gcc2 internal prototype to avoid an error.  */
11288 #ifdef __cplusplus
11289 extern "C"
11290 {
11291 #endif
11292 /* We use char because int might match the return type of a gcc2
11293    builtin and then its argument prototype would still apply.  */
11294 char dlopen ();
11295 /* The GNU C library defines this for functions which it implements
11296     to always fail with ENOSYS.  Some functions are actually named
11297     something starting with __ and the normal name is an alias.  */
11298 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11299 choke me
11300 #else
11301 char (*f) () = dlopen;
11302 #endif
11303 #ifdef __cplusplus
11304 }
11305 #endif
11306
11307 int
11308 main ()
11309 {
11310 return f != dlopen;
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317   (eval $ac_link) 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); } &&
11321          { ac_try='test -s conftest$ac_exeext'
11322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323   (eval $ac_try) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; }; then
11327   ac_cv_func_dlopen=yes
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 ac_cv_func_dlopen=no
11333 fi
11334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11335 fi
11336 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11337 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11338 if test $ac_cv_func_dlopen = yes; then
11339   lt_cv_dlopen="dlopen"
11340 else
11341   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11342 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11343 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   ac_check_lib_save_LIBS=$LIBS
11347 LIBS="-ldl  $LIBS"
11348 cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11350 /* confdefs.h.  */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h.  */
11355
11356 /* Override any gcc2 internal prototype to avoid an error.  */
11357 #ifdef __cplusplus
11358 extern "C"
11359 #endif
11360 /* We use char because int might match the return type of a gcc2
11361    builtin and then its argument prototype would still apply.  */
11362 char dlopen ();
11363 int
11364 main ()
11365 {
11366 dlopen ();
11367   ;
11368   return 0;
11369 }
11370 _ACEOF
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11373   (eval $ac_link) 2>&5
11374   ac_status=$?
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); } &&
11377          { ac_try='test -s conftest$ac_exeext'
11378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379   (eval $ac_try) 2>&5
11380   ac_status=$?
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); }; }; then
11383   ac_cv_lib_dl_dlopen=yes
11384 else
11385   echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 ac_cv_lib_dl_dlopen=no
11389 fi
11390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11392 fi
11393 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11394 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11395 if test $ac_cv_lib_dl_dlopen = yes; then
11396   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11397 else
11398   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11399 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11400 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11401   echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403   ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-lsvld  $LIBS"
11405 cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11407 /* confdefs.h.  */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h.  */
11412
11413 /* Override any gcc2 internal prototype to avoid an error.  */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 /* We use char because int might match the return type of a gcc2
11418    builtin and then its argument prototype would still apply.  */
11419 char dlopen ();
11420 int
11421 main ()
11422 {
11423 dlopen ();
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430   (eval $ac_link) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } &&
11434          { ac_try='test -s conftest$ac_exeext'
11435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436   (eval $ac_try) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; }; then
11440   ac_cv_lib_svld_dlopen=yes
11441 else
11442   echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 ac_cv_lib_svld_dlopen=no
11446 fi
11447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11449 fi
11450 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11451 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11452 if test $ac_cv_lib_svld_dlopen = yes; then
11453   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11454 else
11455   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11456 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11457 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-ldld  $LIBS"
11462 cat >conftest.$ac_ext <<_ACEOF
11463 #line $LINENO "configure"
11464 /* confdefs.h.  */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h.  */
11469
11470 /* Override any gcc2 internal prototype to avoid an error.  */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 /* We use char because int might match the return type of a gcc2
11475    builtin and then its argument prototype would still apply.  */
11476 char dld_link ();
11477 int
11478 main ()
11479 {
11480 dld_link ();
11481   ;
11482   return 0;
11483 }
11484 _ACEOF
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487   (eval $ac_link) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } &&
11491          { ac_try='test -s conftest$ac_exeext'
11492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493   (eval $ac_try) 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; }; then
11497   ac_cv_lib_dld_dld_link=yes
11498 else
11499   echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11501
11502 ac_cv_lib_dld_dld_link=no
11503 fi
11504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11506 fi
11507 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11508 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11509 if test $ac_cv_lib_dld_dld_link = yes; then
11510   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11511 fi
11512
11513
11514 fi
11515
11516
11517 fi
11518
11519
11520 fi
11521
11522
11523 fi
11524
11525
11526 fi
11527
11528     ;;
11529   esac
11530
11531   if test "x$lt_cv_dlopen" != xno; then
11532     enable_dlopen=yes
11533   else
11534     enable_dlopen=no
11535   fi
11536
11537   case $lt_cv_dlopen in
11538   dlopen)
11539     save_CPPFLAGS="$CPPFLAGS"
11540     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11541
11542     save_LDFLAGS="$LDFLAGS"
11543     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11544
11545     save_LIBS="$LIBS"
11546     LIBS="$lt_cv_dlopen_libs $LIBS"
11547
11548     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11549 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11550 if test "${lt_cv_dlopen_self+set}" = set; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553           if test "$cross_compiling" = yes; then :
11554   lt_cv_dlopen_self=cross
11555 else
11556   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11557   lt_status=$lt_dlunknown
11558   cat > conftest.$ac_ext <<EOF
11559 #line 11559 "configure"
11560 #include "confdefs.h"
11561
11562 #if HAVE_DLFCN_H
11563 #include <dlfcn.h>
11564 #endif
11565
11566 #include <stdio.h>
11567
11568 #ifdef RTLD_GLOBAL
11569 #  define LT_DLGLOBAL           RTLD_GLOBAL
11570 #else
11571 #  ifdef DL_GLOBAL
11572 #    define LT_DLGLOBAL         DL_GLOBAL
11573 #  else
11574 #    define LT_DLGLOBAL         0
11575 #  endif
11576 #endif
11577
11578 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11579    find out it does not work in some platform. */
11580 #ifndef LT_DLLAZY_OR_NOW
11581 #  ifdef RTLD_LAZY
11582 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11583 #  else
11584 #    ifdef DL_LAZY
11585 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11586 #    else
11587 #      ifdef RTLD_NOW
11588 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11589 #      else
11590 #        ifdef DL_NOW
11591 #          define LT_DLLAZY_OR_NOW      DL_NOW
11592 #        else
11593 #          define LT_DLLAZY_OR_NOW      0
11594 #        endif
11595 #      endif
11596 #    endif
11597 #  endif
11598 #endif
11599
11600 #ifdef __cplusplus
11601 extern "C" void exit (int);
11602 #endif
11603
11604 void fnord() { int i=42;}
11605 int main ()
11606 {
11607   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608   int status = $lt_dlunknown;
11609
11610   if (self)
11611     {
11612       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11613       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11614       /* dlclose (self); */
11615     }
11616
11617     exit (status);
11618 }
11619 EOF
11620   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11621   (eval $ac_link) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11625     (./conftest; exit; ) 2>/dev/null
11626     lt_status=$?
11627     case x$lt_status in
11628       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11629       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11630       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11631     esac
11632   else :
11633     # compilation failed
11634     lt_cv_dlopen_self=no
11635   fi
11636 fi
11637 rm -fr conftest*
11638
11639
11640 fi
11641 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11642 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11643
11644     if test "x$lt_cv_dlopen_self" = xyes; then
11645       LDFLAGS="$LDFLAGS $link_static_flag"
11646       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11647 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11648 if test "${lt_cv_dlopen_self_static+set}" = set; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651           if test "$cross_compiling" = yes; then :
11652   lt_cv_dlopen_self_static=cross
11653 else
11654   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11655   lt_status=$lt_dlunknown
11656   cat > conftest.$ac_ext <<EOF
11657 #line 11657 "configure"
11658 #include "confdefs.h"
11659
11660 #if HAVE_DLFCN_H
11661 #include <dlfcn.h>
11662 #endif
11663
11664 #include <stdio.h>
11665
11666 #ifdef RTLD_GLOBAL
11667 #  define LT_DLGLOBAL           RTLD_GLOBAL
11668 #else
11669 #  ifdef DL_GLOBAL
11670 #    define LT_DLGLOBAL         DL_GLOBAL
11671 #  else
11672 #    define LT_DLGLOBAL         0
11673 #  endif
11674 #endif
11675
11676 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11677    find out it does not work in some platform. */
11678 #ifndef LT_DLLAZY_OR_NOW
11679 #  ifdef RTLD_LAZY
11680 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11681 #  else
11682 #    ifdef DL_LAZY
11683 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11684 #    else
11685 #      ifdef RTLD_NOW
11686 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11687 #      else
11688 #        ifdef DL_NOW
11689 #          define LT_DLLAZY_OR_NOW      DL_NOW
11690 #        else
11691 #          define LT_DLLAZY_OR_NOW      0
11692 #        endif
11693 #      endif
11694 #    endif
11695 #  endif
11696 #endif
11697
11698 #ifdef __cplusplus
11699 extern "C" void exit (int);
11700 #endif
11701
11702 void fnord() { int i=42;}
11703 int main ()
11704 {
11705   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11706   int status = $lt_dlunknown;
11707
11708   if (self)
11709     {
11710       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11711       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11712       /* dlclose (self); */
11713     }
11714
11715     exit (status);
11716 }
11717 EOF
11718   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719   (eval $ac_link) 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11723     (./conftest; exit; ) 2>/dev/null
11724     lt_status=$?
11725     case x$lt_status in
11726       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11727       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11728       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11729     esac
11730   else :
11731     # compilation failed
11732     lt_cv_dlopen_self_static=no
11733   fi
11734 fi
11735 rm -fr conftest*
11736
11737
11738 fi
11739 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11740 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11741     fi
11742
11743     CPPFLAGS="$save_CPPFLAGS"
11744     LDFLAGS="$save_LDFLAGS"
11745     LIBS="$save_LIBS"
11746     ;;
11747   esac
11748
11749   case $lt_cv_dlopen_self in
11750   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11751   *) enable_dlopen_self=unknown ;;
11752   esac
11753
11754   case $lt_cv_dlopen_self_static in
11755   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11756   *) enable_dlopen_self_static=unknown ;;
11757   esac
11758 fi
11759
11760
11761 # The else clause should only fire when bootstrapping the
11762 # libtool distribution, otherwise you forgot to ship ltmain.sh
11763 # with your package, and you will get complaints that there are
11764 # no rules to generate ltmain.sh.
11765 if test -f "$ltmain"; then
11766   # See if we are running on zsh, and set the options which allow our commands through
11767   # without removal of \ escapes.
11768   if test -n "${ZSH_VERSION+set}" ; then
11769     setopt NO_GLOB_SUBST
11770   fi
11771   # Now quote all the things that may contain metacharacters while being
11772   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11773   # variables and quote the copies for generation of the libtool script.
11774   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11775     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11776     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11777     deplibs_check_method reload_flag reload_cmds need_locks \
11778     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11779     lt_cv_sys_global_symbol_to_c_name_address \
11780     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11781     old_postinstall_cmds old_postuninstall_cmds \
11782     compiler_CXX \
11783     CC_CXX \
11784     LD_CXX \
11785     lt_prog_compiler_wl_CXX \
11786     lt_prog_compiler_pic_CXX \
11787     lt_prog_compiler_static_CXX \
11788     lt_prog_compiler_no_builtin_flag_CXX \
11789     export_dynamic_flag_spec_CXX \
11790     thread_safe_flag_spec_CXX \
11791     whole_archive_flag_spec_CXX \
11792     enable_shared_with_static_runtimes_CXX \
11793     old_archive_cmds_CXX \
11794     old_archive_from_new_cmds_CXX \
11795     predep_objects_CXX \
11796     postdep_objects_CXX \
11797     predeps_CXX \
11798     postdeps_CXX \
11799     compiler_lib_search_path_CXX \
11800     archive_cmds_CXX \
11801     archive_expsym_cmds_CXX \
11802     postinstall_cmds_CXX \
11803     postuninstall_cmds_CXX \
11804     old_archive_from_expsyms_cmds_CXX \
11805     allow_undefined_flag_CXX \
11806     no_undefined_flag_CXX \
11807     export_symbols_cmds_CXX \
11808     hardcode_libdir_flag_spec_CXX \
11809     hardcode_libdir_flag_spec_ld_CXX \
11810     hardcode_libdir_separator_CXX \
11811     hardcode_automatic_CXX \
11812     module_cmds_CXX \
11813     module_expsym_cmds_CXX \
11814     lt_cv_prog_compiler_c_o_CXX \
11815     exclude_expsyms_CXX \
11816     include_expsyms_CXX; do
11817
11818     case $var in
11819     old_archive_cmds_CXX | \
11820     old_archive_from_new_cmds_CXX | \
11821     archive_cmds_CXX | \
11822     archive_expsym_cmds_CXX | \
11823     module_cmds_CXX | \
11824     module_expsym_cmds_CXX | \
11825     old_archive_from_expsyms_cmds_CXX | \
11826     export_symbols_cmds_CXX | \
11827     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11828     postinstall_cmds | postuninstall_cmds | \
11829     old_postinstall_cmds | old_postuninstall_cmds | \
11830     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11831       # Double-quote double-evaled strings.
11832       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11833       ;;
11834     *)
11835       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11836       ;;
11837     esac
11838   done
11839
11840   case $lt_echo in
11841   *'\$0 --fallback-echo"')
11842     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11843     ;;
11844   esac
11845
11846 cfgfile="$ofile"
11847
11848   cat <<__EOF__ >> "$cfgfile"
11849 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11850
11851 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11852
11853 # Shell to use when invoking shell scripts.
11854 SHELL=$lt_SHELL
11855
11856 # Whether or not to build shared libraries.
11857 build_libtool_libs=$enable_shared
11858
11859 # Whether or not to build static libraries.
11860 build_old_libs=$enable_static
11861
11862 # Whether or not to add -lc for building shared libraries.
11863 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11864
11865 # Whether or not to disallow shared libs when runtime libs are static
11866 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11867
11868 # Whether or not to optimize for fast installation.
11869 fast_install=$enable_fast_install
11870
11871 # The host system.
11872 host_alias=$host_alias
11873 host=$host
11874
11875 # An echo program that does not interpret backslashes.
11876 echo=$lt_echo
11877
11878 # The archiver.
11879 AR=$lt_AR
11880 AR_FLAGS=$lt_AR_FLAGS
11881
11882 # A C compiler.
11883 LTCC=$lt_LTCC
11884
11885 # A language-specific compiler.
11886 CC=$lt_compiler_CXX
11887
11888 # Is the compiler the GNU C compiler?
11889 with_gcc=$GCC_CXX
11890
11891 # An ERE matcher.
11892 EGREP=$lt_EGREP
11893
11894 # The linker used to build libraries.
11895 LD=$lt_LD_CXX
11896
11897 # Whether we need hard or soft links.
11898 LN_S=$lt_LN_S
11899
11900 # A BSD-compatible nm program.
11901 NM=$lt_NM
11902
11903 # A symbol stripping program
11904 STRIP=$STRIP
11905
11906 # Used to examine libraries when file_magic_cmd begins "file"
11907 MAGIC_CMD=$MAGIC_CMD
11908
11909 # Used on cygwin: DLL creation program.
11910 DLLTOOL="$DLLTOOL"
11911
11912 # Used on cygwin: object dumper.
11913 OBJDUMP="$OBJDUMP"
11914
11915 # Used on cygwin: assembler.
11916 AS="$AS"
11917
11918 # The name of the directory that contains temporary libtool files.
11919 objdir=$objdir
11920
11921 # How to create reloadable object files.
11922 reload_flag=$lt_reload_flag
11923 reload_cmds=$lt_reload_cmds
11924
11925 # How to pass a linker flag through the compiler.
11926 wl=$lt_lt_prog_compiler_wl_CXX
11927
11928 # Object file suffix (normally "o").
11929 objext="$ac_objext"
11930
11931 # Old archive suffix (normally "a").
11932 libext="$libext"
11933
11934 # Shared library suffix (normally ".so").
11935 shrext='$shrext'
11936
11937 # Executable file suffix (normally "").
11938 exeext="$exeext"
11939
11940 # Additional compiler flags for building library objects.
11941 pic_flag=$lt_lt_prog_compiler_pic_CXX
11942 pic_mode=$pic_mode
11943
11944 # What is the maximum length of a command?
11945 max_cmd_len=$lt_cv_sys_max_cmd_len
11946
11947 # Does compiler simultaneously support -c and -o options?
11948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11949
11950 # Must we lock files when doing compilation ?
11951 need_locks=$lt_need_locks
11952
11953 # Do we need the lib prefix for modules?
11954 need_lib_prefix=$need_lib_prefix
11955
11956 # Do we need a version for libraries?
11957 need_version=$need_version
11958
11959 # Whether dlopen is supported.
11960 dlopen_support=$enable_dlopen
11961
11962 # Whether dlopen of programs is supported.
11963 dlopen_self=$enable_dlopen_self
11964
11965 # Whether dlopen of statically linked programs is supported.
11966 dlopen_self_static=$enable_dlopen_self_static
11967
11968 # Compiler flag to prevent dynamic linking.
11969 link_static_flag=$lt_lt_prog_compiler_static_CXX
11970
11971 # Compiler flag to turn off builtin functions.
11972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11973
11974 # Compiler flag to allow reflexive dlopens.
11975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11976
11977 # Compiler flag to generate shared objects directly from archives.
11978 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11979
11980 # Compiler flag to generate thread-safe objects.
11981 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11982
11983 # Library versioning type.
11984 version_type=$version_type
11985
11986 # Format of library name prefix.
11987 libname_spec=$lt_libname_spec
11988
11989 # List of archive names.  First name is the real one, the rest are links.
11990 # The last name is the one that the linker finds with -lNAME.
11991 library_names_spec=$lt_library_names_spec
11992
11993 # The coded name of the library, if different from the real name.
11994 soname_spec=$lt_soname_spec
11995
11996 # Commands used to build and install an old-style archive.
11997 RANLIB=$lt_RANLIB
11998 old_archive_cmds=$lt_old_archive_cmds_CXX
11999 old_postinstall_cmds=$lt_old_postinstall_cmds
12000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12001
12002 # Create an old-style archive from a shared archive.
12003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12004
12005 # Create a temporary old-style archive to link instead of a shared archive.
12006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12007
12008 # Commands used to build and install a shared archive.
12009 archive_cmds=$lt_archive_cmds_CXX
12010 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12011 postinstall_cmds=$lt_postinstall_cmds
12012 postuninstall_cmds=$lt_postuninstall_cmds
12013
12014 # Commands used to build a loadable module (assumed same as above if empty)
12015 module_cmds=$lt_module_cmds_CXX
12016 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12017
12018 # Commands to strip libraries.
12019 old_striplib=$lt_old_striplib
12020 striplib=$lt_striplib
12021
12022 # Dependencies to place before the objects being linked to create a
12023 # shared library.
12024 predep_objects=$lt_predep_objects_CXX
12025
12026 # Dependencies to place after the objects being linked to create a
12027 # shared library.
12028 postdep_objects=$lt_postdep_objects_CXX
12029
12030 # Dependencies to place before the objects being linked to create a
12031 # shared library.
12032 predeps=$lt_predeps_CXX
12033
12034 # Dependencies to place after the objects being linked to create a
12035 # shared library.
12036 postdeps=$lt_postdeps_CXX
12037
12038 # The library search path used internally by the compiler when linking
12039 # a shared library.
12040 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12041
12042 # Method to check whether dependent libraries are shared objects.
12043 deplibs_check_method=$lt_deplibs_check_method
12044
12045 # Command to use when deplibs_check_method == file_magic.
12046 file_magic_cmd=$lt_file_magic_cmd
12047
12048 # Flag that allows shared libraries with undefined symbols to be built.
12049 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12050
12051 # Flag that forces no undefined symbols.
12052 no_undefined_flag=$lt_no_undefined_flag_CXX
12053
12054 # Commands used to finish a libtool library installation in a directory.
12055 finish_cmds=$lt_finish_cmds
12056
12057 # Same as above, but a single script fragment to be evaled but not shown.
12058 finish_eval=$lt_finish_eval
12059
12060 # Take the output of nm and produce a listing of raw symbols and C names.
12061 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12062
12063 # Transform the output of nm in a proper C declaration
12064 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12065
12066 # Transform the output of nm in a C name address pair
12067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12068
12069 # This is the shared library runtime path variable.
12070 runpath_var=$runpath_var
12071
12072 # This is the shared library path variable.
12073 shlibpath_var=$shlibpath_var
12074
12075 # Is shlibpath searched before the hard-coded library search path?
12076 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12077
12078 # How to hardcode a shared library path into an executable.
12079 hardcode_action=$hardcode_action_CXX
12080
12081 # Whether we should hardcode library paths into libraries.
12082 hardcode_into_libs=$hardcode_into_libs
12083
12084 # Flag to hardcode \$libdir into a binary during linking.
12085 # This must work even if \$libdir does not exist.
12086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12087
12088 # If ld is used when linking, flag to hardcode \$libdir into
12089 # a binary during linking. This must work even if \$libdir does
12090 # not exist.
12091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12092
12093 # Whether we need a single -rpath flag with a separated argument.
12094 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12095
12096 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12097 # resulting binary.
12098 hardcode_direct=$hardcode_direct_CXX
12099
12100 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12101 # resulting binary.
12102 hardcode_minus_L=$hardcode_minus_L_CXX
12103
12104 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12105 # the resulting binary.
12106 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12107
12108 # Set to yes if building a shared library automatically hardcodes DIR into the library
12109 # and all subsequent libraries and executables linked against it.
12110 hardcode_automatic=$hardcode_automatic_CXX
12111
12112 # Variables whose values should be saved in libtool wrapper scripts and
12113 # restored at relink time.
12114 variables_saved_for_relink="$variables_saved_for_relink"
12115
12116 # Whether libtool must link a program against all its dependency libraries.
12117 link_all_deplibs=$link_all_deplibs_CXX
12118
12119 # Compile-time system search path for libraries
12120 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12121
12122 # Run-time system search path for libraries
12123 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12124
12125 # Fix the shell variable \$srcfile for the compiler.
12126 fix_srcfile_path="$fix_srcfile_path_CXX"
12127
12128 # Set to yes if exported symbols are required.
12129 always_export_symbols=$always_export_symbols_CXX
12130
12131 # The commands to list exported symbols.
12132 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12133
12134 # The commands to extract the exported symbol list from a shared archive.
12135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12136
12137 # Symbols that should not be listed in the preloaded symbols.
12138 exclude_expsyms=$lt_exclude_expsyms_CXX
12139
12140 # Symbols that must always be exported.
12141 include_expsyms=$lt_include_expsyms_CXX
12142
12143 # ### END LIBTOOL TAG CONFIG: $tagname
12144
12145 __EOF__
12146
12147
12148 else
12149   # If there is no Makefile yet, we rely on a make rule to execute
12150   # `config.status --recheck' to rerun these tests and create the
12151   # libtool script then.
12152   test -f Makefile && make "$ltmain"
12153 fi
12154
12155
12156 ac_ext=c
12157 ac_cpp='$CPP $CPPFLAGS'
12158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12161
12162 CC=$lt_save_CC
12163 LDCXX=$LD
12164 LD=$lt_save_LD
12165 GCC=$lt_save_GCC
12166 with_gnu_ldcxx=$with_gnu_ld
12167 with_gnu_ld=$lt_save_with_gnu_ld
12168 lt_cv_path_LDCXX=$lt_cv_path_LD
12169 lt_cv_path_LD=$lt_save_path_LD
12170 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12171 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12172
12173         else
12174           tagname=""
12175         fi
12176         ;;
12177
12178       F77)
12179         if test -n "$F77" && test "X$F77" != "Xno"; then
12180
12181 ac_ext=f
12182 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12183 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12184 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12185
12186
12187 archive_cmds_need_lc_F77=no
12188 allow_undefined_flag_F77=
12189 always_export_symbols_F77=no
12190 archive_expsym_cmds_F77=
12191 export_dynamic_flag_spec_F77=
12192 hardcode_direct_F77=no
12193 hardcode_libdir_flag_spec_F77=
12194 hardcode_libdir_flag_spec_ld_F77=
12195 hardcode_libdir_separator_F77=
12196 hardcode_minus_L_F77=no
12197 hardcode_automatic_F77=no
12198 module_cmds_F77=
12199 module_expsym_cmds_F77=
12200 link_all_deplibs_F77=unknown
12201 old_archive_cmds_F77=$old_archive_cmds
12202 no_undefined_flag_F77=
12203 whole_archive_flag_spec_F77=
12204 enable_shared_with_static_runtimes_F77=no
12205
12206 # Source file extension for f77 test sources.
12207 ac_ext=f
12208
12209 # Object file extension for compiled f77 test sources.
12210 objext=o
12211 objext_F77=$objext
12212
12213 # Code to be used in simple compile tests
12214 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12215
12216 # Code to be used in simple link tests
12217 lt_simple_link_test_code="      program t\n      end\n"
12218
12219 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12220
12221 # If no C compiler was specified, use CC.
12222 LTCC=${LTCC-"$CC"}
12223
12224 # Allow CC to be a program name with arguments.
12225 compiler=$CC
12226
12227
12228 # Allow CC to be a program name with arguments.
12229 lt_save_CC="$CC"
12230 CC=${F77-"f77"}
12231 compiler=$CC
12232 compiler_F77=$CC
12233 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12234
12235 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12236 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12237 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12238 echo "${ECHO_T}$can_build_shared" >&6
12239
12240 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12241 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12242 test "$can_build_shared" = "no" && enable_shared=no
12243
12244 # On AIX, shared libraries and static libraries use the same namespace, and
12245 # are all built from PIC.
12246 case "$host_os" in
12247 aix3*)
12248   test "$enable_shared" = yes && enable_static=no
12249   if test -n "$RANLIB"; then
12250     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12251     postinstall_cmds='$RANLIB $lib'
12252   fi
12253   ;;
12254 aix4*)
12255   test "$enable_shared" = yes && enable_static=no
12256   ;;
12257 esac
12258 echo "$as_me:$LINENO: result: $enable_shared" >&5
12259 echo "${ECHO_T}$enable_shared" >&6
12260
12261 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12262 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12263 # Make sure either enable_shared or enable_static is yes.
12264 test "$enable_shared" = yes || enable_static=yes
12265 echo "$as_me:$LINENO: result: $enable_static" >&5
12266 echo "${ECHO_T}$enable_static" >&6
12267
12268 test "$ld_shlibs_F77" = no && can_build_shared=no
12269
12270 GCC_F77="$G77"
12271 LD_F77="$LD"
12272
12273 lt_prog_compiler_wl_F77=
12274 lt_prog_compiler_pic_F77=
12275 lt_prog_compiler_static_F77=
12276
12277 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12278 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12279
12280   if test "$GCC" = yes; then
12281     lt_prog_compiler_wl_F77='-Wl,'
12282     lt_prog_compiler_static_F77='-static'
12283
12284     case $host_os in
12285       aix*)
12286       # All AIX code is PIC.
12287       if test "$host_cpu" = ia64; then
12288         # AIX 5 now supports IA64 processor
12289         lt_prog_compiler_static_F77='-Bstatic'
12290       fi
12291       ;;
12292
12293     amigaos*)
12294       # FIXME: we need at least 68020 code to build shared libraries, but
12295       # adding the `-m68020' flag to GCC prevents building anything better,
12296       # like `-m68040'.
12297       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12298       ;;
12299
12300     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12301       # PIC is the default for these OSes.
12302       ;;
12303
12304     mingw* | pw32* | os2*)
12305       # This hack is so that the source file can tell whether it is being
12306       # built for inclusion in a dll (and should export symbols for example).
12307       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12308       ;;
12309
12310     darwin* | rhapsody*)
12311       # PIC is the default on this platform
12312       # Common symbols not allowed in MH_DYLIB files
12313       lt_prog_compiler_pic_F77='-fno-common'
12314       ;;
12315
12316     msdosdjgpp*)
12317       # Just because we use GCC doesn't mean we suddenly get shared libraries
12318       # on systems that don't support them.
12319       lt_prog_compiler_can_build_shared_F77=no
12320       enable_shared=no
12321       ;;
12322
12323     sysv4*MP*)
12324       if test -d /usr/nec; then
12325         lt_prog_compiler_pic_F77=-Kconform_pic
12326       fi
12327       ;;
12328
12329     hpux*)
12330       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12331       # not for PA HP-UX.
12332       case "$host_cpu" in
12333       hppa*64*|ia64*)
12334         # +Z the default
12335         ;;
12336       *)
12337         lt_prog_compiler_pic_F77='-fPIC'
12338         ;;
12339       esac
12340       ;;
12341
12342     *)
12343       lt_prog_compiler_pic_F77='-fPIC'
12344       ;;
12345     esac
12346   else
12347     # PORTME Check for flag to pass linker flags through the system compiler.
12348     case $host_os in
12349     aix*)
12350       lt_prog_compiler_wl_F77='-Wl,'
12351       if test "$host_cpu" = ia64; then
12352         # AIX 5 now supports IA64 processor
12353         lt_prog_compiler_static_F77='-Bstatic'
12354       else
12355         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12356       fi
12357       ;;
12358
12359     mingw* | pw32* | os2*)
12360       # This hack is so that the source file can tell whether it is being
12361       # built for inclusion in a dll (and should export symbols for example).
12362       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12363       ;;
12364
12365     hpux9* | hpux10* | hpux11*)
12366       lt_prog_compiler_wl_F77='-Wl,'
12367       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12368       # not for PA HP-UX.
12369       case "$host_cpu" in
12370       hppa*64*|ia64*)
12371         # +Z the default
12372         ;;
12373       *)
12374         lt_prog_compiler_pic_F77='+Z'
12375         ;;
12376       esac
12377       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12378       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12379       ;;
12380
12381     irix5* | irix6* | nonstopux*)
12382       lt_prog_compiler_wl_F77='-Wl,'
12383       # PIC (with -KPIC) is the default.
12384       lt_prog_compiler_static_F77='-non_shared'
12385       ;;
12386
12387     newsos6)
12388       lt_prog_compiler_pic_F77='-KPIC'
12389       lt_prog_compiler_static_F77='-Bstatic'
12390       ;;
12391
12392     linux*)
12393       case $CC in
12394       icc|ecc)
12395         lt_prog_compiler_wl_F77='-Wl,'
12396         lt_prog_compiler_pic_F77='-KPIC'
12397         lt_prog_compiler_static_F77='-static'
12398         ;;
12399       ccc)
12400         lt_prog_compiler_wl_F77='-Wl,'
12401         # All Alpha code is PIC.
12402         lt_prog_compiler_static_F77='-non_shared'
12403         ;;
12404       esac
12405       ;;
12406
12407     osf3* | osf4* | osf5*)
12408       lt_prog_compiler_wl_F77='-Wl,'
12409       # All OSF/1 code is PIC.
12410       lt_prog_compiler_static_F77='-non_shared'
12411       ;;
12412
12413     sco3.2v5*)
12414       lt_prog_compiler_pic_F77='-Kpic'
12415       lt_prog_compiler_static_F77='-dn'
12416       ;;
12417
12418     solaris*)
12419       lt_prog_compiler_wl_F77='-Wl,'
12420       lt_prog_compiler_pic_F77='-KPIC'
12421       lt_prog_compiler_static_F77='-Bstatic'
12422       ;;
12423
12424     sunos4*)
12425       lt_prog_compiler_wl_F77='-Qoption ld '
12426       lt_prog_compiler_pic_F77='-PIC'
12427       lt_prog_compiler_static_F77='-Bstatic'
12428       ;;
12429
12430     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12431       lt_prog_compiler_wl_F77='-Wl,'
12432       lt_prog_compiler_pic_F77='-KPIC'
12433       lt_prog_compiler_static_F77='-Bstatic'
12434       ;;
12435
12436     sysv4*MP*)
12437       if test -d /usr/nec ;then
12438         lt_prog_compiler_pic_F77='-Kconform_pic'
12439         lt_prog_compiler_static_F77='-Bstatic'
12440       fi
12441       ;;
12442
12443     uts4*)
12444       lt_prog_compiler_pic_F77='-pic'
12445       lt_prog_compiler_static_F77='-Bstatic'
12446       ;;
12447
12448     *)
12449       lt_prog_compiler_can_build_shared_F77=no
12450       ;;
12451     esac
12452   fi
12453
12454 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12455 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12456
12457 #
12458 # Check to make sure the PIC flag actually works.
12459 #
12460 if test -n "$lt_prog_compiler_pic_F77"; then
12461   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12462 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12463 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466   lt_prog_compiler_pic_works_F77=no
12467   ac_outfile=conftest.$ac_objext
12468    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12469    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12470    # Insert the option either (1) after the last *FLAGS variable, or
12471    # (2) before a word containing "conftest.", or (3) at the end.
12472    # Note that $ac_compile itself does not contain backslashes and begins
12473    # with a dollar sign (not a hyphen), so the echo should work correctly.
12474    # The option is referenced via a variable to avoid confusing sed.
12475    lt_compile=`echo "$ac_compile" | $SED \
12476    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12477    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12478    -e 's:$: $lt_compiler_flag:'`
12479    (eval echo "\"\$as_me:12479: $lt_compile\"" >&5)
12480    (eval "$lt_compile" 2>conftest.err)
12481    ac_status=$?
12482    cat conftest.err >&5
12483    echo "$as_me:12483: \$? = $ac_status" >&5
12484    if (exit $ac_status) && test -s "$ac_outfile"; then
12485      # The compiler can only warn and ignore the option if not recognized
12486      # So say no if there are warnings
12487      if test ! -s conftest.err; then
12488        lt_prog_compiler_pic_works_F77=yes
12489      fi
12490    fi
12491    $rm conftest*
12492
12493 fi
12494 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12495 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12496
12497 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12498     case $lt_prog_compiler_pic_F77 in
12499      "" | " "*) ;;
12500      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12501      esac
12502 else
12503     lt_prog_compiler_pic_F77=
12504      lt_prog_compiler_can_build_shared_F77=no
12505 fi
12506
12507 fi
12508 case "$host_os" in
12509   # For platforms which do not support PIC, -DPIC is meaningless:
12510   *djgpp*)
12511     lt_prog_compiler_pic_F77=
12512     ;;
12513   *)
12514     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12515     ;;
12516 esac
12517
12518 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12519 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12520 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12521   echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523   lt_cv_prog_compiler_c_o_F77=no
12524    $rm -r conftest 2>/dev/null
12525    mkdir conftest
12526    cd conftest
12527    mkdir out
12528    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12529
12530    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12531    # that will create temporary files in the current directory regardless of
12532    # the output directory.  Thus, making CWD read-only will cause this test
12533    # to fail, enabling locking or at least warning the user not to do parallel
12534    # builds.
12535    chmod -w .
12536
12537    lt_compiler_flag="-o out/conftest2.$ac_objext"
12538    # Insert the option either (1) after the last *FLAGS variable, or
12539    # (2) before a word containing "conftest.", or (3) at the end.
12540    # Note that $ac_compile itself does not contain backslashes and begins
12541    # with a dollar sign (not a hyphen), so the echo should work correctly.
12542    lt_compile=`echo "$ac_compile" | $SED \
12543    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12544    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12545    -e 's:$: $lt_compiler_flag:'`
12546    (eval echo "\"\$as_me:12546: $lt_compile\"" >&5)
12547    (eval "$lt_compile" 2>out/conftest.err)
12548    ac_status=$?
12549    cat out/conftest.err >&5
12550    echo "$as_me:12550: \$? = $ac_status" >&5
12551    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12552    then
12553      # The compiler can only warn and ignore the option if not recognized
12554      # So say no if there are warnings
12555      if test ! -s out/conftest.err; then
12556        lt_cv_prog_compiler_c_o_F77=yes
12557      fi
12558    fi
12559    chmod u+w .
12560    $rm conftest* out/*
12561    rmdir out
12562    cd ..
12563    rmdir conftest
12564    $rm conftest*
12565
12566 fi
12567 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12568 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12569
12570
12571 hard_links="nottested"
12572 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12573   # do not overwrite the value of need_locks provided by the user
12574   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12575 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12576   hard_links=yes
12577   $rm conftest*
12578   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12579   touch conftest.a
12580   ln conftest.a conftest.b 2>&5 || hard_links=no
12581   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12582   echo "$as_me:$LINENO: result: $hard_links" >&5
12583 echo "${ECHO_T}$hard_links" >&6
12584   if test "$hard_links" = no; then
12585     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12586 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12587     need_locks=warn
12588   fi
12589 else
12590   need_locks=no
12591 fi
12592
12593 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12595
12596   runpath_var=
12597   allow_undefined_flag_F77=
12598   enable_shared_with_static_runtimes_F77=no
12599   archive_cmds_F77=
12600   archive_expsym_cmds_F77=
12601   old_archive_From_new_cmds_F77=
12602   old_archive_from_expsyms_cmds_F77=
12603   export_dynamic_flag_spec_F77=
12604   whole_archive_flag_spec_F77=
12605   thread_safe_flag_spec_F77=
12606   hardcode_libdir_flag_spec_F77=
12607   hardcode_libdir_flag_spec_ld_F77=
12608   hardcode_libdir_separator_F77=
12609   hardcode_direct_F77=no
12610   hardcode_minus_L_F77=no
12611   hardcode_shlibpath_var_F77=unsupported
12612   link_all_deplibs_F77=unknown
12613   hardcode_automatic_F77=no
12614   module_cmds_F77=
12615   module_expsym_cmds_F77=
12616   always_export_symbols_F77=no
12617   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12618   # include_expsyms should be a list of space-separated symbols to be *always*
12619   # included in the symbol list
12620   include_expsyms_F77=
12621   # exclude_expsyms can be an extended regexp of symbols to exclude
12622   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12623   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12624   # as well as any symbol that contains `d'.
12625   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12626   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12627   # platforms (ab)use it in PIC code, but their linkers get confused if
12628   # the symbol is explicitly referenced.  Since portable code cannot
12629   # rely on this symbol name, it's probably fine to never include it in
12630   # preloaded symbol tables.
12631   extract_expsyms_cmds=
12632
12633   case $host_os in
12634   cygwin* | mingw* | pw32*)
12635     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12636     # When not using gcc, we currently assume that we are using
12637     # Microsoft Visual C++.
12638     if test "$GCC" != yes; then
12639       with_gnu_ld=no
12640     fi
12641     ;;
12642   openbsd*)
12643     with_gnu_ld=no
12644     ;;
12645   esac
12646
12647   ld_shlibs_F77=yes
12648   if test "$with_gnu_ld" = yes; then
12649     # If archive_cmds runs LD, not CC, wlarc should be empty
12650     wlarc='${wl}'
12651
12652     # See if GNU ld supports shared libraries.
12653     case $host_os in
12654     aix3* | aix4* | aix5*)
12655       # On AIX/PPC, the GNU linker is very broken
12656       if test "$host_cpu" != ia64; then
12657         ld_shlibs_F77=no
12658         cat <<EOF 1>&2
12659
12660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12661 *** to be unable to reliably create shared libraries on AIX.
12662 *** Therefore, libtool is disabling shared libraries support.  If you
12663 *** really care for shared libraries, you may want to modify your PATH
12664 *** so that a non-GNU linker is found, and then restart.
12665
12666 EOF
12667       fi
12668       ;;
12669
12670     amigaos*)
12671       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)'
12672       hardcode_libdir_flag_spec_F77='-L$libdir'
12673       hardcode_minus_L_F77=yes
12674
12675       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12676       # that the semantics of dynamic libraries on AmigaOS, at least up
12677       # to version 4, is to share data among multiple programs linked
12678       # with the same dynamic library.  Since this doesn't match the
12679       # behavior of shared libraries on other platforms, we can't use
12680       # them.
12681       ld_shlibs_F77=no
12682       ;;
12683
12684     beos*)
12685       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12686         allow_undefined_flag_F77=unsupported
12687         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12688         # support --undefined.  This deserves some investigation.  FIXME
12689         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12690       else
12691         ld_shlibs_F77=no
12692       fi
12693       ;;
12694
12695     cygwin* | mingw* | pw32*)
12696       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12697       # as there is no search path for DLLs.
12698       hardcode_libdir_flag_spec_F77='-L$libdir'
12699       allow_undefined_flag_F77=unsupported
12700       always_export_symbols_F77=no
12701       enable_shared_with_static_runtimes_F77=yes
12702       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12703
12704       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12705         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12706         # If the export-symbols file already is a .def file (1st line
12707         # is EXPORTS), use it as is; otherwise, prepend...
12708         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12709           cp $export_symbols $output_objdir/$soname.def;
12710         else
12711           echo EXPORTS > $output_objdir/$soname.def;
12712           cat $export_symbols >> $output_objdir/$soname.def;
12713         fi~
12714         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12715       else
12716         ld_shlibs=no
12717       fi
12718       ;;
12719
12720     netbsd*)
12721       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12722         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12723         wlarc=
12724       else
12725         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12726         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12727       fi
12728       ;;
12729
12730     solaris* | sysv5*)
12731       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12732         ld_shlibs_F77=no
12733         cat <<EOF 1>&2
12734
12735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12736 *** create shared libraries on Solaris systems.  Therefore, libtool
12737 *** is disabling shared libraries support.  We urge you to upgrade GNU
12738 *** binutils to release 2.9.1 or newer.  Another option is to modify
12739 *** your PATH or compiler configuration so that the native linker is
12740 *** used, and then restart.
12741
12742 EOF
12743       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12744         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12746       else
12747         ld_shlibs_F77=no
12748       fi
12749       ;;
12750
12751     sunos4*)
12752       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12753       wlarc=
12754       hardcode_direct_F77=yes
12755       hardcode_shlibpath_var_F77=no
12756       ;;
12757
12758     *)
12759       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12760         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12761         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12762       else
12763         ld_shlibs_F77=no
12764       fi
12765       ;;
12766     esac
12767
12768     if test "$ld_shlibs_F77" = yes; then
12769       runpath_var=LD_RUN_PATH
12770       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12771       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12772       # ancient GNU ld didn't support --whole-archive et. al.
12773       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12774         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12775       else
12776         whole_archive_flag_spec_F77=
12777       fi
12778     fi
12779   else
12780     # PORTME fill in a description of your system's linker (not GNU ld)
12781     case $host_os in
12782     aix3*)
12783       allow_undefined_flag_F77=unsupported
12784       always_export_symbols_F77=yes
12785       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'
12786       # Note: this linker hardcodes the directories in LIBPATH if there
12787       # are no directories specified by -L.
12788       hardcode_minus_L_F77=yes
12789       if test "$GCC" = yes && test -z "$link_static_flag"; then
12790         # Neither direct hardcoding nor static linking is supported with a
12791         # broken collect2.
12792         hardcode_direct_F77=unsupported
12793       fi
12794       ;;
12795
12796     aix4* | aix5*)
12797       if test "$host_cpu" = ia64; then
12798         # On IA64, the linker does run time linking by default, so we don't
12799         # have to do anything special.
12800         aix_use_runtimelinking=no
12801         exp_sym_flag='-Bexport'
12802         no_entry_flag=""
12803       else
12804         # If we're using GNU nm, then we don't want the "-C" option.
12805         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12806         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12807           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'
12808         else
12809           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'
12810         fi
12811         aix_use_runtimelinking=no
12812
12813         # Test if we are trying to use run time linking or normal
12814         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12815         # need to do runtime linking.
12816         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12817           for ld_flag in $LDFLAGS; do
12818           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12819             aix_use_runtimelinking=yes
12820             break
12821           fi
12822           done
12823         esac
12824
12825         exp_sym_flag='-bexport'
12826         no_entry_flag='-bnoentry'
12827       fi
12828
12829       # When large executables or shared objects are built, AIX ld can
12830       # have problems creating the table of contents.  If linking a library
12831       # or program results in "error TOC overflow" add -mminimal-toc to
12832       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12833       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12834
12835       archive_cmds_F77=''
12836       hardcode_direct_F77=yes
12837       hardcode_libdir_separator_F77=':'
12838       link_all_deplibs_F77=yes
12839
12840       if test "$GCC" = yes; then
12841         case $host_os in aix4.012|aix4.012.*)
12842         # We only want to do this on AIX 4.2 and lower, the check
12843         # below for broken collect2 doesn't work under 4.3+
12844           collect2name=`${CC} -print-prog-name=collect2`
12845           if test -f "$collect2name" && \
12846            strings "$collect2name" | grep resolve_lib_name >/dev/null
12847           then
12848           # We have reworked collect2
12849           hardcode_direct_F77=yes
12850           else
12851           # We have old collect2
12852           hardcode_direct_F77=unsupported
12853           # It fails to find uninstalled libraries when the uninstalled
12854           # path is not listed in the libpath.  Setting hardcode_minus_L
12855           # to unsupported forces relinking
12856           hardcode_minus_L_F77=yes
12857           hardcode_libdir_flag_spec_F77='-L$libdir'
12858           hardcode_libdir_separator_F77=
12859           fi
12860         esac
12861         shared_flag='-shared'
12862       else
12863         # not using gcc
12864         if test "$host_cpu" = ia64; then
12865         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12866         # chokes on -Wl,-G. The following line is correct:
12867           shared_flag='-G'
12868         else
12869         if test "$aix_use_runtimelinking" = yes; then
12870             shared_flag='${wl}-G'
12871           else
12872             shared_flag='${wl}-bM:SRE'
12873         fi
12874         fi
12875       fi
12876
12877       # It seems that -bexpall does not export symbols beginning with
12878       # underscore (_), so it is better to generate a list of symbols to export.
12879       always_export_symbols_F77=yes
12880       if test "$aix_use_runtimelinking" = yes; then
12881         # Warning - without using the other runtime loading flags (-brtl),
12882         # -berok will link without error, but may produce a broken library.
12883         allow_undefined_flag_F77='-berok'
12884        # Determine the default libpath from the value encoded in an empty executable.
12885        cat >conftest.$ac_ext <<_ACEOF
12886       program main
12887
12888       end
12889 _ACEOF
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12892   (eval $ac_link) 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); } &&
12896          { ac_try='test -s conftest$ac_exeext'
12897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898   (eval $ac_try) 2>&5
12899   ac_status=$?
12900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); }; }; then
12902
12903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12904 }'`
12905 # Check for a 64-bit object if we didn't find anything.
12906 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; }
12907 }'`; fi
12908 else
12909   echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12911
12912 fi
12913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12915
12916        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12917         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"
12918        else
12919         if test "$host_cpu" = ia64; then
12920           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12921           allow_undefined_flag_F77="-z nodefs"
12922           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"
12923         else
12924          # Determine the default libpath from the value encoded in an empty executable.
12925          cat >conftest.$ac_ext <<_ACEOF
12926       program main
12927
12928       end
12929 _ACEOF
12930 rm -f conftest.$ac_objext conftest$ac_exeext
12931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12932   (eval $ac_link) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); } &&
12936          { ac_try='test -s conftest$ac_exeext'
12937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938   (eval $ac_try) 2>&5
12939   ac_status=$?
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); }; }; then
12942
12943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12944 }'`
12945 # Check for a 64-bit object if we didn't find anything.
12946 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; }
12947 }'`; fi
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952 fi
12953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12954 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12955
12956          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12957           # Warning - without using the other run time loading flags,
12958           # -berok will link without error, but may produce a broken library.
12959           no_undefined_flag_F77=' ${wl}-bernotok'
12960           allow_undefined_flag_F77=' ${wl}-berok'
12961           # -bexpall does not export symbols beginning with underscore (_)
12962           always_export_symbols_F77=yes
12963           # Exported symbols can be pulled into shared objects from archives
12964           whole_archive_flag_spec_F77=' '
12965           archive_cmds_need_lc_F77=yes
12966           # This is similar to how AIX traditionally builds it's shared libraries.
12967           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'
12968         fi
12969       fi
12970       ;;
12971
12972     amigaos*)
12973       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)'
12974       hardcode_libdir_flag_spec_F77='-L$libdir'
12975       hardcode_minus_L_F77=yes
12976       # see comment about different semantics on the GNU ld section
12977       ld_shlibs_F77=no
12978       ;;
12979
12980     bsdi4*)
12981       export_dynamic_flag_spec_F77=-rdynamic
12982       ;;
12983
12984     cygwin* | mingw* | pw32*)
12985       # When not using gcc, we currently assume that we are using
12986       # Microsoft Visual C++.
12987       # hardcode_libdir_flag_spec is actually meaningless, as there is
12988       # no search path for DLLs.
12989       hardcode_libdir_flag_spec_F77=' '
12990       allow_undefined_flag_F77=unsupported
12991       # Tell ltmain to make .lib files, not .a files.
12992       libext=lib
12993       # Tell ltmain to make .dll files, not .so files.
12994       shrext=".dll"
12995       # FIXME: Setting linknames here is a bad hack.
12996       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12997       # The linker will automatically build a .lib file if we build a DLL.
12998       old_archive_From_new_cmds_F77='true'
12999       # FIXME: Should let the user specify the lib program.
13000       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13001       fix_srcfile_path='`cygpath -w "$srcfile"`'
13002       enable_shared_with_static_runtimes_F77=yes
13003       ;;
13004
13005     darwin* | rhapsody*)
13006     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13007       archive_cmds_need_lc_F77=no
13008       case "$host_os" in
13009       rhapsody* | darwin1.[012])
13010         allow_undefined_flag_F77='-undefined suppress'
13011         ;;
13012       *) # Darwin 1.3 on
13013         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13014         ;;
13015       esac
13016       # FIXME: Relying on posixy $() will cause problems for
13017       #        cross-compilation, but unfortunately the echo tests do not
13018       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13019       #        `"' quotes if we put them in here... so don't!
13020         lt_int_apple_cc_single_mod=no
13021         output_verbose_link_cmd='echo'
13022         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13023           lt_int_apple_cc_single_mod=yes
13024         fi
13025         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13026           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13027         else
13028         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'
13029       fi
13030       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13031       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13032         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13033           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}'
13034         else
13035           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}'
13036         fi
13037           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}'
13038       hardcode_direct_F77=no
13039       hardcode_automatic_F77=yes
13040       hardcode_shlibpath_var_F77=unsupported
13041       whole_archive_flag_spec_F77='-all_load $convenience'
13042       link_all_deplibs_F77=yes
13043     fi
13044       ;;
13045
13046     dgux*)
13047       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048       hardcode_libdir_flag_spec_F77='-L$libdir'
13049       hardcode_shlibpath_var_F77=no
13050       ;;
13051
13052     freebsd1*)
13053       ld_shlibs_F77=no
13054       ;;
13055
13056     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13057     # support.  Future versions do this automatically, but an explicit c++rt0.o
13058     # does not break anything, and helps significantly (at the cost of a little
13059     # extra space).
13060     freebsd2.2*)
13061       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13062       hardcode_libdir_flag_spec_F77='-R$libdir'
13063       hardcode_direct_F77=yes
13064       hardcode_shlibpath_var_F77=no
13065       ;;
13066
13067     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13068     freebsd2*)
13069       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13070       hardcode_direct_F77=yes
13071       hardcode_minus_L_F77=yes
13072       hardcode_shlibpath_var_F77=no
13073       ;;
13074
13075     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13076     freebsd*)
13077       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13078       hardcode_libdir_flag_spec_F77='-R$libdir'
13079       hardcode_direct_F77=yes
13080       hardcode_shlibpath_var_F77=no
13081       ;;
13082
13083     hpux9*)
13084       if test "$GCC" = yes; then
13085         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'
13086       else
13087         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'
13088       fi
13089       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13090       hardcode_libdir_separator_F77=:
13091       hardcode_direct_F77=yes
13092
13093       # hardcode_minus_L: Not really in the search PATH,
13094       # but as the default location of the library.
13095       hardcode_minus_L_F77=yes
13096       export_dynamic_flag_spec_F77='${wl}-E'
13097       ;;
13098
13099     hpux10* | hpux11*)
13100       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13101         case "$host_cpu" in
13102         hppa*64*|ia64*)
13103           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13104           ;;
13105         *)
13106           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13107           ;;
13108         esac
13109       else
13110         case "$host_cpu" in
13111         hppa*64*|ia64*)
13112           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13113           ;;
13114         *)
13115           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13116           ;;
13117         esac
13118       fi
13119       if test "$with_gnu_ld" = no; then
13120         case "$host_cpu" in
13121         hppa*64*)
13122           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13123           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13124           hardcode_libdir_separator_F77=:
13125           hardcode_direct_F77=no
13126           hardcode_shlibpath_var_F77=no
13127           ;;
13128         ia64*)
13129           hardcode_libdir_flag_spec_F77='-L$libdir'
13130           hardcode_direct_F77=no
13131           hardcode_shlibpath_var_F77=no
13132
13133           # hardcode_minus_L: Not really in the search PATH,
13134           # but as the default location of the library.
13135           hardcode_minus_L_F77=yes
13136           ;;
13137         *)
13138           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13139           hardcode_libdir_separator_F77=:
13140           hardcode_direct_F77=yes
13141           export_dynamic_flag_spec_F77='${wl}-E'
13142
13143           # hardcode_minus_L: Not really in the search PATH,
13144           # but as the default location of the library.
13145           hardcode_minus_L_F77=yes
13146           ;;
13147         esac
13148       fi
13149       ;;
13150
13151     irix5* | irix6* | nonstopux*)
13152       if test "$GCC" = yes; then
13153         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'
13154       else
13155         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'
13156         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13157       fi
13158       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13159       hardcode_libdir_separator_F77=:
13160       link_all_deplibs_F77=yes
13161       ;;
13162
13163     netbsd*)
13164       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13165         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13166       else
13167         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13168       fi
13169       hardcode_libdir_flag_spec_F77='-R$libdir'
13170       hardcode_direct_F77=yes
13171       hardcode_shlibpath_var_F77=no
13172       ;;
13173
13174     newsos6)
13175       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13176       hardcode_direct_F77=yes
13177       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13178       hardcode_libdir_separator_F77=:
13179       hardcode_shlibpath_var_F77=no
13180       ;;
13181
13182     openbsd*)
13183       hardcode_direct_F77=yes
13184       hardcode_shlibpath_var_F77=no
13185       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13186         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13187         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13188         export_dynamic_flag_spec_F77='${wl}-E'
13189       else
13190        case $host_os in
13191          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13192            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13193            hardcode_libdir_flag_spec_F77='-R$libdir'
13194            ;;
13195          *)
13196            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13197            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13198            ;;
13199        esac
13200       fi
13201       ;;
13202
13203     os2*)
13204       hardcode_libdir_flag_spec_F77='-L$libdir'
13205       hardcode_minus_L_F77=yes
13206       allow_undefined_flag_F77=unsupported
13207       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'
13208       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13209       ;;
13210
13211     osf3*)
13212       if test "$GCC" = yes; then
13213         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13214         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'
13215       else
13216         allow_undefined_flag_F77=' -expect_unresolved \*'
13217         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'
13218       fi
13219       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13220       hardcode_libdir_separator_F77=:
13221       ;;
13222
13223     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13224       if test "$GCC" = yes; then
13225         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13226         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'
13227         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13228       else
13229         allow_undefined_flag_F77=' -expect_unresolved \*'
13230         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'
13231         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~
13232         $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'
13233
13234         # Both c and cxx compiler support -rpath directly
13235         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13236       fi
13237       hardcode_libdir_separator_F77=:
13238       ;;
13239
13240     sco3.2v5*)
13241       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13242       hardcode_shlibpath_var_F77=no
13243       export_dynamic_flag_spec_F77='${wl}-Bexport'
13244       runpath_var=LD_RUN_PATH
13245       hardcode_runpath_var=yes
13246       ;;
13247
13248     solaris*)
13249       no_undefined_flag_F77=' -z text'
13250       if test "$GCC" = yes; then
13251         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13252         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13253           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13254       else
13255         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13256         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13257         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13258       fi
13259       hardcode_libdir_flag_spec_F77='-R$libdir'
13260       hardcode_shlibpath_var_F77=no
13261       case $host_os in
13262       solaris2.[0-5] | solaris2.[0-5].*) ;;
13263       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13264         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13265       esac
13266       link_all_deplibs_F77=yes
13267       ;;
13268
13269     sunos4*)
13270       if test "x$host_vendor" = xsequent; then
13271         # Use $CC to link under sequent, because it throws in some extra .o
13272         # files that make .init and .fini sections work.
13273         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13274       else
13275         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13276       fi
13277       hardcode_libdir_flag_spec_F77='-L$libdir'
13278       hardcode_direct_F77=yes
13279       hardcode_minus_L_F77=yes
13280       hardcode_shlibpath_var_F77=no
13281       ;;
13282
13283     sysv4)
13284       case $host_vendor in
13285         sni)
13286           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287           hardcode_direct_F77=yes # is this really true???
13288         ;;
13289         siemens)
13290           ## LD is ld it makes a PLAMLIB
13291           ## CC just makes a GrossModule.
13292           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13293           reload_cmds_F77='$CC -r -o $output$reload_objs'
13294           hardcode_direct_F77=no
13295         ;;
13296         motorola)
13297           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13298           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13299         ;;
13300       esac
13301       runpath_var='LD_RUN_PATH'
13302       hardcode_shlibpath_var_F77=no
13303       ;;
13304
13305     sysv4.3*)
13306       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13307       hardcode_shlibpath_var_F77=no
13308       export_dynamic_flag_spec_F77='-Bexport'
13309       ;;
13310
13311     sysv4*MP*)
13312       if test -d /usr/nec; then
13313         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13314         hardcode_shlibpath_var_F77=no
13315         runpath_var=LD_RUN_PATH
13316         hardcode_runpath_var=yes
13317         ld_shlibs_F77=yes
13318       fi
13319       ;;
13320
13321     sysv4.2uw2*)
13322       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13323       hardcode_direct_F77=yes
13324       hardcode_minus_L_F77=no
13325       hardcode_shlibpath_var_F77=no
13326       hardcode_runpath_var=yes
13327       runpath_var=LD_RUN_PATH
13328       ;;
13329
13330    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13331       no_undefined_flag_F77='${wl}-z ${wl}text'
13332       if test "$GCC" = yes; then
13333         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13334       else
13335         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13336       fi
13337       runpath_var='LD_RUN_PATH'
13338       hardcode_shlibpath_var_F77=no
13339       ;;
13340
13341     sysv5*)
13342       no_undefined_flag_F77=' -z text'
13343       # $CC -shared without GNU ld will not create a library from C++
13344       # object files and a static libstdc++, better avoid it by now
13345       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13346       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13347                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13348       hardcode_libdir_flag_spec_F77=
13349       hardcode_shlibpath_var_F77=no
13350       runpath_var='LD_RUN_PATH'
13351       ;;
13352
13353     uts4*)
13354       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13355       hardcode_libdir_flag_spec_F77='-L$libdir'
13356       hardcode_shlibpath_var_F77=no
13357       ;;
13358
13359     *)
13360       ld_shlibs_F77=no
13361       ;;
13362     esac
13363   fi
13364
13365 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13366 echo "${ECHO_T}$ld_shlibs_F77" >&6
13367 test "$ld_shlibs_F77" = no && can_build_shared=no
13368
13369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13370 if test "$GCC" = yes; then
13371   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13372 fi
13373
13374 #
13375 # Do we need to explicitly link libc?
13376 #
13377 case "x$archive_cmds_need_lc_F77" in
13378 x|xyes)
13379   # Assume -lc should be added
13380   archive_cmds_need_lc_F77=yes
13381
13382   if test "$enable_shared" = yes && test "$GCC" = yes; then
13383     case $archive_cmds_F77 in
13384     *'~'*)
13385       # FIXME: we may have to deal with multi-command sequences.
13386       ;;
13387     '$CC '*)
13388       # Test whether the compiler implicitly links with -lc since on some
13389       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13390       # to ld, don't add -lc before -lgcc.
13391       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13392 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13393       $rm conftest*
13394       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13395
13396       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397   (eval $ac_compile) 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } 2>conftest.err; then
13401         soname=conftest
13402         lib=conftest
13403         libobjs=conftest.$ac_objext
13404         deplibs=
13405         wl=$lt_prog_compiler_wl_F77
13406         compiler_flags=-v
13407         linker_flags=-v
13408         verstring=
13409         output_objdir=.
13410         libname=conftest
13411         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13412         allow_undefined_flag_F77=
13413         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13414   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }
13418         then
13419           archive_cmds_need_lc_F77=no
13420         else
13421           archive_cmds_need_lc_F77=yes
13422         fi
13423         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13424       else
13425         cat conftest.err 1>&5
13426       fi
13427       $rm conftest*
13428       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13429 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13430       ;;
13431     esac
13432   fi
13433   ;;
13434 esac
13435
13436 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13437 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13438 hardcode_action_F77=
13439 if test -n "$hardcode_libdir_flag_spec_F77" || \
13440    test -n "$runpath_var F77" || \
13441    test "X$hardcode_automatic_F77"="Xyes" ; then
13442
13443   # We can hardcode non-existant directories.
13444   if test "$hardcode_direct_F77" != no &&
13445      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13446      # have to relink, otherwise we might link with an installed library
13447      # when we should be linking with a yet-to-be-installed one
13448      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13449      test "$hardcode_minus_L_F77" != no; then
13450     # Linking always hardcodes the temporary library directory.
13451     hardcode_action_F77=relink
13452   else
13453     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13454     hardcode_action_F77=immediate
13455   fi
13456 else
13457   # We cannot hardcode anything, or else we can only hardcode existing
13458   # directories.
13459   hardcode_action_F77=unsupported
13460 fi
13461 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13462 echo "${ECHO_T}$hardcode_action_F77" >&6
13463
13464 if test "$hardcode_action_F77" = relink; then
13465   # Fast installation is not supported
13466   enable_fast_install=no
13467 elif test "$shlibpath_overrides_runpath" = yes ||
13468      test "$enable_shared" = no; then
13469   # Fast installation is not necessary
13470   enable_fast_install=needless
13471 fi
13472
13473 striplib=
13474 old_striplib=
13475 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13476 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13477 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13478   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13479   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13480   echo "$as_me:$LINENO: result: yes" >&5
13481 echo "${ECHO_T}yes" >&6
13482 else
13483 # FIXME - insert some real tests, host_os isn't really good enough
13484   case $host_os in
13485    darwin*)
13486        if test -n "$STRIP" ; then
13487          striplib="$STRIP -x"
13488          echo "$as_me:$LINENO: result: yes" >&5
13489 echo "${ECHO_T}yes" >&6
13490        else
13491   echo "$as_me:$LINENO: result: no" >&5
13492 echo "${ECHO_T}no" >&6
13493 fi
13494        ;;
13495    *)
13496   echo "$as_me:$LINENO: result: no" >&5
13497 echo "${ECHO_T}no" >&6
13498     ;;
13499   esac
13500 fi
13501
13502 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13503 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13504 library_names_spec=
13505 libname_spec='lib$name'
13506 soname_spec=
13507 shrext=".so"
13508 postinstall_cmds=
13509 postuninstall_cmds=
13510 finish_cmds=
13511 finish_eval=
13512 shlibpath_var=
13513 shlibpath_overrides_runpath=unknown
13514 version_type=none
13515 dynamic_linker="$host_os ld.so"
13516 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13517 if test "$GCC" = yes; then
13518   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13519   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13520     # if the path contains ";" then we assume it to be the separator
13521     # otherwise default to the standard path separator (i.e. ":") - it is
13522     # assumed that no part of a normal pathname contains ";" but that should
13523     # okay in the real world where ";" in dirpaths is itself problematic.
13524     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13525   else
13526     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13527   fi
13528 else
13529   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13530 fi
13531 need_lib_prefix=unknown
13532 hardcode_into_libs=no
13533
13534 # when you set need_version to no, make sure it does not cause -set_version
13535 # flags to be left without arguments
13536 need_version=unknown
13537
13538 case $host_os in
13539 aix3*)
13540   version_type=linux
13541   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13542   shlibpath_var=LIBPATH
13543
13544   # AIX 3 has no versioning support, so we append a major version to the name.
13545   soname_spec='${libname}${release}${shared_ext}$major'
13546   ;;
13547
13548 aix4* | aix5*)
13549   version_type=linux
13550   need_lib_prefix=no
13551   need_version=no
13552   hardcode_into_libs=yes
13553   if test "$host_cpu" = ia64; then
13554     # AIX 5 supports IA64
13555     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13556     shlibpath_var=LD_LIBRARY_PATH
13557   else
13558     # With GCC up to 2.95.x, collect2 would create an import file
13559     # for dependence libraries.  The import file would start with
13560     # the line `#! .'.  This would cause the generated library to
13561     # depend on `.', always an invalid library.  This was fixed in
13562     # development snapshots of GCC prior to 3.0.
13563     case $host_os in
13564       aix4 | aix4.[01] | aix4.[01].*)
13565       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13566            echo ' yes '
13567            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13568         :
13569       else
13570         can_build_shared=no
13571       fi
13572       ;;
13573     esac
13574     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13575     # soname into executable. Probably we can add versioning support to
13576     # collect2, so additional links can be useful in future.
13577     if test "$aix_use_runtimelinking" = yes; then
13578       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13579       # instead of lib<name>.a to let people know that these are not
13580       # typical AIX shared libraries.
13581       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13582     else
13583       # We preserve .a as extension for shared libraries through AIX4.2
13584       # and later when we are not doing run time linking.
13585       library_names_spec='${libname}${release}.a $libname.a'
13586       soname_spec='${libname}${release}${shared_ext}$major'
13587     fi
13588     shlibpath_var=LIBPATH
13589   fi
13590   ;;
13591
13592 amigaos*)
13593   library_names_spec='$libname.ixlibrary $libname.a'
13594   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13595   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'
13596   ;;
13597
13598 beos*)
13599   library_names_spec='${libname}${shared_ext}'
13600   dynamic_linker="$host_os ld.so"
13601   shlibpath_var=LIBRARY_PATH
13602   ;;
13603
13604 bsdi4*)
13605   version_type=linux
13606   need_version=no
13607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13608   soname_spec='${libname}${release}${shared_ext}$major'
13609   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13610   shlibpath_var=LD_LIBRARY_PATH
13611   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13612   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13613   # the default ld.so.conf also contains /usr/contrib/lib and
13614   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13615   # libtool to hard-code these into programs
13616   ;;
13617
13618 cygwin* | mingw* | pw32*)
13619   version_type=windows
13620   shrext=".dll"
13621   need_version=no
13622   need_lib_prefix=no
13623
13624   case $GCC,$host_os in
13625   yes,cygwin* | yes,mingw* | yes,pw32*)
13626     library_names_spec='$libname.dll.a'
13627     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13628     postinstall_cmds='base_file=`basename \${file}`~
13629       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13630       dldir=$destdir/`dirname \$dlpath`~
13631       test -d \$dldir || mkdir -p \$dldir~
13632       $install_prog $dir/$dlname \$dldir/$dlname'
13633     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13634       dlpath=$dir/\$dldll~
13635        $rm \$dlpath'
13636     shlibpath_overrides_runpath=yes
13637
13638     case $host_os in
13639     cygwin*)
13640       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13641       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13642       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13643       ;;
13644     mingw*)
13645       # MinGW DLLs use traditional 'lib' prefix
13646       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13647       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13648       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13649         # It is most probably a Windows format PATH printed by
13650         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13651         # path with ; separators, and with drive letters. We can handle the
13652         # drive letters (cygwin fileutils understands them), so leave them,
13653         # especially as we might pass files found there to a mingw objdump,
13654         # which wouldn't understand a cygwinified path. Ahh.
13655         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13656       else
13657         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13658       fi
13659       ;;
13660     pw32*)
13661       # pw32 DLLs use 'pw' prefix rather than 'lib'
13662       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13663       ;;
13664     esac
13665     ;;
13666
13667   *)
13668     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13669     ;;
13670   esac
13671   dynamic_linker='Win32 ld.exe'
13672   # FIXME: first we should search . and the directory the executable is in
13673   shlibpath_var=PATH
13674   ;;
13675
13676 darwin* | rhapsody*)
13677   dynamic_linker="$host_os dyld"
13678   version_type=darwin
13679   need_lib_prefix=no
13680   need_version=no
13681   # FIXME: Relying on posixy $() will cause problems for
13682   #        cross-compilation, but unfortunately the echo tests do not
13683   #        yet detect zsh echo's removal of \ escapes.
13684   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13685   soname_spec='${libname}${release}${major}$shared_ext'
13686   shlibpath_overrides_runpath=yes
13687   shlibpath_var=DYLD_LIBRARY_PATH
13688   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13689   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13690   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13691   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"`
13692   fi
13693   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13694   ;;
13695
13696 dgux*)
13697   version_type=linux
13698   need_lib_prefix=no
13699   need_version=no
13700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13701   soname_spec='${libname}${release}${shared_ext}$major'
13702   shlibpath_var=LD_LIBRARY_PATH
13703   ;;
13704
13705 freebsd1*)
13706   dynamic_linker=no
13707   ;;
13708
13709 freebsd*)
13710   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13711   version_type=freebsd-$objformat
13712   case $version_type in
13713     freebsd-elf*)
13714       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13715       need_version=no
13716       need_lib_prefix=no
13717       ;;
13718     freebsd-*)
13719       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13720       need_version=yes
13721       ;;
13722   esac
13723   shlibpath_var=LD_LIBRARY_PATH
13724   case $host_os in
13725   freebsd2*)
13726     shlibpath_overrides_runpath=yes
13727     ;;
13728   freebsd3.01* | freebsdelf3.01*)
13729     shlibpath_overrides_runpath=yes
13730     hardcode_into_libs=yes
13731     ;;
13732   *) # from 3.2 on
13733     shlibpath_overrides_runpath=no
13734     hardcode_into_libs=yes
13735     ;;
13736   esac
13737   ;;
13738
13739 gnu*)
13740   version_type=linux
13741   need_lib_prefix=no
13742   need_version=no
13743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13744   soname_spec='${libname}${release}${shared_ext}$major'
13745   shlibpath_var=LD_LIBRARY_PATH
13746   hardcode_into_libs=yes
13747   ;;
13748
13749 hpux9* | hpux10* | hpux11*)
13750   # Give a soname corresponding to the major version so that dld.sl refuses to
13751   # link against other versions.
13752   version_type=sunos
13753   need_lib_prefix=no
13754   need_version=no
13755   case "$host_cpu" in
13756   ia64*)
13757     shrext='.so'
13758     hardcode_into_libs=yes
13759     dynamic_linker="$host_os dld.so"
13760     shlibpath_var=LD_LIBRARY_PATH
13761     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13763     soname_spec='${libname}${release}${shared_ext}$major'
13764     if test "X$HPUX_IA64_MODE" = X32; then
13765       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13766     else
13767       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13768     fi
13769     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13770     ;;
13771    hppa*64*)
13772      shrext='.sl'
13773      hardcode_into_libs=yes
13774      dynamic_linker="$host_os dld.sl"
13775      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13776      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13777      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13778      soname_spec='${libname}${release}${shared_ext}$major'
13779      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13780      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13781      ;;
13782    *)
13783     shrext='.sl'
13784     dynamic_linker="$host_os dld.sl"
13785     shlibpath_var=SHLIB_PATH
13786     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13788     soname_spec='${libname}${release}${shared_ext}$major'
13789     ;;
13790   esac
13791   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13792   postinstall_cmds='chmod 555 $lib'
13793   ;;
13794
13795 irix5* | irix6* | nonstopux*)
13796   case $host_os in
13797     nonstopux*) version_type=nonstopux ;;
13798     *)
13799         if test "$lt_cv_prog_gnu_ld" = yes; then
13800                 version_type=linux
13801         else
13802                 version_type=irix
13803         fi ;;
13804   esac
13805   need_lib_prefix=no
13806   need_version=no
13807   soname_spec='${libname}${release}${shared_ext}$major'
13808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13809   case $host_os in
13810   irix5* | nonstopux*)
13811     libsuff= shlibsuff=
13812     ;;
13813   *)
13814     case $LD in # libtool.m4 will add one of these switches to LD
13815     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13816       libsuff= shlibsuff= libmagic=32-bit;;
13817     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13818       libsuff=32 shlibsuff=N32 libmagic=N32;;
13819     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13820       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13821     *) libsuff= shlibsuff= libmagic=never-match;;
13822     esac
13823     ;;
13824   esac
13825   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13826   shlibpath_overrides_runpath=no
13827   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13828   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13829   hardcode_into_libs=yes
13830   ;;
13831
13832 # No shared lib support for Linux oldld, aout, or coff.
13833 linux*oldld* | linux*aout* | linux*coff*)
13834   dynamic_linker=no
13835   ;;
13836
13837 # This must be Linux ELF.
13838 linux*)
13839   version_type=linux
13840   need_lib_prefix=no
13841   need_version=no
13842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13843   soname_spec='${libname}${release}${shared_ext}$major'
13844   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13845   shlibpath_var=LD_LIBRARY_PATH
13846   shlibpath_overrides_runpath=no
13847   # This implies no fast_install, which is unacceptable.
13848   # Some rework will be needed to allow for fast_install
13849   # before this can be enabled.
13850   hardcode_into_libs=yes
13851
13852   # We used to test for /lib/ld.so.1 and disable shared libraries on
13853   # powerpc, because MkLinux only supported shared libraries with the
13854   # GNU dynamic linker.  Since this was broken with cross compilers,
13855   # most powerpc-linux boxes support dynamic linking these days and
13856   # people can always --disable-shared, the test was removed, and we
13857   # assume the GNU/Linux dynamic linker is in use.
13858   dynamic_linker='GNU/Linux ld.so'
13859   ;;
13860
13861 netbsd*)
13862   version_type=sunos
13863   need_lib_prefix=no
13864   need_version=no
13865   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13867     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13868     dynamic_linker='NetBSD (a.out) ld.so'
13869   else
13870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13871     soname_spec='${libname}${release}${shared_ext}$major'
13872     dynamic_linker='NetBSD ld.elf_so'
13873   fi
13874   shlibpath_var=LD_LIBRARY_PATH
13875   shlibpath_overrides_runpath=yes
13876   hardcode_into_libs=yes
13877   ;;
13878
13879 newsos6)
13880   version_type=linux
13881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13882   shlibpath_var=LD_LIBRARY_PATH
13883   shlibpath_overrides_runpath=yes
13884   ;;
13885
13886 nto-qnx)
13887   version_type=linux
13888   need_lib_prefix=no
13889   need_version=no
13890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891   soname_spec='${libname}${release}${shared_ext}$major'
13892   shlibpath_var=LD_LIBRARY_PATH
13893   shlibpath_overrides_runpath=yes
13894   ;;
13895
13896 openbsd*)
13897   version_type=sunos
13898   need_lib_prefix=no
13899   need_version=no
13900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13901   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13902   shlibpath_var=LD_LIBRARY_PATH
13903   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13904     case $host_os in
13905       openbsd2.[89] | openbsd2.[89].*)
13906         shlibpath_overrides_runpath=no
13907         ;;
13908       *)
13909         shlibpath_overrides_runpath=yes
13910         ;;
13911       esac
13912   else
13913     shlibpath_overrides_runpath=yes
13914   fi
13915   ;;
13916
13917 os2*)
13918   libname_spec='$name'
13919   shrext=".dll"
13920   need_lib_prefix=no
13921   library_names_spec='$libname${shared_ext} $libname.a'
13922   dynamic_linker='OS/2 ld.exe'
13923   shlibpath_var=LIBPATH
13924   ;;
13925
13926 osf3* | osf4* | osf5*)
13927   version_type=osf
13928   need_lib_prefix=no
13929   need_version=no
13930   soname_spec='${libname}${release}${shared_ext}$major'
13931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932   shlibpath_var=LD_LIBRARY_PATH
13933   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13934   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13935   ;;
13936
13937 sco3.2v5*)
13938   version_type=osf
13939   soname_spec='${libname}${release}${shared_ext}$major'
13940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13941   shlibpath_var=LD_LIBRARY_PATH
13942   ;;
13943
13944 solaris*)
13945   version_type=linux
13946   need_lib_prefix=no
13947   need_version=no
13948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949   soname_spec='${libname}${release}${shared_ext}$major'
13950   shlibpath_var=LD_LIBRARY_PATH
13951   shlibpath_overrides_runpath=yes
13952   hardcode_into_libs=yes
13953   # ldd complains unless libraries are executable
13954   postinstall_cmds='chmod +x $lib'
13955   ;;
13956
13957 sunos4*)
13958   version_type=sunos
13959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13960   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13961   shlibpath_var=LD_LIBRARY_PATH
13962   shlibpath_overrides_runpath=yes
13963   if test "$with_gnu_ld" = yes; then
13964     need_lib_prefix=no
13965   fi
13966   need_version=yes
13967   ;;
13968
13969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13970   version_type=linux
13971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13972   soname_spec='${libname}${release}${shared_ext}$major'
13973   shlibpath_var=LD_LIBRARY_PATH
13974   case $host_vendor in
13975     sni)
13976       shlibpath_overrides_runpath=no
13977       need_lib_prefix=no
13978       export_dynamic_flag_spec='${wl}-Blargedynsym'
13979       runpath_var=LD_RUN_PATH
13980       ;;
13981     siemens)
13982       need_lib_prefix=no
13983       ;;
13984     motorola)
13985       need_lib_prefix=no
13986       need_version=no
13987       shlibpath_overrides_runpath=no
13988       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13989       ;;
13990   esac
13991   ;;
13992
13993 sysv4*MP*)
13994   if test -d /usr/nec ;then
13995     version_type=linux
13996     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13997     soname_spec='$libname${shared_ext}.$major'
13998     shlibpath_var=LD_LIBRARY_PATH
13999   fi
14000   ;;
14001
14002 uts4*)
14003   version_type=linux
14004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005   soname_spec='${libname}${release}${shared_ext}$major'
14006   shlibpath_var=LD_LIBRARY_PATH
14007   ;;
14008
14009 *)
14010   dynamic_linker=no
14011   ;;
14012 esac
14013 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14014 echo "${ECHO_T}$dynamic_linker" >&6
14015 test "$dynamic_linker" = no && can_build_shared=no
14016
14017
14018 # The else clause should only fire when bootstrapping the
14019 # libtool distribution, otherwise you forgot to ship ltmain.sh
14020 # with your package, and you will get complaints that there are
14021 # no rules to generate ltmain.sh.
14022 if test -f "$ltmain"; then
14023   # See if we are running on zsh, and set the options which allow our commands through
14024   # without removal of \ escapes.
14025   if test -n "${ZSH_VERSION+set}" ; then
14026     setopt NO_GLOB_SUBST
14027   fi
14028   # Now quote all the things that may contain metacharacters while being
14029   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14030   # variables and quote the copies for generation of the libtool script.
14031   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14032     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14033     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14034     deplibs_check_method reload_flag reload_cmds need_locks \
14035     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14036     lt_cv_sys_global_symbol_to_c_name_address \
14037     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14038     old_postinstall_cmds old_postuninstall_cmds \
14039     compiler_F77 \
14040     CC_F77 \
14041     LD_F77 \
14042     lt_prog_compiler_wl_F77 \
14043     lt_prog_compiler_pic_F77 \
14044     lt_prog_compiler_static_F77 \
14045     lt_prog_compiler_no_builtin_flag_F77 \
14046     export_dynamic_flag_spec_F77 \
14047     thread_safe_flag_spec_F77 \
14048     whole_archive_flag_spec_F77 \
14049     enable_shared_with_static_runtimes_F77 \
14050     old_archive_cmds_F77 \
14051     old_archive_from_new_cmds_F77 \
14052     predep_objects_F77 \
14053     postdep_objects_F77 \
14054     predeps_F77 \
14055     postdeps_F77 \
14056     compiler_lib_search_path_F77 \
14057     archive_cmds_F77 \
14058     archive_expsym_cmds_F77 \
14059     postinstall_cmds_F77 \
14060     postuninstall_cmds_F77 \
14061     old_archive_from_expsyms_cmds_F77 \
14062     allow_undefined_flag_F77 \
14063     no_undefined_flag_F77 \
14064     export_symbols_cmds_F77 \
14065     hardcode_libdir_flag_spec_F77 \
14066     hardcode_libdir_flag_spec_ld_F77 \
14067     hardcode_libdir_separator_F77 \
14068     hardcode_automatic_F77 \
14069     module_cmds_F77 \
14070     module_expsym_cmds_F77 \
14071     lt_cv_prog_compiler_c_o_F77 \
14072     exclude_expsyms_F77 \
14073     include_expsyms_F77; do
14074
14075     case $var in
14076     old_archive_cmds_F77 | \
14077     old_archive_from_new_cmds_F77 | \
14078     archive_cmds_F77 | \
14079     archive_expsym_cmds_F77 | \
14080     module_cmds_F77 | \
14081     module_expsym_cmds_F77 | \
14082     old_archive_from_expsyms_cmds_F77 | \
14083     export_symbols_cmds_F77 | \
14084     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14085     postinstall_cmds | postuninstall_cmds | \
14086     old_postinstall_cmds | old_postuninstall_cmds | \
14087     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14088       # Double-quote double-evaled strings.
14089       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14090       ;;
14091     *)
14092       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14093       ;;
14094     esac
14095   done
14096
14097   case $lt_echo in
14098   *'\$0 --fallback-echo"')
14099     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14100     ;;
14101   esac
14102
14103 cfgfile="$ofile"
14104
14105   cat <<__EOF__ >> "$cfgfile"
14106 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14107
14108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14109
14110 # Shell to use when invoking shell scripts.
14111 SHELL=$lt_SHELL
14112
14113 # Whether or not to build shared libraries.
14114 build_libtool_libs=$enable_shared
14115
14116 # Whether or not to build static libraries.
14117 build_old_libs=$enable_static
14118
14119 # Whether or not to add -lc for building shared libraries.
14120 build_libtool_need_lc=$archive_cmds_need_lc_F77
14121
14122 # Whether or not to disallow shared libs when runtime libs are static
14123 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14124
14125 # Whether or not to optimize for fast installation.
14126 fast_install=$enable_fast_install
14127
14128 # The host system.
14129 host_alias=$host_alias
14130 host=$host
14131
14132 # An echo program that does not interpret backslashes.
14133 echo=$lt_echo
14134
14135 # The archiver.
14136 AR=$lt_AR
14137 AR_FLAGS=$lt_AR_FLAGS
14138
14139 # A C compiler.
14140 LTCC=$lt_LTCC
14141
14142 # A language-specific compiler.
14143 CC=$lt_compiler_F77
14144
14145 # Is the compiler the GNU C compiler?
14146 with_gcc=$GCC_F77
14147
14148 # An ERE matcher.
14149 EGREP=$lt_EGREP
14150
14151 # The linker used to build libraries.
14152 LD=$lt_LD_F77
14153
14154 # Whether we need hard or soft links.
14155 LN_S=$lt_LN_S
14156
14157 # A BSD-compatible nm program.
14158 NM=$lt_NM
14159
14160 # A symbol stripping program
14161 STRIP=$STRIP
14162
14163 # Used to examine libraries when file_magic_cmd begins "file"
14164 MAGIC_CMD=$MAGIC_CMD
14165
14166 # Used on cygwin: DLL creation program.
14167 DLLTOOL="$DLLTOOL"
14168
14169 # Used on cygwin: object dumper.
14170 OBJDUMP="$OBJDUMP"
14171
14172 # Used on cygwin: assembler.
14173 AS="$AS"
14174
14175 # The name of the directory that contains temporary libtool files.
14176 objdir=$objdir
14177
14178 # How to create reloadable object files.
14179 reload_flag=$lt_reload_flag
14180 reload_cmds=$lt_reload_cmds
14181
14182 # How to pass a linker flag through the compiler.
14183 wl=$lt_lt_prog_compiler_wl_F77
14184
14185 # Object file suffix (normally "o").
14186 objext="$ac_objext"
14187
14188 # Old archive suffix (normally "a").
14189 libext="$libext"
14190
14191 # Shared library suffix (normally ".so").
14192 shrext='$shrext'
14193
14194 # Executable file suffix (normally "").
14195 exeext="$exeext"
14196
14197 # Additional compiler flags for building library objects.
14198 pic_flag=$lt_lt_prog_compiler_pic_F77
14199 pic_mode=$pic_mode
14200
14201 # What is the maximum length of a command?
14202 max_cmd_len=$lt_cv_sys_max_cmd_len
14203
14204 # Does compiler simultaneously support -c and -o options?
14205 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14206
14207 # Must we lock files when doing compilation ?
14208 need_locks=$lt_need_locks
14209
14210 # Do we need the lib prefix for modules?
14211 need_lib_prefix=$need_lib_prefix
14212
14213 # Do we need a version for libraries?
14214 need_version=$need_version
14215
14216 # Whether dlopen is supported.
14217 dlopen_support=$enable_dlopen
14218
14219 # Whether dlopen of programs is supported.
14220 dlopen_self=$enable_dlopen_self
14221
14222 # Whether dlopen of statically linked programs is supported.
14223 dlopen_self_static=$enable_dlopen_self_static
14224
14225 # Compiler flag to prevent dynamic linking.
14226 link_static_flag=$lt_lt_prog_compiler_static_F77
14227
14228 # Compiler flag to turn off builtin functions.
14229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14230
14231 # Compiler flag to allow reflexive dlopens.
14232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14233
14234 # Compiler flag to generate shared objects directly from archives.
14235 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14236
14237 # Compiler flag to generate thread-safe objects.
14238 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14239
14240 # Library versioning type.
14241 version_type=$version_type
14242
14243 # Format of library name prefix.
14244 libname_spec=$lt_libname_spec
14245
14246 # List of archive names.  First name is the real one, the rest are links.
14247 # The last name is the one that the linker finds with -lNAME.
14248 library_names_spec=$lt_library_names_spec
14249
14250 # The coded name of the library, if different from the real name.
14251 soname_spec=$lt_soname_spec
14252
14253 # Commands used to build and install an old-style archive.
14254 RANLIB=$lt_RANLIB
14255 old_archive_cmds=$lt_old_archive_cmds_F77
14256 old_postinstall_cmds=$lt_old_postinstall_cmds
14257 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14258
14259 # Create an old-style archive from a shared archive.
14260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14261
14262 # Create a temporary old-style archive to link instead of a shared archive.
14263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14264
14265 # Commands used to build and install a shared archive.
14266 archive_cmds=$lt_archive_cmds_F77
14267 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14268 postinstall_cmds=$lt_postinstall_cmds
14269 postuninstall_cmds=$lt_postuninstall_cmds
14270
14271 # Commands used to build a loadable module (assumed same as above if empty)
14272 module_cmds=$lt_module_cmds_F77
14273 module_expsym_cmds=$lt_module_expsym_cmds_F77
14274
14275 # Commands to strip libraries.
14276 old_striplib=$lt_old_striplib
14277 striplib=$lt_striplib
14278
14279 # Dependencies to place before the objects being linked to create a
14280 # shared library.
14281 predep_objects=$lt_predep_objects_F77
14282
14283 # Dependencies to place after the objects being linked to create a
14284 # shared library.
14285 postdep_objects=$lt_postdep_objects_F77
14286
14287 # Dependencies to place before the objects being linked to create a
14288 # shared library.
14289 predeps=$lt_predeps_F77
14290
14291 # Dependencies to place after the objects being linked to create a
14292 # shared library.
14293 postdeps=$lt_postdeps_F77
14294
14295 # The library search path used internally by the compiler when linking
14296 # a shared library.
14297 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14298
14299 # Method to check whether dependent libraries are shared objects.
14300 deplibs_check_method=$lt_deplibs_check_method
14301
14302 # Command to use when deplibs_check_method == file_magic.
14303 file_magic_cmd=$lt_file_magic_cmd
14304
14305 # Flag that allows shared libraries with undefined symbols to be built.
14306 allow_undefined_flag=$lt_allow_undefined_flag_F77
14307
14308 # Flag that forces no undefined symbols.
14309 no_undefined_flag=$lt_no_undefined_flag_F77
14310
14311 # Commands used to finish a libtool library installation in a directory.
14312 finish_cmds=$lt_finish_cmds
14313
14314 # Same as above, but a single script fragment to be evaled but not shown.
14315 finish_eval=$lt_finish_eval
14316
14317 # Take the output of nm and produce a listing of raw symbols and C names.
14318 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14319
14320 # Transform the output of nm in a proper C declaration
14321 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14322
14323 # Transform the output of nm in a C name address pair
14324 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14325
14326 # This is the shared library runtime path variable.
14327 runpath_var=$runpath_var
14328
14329 # This is the shared library path variable.
14330 shlibpath_var=$shlibpath_var
14331
14332 # Is shlibpath searched before the hard-coded library search path?
14333 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14334
14335 # How to hardcode a shared library path into an executable.
14336 hardcode_action=$hardcode_action_F77
14337
14338 # Whether we should hardcode library paths into libraries.
14339 hardcode_into_libs=$hardcode_into_libs
14340
14341 # Flag to hardcode \$libdir into a binary during linking.
14342 # This must work even if \$libdir does not exist.
14343 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14344
14345 # If ld is used when linking, flag to hardcode \$libdir into
14346 # a binary during linking. This must work even if \$libdir does
14347 # not exist.
14348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14349
14350 # Whether we need a single -rpath flag with a separated argument.
14351 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14352
14353 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14354 # resulting binary.
14355 hardcode_direct=$hardcode_direct_F77
14356
14357 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14358 # resulting binary.
14359 hardcode_minus_L=$hardcode_minus_L_F77
14360
14361 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14362 # the resulting binary.
14363 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14364
14365 # Set to yes if building a shared library automatically hardcodes DIR into the library
14366 # and all subsequent libraries and executables linked against it.
14367 hardcode_automatic=$hardcode_automatic_F77
14368
14369 # Variables whose values should be saved in libtool wrapper scripts and
14370 # restored at relink time.
14371 variables_saved_for_relink="$variables_saved_for_relink"
14372
14373 # Whether libtool must link a program against all its dependency libraries.
14374 link_all_deplibs=$link_all_deplibs_F77
14375
14376 # Compile-time system search path for libraries
14377 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14378
14379 # Run-time system search path for libraries
14380 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14381
14382 # Fix the shell variable \$srcfile for the compiler.
14383 fix_srcfile_path="$fix_srcfile_path_F77"
14384
14385 # Set to yes if exported symbols are required.
14386 always_export_symbols=$always_export_symbols_F77
14387
14388 # The commands to list exported symbols.
14389 export_symbols_cmds=$lt_export_symbols_cmds_F77
14390
14391 # The commands to extract the exported symbol list from a shared archive.
14392 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14393
14394 # Symbols that should not be listed in the preloaded symbols.
14395 exclude_expsyms=$lt_exclude_expsyms_F77
14396
14397 # Symbols that must always be exported.
14398 include_expsyms=$lt_include_expsyms_F77
14399
14400 # ### END LIBTOOL TAG CONFIG: $tagname
14401
14402 __EOF__
14403
14404
14405 else
14406   # If there is no Makefile yet, we rely on a make rule to execute
14407   # `config.status --recheck' to rerun these tests and create the
14408   # libtool script then.
14409   test -f Makefile && make "$ltmain"
14410 fi
14411
14412
14413 ac_ext=c
14414 ac_cpp='$CPP $CPPFLAGS'
14415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14418
14419 CC="$lt_save_CC"
14420
14421         else
14422           tagname=""
14423         fi
14424         ;;
14425
14426       GCJ)
14427         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14428
14429
14430
14431 # Source file extension for Java test sources.
14432 ac_ext=java
14433
14434 # Object file extension for compiled Java test sources.
14435 objext=o
14436 objext_GCJ=$objext
14437
14438 # Code to be used in simple compile tests
14439 lt_simple_compile_test_code="class foo {}\n"
14440
14441 # Code to be used in simple link tests
14442 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14443
14444 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14445
14446 # If no C compiler was specified, use CC.
14447 LTCC=${LTCC-"$CC"}
14448
14449 # Allow CC to be a program name with arguments.
14450 compiler=$CC
14451
14452
14453 # Allow CC to be a program name with arguments.
14454 lt_save_CC="$CC"
14455 CC=${GCJ-"gcj"}
14456 compiler=$CC
14457 compiler_GCJ=$CC
14458
14459 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14460 archive_cmds_need_lc_GCJ=no
14461
14462 ## CAVEAT EMPTOR:
14463 ## There is no encapsulation within the following macros, do not change
14464 ## the running order or otherwise move them around unless you know exactly
14465 ## what you are doing...
14466
14467 lt_prog_compiler_no_builtin_flag_GCJ=
14468
14469 if test "$GCC" = yes; then
14470   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14471
14472   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14473 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14474 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14475   echo $ECHO_N "(cached) $ECHO_C" >&6
14476 else
14477   lt_cv_prog_compiler_rtti_exceptions=no
14478   ac_outfile=conftest.$ac_objext
14479    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14480    lt_compiler_flag="-fno-rtti -fno-exceptions"
14481    # Insert the option either (1) after the last *FLAGS variable, or
14482    # (2) before a word containing "conftest.", or (3) at the end.
14483    # Note that $ac_compile itself does not contain backslashes and begins
14484    # with a dollar sign (not a hyphen), so the echo should work correctly.
14485    # The option is referenced via a variable to avoid confusing sed.
14486    lt_compile=`echo "$ac_compile" | $SED \
14487    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14488    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14489    -e 's:$: $lt_compiler_flag:'`
14490    (eval echo "\"\$as_me:14490: $lt_compile\"" >&5)
14491    (eval "$lt_compile" 2>conftest.err)
14492    ac_status=$?
14493    cat conftest.err >&5
14494    echo "$as_me:14494: \$? = $ac_status" >&5
14495    if (exit $ac_status) && test -s "$ac_outfile"; then
14496      # The compiler can only warn and ignore the option if not recognized
14497      # So say no if there are warnings
14498      if test ! -s conftest.err; then
14499        lt_cv_prog_compiler_rtti_exceptions=yes
14500      fi
14501    fi
14502    $rm conftest*
14503
14504 fi
14505 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14506 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14507
14508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14509     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14510 else
14511     :
14512 fi
14513
14514 fi
14515
14516 lt_prog_compiler_wl_GCJ=
14517 lt_prog_compiler_pic_GCJ=
14518 lt_prog_compiler_static_GCJ=
14519
14520 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14521 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14522
14523   if test "$GCC" = yes; then
14524     lt_prog_compiler_wl_GCJ='-Wl,'
14525     lt_prog_compiler_static_GCJ='-static'
14526
14527     case $host_os in
14528       aix*)
14529       # All AIX code is PIC.
14530       if test "$host_cpu" = ia64; then
14531         # AIX 5 now supports IA64 processor
14532         lt_prog_compiler_static_GCJ='-Bstatic'
14533       fi
14534       ;;
14535
14536     amigaos*)
14537       # FIXME: we need at least 68020 code to build shared libraries, but
14538       # adding the `-m68020' flag to GCC prevents building anything better,
14539       # like `-m68040'.
14540       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14541       ;;
14542
14543     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14544       # PIC is the default for these OSes.
14545       ;;
14546
14547     mingw* | pw32* | os2*)
14548       # This hack is so that the source file can tell whether it is being
14549       # built for inclusion in a dll (and should export symbols for example).
14550       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14551       ;;
14552
14553     darwin* | rhapsody*)
14554       # PIC is the default on this platform
14555       # Common symbols not allowed in MH_DYLIB files
14556       lt_prog_compiler_pic_GCJ='-fno-common'
14557       ;;
14558
14559     msdosdjgpp*)
14560       # Just because we use GCC doesn't mean we suddenly get shared libraries
14561       # on systems that don't support them.
14562       lt_prog_compiler_can_build_shared_GCJ=no
14563       enable_shared=no
14564       ;;
14565
14566     sysv4*MP*)
14567       if test -d /usr/nec; then
14568         lt_prog_compiler_pic_GCJ=-Kconform_pic
14569       fi
14570       ;;
14571
14572     hpux*)
14573       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14574       # not for PA HP-UX.
14575       case "$host_cpu" in
14576       hppa*64*|ia64*)
14577         # +Z the default
14578         ;;
14579       *)
14580         lt_prog_compiler_pic_GCJ='-fPIC'
14581         ;;
14582       esac
14583       ;;
14584
14585     *)
14586       lt_prog_compiler_pic_GCJ='-fPIC'
14587       ;;
14588     esac
14589   else
14590     # PORTME Check for flag to pass linker flags through the system compiler.
14591     case $host_os in
14592     aix*)
14593       lt_prog_compiler_wl_GCJ='-Wl,'
14594       if test "$host_cpu" = ia64; then
14595         # AIX 5 now supports IA64 processor
14596         lt_prog_compiler_static_GCJ='-Bstatic'
14597       else
14598         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14599       fi
14600       ;;
14601
14602     mingw* | pw32* | os2*)
14603       # This hack is so that the source file can tell whether it is being
14604       # built for inclusion in a dll (and should export symbols for example).
14605       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14606       ;;
14607
14608     hpux9* | hpux10* | hpux11*)
14609       lt_prog_compiler_wl_GCJ='-Wl,'
14610       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14611       # not for PA HP-UX.
14612       case "$host_cpu" in
14613       hppa*64*|ia64*)
14614         # +Z the default
14615         ;;
14616       *)
14617         lt_prog_compiler_pic_GCJ='+Z'
14618         ;;
14619       esac
14620       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14621       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14622       ;;
14623
14624     irix5* | irix6* | nonstopux*)
14625       lt_prog_compiler_wl_GCJ='-Wl,'
14626       # PIC (with -KPIC) is the default.
14627       lt_prog_compiler_static_GCJ='-non_shared'
14628       ;;
14629
14630     newsos6)
14631       lt_prog_compiler_pic_GCJ='-KPIC'
14632       lt_prog_compiler_static_GCJ='-Bstatic'
14633       ;;
14634
14635     linux*)
14636       case $CC in
14637       icc|ecc)
14638         lt_prog_compiler_wl_GCJ='-Wl,'
14639         lt_prog_compiler_pic_GCJ='-KPIC'
14640         lt_prog_compiler_static_GCJ='-static'
14641         ;;
14642       ccc)
14643         lt_prog_compiler_wl_GCJ='-Wl,'
14644         # All Alpha code is PIC.
14645         lt_prog_compiler_static_GCJ='-non_shared'
14646         ;;
14647       esac
14648       ;;
14649
14650     osf3* | osf4* | osf5*)
14651       lt_prog_compiler_wl_GCJ='-Wl,'
14652       # All OSF/1 code is PIC.
14653       lt_prog_compiler_static_GCJ='-non_shared'
14654       ;;
14655
14656     sco3.2v5*)
14657       lt_prog_compiler_pic_GCJ='-Kpic'
14658       lt_prog_compiler_static_GCJ='-dn'
14659       ;;
14660
14661     solaris*)
14662       lt_prog_compiler_wl_GCJ='-Wl,'
14663       lt_prog_compiler_pic_GCJ='-KPIC'
14664       lt_prog_compiler_static_GCJ='-Bstatic'
14665       ;;
14666
14667     sunos4*)
14668       lt_prog_compiler_wl_GCJ='-Qoption ld '
14669       lt_prog_compiler_pic_GCJ='-PIC'
14670       lt_prog_compiler_static_GCJ='-Bstatic'
14671       ;;
14672
14673     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14674       lt_prog_compiler_wl_GCJ='-Wl,'
14675       lt_prog_compiler_pic_GCJ='-KPIC'
14676       lt_prog_compiler_static_GCJ='-Bstatic'
14677       ;;
14678
14679     sysv4*MP*)
14680       if test -d /usr/nec ;then
14681         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14682         lt_prog_compiler_static_GCJ='-Bstatic'
14683       fi
14684       ;;
14685
14686     uts4*)
14687       lt_prog_compiler_pic_GCJ='-pic'
14688       lt_prog_compiler_static_GCJ='-Bstatic'
14689       ;;
14690
14691     *)
14692       lt_prog_compiler_can_build_shared_GCJ=no
14693       ;;
14694     esac
14695   fi
14696
14697 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14698 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14699
14700 #
14701 # Check to make sure the PIC flag actually works.
14702 #
14703 if test -n "$lt_prog_compiler_pic_GCJ"; then
14704   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14705 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14706 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14707   echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709   lt_prog_compiler_pic_works_GCJ=no
14710   ac_outfile=conftest.$ac_objext
14711    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14712    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14713    # Insert the option either (1) after the last *FLAGS variable, or
14714    # (2) before a word containing "conftest.", or (3) at the end.
14715    # Note that $ac_compile itself does not contain backslashes and begins
14716    # with a dollar sign (not a hyphen), so the echo should work correctly.
14717    # The option is referenced via a variable to avoid confusing sed.
14718    lt_compile=`echo "$ac_compile" | $SED \
14719    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14721    -e 's:$: $lt_compiler_flag:'`
14722    (eval echo "\"\$as_me:14722: $lt_compile\"" >&5)
14723    (eval "$lt_compile" 2>conftest.err)
14724    ac_status=$?
14725    cat conftest.err >&5
14726    echo "$as_me:14726: \$? = $ac_status" >&5
14727    if (exit $ac_status) && test -s "$ac_outfile"; then
14728      # The compiler can only warn and ignore the option if not recognized
14729      # So say no if there are warnings
14730      if test ! -s conftest.err; then
14731        lt_prog_compiler_pic_works_GCJ=yes
14732      fi
14733    fi
14734    $rm conftest*
14735
14736 fi
14737 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14738 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14739
14740 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14741     case $lt_prog_compiler_pic_GCJ in
14742      "" | " "*) ;;
14743      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14744      esac
14745 else
14746     lt_prog_compiler_pic_GCJ=
14747      lt_prog_compiler_can_build_shared_GCJ=no
14748 fi
14749
14750 fi
14751 case "$host_os" in
14752   # For platforms which do not support PIC, -DPIC is meaningless:
14753   *djgpp*)
14754     lt_prog_compiler_pic_GCJ=
14755     ;;
14756   *)
14757     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14758     ;;
14759 esac
14760
14761 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14762 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14763 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14764   echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766   lt_cv_prog_compiler_c_o_GCJ=no
14767    $rm -r conftest 2>/dev/null
14768    mkdir conftest
14769    cd conftest
14770    mkdir out
14771    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14772
14773    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14774    # that will create temporary files in the current directory regardless of
14775    # the output directory.  Thus, making CWD read-only will cause this test
14776    # to fail, enabling locking or at least warning the user not to do parallel
14777    # builds.
14778    chmod -w .
14779
14780    lt_compiler_flag="-o out/conftest2.$ac_objext"
14781    # Insert the option either (1) after the last *FLAGS variable, or
14782    # (2) before a word containing "conftest.", or (3) at the end.
14783    # Note that $ac_compile itself does not contain backslashes and begins
14784    # with a dollar sign (not a hyphen), so the echo should work correctly.
14785    lt_compile=`echo "$ac_compile" | $SED \
14786    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14787    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14788    -e 's:$: $lt_compiler_flag:'`
14789    (eval echo "\"\$as_me:14789: $lt_compile\"" >&5)
14790    (eval "$lt_compile" 2>out/conftest.err)
14791    ac_status=$?
14792    cat out/conftest.err >&5
14793    echo "$as_me:14793: \$? = $ac_status" >&5
14794    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14795    then
14796      # The compiler can only warn and ignore the option if not recognized
14797      # So say no if there are warnings
14798      if test ! -s out/conftest.err; then
14799        lt_cv_prog_compiler_c_o_GCJ=yes
14800      fi
14801    fi
14802    chmod u+w .
14803    $rm conftest* out/*
14804    rmdir out
14805    cd ..
14806    rmdir conftest
14807    $rm conftest*
14808
14809 fi
14810 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14811 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14812
14813
14814 hard_links="nottested"
14815 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14816   # do not overwrite the value of need_locks provided by the user
14817   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14818 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14819   hard_links=yes
14820   $rm conftest*
14821   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14822   touch conftest.a
14823   ln conftest.a conftest.b 2>&5 || hard_links=no
14824   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14825   echo "$as_me:$LINENO: result: $hard_links" >&5
14826 echo "${ECHO_T}$hard_links" >&6
14827   if test "$hard_links" = no; then
14828     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14829 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14830     need_locks=warn
14831   fi
14832 else
14833   need_locks=no
14834 fi
14835
14836 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14837 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14838
14839   runpath_var=
14840   allow_undefined_flag_GCJ=
14841   enable_shared_with_static_runtimes_GCJ=no
14842   archive_cmds_GCJ=
14843   archive_expsym_cmds_GCJ=
14844   old_archive_From_new_cmds_GCJ=
14845   old_archive_from_expsyms_cmds_GCJ=
14846   export_dynamic_flag_spec_GCJ=
14847   whole_archive_flag_spec_GCJ=
14848   thread_safe_flag_spec_GCJ=
14849   hardcode_libdir_flag_spec_GCJ=
14850   hardcode_libdir_flag_spec_ld_GCJ=
14851   hardcode_libdir_separator_GCJ=
14852   hardcode_direct_GCJ=no
14853   hardcode_minus_L_GCJ=no
14854   hardcode_shlibpath_var_GCJ=unsupported
14855   link_all_deplibs_GCJ=unknown
14856   hardcode_automatic_GCJ=no
14857   module_cmds_GCJ=
14858   module_expsym_cmds_GCJ=
14859   always_export_symbols_GCJ=no
14860   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14861   # include_expsyms should be a list of space-separated symbols to be *always*
14862   # included in the symbol list
14863   include_expsyms_GCJ=
14864   # exclude_expsyms can be an extended regexp of symbols to exclude
14865   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14866   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14867   # as well as any symbol that contains `d'.
14868   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14869   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14870   # platforms (ab)use it in PIC code, but their linkers get confused if
14871   # the symbol is explicitly referenced.  Since portable code cannot
14872   # rely on this symbol name, it's probably fine to never include it in
14873   # preloaded symbol tables.
14874   extract_expsyms_cmds=
14875
14876   case $host_os in
14877   cygwin* | mingw* | pw32*)
14878     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14879     # When not using gcc, we currently assume that we are using
14880     # Microsoft Visual C++.
14881     if test "$GCC" != yes; then
14882       with_gnu_ld=no
14883     fi
14884     ;;
14885   openbsd*)
14886     with_gnu_ld=no
14887     ;;
14888   esac
14889
14890   ld_shlibs_GCJ=yes
14891   if test "$with_gnu_ld" = yes; then
14892     # If archive_cmds runs LD, not CC, wlarc should be empty
14893     wlarc='${wl}'
14894
14895     # See if GNU ld supports shared libraries.
14896     case $host_os in
14897     aix3* | aix4* | aix5*)
14898       # On AIX/PPC, the GNU linker is very broken
14899       if test "$host_cpu" != ia64; then
14900         ld_shlibs_GCJ=no
14901         cat <<EOF 1>&2
14902
14903 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14904 *** to be unable to reliably create shared libraries on AIX.
14905 *** Therefore, libtool is disabling shared libraries support.  If you
14906 *** really care for shared libraries, you may want to modify your PATH
14907 *** so that a non-GNU linker is found, and then restart.
14908
14909 EOF
14910       fi
14911       ;;
14912
14913     amigaos*)
14914       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)'
14915       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14916       hardcode_minus_L_GCJ=yes
14917
14918       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14919       # that the semantics of dynamic libraries on AmigaOS, at least up
14920       # to version 4, is to share data among multiple programs linked
14921       # with the same dynamic library.  Since this doesn't match the
14922       # behavior of shared libraries on other platforms, we can't use
14923       # them.
14924       ld_shlibs_GCJ=no
14925       ;;
14926
14927     beos*)
14928       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14929         allow_undefined_flag_GCJ=unsupported
14930         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14931         # support --undefined.  This deserves some investigation.  FIXME
14932         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14933       else
14934         ld_shlibs_GCJ=no
14935       fi
14936       ;;
14937
14938     cygwin* | mingw* | pw32*)
14939       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14940       # as there is no search path for DLLs.
14941       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14942       allow_undefined_flag_GCJ=unsupported
14943       always_export_symbols_GCJ=no
14944       enable_shared_with_static_runtimes_GCJ=yes
14945       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14946
14947       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14948         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14949         # If the export-symbols file already is a .def file (1st line
14950         # is EXPORTS), use it as is; otherwise, prepend...
14951         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14952           cp $export_symbols $output_objdir/$soname.def;
14953         else
14954           echo EXPORTS > $output_objdir/$soname.def;
14955           cat $export_symbols >> $output_objdir/$soname.def;
14956         fi~
14957         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14958       else
14959         ld_shlibs=no
14960       fi
14961       ;;
14962
14963     netbsd*)
14964       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14965         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14966         wlarc=
14967       else
14968         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14970       fi
14971       ;;
14972
14973     solaris* | sysv5*)
14974       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14975         ld_shlibs_GCJ=no
14976         cat <<EOF 1>&2
14977
14978 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14979 *** create shared libraries on Solaris systems.  Therefore, libtool
14980 *** is disabling shared libraries support.  We urge you to upgrade GNU
14981 *** binutils to release 2.9.1 or newer.  Another option is to modify
14982 *** your PATH or compiler configuration so that the native linker is
14983 *** used, and then restart.
14984
14985 EOF
14986       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14987         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14988         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14989       else
14990         ld_shlibs_GCJ=no
14991       fi
14992       ;;
14993
14994     sunos4*)
14995       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14996       wlarc=
14997       hardcode_direct_GCJ=yes
14998       hardcode_shlibpath_var_GCJ=no
14999       ;;
15000
15001     *)
15002       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15003         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15004         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15005       else
15006         ld_shlibs_GCJ=no
15007       fi
15008       ;;
15009     esac
15010
15011     if test "$ld_shlibs_GCJ" = yes; then
15012       runpath_var=LD_RUN_PATH
15013       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15014       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15015       # ancient GNU ld didn't support --whole-archive et. al.
15016       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15017         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15018       else
15019         whole_archive_flag_spec_GCJ=
15020       fi
15021     fi
15022   else
15023     # PORTME fill in a description of your system's linker (not GNU ld)
15024     case $host_os in
15025     aix3*)
15026       allow_undefined_flag_GCJ=unsupported
15027       always_export_symbols_GCJ=yes
15028       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'
15029       # Note: this linker hardcodes the directories in LIBPATH if there
15030       # are no directories specified by -L.
15031       hardcode_minus_L_GCJ=yes
15032       if test "$GCC" = yes && test -z "$link_static_flag"; then
15033         # Neither direct hardcoding nor static linking is supported with a
15034         # broken collect2.
15035         hardcode_direct_GCJ=unsupported
15036       fi
15037       ;;
15038
15039     aix4* | aix5*)
15040       if test "$host_cpu" = ia64; then
15041         # On IA64, the linker does run time linking by default, so we don't
15042         # have to do anything special.
15043         aix_use_runtimelinking=no
15044         exp_sym_flag='-Bexport'
15045         no_entry_flag=""
15046       else
15047         # If we're using GNU nm, then we don't want the "-C" option.
15048         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15049         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15050           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'
15051         else
15052           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'
15053         fi
15054         aix_use_runtimelinking=no
15055
15056         # Test if we are trying to use run time linking or normal
15057         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15058         # need to do runtime linking.
15059         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15060           for ld_flag in $LDFLAGS; do
15061           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15062             aix_use_runtimelinking=yes
15063             break
15064           fi
15065           done
15066         esac
15067
15068         exp_sym_flag='-bexport'
15069         no_entry_flag='-bnoentry'
15070       fi
15071
15072       # When large executables or shared objects are built, AIX ld can
15073       # have problems creating the table of contents.  If linking a library
15074       # or program results in "error TOC overflow" add -mminimal-toc to
15075       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15076       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15077
15078       archive_cmds_GCJ=''
15079       hardcode_direct_GCJ=yes
15080       hardcode_libdir_separator_GCJ=':'
15081       link_all_deplibs_GCJ=yes
15082
15083       if test "$GCC" = yes; then
15084         case $host_os in aix4.012|aix4.012.*)
15085         # We only want to do this on AIX 4.2 and lower, the check
15086         # below for broken collect2 doesn't work under 4.3+
15087           collect2name=`${CC} -print-prog-name=collect2`
15088           if test -f "$collect2name" && \
15089            strings "$collect2name" | grep resolve_lib_name >/dev/null
15090           then
15091           # We have reworked collect2
15092           hardcode_direct_GCJ=yes
15093           else
15094           # We have old collect2
15095           hardcode_direct_GCJ=unsupported
15096           # It fails to find uninstalled libraries when the uninstalled
15097           # path is not listed in the libpath.  Setting hardcode_minus_L
15098           # to unsupported forces relinking
15099           hardcode_minus_L_GCJ=yes
15100           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15101           hardcode_libdir_separator_GCJ=
15102           fi
15103         esac
15104         shared_flag='-shared'
15105       else
15106         # not using gcc
15107         if test "$host_cpu" = ia64; then
15108         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15109         # chokes on -Wl,-G. The following line is correct:
15110           shared_flag='-G'
15111         else
15112         if test "$aix_use_runtimelinking" = yes; then
15113             shared_flag='${wl}-G'
15114           else
15115             shared_flag='${wl}-bM:SRE'
15116         fi
15117         fi
15118       fi
15119
15120       # It seems that -bexpall does not export symbols beginning with
15121       # underscore (_), so it is better to generate a list of symbols to export.
15122       always_export_symbols_GCJ=yes
15123       if test "$aix_use_runtimelinking" = yes; then
15124         # Warning - without using the other runtime loading flags (-brtl),
15125         # -berok will link without error, but may produce a broken library.
15126         allow_undefined_flag_GCJ='-berok'
15127        # Determine the default libpath from the value encoded in an empty executable.
15128        cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15130 /* confdefs.h.  */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h.  */
15135
15136 int
15137 main ()
15138 {
15139
15140   ;
15141   return 0;
15142 }
15143 _ACEOF
15144 rm -f conftest.$ac_objext conftest$ac_exeext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146   (eval $ac_link) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } &&
15150          { ac_try='test -s conftest$ac_exeext'
15151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152   (eval $ac_try) 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; }; then
15156
15157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15158 }'`
15159 # Check for a 64-bit object if we didn't find anything.
15160 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; }
15161 }'`; fi
15162 else
15163   echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166 fi
15167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15169
15170        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15171         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"
15172        else
15173         if test "$host_cpu" = ia64; then
15174           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15175           allow_undefined_flag_GCJ="-z nodefs"
15176           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"
15177         else
15178          # Determine the default libpath from the value encoded in an empty executable.
15179          cat >conftest.$ac_ext <<_ACEOF
15180 #line $LINENO "configure"
15181 /* confdefs.h.  */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h.  */
15186
15187 int
15188 main ()
15189 {
15190
15191   ;
15192   return 0;
15193 }
15194 _ACEOF
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197   (eval $ac_link) 2>&5
15198   ac_status=$?
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } &&
15201          { ac_try='test -s conftest$ac_exeext'
15202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203   (eval $ac_try) 2>&5
15204   ac_status=$?
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); }; }; then
15207
15208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15209 }'`
15210 # Check for a 64-bit object if we didn't find anything.
15211 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; }
15212 }'`; fi
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217 fi
15218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15220
15221          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15222           # Warning - without using the other run time loading flags,
15223           # -berok will link without error, but may produce a broken library.
15224           no_undefined_flag_GCJ=' ${wl}-bernotok'
15225           allow_undefined_flag_GCJ=' ${wl}-berok'
15226           # -bexpall does not export symbols beginning with underscore (_)
15227           always_export_symbols_GCJ=yes
15228           # Exported symbols can be pulled into shared objects from archives
15229           whole_archive_flag_spec_GCJ=' '
15230           archive_cmds_need_lc_GCJ=yes
15231           # This is similar to how AIX traditionally builds it's shared libraries.
15232           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'
15233         fi
15234       fi
15235       ;;
15236
15237     amigaos*)
15238       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)'
15239       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15240       hardcode_minus_L_GCJ=yes
15241       # see comment about different semantics on the GNU ld section
15242       ld_shlibs_GCJ=no
15243       ;;
15244
15245     bsdi4*)
15246       export_dynamic_flag_spec_GCJ=-rdynamic
15247       ;;
15248
15249     cygwin* | mingw* | pw32*)
15250       # When not using gcc, we currently assume that we are using
15251       # Microsoft Visual C++.
15252       # hardcode_libdir_flag_spec is actually meaningless, as there is
15253       # no search path for DLLs.
15254       hardcode_libdir_flag_spec_GCJ=' '
15255       allow_undefined_flag_GCJ=unsupported
15256       # Tell ltmain to make .lib files, not .a files.
15257       libext=lib
15258       # Tell ltmain to make .dll files, not .so files.
15259       shrext=".dll"
15260       # FIXME: Setting linknames here is a bad hack.
15261       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15262       # The linker will automatically build a .lib file if we build a DLL.
15263       old_archive_From_new_cmds_GCJ='true'
15264       # FIXME: Should let the user specify the lib program.
15265       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15266       fix_srcfile_path='`cygpath -w "$srcfile"`'
15267       enable_shared_with_static_runtimes_GCJ=yes
15268       ;;
15269
15270     darwin* | rhapsody*)
15271     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15272       archive_cmds_need_lc_GCJ=no
15273       case "$host_os" in
15274       rhapsody* | darwin1.[012])
15275         allow_undefined_flag_GCJ='-undefined suppress'
15276         ;;
15277       *) # Darwin 1.3 on
15278         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15279         ;;
15280       esac
15281       # FIXME: Relying on posixy $() will cause problems for
15282       #        cross-compilation, but unfortunately the echo tests do not
15283       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15284       #        `"' quotes if we put them in here... so don't!
15285         lt_int_apple_cc_single_mod=no
15286         output_verbose_link_cmd='echo'
15287         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15288           lt_int_apple_cc_single_mod=yes
15289         fi
15290         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15291           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15292         else
15293         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'
15294       fi
15295       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15296       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15297         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15298           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}'
15299         else
15300           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}'
15301         fi
15302           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}'
15303       hardcode_direct_GCJ=no
15304       hardcode_automatic_GCJ=yes
15305       hardcode_shlibpath_var_GCJ=unsupported
15306       whole_archive_flag_spec_GCJ='-all_load $convenience'
15307       link_all_deplibs_GCJ=yes
15308     fi
15309       ;;
15310
15311     dgux*)
15312       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15313       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15314       hardcode_shlibpath_var_GCJ=no
15315       ;;
15316
15317     freebsd1*)
15318       ld_shlibs_GCJ=no
15319       ;;
15320
15321     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15322     # support.  Future versions do this automatically, but an explicit c++rt0.o
15323     # does not break anything, and helps significantly (at the cost of a little
15324     # extra space).
15325     freebsd2.2*)
15326       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15327       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15328       hardcode_direct_GCJ=yes
15329       hardcode_shlibpath_var_GCJ=no
15330       ;;
15331
15332     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15333     freebsd2*)
15334       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15335       hardcode_direct_GCJ=yes
15336       hardcode_minus_L_GCJ=yes
15337       hardcode_shlibpath_var_GCJ=no
15338       ;;
15339
15340     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15341     freebsd*)
15342       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15343       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15344       hardcode_direct_GCJ=yes
15345       hardcode_shlibpath_var_GCJ=no
15346       ;;
15347
15348     hpux9*)
15349       if test "$GCC" = yes; then
15350         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'
15351       else
15352         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'
15353       fi
15354       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15355       hardcode_libdir_separator_GCJ=:
15356       hardcode_direct_GCJ=yes
15357
15358       # hardcode_minus_L: Not really in the search PATH,
15359       # but as the default location of the library.
15360       hardcode_minus_L_GCJ=yes
15361       export_dynamic_flag_spec_GCJ='${wl}-E'
15362       ;;
15363
15364     hpux10* | hpux11*)
15365       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15366         case "$host_cpu" in
15367         hppa*64*|ia64*)
15368           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15369           ;;
15370         *)
15371           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15372           ;;
15373         esac
15374       else
15375         case "$host_cpu" in
15376         hppa*64*|ia64*)
15377           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15378           ;;
15379         *)
15380           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15381           ;;
15382         esac
15383       fi
15384       if test "$with_gnu_ld" = no; then
15385         case "$host_cpu" in
15386         hppa*64*)
15387           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15388           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15389           hardcode_libdir_separator_GCJ=:
15390           hardcode_direct_GCJ=no
15391           hardcode_shlibpath_var_GCJ=no
15392           ;;
15393         ia64*)
15394           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15395           hardcode_direct_GCJ=no
15396           hardcode_shlibpath_var_GCJ=no
15397
15398           # hardcode_minus_L: Not really in the search PATH,
15399           # but as the default location of the library.
15400           hardcode_minus_L_GCJ=yes
15401           ;;
15402         *)
15403           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15404           hardcode_libdir_separator_GCJ=:
15405           hardcode_direct_GCJ=yes
15406           export_dynamic_flag_spec_GCJ='${wl}-E'
15407
15408           # hardcode_minus_L: Not really in the search PATH,
15409           # but as the default location of the library.
15410           hardcode_minus_L_GCJ=yes
15411           ;;
15412         esac
15413       fi
15414       ;;
15415
15416     irix5* | irix6* | nonstopux*)
15417       if test "$GCC" = yes; then
15418         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'
15419       else
15420         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'
15421         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15422       fi
15423       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15424       hardcode_libdir_separator_GCJ=:
15425       link_all_deplibs_GCJ=yes
15426       ;;
15427
15428     netbsd*)
15429       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15430         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15431       else
15432         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15433       fi
15434       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15435       hardcode_direct_GCJ=yes
15436       hardcode_shlibpath_var_GCJ=no
15437       ;;
15438
15439     newsos6)
15440       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15441       hardcode_direct_GCJ=yes
15442       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15443       hardcode_libdir_separator_GCJ=:
15444       hardcode_shlibpath_var_GCJ=no
15445       ;;
15446
15447     openbsd*)
15448       hardcode_direct_GCJ=yes
15449       hardcode_shlibpath_var_GCJ=no
15450       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15451         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15452         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15453         export_dynamic_flag_spec_GCJ='${wl}-E'
15454       else
15455        case $host_os in
15456          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15457            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15458            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15459            ;;
15460          *)
15461            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15462            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15463            ;;
15464        esac
15465       fi
15466       ;;
15467
15468     os2*)
15469       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15470       hardcode_minus_L_GCJ=yes
15471       allow_undefined_flag_GCJ=unsupported
15472       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'
15473       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15474       ;;
15475
15476     osf3*)
15477       if test "$GCC" = yes; then
15478         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15479         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'
15480       else
15481         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15482         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'
15483       fi
15484       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15485       hardcode_libdir_separator_GCJ=:
15486       ;;
15487
15488     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15489       if test "$GCC" = yes; then
15490         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15491         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'
15492         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15493       else
15494         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15495         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'
15496         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~
15497         $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'
15498
15499         # Both c and cxx compiler support -rpath directly
15500         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15501       fi
15502       hardcode_libdir_separator_GCJ=:
15503       ;;
15504
15505     sco3.2v5*)
15506       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507       hardcode_shlibpath_var_GCJ=no
15508       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15509       runpath_var=LD_RUN_PATH
15510       hardcode_runpath_var=yes
15511       ;;
15512
15513     solaris*)
15514       no_undefined_flag_GCJ=' -z text'
15515       if test "$GCC" = yes; then
15516         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15517         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15518           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15519       else
15520         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15522         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15523       fi
15524       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15525       hardcode_shlibpath_var_GCJ=no
15526       case $host_os in
15527       solaris2.[0-5] | solaris2.[0-5].*) ;;
15528       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15529         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15530       esac
15531       link_all_deplibs_GCJ=yes
15532       ;;
15533
15534     sunos4*)
15535       if test "x$host_vendor" = xsequent; then
15536         # Use $CC to link under sequent, because it throws in some extra .o
15537         # files that make .init and .fini sections work.
15538         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15539       else
15540         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15541       fi
15542       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15543       hardcode_direct_GCJ=yes
15544       hardcode_minus_L_GCJ=yes
15545       hardcode_shlibpath_var_GCJ=no
15546       ;;
15547
15548     sysv4)
15549       case $host_vendor in
15550         sni)
15551           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552           hardcode_direct_GCJ=yes # is this really true???
15553         ;;
15554         siemens)
15555           ## LD is ld it makes a PLAMLIB
15556           ## CC just makes a GrossModule.
15557           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15558           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15559           hardcode_direct_GCJ=no
15560         ;;
15561         motorola)
15562           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15564         ;;
15565       esac
15566       runpath_var='LD_RUN_PATH'
15567       hardcode_shlibpath_var_GCJ=no
15568       ;;
15569
15570     sysv4.3*)
15571       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572       hardcode_shlibpath_var_GCJ=no
15573       export_dynamic_flag_spec_GCJ='-Bexport'
15574       ;;
15575
15576     sysv4*MP*)
15577       if test -d /usr/nec; then
15578         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579         hardcode_shlibpath_var_GCJ=no
15580         runpath_var=LD_RUN_PATH
15581         hardcode_runpath_var=yes
15582         ld_shlibs_GCJ=yes
15583       fi
15584       ;;
15585
15586     sysv4.2uw2*)
15587       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15588       hardcode_direct_GCJ=yes
15589       hardcode_minus_L_GCJ=no
15590       hardcode_shlibpath_var_GCJ=no
15591       hardcode_runpath_var=yes
15592       runpath_var=LD_RUN_PATH
15593       ;;
15594
15595    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15596       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15597       if test "$GCC" = yes; then
15598         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599       else
15600         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15601       fi
15602       runpath_var='LD_RUN_PATH'
15603       hardcode_shlibpath_var_GCJ=no
15604       ;;
15605
15606     sysv5*)
15607       no_undefined_flag_GCJ=' -z text'
15608       # $CC -shared without GNU ld will not create a library from C++
15609       # object files and a static libstdc++, better avoid it by now
15610       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15612                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15613       hardcode_libdir_flag_spec_GCJ=
15614       hardcode_shlibpath_var_GCJ=no
15615       runpath_var='LD_RUN_PATH'
15616       ;;
15617
15618     uts4*)
15619       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15621       hardcode_shlibpath_var_GCJ=no
15622       ;;
15623
15624     *)
15625       ld_shlibs_GCJ=no
15626       ;;
15627     esac
15628   fi
15629
15630 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15631 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15632 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15633
15634 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15635 if test "$GCC" = yes; then
15636   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15637 fi
15638
15639 #
15640 # Do we need to explicitly link libc?
15641 #
15642 case "x$archive_cmds_need_lc_GCJ" in
15643 x|xyes)
15644   # Assume -lc should be added
15645   archive_cmds_need_lc_GCJ=yes
15646
15647   if test "$enable_shared" = yes && test "$GCC" = yes; then
15648     case $archive_cmds_GCJ in
15649     *'~'*)
15650       # FIXME: we may have to deal with multi-command sequences.
15651       ;;
15652     '$CC '*)
15653       # Test whether the compiler implicitly links with -lc since on some
15654       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15655       # to ld, don't add -lc before -lgcc.
15656       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15657 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15658       $rm conftest*
15659       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15660
15661       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15662   (eval $ac_compile) 2>&5
15663   ac_status=$?
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); } 2>conftest.err; then
15666         soname=conftest
15667         lib=conftest
15668         libobjs=conftest.$ac_objext
15669         deplibs=
15670         wl=$lt_prog_compiler_wl_GCJ
15671         compiler_flags=-v
15672         linker_flags=-v
15673         verstring=
15674         output_objdir=.
15675         libname=conftest
15676         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15677         allow_undefined_flag_GCJ=
15678         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15679   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }
15683         then
15684           archive_cmds_need_lc_GCJ=no
15685         else
15686           archive_cmds_need_lc_GCJ=yes
15687         fi
15688         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15689       else
15690         cat conftest.err 1>&5
15691       fi
15692       $rm conftest*
15693       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15694 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15695       ;;
15696     esac
15697   fi
15698   ;;
15699 esac
15700
15701 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15702 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15703 hardcode_action_GCJ=
15704 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15705    test -n "$runpath_var GCJ" || \
15706    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15707
15708   # We can hardcode non-existant directories.
15709   if test "$hardcode_direct_GCJ" != no &&
15710      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15711      # have to relink, otherwise we might link with an installed library
15712      # when we should be linking with a yet-to-be-installed one
15713      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15714      test "$hardcode_minus_L_GCJ" != no; then
15715     # Linking always hardcodes the temporary library directory.
15716     hardcode_action_GCJ=relink
15717   else
15718     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15719     hardcode_action_GCJ=immediate
15720   fi
15721 else
15722   # We cannot hardcode anything, or else we can only hardcode existing
15723   # directories.
15724   hardcode_action_GCJ=unsupported
15725 fi
15726 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15727 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15728
15729 if test "$hardcode_action_GCJ" = relink; then
15730   # Fast installation is not supported
15731   enable_fast_install=no
15732 elif test "$shlibpath_overrides_runpath" = yes ||
15733      test "$enable_shared" = no; then
15734   # Fast installation is not necessary
15735   enable_fast_install=needless
15736 fi
15737
15738 striplib=
15739 old_striplib=
15740 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15741 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15742 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15743   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15744   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15745   echo "$as_me:$LINENO: result: yes" >&5
15746 echo "${ECHO_T}yes" >&6
15747 else
15748 # FIXME - insert some real tests, host_os isn't really good enough
15749   case $host_os in
15750    darwin*)
15751        if test -n "$STRIP" ; then
15752          striplib="$STRIP -x"
15753          echo "$as_me:$LINENO: result: yes" >&5
15754 echo "${ECHO_T}yes" >&6
15755        else
15756   echo "$as_me:$LINENO: result: no" >&5
15757 echo "${ECHO_T}no" >&6
15758 fi
15759        ;;
15760    *)
15761   echo "$as_me:$LINENO: result: no" >&5
15762 echo "${ECHO_T}no" >&6
15763     ;;
15764   esac
15765 fi
15766
15767 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15768 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15769 library_names_spec=
15770 libname_spec='lib$name'
15771 soname_spec=
15772 shrext=".so"
15773 postinstall_cmds=
15774 postuninstall_cmds=
15775 finish_cmds=
15776 finish_eval=
15777 shlibpath_var=
15778 shlibpath_overrides_runpath=unknown
15779 version_type=none
15780 dynamic_linker="$host_os ld.so"
15781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15782 if test "$GCC" = yes; then
15783   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15784   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15785     # if the path contains ";" then we assume it to be the separator
15786     # otherwise default to the standard path separator (i.e. ":") - it is
15787     # assumed that no part of a normal pathname contains ";" but that should
15788     # okay in the real world where ";" in dirpaths is itself problematic.
15789     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15790   else
15791     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15792   fi
15793 else
15794   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15795 fi
15796 need_lib_prefix=unknown
15797 hardcode_into_libs=no
15798
15799 # when you set need_version to no, make sure it does not cause -set_version
15800 # flags to be left without arguments
15801 need_version=unknown
15802
15803 case $host_os in
15804 aix3*)
15805   version_type=linux
15806   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15807   shlibpath_var=LIBPATH
15808
15809   # AIX 3 has no versioning support, so we append a major version to the name.
15810   soname_spec='${libname}${release}${shared_ext}$major'
15811   ;;
15812
15813 aix4* | aix5*)
15814   version_type=linux
15815   need_lib_prefix=no
15816   need_version=no
15817   hardcode_into_libs=yes
15818   if test "$host_cpu" = ia64; then
15819     # AIX 5 supports IA64
15820     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15821     shlibpath_var=LD_LIBRARY_PATH
15822   else
15823     # With GCC up to 2.95.x, collect2 would create an import file
15824     # for dependence libraries.  The import file would start with
15825     # the line `#! .'.  This would cause the generated library to
15826     # depend on `.', always an invalid library.  This was fixed in
15827     # development snapshots of GCC prior to 3.0.
15828     case $host_os in
15829       aix4 | aix4.[01] | aix4.[01].*)
15830       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15831            echo ' yes '
15832            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15833         :
15834       else
15835         can_build_shared=no
15836       fi
15837       ;;
15838     esac
15839     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15840     # soname into executable. Probably we can add versioning support to
15841     # collect2, so additional links can be useful in future.
15842     if test "$aix_use_runtimelinking" = yes; then
15843       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15844       # instead of lib<name>.a to let people know that these are not
15845       # typical AIX shared libraries.
15846       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847     else
15848       # We preserve .a as extension for shared libraries through AIX4.2
15849       # and later when we are not doing run time linking.
15850       library_names_spec='${libname}${release}.a $libname.a'
15851       soname_spec='${libname}${release}${shared_ext}$major'
15852     fi
15853     shlibpath_var=LIBPATH
15854   fi
15855   ;;
15856
15857 amigaos*)
15858   library_names_spec='$libname.ixlibrary $libname.a'
15859   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15860   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'
15861   ;;
15862
15863 beos*)
15864   library_names_spec='${libname}${shared_ext}'
15865   dynamic_linker="$host_os ld.so"
15866   shlibpath_var=LIBRARY_PATH
15867   ;;
15868
15869 bsdi4*)
15870   version_type=linux
15871   need_version=no
15872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873   soname_spec='${libname}${release}${shared_ext}$major'
15874   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15875   shlibpath_var=LD_LIBRARY_PATH
15876   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15877   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15878   # the default ld.so.conf also contains /usr/contrib/lib and
15879   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15880   # libtool to hard-code these into programs
15881   ;;
15882
15883 cygwin* | mingw* | pw32*)
15884   version_type=windows
15885   shrext=".dll"
15886   need_version=no
15887   need_lib_prefix=no
15888
15889   case $GCC,$host_os in
15890   yes,cygwin* | yes,mingw* | yes,pw32*)
15891     library_names_spec='$libname.dll.a'
15892     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15893     postinstall_cmds='base_file=`basename \${file}`~
15894       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15895       dldir=$destdir/`dirname \$dlpath`~
15896       test -d \$dldir || mkdir -p \$dldir~
15897       $install_prog $dir/$dlname \$dldir/$dlname'
15898     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15899       dlpath=$dir/\$dldll~
15900        $rm \$dlpath'
15901     shlibpath_overrides_runpath=yes
15902
15903     case $host_os in
15904     cygwin*)
15905       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15906       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15907       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15908       ;;
15909     mingw*)
15910       # MinGW DLLs use traditional 'lib' prefix
15911       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15912       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15913       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15914         # It is most probably a Windows format PATH printed by
15915         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15916         # path with ; separators, and with drive letters. We can handle the
15917         # drive letters (cygwin fileutils understands them), so leave them,
15918         # especially as we might pass files found there to a mingw objdump,
15919         # which wouldn't understand a cygwinified path. Ahh.
15920         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15921       else
15922         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15923       fi
15924       ;;
15925     pw32*)
15926       # pw32 DLLs use 'pw' prefix rather than 'lib'
15927       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15928       ;;
15929     esac
15930     ;;
15931
15932   *)
15933     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15934     ;;
15935   esac
15936   dynamic_linker='Win32 ld.exe'
15937   # FIXME: first we should search . and the directory the executable is in
15938   shlibpath_var=PATH
15939   ;;
15940
15941 darwin* | rhapsody*)
15942   dynamic_linker="$host_os dyld"
15943   version_type=darwin
15944   need_lib_prefix=no
15945   need_version=no
15946   # FIXME: Relying on posixy $() will cause problems for
15947   #        cross-compilation, but unfortunately the echo tests do not
15948   #        yet detect zsh echo's removal of \ escapes.
15949   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15950   soname_spec='${libname}${release}${major}$shared_ext'
15951   shlibpath_overrides_runpath=yes
15952   shlibpath_var=DYLD_LIBRARY_PATH
15953   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15954   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15955   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15956   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"`
15957   fi
15958   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15959   ;;
15960
15961 dgux*)
15962   version_type=linux
15963   need_lib_prefix=no
15964   need_version=no
15965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15966   soname_spec='${libname}${release}${shared_ext}$major'
15967   shlibpath_var=LD_LIBRARY_PATH
15968   ;;
15969
15970 freebsd1*)
15971   dynamic_linker=no
15972   ;;
15973
15974 freebsd*)
15975   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15976   version_type=freebsd-$objformat
15977   case $version_type in
15978     freebsd-elf*)
15979       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15980       need_version=no
15981       need_lib_prefix=no
15982       ;;
15983     freebsd-*)
15984       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15985       need_version=yes
15986       ;;
15987   esac
15988   shlibpath_var=LD_LIBRARY_PATH
15989   case $host_os in
15990   freebsd2*)
15991     shlibpath_overrides_runpath=yes
15992     ;;
15993   freebsd3.01* | freebsdelf3.01*)
15994     shlibpath_overrides_runpath=yes
15995     hardcode_into_libs=yes
15996     ;;
15997   *) # from 3.2 on
15998     shlibpath_overrides_runpath=no
15999     hardcode_into_libs=yes
16000     ;;
16001   esac
16002   ;;
16003
16004 gnu*)
16005   version_type=linux
16006   need_lib_prefix=no
16007   need_version=no
16008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16009   soname_spec='${libname}${release}${shared_ext}$major'
16010   shlibpath_var=LD_LIBRARY_PATH
16011   hardcode_into_libs=yes
16012   ;;
16013
16014 hpux9* | hpux10* | hpux11*)
16015   # Give a soname corresponding to the major version so that dld.sl refuses to
16016   # link against other versions.
16017   version_type=sunos
16018   need_lib_prefix=no
16019   need_version=no
16020   case "$host_cpu" in
16021   ia64*)
16022     shrext='.so'
16023     hardcode_into_libs=yes
16024     dynamic_linker="$host_os dld.so"
16025     shlibpath_var=LD_LIBRARY_PATH
16026     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028     soname_spec='${libname}${release}${shared_ext}$major'
16029     if test "X$HPUX_IA64_MODE" = X32; then
16030       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16031     else
16032       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16033     fi
16034     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16035     ;;
16036    hppa*64*)
16037      shrext='.sl'
16038      hardcode_into_libs=yes
16039      dynamic_linker="$host_os dld.sl"
16040      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16041      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16042      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043      soname_spec='${libname}${release}${shared_ext}$major'
16044      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16045      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16046      ;;
16047    *)
16048     shrext='.sl'
16049     dynamic_linker="$host_os dld.sl"
16050     shlibpath_var=SHLIB_PATH
16051     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053     soname_spec='${libname}${release}${shared_ext}$major'
16054     ;;
16055   esac
16056   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16057   postinstall_cmds='chmod 555 $lib'
16058   ;;
16059
16060 irix5* | irix6* | nonstopux*)
16061   case $host_os in
16062     nonstopux*) version_type=nonstopux ;;
16063     *)
16064         if test "$lt_cv_prog_gnu_ld" = yes; then
16065                 version_type=linux
16066         else
16067                 version_type=irix
16068         fi ;;
16069   esac
16070   need_lib_prefix=no
16071   need_version=no
16072   soname_spec='${libname}${release}${shared_ext}$major'
16073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16074   case $host_os in
16075   irix5* | nonstopux*)
16076     libsuff= shlibsuff=
16077     ;;
16078   *)
16079     case $LD in # libtool.m4 will add one of these switches to LD
16080     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16081       libsuff= shlibsuff= libmagic=32-bit;;
16082     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16083       libsuff=32 shlibsuff=N32 libmagic=N32;;
16084     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16085       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16086     *) libsuff= shlibsuff= libmagic=never-match;;
16087     esac
16088     ;;
16089   esac
16090   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16091   shlibpath_overrides_runpath=no
16092   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16093   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16094   hardcode_into_libs=yes
16095   ;;
16096
16097 # No shared lib support for Linux oldld, aout, or coff.
16098 linux*oldld* | linux*aout* | linux*coff*)
16099   dynamic_linker=no
16100   ;;
16101
16102 # This must be Linux ELF.
16103 linux*)
16104   version_type=linux
16105   need_lib_prefix=no
16106   need_version=no
16107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16108   soname_spec='${libname}${release}${shared_ext}$major'
16109   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16110   shlibpath_var=LD_LIBRARY_PATH
16111   shlibpath_overrides_runpath=no
16112   # This implies no fast_install, which is unacceptable.
16113   # Some rework will be needed to allow for fast_install
16114   # before this can be enabled.
16115   hardcode_into_libs=yes
16116
16117   # We used to test for /lib/ld.so.1 and disable shared libraries on
16118   # powerpc, because MkLinux only supported shared libraries with the
16119   # GNU dynamic linker.  Since this was broken with cross compilers,
16120   # most powerpc-linux boxes support dynamic linking these days and
16121   # people can always --disable-shared, the test was removed, and we
16122   # assume the GNU/Linux dynamic linker is in use.
16123   dynamic_linker='GNU/Linux ld.so'
16124   ;;
16125
16126 netbsd*)
16127   version_type=sunos
16128   need_lib_prefix=no
16129   need_version=no
16130   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16132     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16133     dynamic_linker='NetBSD (a.out) ld.so'
16134   else
16135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16136     soname_spec='${libname}${release}${shared_ext}$major'
16137     dynamic_linker='NetBSD ld.elf_so'
16138   fi
16139   shlibpath_var=LD_LIBRARY_PATH
16140   shlibpath_overrides_runpath=yes
16141   hardcode_into_libs=yes
16142   ;;
16143
16144 newsos6)
16145   version_type=linux
16146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147   shlibpath_var=LD_LIBRARY_PATH
16148   shlibpath_overrides_runpath=yes
16149   ;;
16150
16151 nto-qnx)
16152   version_type=linux
16153   need_lib_prefix=no
16154   need_version=no
16155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156   soname_spec='${libname}${release}${shared_ext}$major'
16157   shlibpath_var=LD_LIBRARY_PATH
16158   shlibpath_overrides_runpath=yes
16159   ;;
16160
16161 openbsd*)
16162   version_type=sunos
16163   need_lib_prefix=no
16164   need_version=no
16165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16166   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16167   shlibpath_var=LD_LIBRARY_PATH
16168   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16169     case $host_os in
16170       openbsd2.[89] | openbsd2.[89].*)
16171         shlibpath_overrides_runpath=no
16172         ;;
16173       *)
16174         shlibpath_overrides_runpath=yes
16175         ;;
16176       esac
16177   else
16178     shlibpath_overrides_runpath=yes
16179   fi
16180   ;;
16181
16182 os2*)
16183   libname_spec='$name'
16184   shrext=".dll"
16185   need_lib_prefix=no
16186   library_names_spec='$libname${shared_ext} $libname.a'
16187   dynamic_linker='OS/2 ld.exe'
16188   shlibpath_var=LIBPATH
16189   ;;
16190
16191 osf3* | osf4* | osf5*)
16192   version_type=osf
16193   need_lib_prefix=no
16194   need_version=no
16195   soname_spec='${libname}${release}${shared_ext}$major'
16196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197   shlibpath_var=LD_LIBRARY_PATH
16198   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16199   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16200   ;;
16201
16202 sco3.2v5*)
16203   version_type=osf
16204   soname_spec='${libname}${release}${shared_ext}$major'
16205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206   shlibpath_var=LD_LIBRARY_PATH
16207   ;;
16208
16209 solaris*)
16210   version_type=linux
16211   need_lib_prefix=no
16212   need_version=no
16213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214   soname_spec='${libname}${release}${shared_ext}$major'
16215   shlibpath_var=LD_LIBRARY_PATH
16216   shlibpath_overrides_runpath=yes
16217   hardcode_into_libs=yes
16218   # ldd complains unless libraries are executable
16219   postinstall_cmds='chmod +x $lib'
16220   ;;
16221
16222 sunos4*)
16223   version_type=sunos
16224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16225   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16226   shlibpath_var=LD_LIBRARY_PATH
16227   shlibpath_overrides_runpath=yes
16228   if test "$with_gnu_ld" = yes; then
16229     need_lib_prefix=no
16230   fi
16231   need_version=yes
16232   ;;
16233
16234 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16235   version_type=linux
16236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237   soname_spec='${libname}${release}${shared_ext}$major'
16238   shlibpath_var=LD_LIBRARY_PATH
16239   case $host_vendor in
16240     sni)
16241       shlibpath_overrides_runpath=no
16242       need_lib_prefix=no
16243       export_dynamic_flag_spec='${wl}-Blargedynsym'
16244       runpath_var=LD_RUN_PATH
16245       ;;
16246     siemens)
16247       need_lib_prefix=no
16248       ;;
16249     motorola)
16250       need_lib_prefix=no
16251       need_version=no
16252       shlibpath_overrides_runpath=no
16253       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16254       ;;
16255   esac
16256   ;;
16257
16258 sysv4*MP*)
16259   if test -d /usr/nec ;then
16260     version_type=linux
16261     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16262     soname_spec='$libname${shared_ext}.$major'
16263     shlibpath_var=LD_LIBRARY_PATH
16264   fi
16265   ;;
16266
16267 uts4*)
16268   version_type=linux
16269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270   soname_spec='${libname}${release}${shared_ext}$major'
16271   shlibpath_var=LD_LIBRARY_PATH
16272   ;;
16273
16274 *)
16275   dynamic_linker=no
16276   ;;
16277 esac
16278 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16279 echo "${ECHO_T}$dynamic_linker" >&6
16280 test "$dynamic_linker" = no && can_build_shared=no
16281
16282 if test "x$enable_dlopen" != xyes; then
16283   enable_dlopen=unknown
16284   enable_dlopen_self=unknown
16285   enable_dlopen_self_static=unknown
16286 else
16287   lt_cv_dlopen=no
16288   lt_cv_dlopen_libs=
16289
16290   case $host_os in
16291   beos*)
16292     lt_cv_dlopen="load_add_on"
16293     lt_cv_dlopen_libs=
16294     lt_cv_dlopen_self=yes
16295     ;;
16296
16297   mingw* | pw32*)
16298     lt_cv_dlopen="LoadLibrary"
16299     lt_cv_dlopen_libs=
16300    ;;
16301
16302   cygwin*)
16303     lt_cv_dlopen="dlopen"
16304     lt_cv_dlopen_libs=
16305    ;;
16306
16307   darwin*)
16308   # if libdl is installed we need to link against it
16309     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16312   echo $ECHO_N "(cached) $ECHO_C" >&6
16313 else
16314   ac_check_lib_save_LIBS=$LIBS
16315 LIBS="-ldl  $LIBS"
16316 cat >conftest.$ac_ext <<_ACEOF
16317 #line $LINENO "configure"
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323
16324 /* Override any gcc2 internal prototype to avoid an error.  */
16325 #ifdef __cplusplus
16326 extern "C"
16327 #endif
16328 /* We use char because int might match the return type of a gcc2
16329    builtin and then its argument prototype would still apply.  */
16330 char dlopen ();
16331 int
16332 main ()
16333 {
16334 dlopen ();
16335   ;
16336   return 0;
16337 }
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341   (eval $ac_link) 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } &&
16345          { ac_try='test -s conftest$ac_exeext'
16346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347   (eval $ac_try) 2>&5
16348   ac_status=$?
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); }; }; then
16351   ac_cv_lib_dl_dlopen=yes
16352 else
16353   echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 ac_cv_lib_dl_dlopen=no
16357 fi
16358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16359 LIBS=$ac_check_lib_save_LIBS
16360 fi
16361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16363 if test $ac_cv_lib_dl_dlopen = yes; then
16364   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16365 else
16366
16367     lt_cv_dlopen="dyld"
16368     lt_cv_dlopen_libs=
16369     lt_cv_dlopen_self=yes
16370
16371 fi
16372
16373    ;;
16374
16375   *)
16376     echo "$as_me:$LINENO: checking for shl_load" >&5
16377 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16378 if test "${ac_cv_func_shl_load+set}" = set; then
16379   echo $ECHO_N "(cached) $ECHO_C" >&6
16380 else
16381   cat >conftest.$ac_ext <<_ACEOF
16382 #line $LINENO "configure"
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388 /* System header to define __stub macros and hopefully few prototypes,
16389     which can conflict with char shl_load (); below.
16390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16391     <limits.h> exists even on freestanding compilers.  */
16392 #ifdef __STDC__
16393 # include <limits.h>
16394 #else
16395 # include <assert.h>
16396 #endif
16397 /* Override any gcc2 internal prototype to avoid an error.  */
16398 #ifdef __cplusplus
16399 extern "C"
16400 {
16401 #endif
16402 /* We use char because int might match the return type of a gcc2
16403    builtin and then its argument prototype would still apply.  */
16404 char shl_load ();
16405 /* The GNU C library defines this for functions which it implements
16406     to always fail with ENOSYS.  Some functions are actually named
16407     something starting with __ and the normal name is an alias.  */
16408 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16409 choke me
16410 #else
16411 char (*f) () = shl_load;
16412 #endif
16413 #ifdef __cplusplus
16414 }
16415 #endif
16416
16417 int
16418 main ()
16419 {
16420 return f != shl_load;
16421   ;
16422   return 0;
16423 }
16424 _ACEOF
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16427   (eval $ac_link) 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); } &&
16431          { ac_try='test -s conftest$ac_exeext'
16432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433   (eval $ac_try) 2>&5
16434   ac_status=$?
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); }; }; then
16437   ac_cv_func_shl_load=yes
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ac_cv_func_shl_load=no
16443 fi
16444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16445 fi
16446 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16447 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16448 if test $ac_cv_func_shl_load = yes; then
16449   lt_cv_dlopen="shl_load"
16450 else
16451   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16452 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16453 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16454   echo $ECHO_N "(cached) $ECHO_C" >&6
16455 else
16456   ac_check_lib_save_LIBS=$LIBS
16457 LIBS="-ldld  $LIBS"
16458 cat >conftest.$ac_ext <<_ACEOF
16459 #line $LINENO "configure"
16460 /* confdefs.h.  */
16461 _ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h.  */
16465
16466 /* Override any gcc2 internal prototype to avoid an error.  */
16467 #ifdef __cplusplus
16468 extern "C"
16469 #endif
16470 /* We use char because int might match the return type of a gcc2
16471    builtin and then its argument prototype would still apply.  */
16472 char shl_load ();
16473 int
16474 main ()
16475 {
16476 shl_load ();
16477   ;
16478   return 0;
16479 }
16480 _ACEOF
16481 rm -f conftest.$ac_objext conftest$ac_exeext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16483   (eval $ac_link) 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); } &&
16487          { ac_try='test -s conftest$ac_exeext'
16488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489   (eval $ac_try) 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); }; }; then
16493   ac_cv_lib_dld_shl_load=yes
16494 else
16495   echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16497
16498 ac_cv_lib_dld_shl_load=no
16499 fi
16500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16501 LIBS=$ac_check_lib_save_LIBS
16502 fi
16503 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16504 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16505 if test $ac_cv_lib_dld_shl_load = yes; then
16506   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16507 else
16508   echo "$as_me:$LINENO: checking for dlopen" >&5
16509 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16510 if test "${ac_cv_func_dlopen+set}" = set; then
16511   echo $ECHO_N "(cached) $ECHO_C" >&6
16512 else
16513   cat >conftest.$ac_ext <<_ACEOF
16514 #line $LINENO "configure"
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520 /* System header to define __stub macros and hopefully few prototypes,
16521     which can conflict with char dlopen (); below.
16522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16523     <limits.h> exists even on freestanding compilers.  */
16524 #ifdef __STDC__
16525 # include <limits.h>
16526 #else
16527 # include <assert.h>
16528 #endif
16529 /* Override any gcc2 internal prototype to avoid an error.  */
16530 #ifdef __cplusplus
16531 extern "C"
16532 {
16533 #endif
16534 /* We use char because int might match the return type of a gcc2
16535    builtin and then its argument prototype would still apply.  */
16536 char dlopen ();
16537 /* The GNU C library defines this for functions which it implements
16538     to always fail with ENOSYS.  Some functions are actually named
16539     something starting with __ and the normal name is an alias.  */
16540 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16541 choke me
16542 #else
16543 char (*f) () = dlopen;
16544 #endif
16545 #ifdef __cplusplus
16546 }
16547 #endif
16548
16549 int
16550 main ()
16551 {
16552 return f != dlopen;
16553   ;
16554   return 0;
16555 }
16556 _ACEOF
16557 rm -f conftest.$ac_objext conftest$ac_exeext
16558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16559   (eval $ac_link) 2>&5
16560   ac_status=$?
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); } &&
16563          { ac_try='test -s conftest$ac_exeext'
16564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565   (eval $ac_try) 2>&5
16566   ac_status=$?
16567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568   (exit $ac_status); }; }; then
16569   ac_cv_func_dlopen=yes
16570 else
16571   echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16573
16574 ac_cv_func_dlopen=no
16575 fi
16576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16577 fi
16578 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16579 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16580 if test $ac_cv_func_dlopen = yes; then
16581   lt_cv_dlopen="dlopen"
16582 else
16583   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16584 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16586   echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588   ac_check_lib_save_LIBS=$LIBS
16589 LIBS="-ldl  $LIBS"
16590 cat >conftest.$ac_ext <<_ACEOF
16591 #line $LINENO "configure"
16592 /* confdefs.h.  */
16593 _ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h.  */
16597
16598 /* Override any gcc2 internal prototype to avoid an error.  */
16599 #ifdef __cplusplus
16600 extern "C"
16601 #endif
16602 /* We use char because int might match the return type of a gcc2
16603    builtin and then its argument prototype would still apply.  */
16604 char dlopen ();
16605 int
16606 main ()
16607 {
16608 dlopen ();
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615   (eval $ac_link) 2>&5
16616   ac_status=$?
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } &&
16619          { ac_try='test -s conftest$ac_exeext'
16620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621   (eval $ac_try) 2>&5
16622   ac_status=$?
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); }; }; then
16625   ac_cv_lib_dl_dlopen=yes
16626 else
16627   echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ac_cv_lib_dl_dlopen=no
16631 fi
16632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16633 LIBS=$ac_check_lib_save_LIBS
16634 fi
16635 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16636 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16637 if test $ac_cv_lib_dl_dlopen = yes; then
16638   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16639 else
16640   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16641 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16642 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16643   echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645   ac_check_lib_save_LIBS=$LIBS
16646 LIBS="-lsvld  $LIBS"
16647 cat >conftest.$ac_ext <<_ACEOF
16648 #line $LINENO "configure"
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654
16655 /* Override any gcc2 internal prototype to avoid an error.  */
16656 #ifdef __cplusplus
16657 extern "C"
16658 #endif
16659 /* We use char because int might match the return type of a gcc2
16660    builtin and then its argument prototype would still apply.  */
16661 char dlopen ();
16662 int
16663 main ()
16664 {
16665 dlopen ();
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672   (eval $ac_link) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -s conftest$ac_exeext'
16677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678   (eval $ac_try) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; }; then
16682   ac_cv_lib_svld_dlopen=yes
16683 else
16684   echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16686
16687 ac_cv_lib_svld_dlopen=no
16688 fi
16689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16690 LIBS=$ac_check_lib_save_LIBS
16691 fi
16692 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16693 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16694 if test $ac_cv_lib_svld_dlopen = yes; then
16695   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16696 else
16697   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16698 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16699 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702   ac_check_lib_save_LIBS=$LIBS
16703 LIBS="-ldld  $LIBS"
16704 cat >conftest.$ac_ext <<_ACEOF
16705 #line $LINENO "configure"
16706 /* confdefs.h.  */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h.  */
16711
16712 /* Override any gcc2 internal prototype to avoid an error.  */
16713 #ifdef __cplusplus
16714 extern "C"
16715 #endif
16716 /* We use char because int might match the return type of a gcc2
16717    builtin and then its argument prototype would still apply.  */
16718 char dld_link ();
16719 int
16720 main ()
16721 {
16722 dld_link ();
16723   ;
16724   return 0;
16725 }
16726 _ACEOF
16727 rm -f conftest.$ac_objext conftest$ac_exeext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16729   (eval $ac_link) 2>&5
16730   ac_status=$?
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); } &&
16733          { ac_try='test -s conftest$ac_exeext'
16734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735   (eval $ac_try) 2>&5
16736   ac_status=$?
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); }; }; then
16739   ac_cv_lib_dld_dld_link=yes
16740 else
16741   echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16743
16744 ac_cv_lib_dld_dld_link=no
16745 fi
16746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16747 LIBS=$ac_check_lib_save_LIBS
16748 fi
16749 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16750 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16751 if test $ac_cv_lib_dld_dld_link = yes; then
16752   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16753 fi
16754
16755
16756 fi
16757
16758
16759 fi
16760
16761
16762 fi
16763
16764
16765 fi
16766
16767
16768 fi
16769
16770     ;;
16771   esac
16772
16773   if test "x$lt_cv_dlopen" != xno; then
16774     enable_dlopen=yes
16775   else
16776     enable_dlopen=no
16777   fi
16778
16779   case $lt_cv_dlopen in
16780   dlopen)
16781     save_CPPFLAGS="$CPPFLAGS"
16782     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16783
16784     save_LDFLAGS="$LDFLAGS"
16785     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16786
16787     save_LIBS="$LIBS"
16788     LIBS="$lt_cv_dlopen_libs $LIBS"
16789
16790     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16791 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16792 if test "${lt_cv_dlopen_self+set}" = set; then
16793   echo $ECHO_N "(cached) $ECHO_C" >&6
16794 else
16795           if test "$cross_compiling" = yes; then :
16796   lt_cv_dlopen_self=cross
16797 else
16798   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16799   lt_status=$lt_dlunknown
16800   cat > conftest.$ac_ext <<EOF
16801 #line 16801 "configure"
16802 #include "confdefs.h"
16803
16804 #if HAVE_DLFCN_H
16805 #include <dlfcn.h>
16806 #endif
16807
16808 #include <stdio.h>
16809
16810 #ifdef RTLD_GLOBAL
16811 #  define LT_DLGLOBAL           RTLD_GLOBAL
16812 #else
16813 #  ifdef DL_GLOBAL
16814 #    define LT_DLGLOBAL         DL_GLOBAL
16815 #  else
16816 #    define LT_DLGLOBAL         0
16817 #  endif
16818 #endif
16819
16820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16821    find out it does not work in some platform. */
16822 #ifndef LT_DLLAZY_OR_NOW
16823 #  ifdef RTLD_LAZY
16824 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16825 #  else
16826 #    ifdef DL_LAZY
16827 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16828 #    else
16829 #      ifdef RTLD_NOW
16830 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16831 #      else
16832 #        ifdef DL_NOW
16833 #          define LT_DLLAZY_OR_NOW      DL_NOW
16834 #        else
16835 #          define LT_DLLAZY_OR_NOW      0
16836 #        endif
16837 #      endif
16838 #    endif
16839 #  endif
16840 #endif
16841
16842 #ifdef __cplusplus
16843 extern "C" void exit (int);
16844 #endif
16845
16846 void fnord() { int i=42;}
16847 int main ()
16848 {
16849   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16850   int status = $lt_dlunknown;
16851
16852   if (self)
16853     {
16854       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16855       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16856       /* dlclose (self); */
16857     }
16858
16859     exit (status);
16860 }
16861 EOF
16862   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863   (eval $ac_link) 2>&5
16864   ac_status=$?
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16867     (./conftest; exit; ) 2>/dev/null
16868     lt_status=$?
16869     case x$lt_status in
16870       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16871       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16872       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16873     esac
16874   else :
16875     # compilation failed
16876     lt_cv_dlopen_self=no
16877   fi
16878 fi
16879 rm -fr conftest*
16880
16881
16882 fi
16883 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16884 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16885
16886     if test "x$lt_cv_dlopen_self" = xyes; then
16887       LDFLAGS="$LDFLAGS $link_static_flag"
16888       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16889 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16890 if test "${lt_cv_dlopen_self_static+set}" = set; then
16891   echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893           if test "$cross_compiling" = yes; then :
16894   lt_cv_dlopen_self_static=cross
16895 else
16896   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16897   lt_status=$lt_dlunknown
16898   cat > conftest.$ac_ext <<EOF
16899 #line 16899 "configure"
16900 #include "confdefs.h"
16901
16902 #if HAVE_DLFCN_H
16903 #include <dlfcn.h>
16904 #endif
16905
16906 #include <stdio.h>
16907
16908 #ifdef RTLD_GLOBAL
16909 #  define LT_DLGLOBAL           RTLD_GLOBAL
16910 #else
16911 #  ifdef DL_GLOBAL
16912 #    define LT_DLGLOBAL         DL_GLOBAL
16913 #  else
16914 #    define LT_DLGLOBAL         0
16915 #  endif
16916 #endif
16917
16918 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16919    find out it does not work in some platform. */
16920 #ifndef LT_DLLAZY_OR_NOW
16921 #  ifdef RTLD_LAZY
16922 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16923 #  else
16924 #    ifdef DL_LAZY
16925 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16926 #    else
16927 #      ifdef RTLD_NOW
16928 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16929 #      else
16930 #        ifdef DL_NOW
16931 #          define LT_DLLAZY_OR_NOW      DL_NOW
16932 #        else
16933 #          define LT_DLLAZY_OR_NOW      0
16934 #        endif
16935 #      endif
16936 #    endif
16937 #  endif
16938 #endif
16939
16940 #ifdef __cplusplus
16941 extern "C" void exit (int);
16942 #endif
16943
16944 void fnord() { int i=42;}
16945 int main ()
16946 {
16947   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16948   int status = $lt_dlunknown;
16949
16950   if (self)
16951     {
16952       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16953       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16954       /* dlclose (self); */
16955     }
16956
16957     exit (status);
16958 }
16959 EOF
16960   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16961   (eval $ac_link) 2>&5
16962   ac_status=$?
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16965     (./conftest; exit; ) 2>/dev/null
16966     lt_status=$?
16967     case x$lt_status in
16968       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16969       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16970       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16971     esac
16972   else :
16973     # compilation failed
16974     lt_cv_dlopen_self_static=no
16975   fi
16976 fi
16977 rm -fr conftest*
16978
16979
16980 fi
16981 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16982 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16983     fi
16984
16985     CPPFLAGS="$save_CPPFLAGS"
16986     LDFLAGS="$save_LDFLAGS"
16987     LIBS="$save_LIBS"
16988     ;;
16989   esac
16990
16991   case $lt_cv_dlopen_self in
16992   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16993   *) enable_dlopen_self=unknown ;;
16994   esac
16995
16996   case $lt_cv_dlopen_self_static in
16997   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16998   *) enable_dlopen_self_static=unknown ;;
16999   esac
17000 fi
17001
17002
17003 # The else clause should only fire when bootstrapping the
17004 # libtool distribution, otherwise you forgot to ship ltmain.sh
17005 # with your package, and you will get complaints that there are
17006 # no rules to generate ltmain.sh.
17007 if test -f "$ltmain"; then
17008   # See if we are running on zsh, and set the options which allow our commands through
17009   # without removal of \ escapes.
17010   if test -n "${ZSH_VERSION+set}" ; then
17011     setopt NO_GLOB_SUBST
17012   fi
17013   # Now quote all the things that may contain metacharacters while being
17014   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17015   # variables and quote the copies for generation of the libtool script.
17016   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17017     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17018     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17019     deplibs_check_method reload_flag reload_cmds need_locks \
17020     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17021     lt_cv_sys_global_symbol_to_c_name_address \
17022     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17023     old_postinstall_cmds old_postuninstall_cmds \
17024     compiler_GCJ \
17025     CC_GCJ \
17026     LD_GCJ \
17027     lt_prog_compiler_wl_GCJ \
17028     lt_prog_compiler_pic_GCJ \
17029     lt_prog_compiler_static_GCJ \
17030     lt_prog_compiler_no_builtin_flag_GCJ \
17031     export_dynamic_flag_spec_GCJ \
17032     thread_safe_flag_spec_GCJ \
17033     whole_archive_flag_spec_GCJ \
17034     enable_shared_with_static_runtimes_GCJ \
17035     old_archive_cmds_GCJ \
17036     old_archive_from_new_cmds_GCJ \
17037     predep_objects_GCJ \
17038     postdep_objects_GCJ \
17039     predeps_GCJ \
17040     postdeps_GCJ \
17041     compiler_lib_search_path_GCJ \
17042     archive_cmds_GCJ \
17043     archive_expsym_cmds_GCJ \
17044     postinstall_cmds_GCJ \
17045     postuninstall_cmds_GCJ \
17046     old_archive_from_expsyms_cmds_GCJ \
17047     allow_undefined_flag_GCJ \
17048     no_undefined_flag_GCJ \
17049     export_symbols_cmds_GCJ \
17050     hardcode_libdir_flag_spec_GCJ \
17051     hardcode_libdir_flag_spec_ld_GCJ \
17052     hardcode_libdir_separator_GCJ \
17053     hardcode_automatic_GCJ \
17054     module_cmds_GCJ \
17055     module_expsym_cmds_GCJ \
17056     lt_cv_prog_compiler_c_o_GCJ \
17057     exclude_expsyms_GCJ \
17058     include_expsyms_GCJ; do
17059
17060     case $var in
17061     old_archive_cmds_GCJ | \
17062     old_archive_from_new_cmds_GCJ | \
17063     archive_cmds_GCJ | \
17064     archive_expsym_cmds_GCJ | \
17065     module_cmds_GCJ | \
17066     module_expsym_cmds_GCJ | \
17067     old_archive_from_expsyms_cmds_GCJ | \
17068     export_symbols_cmds_GCJ | \
17069     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17070     postinstall_cmds | postuninstall_cmds | \
17071     old_postinstall_cmds | old_postuninstall_cmds | \
17072     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17073       # Double-quote double-evaled strings.
17074       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17075       ;;
17076     *)
17077       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17078       ;;
17079     esac
17080   done
17081
17082   case $lt_echo in
17083   *'\$0 --fallback-echo"')
17084     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17085     ;;
17086   esac
17087
17088 cfgfile="$ofile"
17089
17090   cat <<__EOF__ >> "$cfgfile"
17091 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17092
17093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17094
17095 # Shell to use when invoking shell scripts.
17096 SHELL=$lt_SHELL
17097
17098 # Whether or not to build shared libraries.
17099 build_libtool_libs=$enable_shared
17100
17101 # Whether or not to build static libraries.
17102 build_old_libs=$enable_static
17103
17104 # Whether or not to add -lc for building shared libraries.
17105 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17106
17107 # Whether or not to disallow shared libs when runtime libs are static
17108 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17109
17110 # Whether or not to optimize for fast installation.
17111 fast_install=$enable_fast_install
17112
17113 # The host system.
17114 host_alias=$host_alias
17115 host=$host
17116
17117 # An echo program that does not interpret backslashes.
17118 echo=$lt_echo
17119
17120 # The archiver.
17121 AR=$lt_AR
17122 AR_FLAGS=$lt_AR_FLAGS
17123
17124 # A C compiler.
17125 LTCC=$lt_LTCC
17126
17127 # A language-specific compiler.
17128 CC=$lt_compiler_GCJ
17129
17130 # Is the compiler the GNU C compiler?
17131 with_gcc=$GCC_GCJ
17132
17133 # An ERE matcher.
17134 EGREP=$lt_EGREP
17135
17136 # The linker used to build libraries.
17137 LD=$lt_LD_GCJ
17138
17139 # Whether we need hard or soft links.
17140 LN_S=$lt_LN_S
17141
17142 # A BSD-compatible nm program.
17143 NM=$lt_NM
17144
17145 # A symbol stripping program
17146 STRIP=$STRIP
17147
17148 # Used to examine libraries when file_magic_cmd begins "file"
17149 MAGIC_CMD=$MAGIC_CMD
17150
17151 # Used on cygwin: DLL creation program.
17152 DLLTOOL="$DLLTOOL"
17153
17154 # Used on cygwin: object dumper.
17155 OBJDUMP="$OBJDUMP"
17156
17157 # Used on cygwin: assembler.
17158 AS="$AS"
17159
17160 # The name of the directory that contains temporary libtool files.
17161 objdir=$objdir
17162
17163 # How to create reloadable object files.
17164 reload_flag=$lt_reload_flag
17165 reload_cmds=$lt_reload_cmds
17166
17167 # How to pass a linker flag through the compiler.
17168 wl=$lt_lt_prog_compiler_wl_GCJ
17169
17170 # Object file suffix (normally "o").
17171 objext="$ac_objext"
17172
17173 # Old archive suffix (normally "a").
17174 libext="$libext"
17175
17176 # Shared library suffix (normally ".so").
17177 shrext='$shrext'
17178
17179 # Executable file suffix (normally "").
17180 exeext="$exeext"
17181
17182 # Additional compiler flags for building library objects.
17183 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17184 pic_mode=$pic_mode
17185
17186 # What is the maximum length of a command?
17187 max_cmd_len=$lt_cv_sys_max_cmd_len
17188
17189 # Does compiler simultaneously support -c and -o options?
17190 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17191
17192 # Must we lock files when doing compilation ?
17193 need_locks=$lt_need_locks
17194
17195 # Do we need the lib prefix for modules?
17196 need_lib_prefix=$need_lib_prefix
17197
17198 # Do we need a version for libraries?
17199 need_version=$need_version
17200
17201 # Whether dlopen is supported.
17202 dlopen_support=$enable_dlopen
17203
17204 # Whether dlopen of programs is supported.
17205 dlopen_self=$enable_dlopen_self
17206
17207 # Whether dlopen of statically linked programs is supported.
17208 dlopen_self_static=$enable_dlopen_self_static
17209
17210 # Compiler flag to prevent dynamic linking.
17211 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17212
17213 # Compiler flag to turn off builtin functions.
17214 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17215
17216 # Compiler flag to allow reflexive dlopens.
17217 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17218
17219 # Compiler flag to generate shared objects directly from archives.
17220 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17221
17222 # Compiler flag to generate thread-safe objects.
17223 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17224
17225 # Library versioning type.
17226 version_type=$version_type
17227
17228 # Format of library name prefix.
17229 libname_spec=$lt_libname_spec
17230
17231 # List of archive names.  First name is the real one, the rest are links.
17232 # The last name is the one that the linker finds with -lNAME.
17233 library_names_spec=$lt_library_names_spec
17234
17235 # The coded name of the library, if different from the real name.
17236 soname_spec=$lt_soname_spec
17237
17238 # Commands used to build and install an old-style archive.
17239 RANLIB=$lt_RANLIB
17240 old_archive_cmds=$lt_old_archive_cmds_GCJ
17241 old_postinstall_cmds=$lt_old_postinstall_cmds
17242 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17243
17244 # Create an old-style archive from a shared archive.
17245 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17246
17247 # Create a temporary old-style archive to link instead of a shared archive.
17248 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17249
17250 # Commands used to build and install a shared archive.
17251 archive_cmds=$lt_archive_cmds_GCJ
17252 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17253 postinstall_cmds=$lt_postinstall_cmds
17254 postuninstall_cmds=$lt_postuninstall_cmds
17255
17256 # Commands used to build a loadable module (assumed same as above if empty)
17257 module_cmds=$lt_module_cmds_GCJ
17258 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17259
17260 # Commands to strip libraries.
17261 old_striplib=$lt_old_striplib
17262 striplib=$lt_striplib
17263
17264 # Dependencies to place before the objects being linked to create a
17265 # shared library.
17266 predep_objects=$lt_predep_objects_GCJ
17267
17268 # Dependencies to place after the objects being linked to create a
17269 # shared library.
17270 postdep_objects=$lt_postdep_objects_GCJ
17271
17272 # Dependencies to place before the objects being linked to create a
17273 # shared library.
17274 predeps=$lt_predeps_GCJ
17275
17276 # Dependencies to place after the objects being linked to create a
17277 # shared library.
17278 postdeps=$lt_postdeps_GCJ
17279
17280 # The library search path used internally by the compiler when linking
17281 # a shared library.
17282 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17283
17284 # Method to check whether dependent libraries are shared objects.
17285 deplibs_check_method=$lt_deplibs_check_method
17286
17287 # Command to use when deplibs_check_method == file_magic.
17288 file_magic_cmd=$lt_file_magic_cmd
17289
17290 # Flag that allows shared libraries with undefined symbols to be built.
17291 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17292
17293 # Flag that forces no undefined symbols.
17294 no_undefined_flag=$lt_no_undefined_flag_GCJ
17295
17296 # Commands used to finish a libtool library installation in a directory.
17297 finish_cmds=$lt_finish_cmds
17298
17299 # Same as above, but a single script fragment to be evaled but not shown.
17300 finish_eval=$lt_finish_eval
17301
17302 # Take the output of nm and produce a listing of raw symbols and C names.
17303 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17304
17305 # Transform the output of nm in a proper C declaration
17306 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17307
17308 # Transform the output of nm in a C name address pair
17309 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17310
17311 # This is the shared library runtime path variable.
17312 runpath_var=$runpath_var
17313
17314 # This is the shared library path variable.
17315 shlibpath_var=$shlibpath_var
17316
17317 # Is shlibpath searched before the hard-coded library search path?
17318 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17319
17320 # How to hardcode a shared library path into an executable.
17321 hardcode_action=$hardcode_action_GCJ
17322
17323 # Whether we should hardcode library paths into libraries.
17324 hardcode_into_libs=$hardcode_into_libs
17325
17326 # Flag to hardcode \$libdir into a binary during linking.
17327 # This must work even if \$libdir does not exist.
17328 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17329
17330 # If ld is used when linking, flag to hardcode \$libdir into
17331 # a binary during linking. This must work even if \$libdir does
17332 # not exist.
17333 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17334
17335 # Whether we need a single -rpath flag with a separated argument.
17336 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17337
17338 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17339 # resulting binary.
17340 hardcode_direct=$hardcode_direct_GCJ
17341
17342 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17343 # resulting binary.
17344 hardcode_minus_L=$hardcode_minus_L_GCJ
17345
17346 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17347 # the resulting binary.
17348 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17349
17350 # Set to yes if building a shared library automatically hardcodes DIR into the library
17351 # and all subsequent libraries and executables linked against it.
17352 hardcode_automatic=$hardcode_automatic_GCJ
17353
17354 # Variables whose values should be saved in libtool wrapper scripts and
17355 # restored at relink time.
17356 variables_saved_for_relink="$variables_saved_for_relink"
17357
17358 # Whether libtool must link a program against all its dependency libraries.
17359 link_all_deplibs=$link_all_deplibs_GCJ
17360
17361 # Compile-time system search path for libraries
17362 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17363
17364 # Run-time system search path for libraries
17365 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17366
17367 # Fix the shell variable \$srcfile for the compiler.
17368 fix_srcfile_path="$fix_srcfile_path_GCJ"
17369
17370 # Set to yes if exported symbols are required.
17371 always_export_symbols=$always_export_symbols_GCJ
17372
17373 # The commands to list exported symbols.
17374 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17375
17376 # The commands to extract the exported symbol list from a shared archive.
17377 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17378
17379 # Symbols that should not be listed in the preloaded symbols.
17380 exclude_expsyms=$lt_exclude_expsyms_GCJ
17381
17382 # Symbols that must always be exported.
17383 include_expsyms=$lt_include_expsyms_GCJ
17384
17385 # ### END LIBTOOL TAG CONFIG: $tagname
17386
17387 __EOF__
17388
17389
17390 else
17391   # If there is no Makefile yet, we rely on a make rule to execute
17392   # `config.status --recheck' to rerun these tests and create the
17393   # libtool script then.
17394   test -f Makefile && make "$ltmain"
17395 fi
17396
17397
17398 ac_ext=c
17399 ac_cpp='$CPP $CPPFLAGS'
17400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17403
17404 CC="$lt_save_CC"
17405
17406         else
17407           tagname=""
17408         fi
17409         ;;
17410
17411       RC)
17412
17413
17414
17415 # Source file extension for RC test sources.
17416 ac_ext=rc
17417
17418 # Object file extension for compiled RC test sources.
17419 objext=o
17420 objext_RC=$objext
17421
17422 # Code to be used in simple compile tests
17423 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17424
17425 # Code to be used in simple link tests
17426 lt_simple_link_test_code="$lt_simple_compile_test_code"
17427
17428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17429
17430 # If no C compiler was specified, use CC.
17431 LTCC=${LTCC-"$CC"}
17432
17433 # Allow CC to be a program name with arguments.
17434 compiler=$CC
17435
17436
17437 # Allow CC to be a program name with arguments.
17438 lt_save_CC="$CC"
17439 CC=${RC-"windres"}
17440 compiler=$CC
17441 compiler_RC=$CC
17442 lt_cv_prog_compiler_c_o_RC=yes
17443
17444 # The else clause should only fire when bootstrapping the
17445 # libtool distribution, otherwise you forgot to ship ltmain.sh
17446 # with your package, and you will get complaints that there are
17447 # no rules to generate ltmain.sh.
17448 if test -f "$ltmain"; then
17449   # See if we are running on zsh, and set the options which allow our commands through
17450   # without removal of \ escapes.
17451   if test -n "${ZSH_VERSION+set}" ; then
17452     setopt NO_GLOB_SUBST
17453   fi
17454   # Now quote all the things that may contain metacharacters while being
17455   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17456   # variables and quote the copies for generation of the libtool script.
17457   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17458     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17459     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17460     deplibs_check_method reload_flag reload_cmds need_locks \
17461     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17462     lt_cv_sys_global_symbol_to_c_name_address \
17463     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17464     old_postinstall_cmds old_postuninstall_cmds \
17465     compiler_RC \
17466     CC_RC \
17467     LD_RC \
17468     lt_prog_compiler_wl_RC \
17469     lt_prog_compiler_pic_RC \
17470     lt_prog_compiler_static_RC \
17471     lt_prog_compiler_no_builtin_flag_RC \
17472     export_dynamic_flag_spec_RC \
17473     thread_safe_flag_spec_RC \
17474     whole_archive_flag_spec_RC \
17475     enable_shared_with_static_runtimes_RC \
17476     old_archive_cmds_RC \
17477     old_archive_from_new_cmds_RC \
17478     predep_objects_RC \
17479     postdep_objects_RC \
17480     predeps_RC \
17481     postdeps_RC \
17482     compiler_lib_search_path_RC \
17483     archive_cmds_RC \
17484     archive_expsym_cmds_RC \
17485     postinstall_cmds_RC \
17486     postuninstall_cmds_RC \
17487     old_archive_from_expsyms_cmds_RC \
17488     allow_undefined_flag_RC \
17489     no_undefined_flag_RC \
17490     export_symbols_cmds_RC \
17491     hardcode_libdir_flag_spec_RC \
17492     hardcode_libdir_flag_spec_ld_RC \
17493     hardcode_libdir_separator_RC \
17494     hardcode_automatic_RC \
17495     module_cmds_RC \
17496     module_expsym_cmds_RC \
17497     lt_cv_prog_compiler_c_o_RC \
17498     exclude_expsyms_RC \
17499     include_expsyms_RC; do
17500
17501     case $var in
17502     old_archive_cmds_RC | \
17503     old_archive_from_new_cmds_RC | \
17504     archive_cmds_RC | \
17505     archive_expsym_cmds_RC | \
17506     module_cmds_RC | \
17507     module_expsym_cmds_RC | \
17508     old_archive_from_expsyms_cmds_RC | \
17509     export_symbols_cmds_RC | \
17510     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17511     postinstall_cmds | postuninstall_cmds | \
17512     old_postinstall_cmds | old_postuninstall_cmds | \
17513     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17514       # Double-quote double-evaled strings.
17515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17516       ;;
17517     *)
17518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17519       ;;
17520     esac
17521   done
17522
17523   case $lt_echo in
17524   *'\$0 --fallback-echo"')
17525     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17526     ;;
17527   esac
17528
17529 cfgfile="$ofile"
17530
17531   cat <<__EOF__ >> "$cfgfile"
17532 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17533
17534 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17535
17536 # Shell to use when invoking shell scripts.
17537 SHELL=$lt_SHELL
17538
17539 # Whether or not to build shared libraries.
17540 build_libtool_libs=$enable_shared
17541
17542 # Whether or not to build static libraries.
17543 build_old_libs=$enable_static
17544
17545 # Whether or not to add -lc for building shared libraries.
17546 build_libtool_need_lc=$archive_cmds_need_lc_RC
17547
17548 # Whether or not to disallow shared libs when runtime libs are static
17549 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17550
17551 # Whether or not to optimize for fast installation.
17552 fast_install=$enable_fast_install
17553
17554 # The host system.
17555 host_alias=$host_alias
17556 host=$host
17557
17558 # An echo program that does not interpret backslashes.
17559 echo=$lt_echo
17560
17561 # The archiver.
17562 AR=$lt_AR
17563 AR_FLAGS=$lt_AR_FLAGS
17564
17565 # A C compiler.
17566 LTCC=$lt_LTCC
17567
17568 # A language-specific compiler.
17569 CC=$lt_compiler_RC
17570
17571 # Is the compiler the GNU C compiler?
17572 with_gcc=$GCC_RC
17573
17574 # An ERE matcher.
17575 EGREP=$lt_EGREP
17576
17577 # The linker used to build libraries.
17578 LD=$lt_LD_RC
17579
17580 # Whether we need hard or soft links.
17581 LN_S=$lt_LN_S
17582
17583 # A BSD-compatible nm program.
17584 NM=$lt_NM
17585
17586 # A symbol stripping program
17587 STRIP=$STRIP
17588
17589 # Used to examine libraries when file_magic_cmd begins "file"
17590 MAGIC_CMD=$MAGIC_CMD
17591
17592 # Used on cygwin: DLL creation program.
17593 DLLTOOL="$DLLTOOL"
17594
17595 # Used on cygwin: object dumper.
17596 OBJDUMP="$OBJDUMP"
17597
17598 # Used on cygwin: assembler.
17599 AS="$AS"
17600
17601 # The name of the directory that contains temporary libtool files.
17602 objdir=$objdir
17603
17604 # How to create reloadable object files.
17605 reload_flag=$lt_reload_flag
17606 reload_cmds=$lt_reload_cmds
17607
17608 # How to pass a linker flag through the compiler.
17609 wl=$lt_lt_prog_compiler_wl_RC
17610
17611 # Object file suffix (normally "o").
17612 objext="$ac_objext"
17613
17614 # Old archive suffix (normally "a").
17615 libext="$libext"
17616
17617 # Shared library suffix (normally ".so").
17618 shrext='$shrext'
17619
17620 # Executable file suffix (normally "").
17621 exeext="$exeext"
17622
17623 # Additional compiler flags for building library objects.
17624 pic_flag=$lt_lt_prog_compiler_pic_RC
17625 pic_mode=$pic_mode
17626
17627 # What is the maximum length of a command?
17628 max_cmd_len=$lt_cv_sys_max_cmd_len
17629
17630 # Does compiler simultaneously support -c and -o options?
17631 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17632
17633 # Must we lock files when doing compilation ?
17634 need_locks=$lt_need_locks
17635
17636 # Do we need the lib prefix for modules?
17637 need_lib_prefix=$need_lib_prefix
17638
17639 # Do we need a version for libraries?
17640 need_version=$need_version
17641
17642 # Whether dlopen is supported.
17643 dlopen_support=$enable_dlopen
17644
17645 # Whether dlopen of programs is supported.
17646 dlopen_self=$enable_dlopen_self
17647
17648 # Whether dlopen of statically linked programs is supported.
17649 dlopen_self_static=$enable_dlopen_self_static
17650
17651 # Compiler flag to prevent dynamic linking.
17652 link_static_flag=$lt_lt_prog_compiler_static_RC
17653
17654 # Compiler flag to turn off builtin functions.
17655 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17656
17657 # Compiler flag to allow reflexive dlopens.
17658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17659
17660 # Compiler flag to generate shared objects directly from archives.
17661 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17662
17663 # Compiler flag to generate thread-safe objects.
17664 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17665
17666 # Library versioning type.
17667 version_type=$version_type
17668
17669 # Format of library name prefix.
17670 libname_spec=$lt_libname_spec
17671
17672 # List of archive names.  First name is the real one, the rest are links.
17673 # The last name is the one that the linker finds with -lNAME.
17674 library_names_spec=$lt_library_names_spec
17675
17676 # The coded name of the library, if different from the real name.
17677 soname_spec=$lt_soname_spec
17678
17679 # Commands used to build and install an old-style archive.
17680 RANLIB=$lt_RANLIB
17681 old_archive_cmds=$lt_old_archive_cmds_RC
17682 old_postinstall_cmds=$lt_old_postinstall_cmds
17683 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17684
17685 # Create an old-style archive from a shared archive.
17686 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17687
17688 # Create a temporary old-style archive to link instead of a shared archive.
17689 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17690
17691 # Commands used to build and install a shared archive.
17692 archive_cmds=$lt_archive_cmds_RC
17693 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17694 postinstall_cmds=$lt_postinstall_cmds
17695 postuninstall_cmds=$lt_postuninstall_cmds
17696
17697 # Commands used to build a loadable module (assumed same as above if empty)
17698 module_cmds=$lt_module_cmds_RC
17699 module_expsym_cmds=$lt_module_expsym_cmds_RC
17700
17701 # Commands to strip libraries.
17702 old_striplib=$lt_old_striplib
17703 striplib=$lt_striplib
17704
17705 # Dependencies to place before the objects being linked to create a
17706 # shared library.
17707 predep_objects=$lt_predep_objects_RC
17708
17709 # Dependencies to place after the objects being linked to create a
17710 # shared library.
17711 postdep_objects=$lt_postdep_objects_RC
17712
17713 # Dependencies to place before the objects being linked to create a
17714 # shared library.
17715 predeps=$lt_predeps_RC
17716
17717 # Dependencies to place after the objects being linked to create a
17718 # shared library.
17719 postdeps=$lt_postdeps_RC
17720
17721 # The library search path used internally by the compiler when linking
17722 # a shared library.
17723 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17724
17725 # Method to check whether dependent libraries are shared objects.
17726 deplibs_check_method=$lt_deplibs_check_method
17727
17728 # Command to use when deplibs_check_method == file_magic.
17729 file_magic_cmd=$lt_file_magic_cmd
17730
17731 # Flag that allows shared libraries with undefined symbols to be built.
17732 allow_undefined_flag=$lt_allow_undefined_flag_RC
17733
17734 # Flag that forces no undefined symbols.
17735 no_undefined_flag=$lt_no_undefined_flag_RC
17736
17737 # Commands used to finish a libtool library installation in a directory.
17738 finish_cmds=$lt_finish_cmds
17739
17740 # Same as above, but a single script fragment to be evaled but not shown.
17741 finish_eval=$lt_finish_eval
17742
17743 # Take the output of nm and produce a listing of raw symbols and C names.
17744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17745
17746 # Transform the output of nm in a proper C declaration
17747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17748
17749 # Transform the output of nm in a C name address pair
17750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17751
17752 # This is the shared library runtime path variable.
17753 runpath_var=$runpath_var
17754
17755 # This is the shared library path variable.
17756 shlibpath_var=$shlibpath_var
17757
17758 # Is shlibpath searched before the hard-coded library search path?
17759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17760
17761 # How to hardcode a shared library path into an executable.
17762 hardcode_action=$hardcode_action_RC
17763
17764 # Whether we should hardcode library paths into libraries.
17765 hardcode_into_libs=$hardcode_into_libs
17766
17767 # Flag to hardcode \$libdir into a binary during linking.
17768 # This must work even if \$libdir does not exist.
17769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17770
17771 # If ld is used when linking, flag to hardcode \$libdir into
17772 # a binary during linking. This must work even if \$libdir does
17773 # not exist.
17774 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17775
17776 # Whether we need a single -rpath flag with a separated argument.
17777 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17778
17779 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17780 # resulting binary.
17781 hardcode_direct=$hardcode_direct_RC
17782
17783 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17784 # resulting binary.
17785 hardcode_minus_L=$hardcode_minus_L_RC
17786
17787 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17788 # the resulting binary.
17789 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17790
17791 # Set to yes if building a shared library automatically hardcodes DIR into the library
17792 # and all subsequent libraries and executables linked against it.
17793 hardcode_automatic=$hardcode_automatic_RC
17794
17795 # Variables whose values should be saved in libtool wrapper scripts and
17796 # restored at relink time.
17797 variables_saved_for_relink="$variables_saved_for_relink"
17798
17799 # Whether libtool must link a program against all its dependency libraries.
17800 link_all_deplibs=$link_all_deplibs_RC
17801
17802 # Compile-time system search path for libraries
17803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17804
17805 # Run-time system search path for libraries
17806 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17807
17808 # Fix the shell variable \$srcfile for the compiler.
17809 fix_srcfile_path="$fix_srcfile_path_RC"
17810
17811 # Set to yes if exported symbols are required.
17812 always_export_symbols=$always_export_symbols_RC
17813
17814 # The commands to list exported symbols.
17815 export_symbols_cmds=$lt_export_symbols_cmds_RC
17816
17817 # The commands to extract the exported symbol list from a shared archive.
17818 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17819
17820 # Symbols that should not be listed in the preloaded symbols.
17821 exclude_expsyms=$lt_exclude_expsyms_RC
17822
17823 # Symbols that must always be exported.
17824 include_expsyms=$lt_include_expsyms_RC
17825
17826 # ### END LIBTOOL TAG CONFIG: $tagname
17827
17828 __EOF__
17829
17830
17831 else
17832   # If there is no Makefile yet, we rely on a make rule to execute
17833   # `config.status --recheck' to rerun these tests and create the
17834   # libtool script then.
17835   test -f Makefile && make "$ltmain"
17836 fi
17837
17838
17839 ac_ext=c
17840 ac_cpp='$CPP $CPPFLAGS'
17841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17844
17845 CC="$lt_save_CC"
17846
17847         ;;
17848
17849       *)
17850         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17851 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17852    { (exit 1); exit 1; }; }
17853         ;;
17854       esac
17855
17856       # Append the new tag name to the list of available tags.
17857       if test -n "$tagname" ; then
17858       available_tags="$available_tags $tagname"
17859     fi
17860     fi
17861   done
17862   IFS="$lt_save_ifs"
17863
17864   # Now substitute the updated list of available tags.
17865   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17866     mv "${ofile}T" "$ofile"
17867     chmod +x "$ofile"
17868   else
17869     rm -f "${ofile}T"
17870     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17871 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17872    { (exit 1); exit 1; }; }
17873   fi
17874 fi
17875
17876
17877
17878 # This can be used to rebuild libtool when needed
17879 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17880
17881 # Always use our own libtool.
17882 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17883
17884 # Prevent multiple expansion
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906 # Extract the first word of "ar", so it can be a program name with args.
17907 set dummy ar; ac_word=$2
17908 echo "$as_me:$LINENO: checking for $ac_word" >&5
17909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17910 if test "${ac_cv_path_AR+set}" = set; then
17911   echo $ECHO_N "(cached) $ECHO_C" >&6
17912 else
17913   case $AR in
17914   [\\/]* | ?:[\\/]*)
17915   ac_cv_path_AR="$AR" # Let the user override the test with a path.
17916   ;;
17917   *)
17918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17919 for as_dir in $PATH
17920 do
17921   IFS=$as_save_IFS
17922   test -z "$as_dir" && as_dir=.
17923   for ac_exec_ext in '' $ac_executable_extensions; do
17924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17925     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17927     break 2
17928   fi
17929 done
17930 done
17931
17932   ;;
17933 esac
17934 fi
17935 AR=$ac_cv_path_AR
17936
17937 if test -n "$AR"; then
17938   echo "$as_me:$LINENO: result: $AR" >&5
17939 echo "${ECHO_T}$AR" >&6
17940 else
17941   echo "$as_me:$LINENO: result: no" >&5
17942 echo "${ECHO_T}no" >&6
17943 fi
17944
17945 # Extract the first word of "sed", so it can be a program name with args.
17946 set dummy sed; ac_word=$2
17947 echo "$as_me:$LINENO: checking for $ac_word" >&5
17948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17949 if test "${ac_cv_path_SED+set}" = set; then
17950   echo $ECHO_N "(cached) $ECHO_C" >&6
17951 else
17952   case $SED in
17953   [\\/]* | ?:[\\/]*)
17954   ac_cv_path_SED="$SED" # Let the user override the test with a path.
17955   ;;
17956   *)
17957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17958 for as_dir in $PATH
17959 do
17960   IFS=$as_save_IFS
17961   test -z "$as_dir" && as_dir=.
17962   for ac_exec_ext in '' $ac_executable_extensions; do
17963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17964     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
17965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17966     break 2
17967   fi
17968 done
17969 done
17970
17971   ;;
17972 esac
17973 fi
17974 SED=$ac_cv_path_SED
17975
17976 if test -n "$SED"; then
17977   echo "$as_me:$LINENO: result: $SED" >&5
17978 echo "${ECHO_T}$SED" >&6
17979 else
17980   echo "$as_me:$LINENO: result: no" >&5
17981 echo "${ECHO_T}no" >&6
17982 fi
17983
17984 # Extract the first word of "rm", so it can be a program name with args.
17985 set dummy rm; ac_word=$2
17986 echo "$as_me:$LINENO: checking for $ac_word" >&5
17987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17988 if test "${ac_cv_path_RM+set}" = set; then
17989   echo $ECHO_N "(cached) $ECHO_C" >&6
17990 else
17991   case $RM in
17992   [\\/]* | ?:[\\/]*)
17993   ac_cv_path_RM="$RM" # Let the user override the test with a path.
17994   ;;
17995   *)
17996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17997 for as_dir in $PATH
17998 do
17999   IFS=$as_save_IFS
18000   test -z "$as_dir" && as_dir=.
18001   for ac_exec_ext in '' $ac_executable_extensions; do
18002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18003     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18005     break 2
18006   fi
18007 done
18008 done
18009
18010   ;;
18011 esac
18012 fi
18013 RM=$ac_cv_path_RM
18014
18015 if test -n "$RM"; then
18016   echo "$as_me:$LINENO: result: $RM" >&5
18017 echo "${ECHO_T}$RM" >&6
18018 else
18019   echo "$as_me:$LINENO: result: no" >&5
18020 echo "${ECHO_T}no" >&6
18021 fi
18022
18023 # Extract the first word of "echo", so it can be a program name with args.
18024 set dummy echo; ac_word=$2
18025 echo "$as_me:$LINENO: checking for $ac_word" >&5
18026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18027 if test "${ac_cv_path_ECHO+set}" = set; then
18028   echo $ECHO_N "(cached) $ECHO_C" >&6
18029 else
18030   case $ECHO in
18031   [\\/]* | ?:[\\/]*)
18032   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18033   ;;
18034   *)
18035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18036 for as_dir in $PATH
18037 do
18038   IFS=$as_save_IFS
18039   test -z "$as_dir" && as_dir=.
18040   for ac_exec_ext in '' $ac_executable_extensions; do
18041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18042     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18044     break 2
18045   fi
18046 done
18047 done
18048
18049   ;;
18050 esac
18051 fi
18052 ECHO=$ac_cv_path_ECHO
18053
18054 if test -n "$ECHO"; then
18055   echo "$as_me:$LINENO: result: $ECHO" >&5
18056 echo "${ECHO_T}$ECHO" >&6
18057 else
18058   echo "$as_me:$LINENO: result: no" >&5
18059 echo "${ECHO_T}no" >&6
18060 fi
18061
18062 # Extract the first word of "mkdir", so it can be a program name with args.
18063 set dummy mkdir; ac_word=$2
18064 echo "$as_me:$LINENO: checking for $ac_word" >&5
18065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18066 if test "${ac_cv_path_MKDIR+set}" = set; then
18067   echo $ECHO_N "(cached) $ECHO_C" >&6
18068 else
18069   case $MKDIR in
18070   [\\/]* | ?:[\\/]*)
18071   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18072   ;;
18073   *)
18074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18075 for as_dir in $PATH
18076 do
18077   IFS=$as_save_IFS
18078   test -z "$as_dir" && as_dir=.
18079   for ac_exec_ext in '' $ac_executable_extensions; do
18080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18081     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18083     break 2
18084   fi
18085 done
18086 done
18087
18088   ;;
18089 esac
18090 fi
18091 MKDIR=$ac_cv_path_MKDIR
18092
18093 if test -n "$MKDIR"; then
18094   echo "$as_me:$LINENO: result: $MKDIR" >&5
18095 echo "${ECHO_T}$MKDIR" >&6
18096 else
18097   echo "$as_me:$LINENO: result: no" >&5
18098 echo "${ECHO_T}no" >&6
18099 fi
18100
18101 # Extract the first word of "date", so it can be a program name with args.
18102 set dummy date; ac_word=$2
18103 echo "$as_me:$LINENO: checking for $ac_word" >&5
18104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18105 if test "${ac_cv_path_DATE+set}" = set; then
18106   echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108   case $DATE in
18109   [\\/]* | ?:[\\/]*)
18110   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18111   ;;
18112   *)
18113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18114 for as_dir in $PATH
18115 do
18116   IFS=$as_save_IFS
18117   test -z "$as_dir" && as_dir=.
18118   for ac_exec_ext in '' $ac_executable_extensions; do
18119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18120     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18122     break 2
18123   fi
18124 done
18125 done
18126
18127   ;;
18128 esac
18129 fi
18130 DATE=$ac_cv_path_DATE
18131
18132 if test -n "$DATE"; then
18133   echo "$as_me:$LINENO: result: $DATE" >&5
18134 echo "${ECHO_T}$DATE" >&6
18135 else
18136   echo "$as_me:$LINENO: result: no" >&5
18137 echo "${ECHO_T}no" >&6
18138 fi
18139
18140 # Extract the first word of "mv", so it can be a program name with args.
18141 set dummy mv; ac_word=$2
18142 echo "$as_me:$LINENO: checking for $ac_word" >&5
18143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18144 if test "${ac_cv_path_MV+set}" = set; then
18145   echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147   case $MV in
18148   [\\/]* | ?:[\\/]*)
18149   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18150   ;;
18151   *)
18152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18153 for as_dir in $PATH
18154 do
18155   IFS=$as_save_IFS
18156   test -z "$as_dir" && as_dir=.
18157   for ac_exec_ext in '' $ac_executable_extensions; do
18158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18159     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18161     break 2
18162   fi
18163 done
18164 done
18165
18166   ;;
18167 esac
18168 fi
18169 MV=$ac_cv_path_MV
18170
18171 if test -n "$MV"; then
18172   echo "$as_me:$LINENO: result: $MV" >&5
18173 echo "${ECHO_T}$MV" >&6
18174 else
18175   echo "$as_me:$LINENO: result: no" >&5
18176 echo "${ECHO_T}no" >&6
18177 fi
18178
18179 # Extract the first word of "dot", so it can be a program name with args.
18180 set dummy dot; ac_word=$2
18181 echo "$as_me:$LINENO: checking for $ac_word" >&5
18182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18183 if test "${ac_cv_path_DOT+set}" = set; then
18184   echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186   case $DOT in
18187   [\\/]* | ?:[\\/]*)
18188   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18189   ;;
18190   *)
18191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18192 for as_dir in $PATH
18193 do
18194   IFS=$as_save_IFS
18195   test -z "$as_dir" && as_dir=.
18196   for ac_exec_ext in '' $ac_executable_extensions; do
18197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18198     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18200     break 2
18201   fi
18202 done
18203 done
18204
18205   ;;
18206 esac
18207 fi
18208 DOT=$ac_cv_path_DOT
18209
18210 if test -n "$DOT"; then
18211   echo "$as_me:$LINENO: result: $DOT" >&5
18212 echo "${ECHO_T}$DOT" >&6
18213 else
18214   echo "$as_me:$LINENO: result: no" >&5
18215 echo "${ECHO_T}no" >&6
18216 fi
18217
18218 # Extract the first word of "etags", so it can be a program name with args.
18219 set dummy etags; ac_word=$2
18220 echo "$as_me:$LINENO: checking for $ac_word" >&5
18221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18222 if test "${ac_cv_path_ETAGS+set}" = set; then
18223   echo $ECHO_N "(cached) $ECHO_C" >&6
18224 else
18225   case $ETAGS in
18226   [\\/]* | ?:[\\/]*)
18227   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18228   ;;
18229   *)
18230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18231 for as_dir in $PATH
18232 do
18233   IFS=$as_save_IFS
18234   test -z "$as_dir" && as_dir=.
18235   for ac_exec_ext in '' $ac_executable_extensions; do
18236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18237     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18239     break 2
18240   fi
18241 done
18242 done
18243
18244   ;;
18245 esac
18246 fi
18247 ETAGS=$ac_cv_path_ETAGS
18248
18249 if test -n "$ETAGS"; then
18250   echo "$as_me:$LINENO: result: $ETAGS" >&5
18251 echo "${ECHO_T}$ETAGS" >&6
18252 else
18253   echo "$as_me:$LINENO: result: no" >&5
18254 echo "${ECHO_T}no" >&6
18255 fi
18256
18257 # Extract the first word of "purify", so it can be a program name with args.
18258 set dummy purify; ac_word=$2
18259 echo "$as_me:$LINENO: checking for $ac_word" >&5
18260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18261 if test "${ac_cv_path_PURIFY+set}" = set; then
18262   echo $ECHO_N "(cached) $ECHO_C" >&6
18263 else
18264   case $PURIFY in
18265   [\\/]* | ?:[\\/]*)
18266   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18267   ;;
18268   *)
18269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18270 for as_dir in $PATH
18271 do
18272   IFS=$as_save_IFS
18273   test -z "$as_dir" && as_dir=.
18274   for ac_exec_ext in '' $ac_executable_extensions; do
18275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18276     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18278     break 2
18279   fi
18280 done
18281 done
18282
18283   ;;
18284 esac
18285 fi
18286 PURIFY=$ac_cv_path_PURIFY
18287
18288 if test -n "$PURIFY"; then
18289   echo "$as_me:$LINENO: result: $PURIFY" >&5
18290 echo "${ECHO_T}$PURIFY" >&6
18291 else
18292   echo "$as_me:$LINENO: result: no" >&5
18293 echo "${ECHO_T}no" >&6
18294 fi
18295
18296
18297
18298
18299
18300
18301 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18302 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18303 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18304   echo $ECHO_N "(cached) $ECHO_C" >&6
18305 else
18306   ac_check_lib_save_LIBS=$LIBS
18307 LIBS="-lelf  $LIBS"
18308 cat >conftest.$ac_ext <<_ACEOF
18309 #line $LINENO "configure"
18310 /* confdefs.h.  */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h.  */
18315
18316 /* Override any gcc2 internal prototype to avoid an error.  */
18317 #ifdef __cplusplus
18318 extern "C"
18319 #endif
18320 /* We use char because int might match the return type of a gcc2
18321    builtin and then its argument prototype would still apply.  */
18322 char elf_begin ();
18323 int
18324 main ()
18325 {
18326 elf_begin ();
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333   (eval $ac_link) 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); } &&
18337          { ac_try='test -s conftest$ac_exeext'
18338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339   (eval $ac_try) 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; }; then
18343   ac_cv_lib_elf_elf_begin=yes
18344 else
18345   echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18347
18348 ac_cv_lib_elf_elf_begin=no
18349 fi
18350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18352 fi
18353 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18354 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18355 if test $ac_cv_lib_elf_elf_begin = yes; then
18356   cat >>confdefs.h <<_ACEOF
18357 #define HAVE_LIBELF 1
18358 _ACEOF
18359
18360   LIBS="-lelf $LIBS"
18361
18362 fi
18363
18364
18365 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18366 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18367 if test "${ac_cv_search_dlopen+set}" = set; then
18368   echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370   ac_func_search_save_LIBS=$LIBS
18371 ac_cv_search_dlopen=no
18372 cat >conftest.$ac_ext <<_ACEOF
18373 #line $LINENO "configure"
18374 /* confdefs.h.  */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h.  */
18379
18380 /* Override any gcc2 internal prototype to avoid an error.  */
18381 #ifdef __cplusplus
18382 extern "C"
18383 #endif
18384 /* We use char because int might match the return type of a gcc2
18385    builtin and then its argument prototype would still apply.  */
18386 char dlopen ();
18387 int
18388 main ()
18389 {
18390 dlopen ();
18391   ;
18392   return 0;
18393 }
18394 _ACEOF
18395 rm -f conftest.$ac_objext conftest$ac_exeext
18396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18397   (eval $ac_link) 2>&5
18398   ac_status=$?
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); } &&
18401          { ac_try='test -s conftest$ac_exeext'
18402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403   (eval $ac_try) 2>&5
18404   ac_status=$?
18405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406   (exit $ac_status); }; }; then
18407   ac_cv_search_dlopen="none required"
18408 else
18409   echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412 fi
18413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18414 if test "$ac_cv_search_dlopen" = no; then
18415   for ac_lib in dl; do
18416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18417     cat >conftest.$ac_ext <<_ACEOF
18418 #line $LINENO "configure"
18419 /* confdefs.h.  */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h.  */
18424
18425 /* Override any gcc2 internal prototype to avoid an error.  */
18426 #ifdef __cplusplus
18427 extern "C"
18428 #endif
18429 /* We use char because int might match the return type of a gcc2
18430    builtin and then its argument prototype would still apply.  */
18431 char dlopen ();
18432 int
18433 main ()
18434 {
18435 dlopen ();
18436   ;
18437   return 0;
18438 }
18439 _ACEOF
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18442   (eval $ac_link) 2>&5
18443   ac_status=$?
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); } &&
18446          { ac_try='test -s conftest$ac_exeext'
18447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18448   (eval $ac_try) 2>&5
18449   ac_status=$?
18450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451   (exit $ac_status); }; }; then
18452   ac_cv_search_dlopen="-l$ac_lib"
18453 break
18454 else
18455   echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18457
18458 fi
18459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18460   done
18461 fi
18462 LIBS=$ac_func_search_save_LIBS
18463 fi
18464 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18465 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18466 if test "$ac_cv_search_dlopen" != no; then
18467   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18468
18469 else
18470   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18471 echo "$as_me: error: dlopen() required but not found" >&2;}
18472    { (exit 1); exit 1; }; }
18473 fi
18474
18475
18476 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18477 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18478 if test "${ac_cv_search_mallinfo+set}" = set; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481   ac_func_search_save_LIBS=$LIBS
18482 ac_cv_search_mallinfo=no
18483 cat >conftest.$ac_ext <<_ACEOF
18484 #line $LINENO "configure"
18485 /* confdefs.h.  */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h.  */
18490
18491 /* Override any gcc2 internal prototype to avoid an error.  */
18492 #ifdef __cplusplus
18493 extern "C"
18494 #endif
18495 /* We use char because int might match the return type of a gcc2
18496    builtin and then its argument prototype would still apply.  */
18497 char mallinfo ();
18498 int
18499 main ()
18500 {
18501 mallinfo ();
18502   ;
18503   return 0;
18504 }
18505 _ACEOF
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508   (eval $ac_link) 2>&5
18509   ac_status=$?
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); } &&
18512          { ac_try='test -s conftest$ac_exeext'
18513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514   (eval $ac_try) 2>&5
18515   ac_status=$?
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); }; }; then
18518   ac_cv_search_mallinfo="none required"
18519 else
18520   echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18522
18523 fi
18524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18525 if test "$ac_cv_search_mallinfo" = no; then
18526   for ac_lib in malloc; do
18527     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18528     cat >conftest.$ac_ext <<_ACEOF
18529 #line $LINENO "configure"
18530 /* confdefs.h.  */
18531 _ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h.  */
18535
18536 /* Override any gcc2 internal prototype to avoid an error.  */
18537 #ifdef __cplusplus
18538 extern "C"
18539 #endif
18540 /* We use char because int might match the return type of a gcc2
18541    builtin and then its argument prototype would still apply.  */
18542 char mallinfo ();
18543 int
18544 main ()
18545 {
18546 mallinfo ();
18547   ;
18548   return 0;
18549 }
18550 _ACEOF
18551 rm -f conftest.$ac_objext conftest$ac_exeext
18552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18553   (eval $ac_link) 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); } &&
18557          { ac_try='test -s conftest$ac_exeext'
18558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559   (eval $ac_try) 2>&5
18560   ac_status=$?
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); }; }; then
18563   ac_cv_search_mallinfo="-l$ac_lib"
18564 break
18565 else
18566   echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18568
18569 fi
18570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18571   done
18572 fi
18573 LIBS=$ac_func_search_save_LIBS
18574 fi
18575 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18576 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18577 if test "$ac_cv_search_mallinfo" != no; then
18578   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18579   cat >>confdefs.h <<\_ACEOF
18580 #define HAVE_MALLINFO 1
18581 _ACEOF
18582
18583 fi
18584
18585
18586
18587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18589 if test "${ac_cv_header_stdc+set}" = set; then
18590   echo $ECHO_N "(cached) $ECHO_C" >&6
18591 else
18592   cat >conftest.$ac_ext <<_ACEOF
18593 #line $LINENO "configure"
18594 /* confdefs.h.  */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h.  */
18599 #include <stdlib.h>
18600 #include <stdarg.h>
18601 #include <string.h>
18602 #include <float.h>
18603
18604 int
18605 main ()
18606 {
18607
18608   ;
18609   return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest.$ac_objext
18613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18614   (eval $ac_compile) 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } &&
18618          { ac_try='test -s conftest.$ac_objext'
18619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620   (eval $ac_try) 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; }; then
18624   ac_cv_header_stdc=yes
18625 else
18626   echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18628
18629 ac_cv_header_stdc=no
18630 fi
18631 rm -f conftest.$ac_objext conftest.$ac_ext
18632
18633 if test $ac_cv_header_stdc = yes; then
18634   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18635   cat >conftest.$ac_ext <<_ACEOF
18636 #line $LINENO "configure"
18637 /* confdefs.h.  */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h.  */
18642 #include <string.h>
18643
18644 _ACEOF
18645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18646   $EGREP "memchr" >/dev/null 2>&1; then
18647   :
18648 else
18649   ac_cv_header_stdc=no
18650 fi
18651 rm -f conftest*
18652
18653 fi
18654
18655 if test $ac_cv_header_stdc = yes; then
18656   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18657   cat >conftest.$ac_ext <<_ACEOF
18658 #line $LINENO "configure"
18659 /* confdefs.h.  */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h.  */
18664 #include <stdlib.h>
18665
18666 _ACEOF
18667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18668   $EGREP "free" >/dev/null 2>&1; then
18669   :
18670 else
18671   ac_cv_header_stdc=no
18672 fi
18673 rm -f conftest*
18674
18675 fi
18676
18677 if test $ac_cv_header_stdc = yes; then
18678   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18679   if test "$cross_compiling" = yes; then
18680   :
18681 else
18682   cat >conftest.$ac_ext <<_ACEOF
18683 #line $LINENO "configure"
18684 /* confdefs.h.  */
18685 _ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h.  */
18689 #include <ctype.h>
18690 #if ((' ' & 0x0FF) == 0x020)
18691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18693 #else
18694 # define ISLOWER(c) \
18695                    (('a' <= (c) && (c) <= 'i') \
18696                      || ('j' <= (c) && (c) <= 'r') \
18697                      || ('s' <= (c) && (c) <= 'z'))
18698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18699 #endif
18700
18701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18702 int
18703 main ()
18704 {
18705   int i;
18706   for (i = 0; i < 256; i++)
18707     if (XOR (islower (i), ISLOWER (i))
18708         || toupper (i) != TOUPPER (i))
18709       exit(2);
18710   exit (0);
18711 }
18712 _ACEOF
18713 rm -f conftest$ac_exeext
18714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18715   (eval $ac_link) 2>&5
18716   ac_status=$?
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720   (eval $ac_try) 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; }; then
18724   :
18725 else
18726   echo "$as_me: program exited with status $ac_status" >&5
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18729
18730 ( exit $ac_status )
18731 ac_cv_header_stdc=no
18732 fi
18733 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18734 fi
18735 fi
18736 fi
18737 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18738 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18739 if test $ac_cv_header_stdc = yes; then
18740
18741 cat >>confdefs.h <<\_ACEOF
18742 #define STDC_HEADERS 1
18743 _ACEOF
18744
18745 fi
18746
18747 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18748 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18749 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18750   echo $ECHO_N "(cached) $ECHO_C" >&6
18751 else
18752   cat >conftest.$ac_ext <<_ACEOF
18753 #line $LINENO "configure"
18754 /* confdefs.h.  */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h.  */
18759 #include <sys/types.h>
18760 #include <sys/wait.h>
18761 #ifndef WEXITSTATUS
18762 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18763 #endif
18764 #ifndef WIFEXITED
18765 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18766 #endif
18767
18768 int
18769 main ()
18770 {
18771   int s;
18772   wait (&s);
18773   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18774   ;
18775   return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18780   (eval $ac_compile) 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); } &&
18784          { ac_try='test -s conftest.$ac_objext'
18785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786   (eval $ac_try) 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); }; }; then
18790   ac_cv_header_sys_wait_h=yes
18791 else
18792   echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18794
18795 ac_cv_header_sys_wait_h=no
18796 fi
18797 rm -f conftest.$ac_objext conftest.$ac_ext
18798 fi
18799 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18800 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18801 if test $ac_cv_header_sys_wait_h = yes; then
18802
18803 cat >>confdefs.h <<\_ACEOF
18804 #define HAVE_SYS_WAIT_H 1
18805 _ACEOF
18806
18807 fi
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
18819 do
18820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18822   echo "$as_me:$LINENO: checking for $ac_header" >&5
18823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 fi
18827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18829 else
18830   # Is the header compilable?
18831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18833 cat >conftest.$ac_ext <<_ACEOF
18834 #line $LINENO "configure"
18835 /* confdefs.h.  */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h.  */
18840 $ac_includes_default
18841 #include <$ac_header>
18842 _ACEOF
18843 rm -f conftest.$ac_objext
18844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18845   (eval $ac_compile) 2>&5
18846   ac_status=$?
18847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848   (exit $ac_status); } &&
18849          { ac_try='test -s conftest.$ac_objext'
18850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851   (eval $ac_try) 2>&5
18852   ac_status=$?
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); }; }; then
18855   ac_header_compiler=yes
18856 else
18857   echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18859
18860 ac_header_compiler=no
18861 fi
18862 rm -f conftest.$ac_objext conftest.$ac_ext
18863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18864 echo "${ECHO_T}$ac_header_compiler" >&6
18865
18866 # Is the header present?
18867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18869 cat >conftest.$ac_ext <<_ACEOF
18870 #line $LINENO "configure"
18871 /* confdefs.h.  */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h.  */
18876 #include <$ac_header>
18877 _ACEOF
18878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18880   ac_status=$?
18881   grep -v '^ *+' conftest.er1 >conftest.err
18882   rm -f conftest.er1
18883   cat conftest.err >&5
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); } >/dev/null; then
18886   if test -s conftest.err; then
18887     ac_cpp_err=$ac_c_preproc_warn_flag
18888   else
18889     ac_cpp_err=
18890   fi
18891 else
18892   ac_cpp_err=yes
18893 fi
18894 if test -z "$ac_cpp_err"; then
18895   ac_header_preproc=yes
18896 else
18897   echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18899
18900   ac_header_preproc=no
18901 fi
18902 rm -f conftest.err conftest.$ac_ext
18903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18904 echo "${ECHO_T}$ac_header_preproc" >&6
18905
18906 # So?  What about this header?
18907 case $ac_header_compiler:$ac_header_preproc in
18908   yes:no )
18909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18913     (
18914       cat <<\_ASBOX
18915 ## ------------------------------------ ##
18916 ## Report this to bug-autoconf@gnu.org. ##
18917 ## ------------------------------------ ##
18918 _ASBOX
18919     ) |
18920       sed "s/^/$as_me: WARNING:     /" >&2
18921     ;;
18922   no:yes )
18923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18925     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18929     (
18930       cat <<\_ASBOX
18931 ## ------------------------------------ ##
18932 ## Report this to bug-autoconf@gnu.org. ##
18933 ## ------------------------------------ ##
18934 _ASBOX
18935     ) |
18936       sed "s/^/$as_me: WARNING:     /" >&2
18937     ;;
18938 esac
18939 echo "$as_me:$LINENO: checking for $ac_header" >&5
18940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18942   echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944   eval "$as_ac_Header=$ac_header_preproc"
18945 fi
18946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18948
18949 fi
18950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18951   cat >>confdefs.h <<_ACEOF
18952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18953 _ACEOF
18954
18955 fi
18956
18957 done
18958
18959
18960
18961
18962
18963
18964 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
18965 do
18966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18968   echo "$as_me:$LINENO: checking for $ac_header" >&5
18969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18971   echo $ECHO_N "(cached) $ECHO_C" >&6
18972 fi
18973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18975 else
18976   # Is the header compilable?
18977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18979 cat >conftest.$ac_ext <<_ACEOF
18980 #line $LINENO "configure"
18981 /* confdefs.h.  */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h.  */
18986 $ac_includes_default
18987 #include <$ac_header>
18988 _ACEOF
18989 rm -f conftest.$ac_objext
18990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991   (eval $ac_compile) 2>&5
18992   ac_status=$?
18993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994   (exit $ac_status); } &&
18995          { ac_try='test -s conftest.$ac_objext'
18996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997   (eval $ac_try) 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }; }; then
19001   ac_header_compiler=yes
19002 else
19003   echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19005
19006 ac_header_compiler=no
19007 fi
19008 rm -f conftest.$ac_objext conftest.$ac_ext
19009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19010 echo "${ECHO_T}$ac_header_compiler" >&6
19011
19012 # Is the header present?
19013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19015 cat >conftest.$ac_ext <<_ACEOF
19016 #line $LINENO "configure"
19017 /* confdefs.h.  */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h.  */
19022 #include <$ac_header>
19023 _ACEOF
19024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19026   ac_status=$?
19027   grep -v '^ *+' conftest.er1 >conftest.err
19028   rm -f conftest.er1
19029   cat conftest.err >&5
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } >/dev/null; then
19032   if test -s conftest.err; then
19033     ac_cpp_err=$ac_c_preproc_warn_flag
19034   else
19035     ac_cpp_err=
19036   fi
19037 else
19038   ac_cpp_err=yes
19039 fi
19040 if test -z "$ac_cpp_err"; then
19041   ac_header_preproc=yes
19042 else
19043   echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19045
19046   ac_header_preproc=no
19047 fi
19048 rm -f conftest.err conftest.$ac_ext
19049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19050 echo "${ECHO_T}$ac_header_preproc" >&6
19051
19052 # So?  What about this header?
19053 case $ac_header_compiler:$ac_header_preproc in
19054   yes:no )
19055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19059     (
19060       cat <<\_ASBOX
19061 ## ------------------------------------ ##
19062 ## Report this to bug-autoconf@gnu.org. ##
19063 ## ------------------------------------ ##
19064 _ASBOX
19065     ) |
19066       sed "s/^/$as_me: WARNING:     /" >&2
19067     ;;
19068   no:yes )
19069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19071     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19075     (
19076       cat <<\_ASBOX
19077 ## ------------------------------------ ##
19078 ## Report this to bug-autoconf@gnu.org. ##
19079 ## ------------------------------------ ##
19080 _ASBOX
19081     ) |
19082       sed "s/^/$as_me: WARNING:     /" >&2
19083     ;;
19084 esac
19085 echo "$as_me:$LINENO: checking for $ac_header" >&5
19086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19088   echo $ECHO_N "(cached) $ECHO_C" >&6
19089 else
19090   eval "$as_ac_Header=$ac_header_preproc"
19091 fi
19092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19094
19095 fi
19096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19097   cat >>confdefs.h <<_ACEOF
19098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19099 _ACEOF
19100
19101 fi
19102
19103 done
19104
19105
19106
19107
19108 for ac_header in dlfcn.h link.h
19109 do
19110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19112   echo "$as_me:$LINENO: checking for $ac_header" >&5
19113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19115   echo $ECHO_N "(cached) $ECHO_C" >&6
19116 fi
19117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19119 else
19120   # Is the header compilable?
19121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19123 cat >conftest.$ac_ext <<_ACEOF
19124 #line $LINENO "configure"
19125 /* confdefs.h.  */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h.  */
19130 $ac_includes_default
19131 #include <$ac_header>
19132 _ACEOF
19133 rm -f conftest.$ac_objext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19135   (eval $ac_compile) 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); } &&
19139          { ac_try='test -s conftest.$ac_objext'
19140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141   (eval $ac_try) 2>&5
19142   ac_status=$?
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); }; }; then
19145   ac_header_compiler=yes
19146 else
19147   echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 ac_header_compiler=no
19151 fi
19152 rm -f conftest.$ac_objext conftest.$ac_ext
19153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19154 echo "${ECHO_T}$ac_header_compiler" >&6
19155
19156 # Is the header present?
19157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19159 cat >conftest.$ac_ext <<_ACEOF
19160 #line $LINENO "configure"
19161 /* confdefs.h.  */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h.  */
19166 #include <$ac_header>
19167 _ACEOF
19168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19170   ac_status=$?
19171   grep -v '^ *+' conftest.er1 >conftest.err
19172   rm -f conftest.er1
19173   cat conftest.err >&5
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); } >/dev/null; then
19176   if test -s conftest.err; then
19177     ac_cpp_err=$ac_c_preproc_warn_flag
19178   else
19179     ac_cpp_err=
19180   fi
19181 else
19182   ac_cpp_err=yes
19183 fi
19184 if test -z "$ac_cpp_err"; then
19185   ac_header_preproc=yes
19186 else
19187   echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19189
19190   ac_header_preproc=no
19191 fi
19192 rm -f conftest.err conftest.$ac_ext
19193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19194 echo "${ECHO_T}$ac_header_preproc" >&6
19195
19196 # So?  What about this header?
19197 case $ac_header_compiler:$ac_header_preproc in
19198   yes:no )
19199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19203     (
19204       cat <<\_ASBOX
19205 ## ------------------------------------ ##
19206 ## Report this to bug-autoconf@gnu.org. ##
19207 ## ------------------------------------ ##
19208 _ASBOX
19209     ) |
19210       sed "s/^/$as_me: WARNING:     /" >&2
19211     ;;
19212   no:yes )
19213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19215     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19219     (
19220       cat <<\_ASBOX
19221 ## ------------------------------------ ##
19222 ## Report this to bug-autoconf@gnu.org. ##
19223 ## ------------------------------------ ##
19224 _ASBOX
19225     ) |
19226       sed "s/^/$as_me: WARNING:     /" >&2
19227     ;;
19228 esac
19229 echo "$as_me:$LINENO: checking for $ac_header" >&5
19230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19232   echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234   eval "$as_ac_Header=$ac_header_preproc"
19235 fi
19236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19238
19239 fi
19240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19241   cat >>confdefs.h <<_ACEOF
19242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19243 _ACEOF
19244
19245 fi
19246
19247 done
19248
19249
19250
19251 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19252 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19253 if test "${ac_cv_c_const+set}" = set; then
19254   echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256   cat >conftest.$ac_ext <<_ACEOF
19257 #line $LINENO "configure"
19258 /* confdefs.h.  */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h.  */
19263
19264 int
19265 main ()
19266 {
19267 /* FIXME: Include the comments suggested by Paul. */
19268 #ifndef __cplusplus
19269   /* Ultrix mips cc rejects this.  */
19270   typedef int charset[2];
19271   const charset x;
19272   /* SunOS 4.1.1 cc rejects this.  */
19273   char const *const *ccp;
19274   char **p;
19275   /* NEC SVR4.0.2 mips cc rejects this.  */
19276   struct point {int x, y;};
19277   static struct point const zero = {0,0};
19278   /* AIX XL C 1.02.0.0 rejects this.
19279      It does not let you subtract one const X* pointer from another in
19280      an arm of an if-expression whose if-part is not a constant
19281      expression */
19282   const char *g = "string";
19283   ccp = &g + (g ? g-g : 0);
19284   /* HPUX 7.0 cc rejects these. */
19285   ++ccp;
19286   p = (char**) ccp;
19287   ccp = (char const *const *) p;
19288   { /* SCO 3.2v4 cc rejects this.  */
19289     char *t;
19290     char const *s = 0 ? (char *) 0 : (char const *) 0;
19291
19292     *t++ = 0;
19293   }
19294   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19295     int x[] = {25, 17};
19296     const int *foo = &x[0];
19297     ++foo;
19298   }
19299   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19300     typedef const int *iptr;
19301     iptr p = 0;
19302     ++p;
19303   }
19304   { /* AIX XL C 1.02.0.0 rejects this saying
19305        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19306     struct s { int j; const int *ap[3]; };
19307     struct s *b; b->j = 5;
19308   }
19309   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19310     const int foo = 10;
19311   }
19312 #endif
19313
19314   ;
19315   return 0;
19316 }
19317 _ACEOF
19318 rm -f conftest.$ac_objext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320   (eval $ac_compile) 2>&5
19321   ac_status=$?
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); } &&
19324          { ac_try='test -s conftest.$ac_objext'
19325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326   (eval $ac_try) 2>&5
19327   ac_status=$?
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); }; }; then
19330   ac_cv_c_const=yes
19331 else
19332   echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19334
19335 ac_cv_c_const=no
19336 fi
19337 rm -f conftest.$ac_objext conftest.$ac_ext
19338 fi
19339 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19340 echo "${ECHO_T}$ac_cv_c_const" >&6
19341 if test $ac_cv_c_const = no; then
19342
19343 cat >>confdefs.h <<\_ACEOF
19344 #define const
19345 _ACEOF
19346
19347 fi
19348
19349 echo "$as_me:$LINENO: checking for inline" >&5
19350 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19351 if test "${ac_cv_c_inline+set}" = set; then
19352   echo $ECHO_N "(cached) $ECHO_C" >&6
19353 else
19354   ac_cv_c_inline=no
19355 for ac_kw in inline __inline__ __inline; do
19356   cat >conftest.$ac_ext <<_ACEOF
19357 #line $LINENO "configure"
19358 /* confdefs.h.  */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h.  */
19363 #ifndef __cplusplus
19364 typedef int foo_t;
19365 static $ac_kw foo_t static_foo () {return 0; }
19366 $ac_kw foo_t foo () {return 0; }
19367 #endif
19368
19369 _ACEOF
19370 rm -f conftest.$ac_objext
19371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372   (eval $ac_compile) 2>&5
19373   ac_status=$?
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); } &&
19376          { ac_try='test -s conftest.$ac_objext'
19377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378   (eval $ac_try) 2>&5
19379   ac_status=$?
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); }; }; then
19382   ac_cv_c_inline=$ac_kw; break
19383 else
19384   echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19386
19387 fi
19388 rm -f conftest.$ac_objext conftest.$ac_ext
19389 done
19390
19391 fi
19392 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19393 echo "${ECHO_T}$ac_cv_c_inline" >&6
19394 case $ac_cv_c_inline in
19395   inline | yes) ;;
19396   no)
19397 cat >>confdefs.h <<\_ACEOF
19398 #define inline
19399 _ACEOF
19400  ;;
19401   *)  cat >>confdefs.h <<_ACEOF
19402 #define inline $ac_cv_c_inline
19403 _ACEOF
19404  ;;
19405 esac
19406
19407
19408 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19409 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19410 if test "${ac_cv_c_bigendian+set}" = set; then
19411   echo $ECHO_N "(cached) $ECHO_C" >&6
19412 else
19413   # See if sys/param.h defines the BYTE_ORDER macro.
19414 cat >conftest.$ac_ext <<_ACEOF
19415 #line $LINENO "configure"
19416 /* confdefs.h.  */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h.  */
19421 #include <sys/types.h>
19422 #include <sys/param.h>
19423
19424 int
19425 main ()
19426 {
19427 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19428  bogus endian macros
19429 #endif
19430
19431   ;
19432   return 0;
19433 }
19434 _ACEOF
19435 rm -f conftest.$ac_objext
19436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19437   (eval $ac_compile) 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); } &&
19441          { ac_try='test -s conftest.$ac_objext'
19442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443   (eval $ac_try) 2>&5
19444   ac_status=$?
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); }; }; then
19447   # It does; now see whether it defined to BIG_ENDIAN or not.
19448 cat >conftest.$ac_ext <<_ACEOF
19449 #line $LINENO "configure"
19450 /* confdefs.h.  */
19451 _ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h.  */
19455 #include <sys/types.h>
19456 #include <sys/param.h>
19457
19458 int
19459 main ()
19460 {
19461 #if BYTE_ORDER != BIG_ENDIAN
19462  not big endian
19463 #endif
19464
19465   ;
19466   return 0;
19467 }
19468 _ACEOF
19469 rm -f conftest.$ac_objext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19471   (eval $ac_compile) 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); } &&
19475          { ac_try='test -s conftest.$ac_objext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_cv_c_bigendian=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_cv_c_bigendian=no
19487 fi
19488 rm -f conftest.$ac_objext conftest.$ac_ext
19489 else
19490   echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19492
19493 # It does not; compile a test program.
19494 if test "$cross_compiling" = yes; then
19495   # try to guess the endianness by grepping values into an object file
19496   ac_cv_c_bigendian=unknown
19497   cat >conftest.$ac_ext <<_ACEOF
19498 #line $LINENO "configure"
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19505 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19506 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19507 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19508 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19509 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19510 int
19511 main ()
19512 {
19513  _ascii (); _ebcdic ();
19514   ;
19515   return 0;
19516 }
19517 _ACEOF
19518 rm -f conftest.$ac_objext
19519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19520   (eval $ac_compile) 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); } &&
19524          { ac_try='test -s conftest.$ac_objext'
19525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526   (eval $ac_try) 2>&5
19527   ac_status=$?
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); }; }; then
19530   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19531   ac_cv_c_bigendian=yes
19532 fi
19533 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19534   if test "$ac_cv_c_bigendian" = unknown; then
19535     ac_cv_c_bigendian=no
19536   else
19537     # finding both strings is unlikely to happen, but who knows?
19538     ac_cv_c_bigendian=unknown
19539   fi
19540 fi
19541 else
19542   echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19544
19545 fi
19546 rm -f conftest.$ac_objext conftest.$ac_ext
19547 else
19548   cat >conftest.$ac_ext <<_ACEOF
19549 #line $LINENO "configure"
19550 /* confdefs.h.  */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h.  */
19555 int
19556 main ()
19557 {
19558   /* Are we little or big endian?  From Harbison&Steele.  */
19559   union
19560   {
19561     long l;
19562     char c[sizeof (long)];
19563   } u;
19564   u.l = 1;
19565   exit (u.c[sizeof (long) - 1] == 1);
19566 }
19567 _ACEOF
19568 rm -f conftest$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570   (eval $ac_link) 2>&5
19571   ac_status=$?
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575   (eval $ac_try) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; }; then
19579   ac_cv_c_bigendian=no
19580 else
19581   echo "$as_me: program exited with status $ac_status" >&5
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585 ( exit $ac_status )
19586 ac_cv_c_bigendian=yes
19587 fi
19588 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19589 fi
19590 fi
19591 rm -f conftest.$ac_objext conftest.$ac_ext
19592 fi
19593 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19594 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19595 case $ac_cv_c_bigendian in
19596   yes)
19597     cat >>confdefs.h <<\_ACEOF
19598 #define ENDIAN_BIG 1
19599 _ACEOF
19600  ;;
19601   no)
19602     cat >>confdefs.h <<\_ACEOF
19603 #define ENDIAN_LITTLE 1
19604 _ACEOF
19605  ;;
19606   *)
19607     { { echo "$as_me:$LINENO: error: unknown endianness
19608 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19609 echo "$as_me: error: unknown endianness
19610 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19611    { (exit 1); exit 1; }; } ;;
19612 esac
19613
19614
19615 echo "$as_me:$LINENO: checking for pid_t" >&5
19616 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19617 if test "${ac_cv_type_pid_t+set}" = set; then
19618   echo $ECHO_N "(cached) $ECHO_C" >&6
19619 else
19620   cat >conftest.$ac_ext <<_ACEOF
19621 #line $LINENO "configure"
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627 $ac_includes_default
19628 int
19629 main ()
19630 {
19631 if ((pid_t *) 0)
19632   return 0;
19633 if (sizeof (pid_t))
19634   return 0;
19635   ;
19636   return 0;
19637 }
19638 _ACEOF
19639 rm -f conftest.$ac_objext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641   (eval $ac_compile) 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); } &&
19645          { ac_try='test -s conftest.$ac_objext'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   ac_cv_type_pid_t=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656 ac_cv_type_pid_t=no
19657 fi
19658 rm -f conftest.$ac_objext conftest.$ac_ext
19659 fi
19660 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19661 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19662 if test $ac_cv_type_pid_t = yes; then
19663   :
19664 else
19665
19666 cat >>confdefs.h <<_ACEOF
19667 #define pid_t int
19668 _ACEOF
19669
19670 fi
19671
19672 echo "$as_me:$LINENO: checking for size_t" >&5
19673 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19674 if test "${ac_cv_type_size_t+set}" = set; then
19675   echo $ECHO_N "(cached) $ECHO_C" >&6
19676 else
19677   cat >conftest.$ac_ext <<_ACEOF
19678 #line $LINENO "configure"
19679 /* confdefs.h.  */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h.  */
19684 $ac_includes_default
19685 int
19686 main ()
19687 {
19688 if ((size_t *) 0)
19689   return 0;
19690 if (sizeof (size_t))
19691   return 0;
19692   ;
19693   return 0;
19694 }
19695 _ACEOF
19696 rm -f conftest.$ac_objext
19697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19698   (eval $ac_compile) 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); } &&
19702          { ac_try='test -s conftest.$ac_objext'
19703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704   (eval $ac_try) 2>&5
19705   ac_status=$?
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); }; }; then
19708   ac_cv_type_size_t=yes
19709 else
19710   echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19712
19713 ac_cv_type_size_t=no
19714 fi
19715 rm -f conftest.$ac_objext conftest.$ac_ext
19716 fi
19717 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19718 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19719 if test $ac_cv_type_size_t = yes; then
19720   :
19721 else
19722
19723 cat >>confdefs.h <<_ACEOF
19724 #define size_t unsigned
19725 _ACEOF
19726
19727 fi
19728
19729 echo "$as_me:$LINENO: checking for int64_t" >&5
19730 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19731 if test "${ac_cv_type_int64_t+set}" = set; then
19732   echo $ECHO_N "(cached) $ECHO_C" >&6
19733 else
19734   cat >conftest.$ac_ext <<_ACEOF
19735 #line $LINENO "configure"
19736 /* confdefs.h.  */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h.  */
19741 $ac_includes_default
19742 int
19743 main ()
19744 {
19745 if ((int64_t *) 0)
19746   return 0;
19747 if (sizeof (int64_t))
19748   return 0;
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 rm -f conftest.$ac_objext
19754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19755   (eval $ac_compile) 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); } &&
19759          { ac_try='test -s conftest.$ac_objext'
19760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761   (eval $ac_try) 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; }; then
19765   ac_cv_type_int64_t=yes
19766 else
19767   echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 ac_cv_type_int64_t=no
19771 fi
19772 rm -f conftest.$ac_objext conftest.$ac_ext
19773 fi
19774 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19775 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19776 if test $ac_cv_type_int64_t = yes; then
19777
19778 cat >>confdefs.h <<_ACEOF
19779 #define HAVE_INT64_T 1
19780 _ACEOF
19781
19782
19783 else
19784   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19785 echo "$as_me: error: Type int64_t required but not found" >&2;}
19786    { (exit 1); exit 1; }; }
19787 fi
19788
19789 echo "$as_me:$LINENO: checking for uint64_t" >&5
19790 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19791 if test "${ac_cv_type_uint64_t+set}" = set; then
19792   echo $ECHO_N "(cached) $ECHO_C" >&6
19793 else
19794   cat >conftest.$ac_ext <<_ACEOF
19795 #line $LINENO "configure"
19796 /* confdefs.h.  */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h.  */
19801 $ac_includes_default
19802 int
19803 main ()
19804 {
19805 if ((uint64_t *) 0)
19806   return 0;
19807 if (sizeof (uint64_t))
19808   return 0;
19809   ;
19810   return 0;
19811 }
19812 _ACEOF
19813 rm -f conftest.$ac_objext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19815   (eval $ac_compile) 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); } &&
19819          { ac_try='test -s conftest.$ac_objext'
19820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821   (eval $ac_try) 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; }; then
19825   ac_cv_type_uint64_t=yes
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 ac_cv_type_uint64_t=no
19831 fi
19832 rm -f conftest.$ac_objext conftest.$ac_ext
19833 fi
19834 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19835 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19836 if test $ac_cv_type_uint64_t = yes; then
19837
19838 cat >>confdefs.h <<_ACEOF
19839 #define HAVE_UINT64_T 1
19840 _ACEOF
19841
19842
19843 else
19844   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19845 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19846    { (exit 1); exit 1; }; }
19847 fi
19848
19849 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19850 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19851 if test "${ac_cv_header_time+set}" = set; then
19852   echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854   cat >conftest.$ac_ext <<_ACEOF
19855 #line $LINENO "configure"
19856 /* confdefs.h.  */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h.  */
19861 #include <sys/types.h>
19862 #include <sys/time.h>
19863 #include <time.h>
19864
19865 int
19866 main ()
19867 {
19868 if ((struct tm *) 0)
19869 return 0;
19870   ;
19871   return 0;
19872 }
19873 _ACEOF
19874 rm -f conftest.$ac_objext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876   (eval $ac_compile) 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); } &&
19880          { ac_try='test -s conftest.$ac_objext'
19881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882   (eval $ac_try) 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); }; }; then
19886   ac_cv_header_time=yes
19887 else
19888   echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 ac_cv_header_time=no
19892 fi
19893 rm -f conftest.$ac_objext conftest.$ac_ext
19894 fi
19895 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19896 echo "${ECHO_T}$ac_cv_header_time" >&6
19897 if test $ac_cv_header_time = yes; then
19898
19899 cat >>confdefs.h <<\_ACEOF
19900 #define TIME_WITH_SYS_TIME 1
19901 _ACEOF
19902
19903 fi
19904
19905 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19906 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19907 if test "${ac_cv_struct_tm+set}" = set; then
19908   echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910   cat >conftest.$ac_ext <<_ACEOF
19911 #line $LINENO "configure"
19912 /* confdefs.h.  */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h.  */
19917 #include <sys/types.h>
19918 #include <time.h>
19919
19920 int
19921 main ()
19922 {
19923 struct tm *tp; tp->tm_sec;
19924   ;
19925   return 0;
19926 }
19927 _ACEOF
19928 rm -f conftest.$ac_objext
19929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19930   (eval $ac_compile) 2>&5
19931   ac_status=$?
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); } &&
19934          { ac_try='test -s conftest.$ac_objext'
19935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936   (eval $ac_try) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; }; then
19940   ac_cv_struct_tm=time.h
19941 else
19942   echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19944
19945 ac_cv_struct_tm=sys/time.h
19946 fi
19947 rm -f conftest.$ac_objext conftest.$ac_ext
19948 fi
19949 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19950 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19951 if test $ac_cv_struct_tm = sys/time.h; then
19952
19953 cat >>confdefs.h <<\_ACEOF
19954 #define TM_IN_SYS_TIME 1
19955 _ACEOF
19956
19957 fi
19958
19959
19960 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19961 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19962 if test "${ac_cv_cxx_namespaces+set}" = set; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965
19966
19967  ac_ext=cc
19968 ac_cpp='$CXXCPP $CPPFLAGS'
19969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19972
19973  cat >conftest.$ac_ext <<_ACEOF
19974 #line $LINENO "configure"
19975 /* confdefs.h.  */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h.  */
19980 namespace Outer { namespace Inner { int i = 0; }}
19981 int
19982 main ()
19983 {
19984 using namespace Outer::Inner; return i;
19985   ;
19986   return 0;
19987 }
19988 _ACEOF
19989 rm -f conftest.$ac_objext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19991   (eval $ac_compile) 2>&5
19992   ac_status=$?
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } &&
19995          { ac_try='test -s conftest.$ac_objext'
19996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997   (eval $ac_try) 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); }; }; then
20001   ac_cv_cxx_namespaces=yes
20002 else
20003   echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006 ac_cv_cxx_namespaces=no
20007 fi
20008 rm -f conftest.$ac_objext conftest.$ac_ext
20009  ac_ext=c
20010 ac_cpp='$CPP $CPPFLAGS'
20011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20014
20015
20016 fi
20017 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20018 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20019 if test "$ac_cv_cxx_namespaces" = yes; then
20020
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE_NAMESPACES
20023 _ACEOF
20024
20025 fi
20026
20027 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20028 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20029 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032
20033
20034
20035   ac_ext=cc
20036 ac_cpp='$CXXCPP $CPPFLAGS'
20037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20040
20041   cat >conftest.$ac_ext <<_ACEOF
20042 #line $LINENO "configure"
20043 /* confdefs.h.  */
20044 _ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h.  */
20048 #include <ext/hash_map>
20049 #ifdef HAVE_NAMESPACES
20050 using namespace std;
20051 #endif
20052 int
20053 main ()
20054 {
20055 hash_map<int, int> t; return 0;
20056   ;
20057   return 0;
20058 }
20059 _ACEOF
20060 rm -f conftest.$ac_objext
20061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062   (eval $ac_compile) 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); } &&
20066          { ac_try='test -s conftest.$ac_objext'
20067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068   (eval $ac_try) 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; }; then
20072   ac_cv_cxx_have_ext_hash_map=std
20073 else
20074   echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077 ac_cv_cxx_have_ext_hash_map=no
20078 fi
20079 rm -f conftest.$ac_objext conftest.$ac_ext
20080   cat >conftest.$ac_ext <<_ACEOF
20081 #line $LINENO "configure"
20082 /* confdefs.h.  */
20083 _ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h.  */
20087 #include <ext/hash_map>
20088 #ifdef HAVE_NAMESPACES
20089 using namespace __gnu_cxx;
20090 #endif
20091 int
20092 main ()
20093 {
20094 hash_map<int, int> t; return 0;
20095   ;
20096   return 0;
20097 }
20098 _ACEOF
20099 rm -f conftest.$ac_objext
20100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20101   (eval $ac_compile) 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); } &&
20105          { ac_try='test -s conftest.$ac_objext'
20106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107   (eval $ac_try) 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; }; then
20111   ac_cv_cxx_have_ext_hash_map=gnu
20112 else
20113   echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 ac_cv_cxx_have_ext_hash_map=no
20117 fi
20118 rm -f conftest.$ac_objext conftest.$ac_ext
20119   ac_ext=c
20120 ac_cpp='$CPP $CPPFLAGS'
20121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20124
20125
20126 fi
20127 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20128 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20129 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20130
20131 cat >>confdefs.h <<\_ACEOF
20132 #define HAVE_STD_EXT_HASH_MAP
20133 _ACEOF
20134
20135 fi
20136 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20137
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE_GNU_EXT_HASH_MAP
20140 _ACEOF
20141
20142 fi
20143
20144 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20145 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20146 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20147   echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149
20150
20151
20152   ac_ext=cc
20153 ac_cpp='$CXXCPP $CPPFLAGS'
20154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20157
20158   cat >conftest.$ac_ext <<_ACEOF
20159 #line $LINENO "configure"
20160 /* confdefs.h.  */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h.  */
20165 #include <ext/hash_set>
20166 #ifdef HAVE_NAMESPACES
20167 using namespace std;
20168 #endif
20169 int
20170 main ()
20171 {
20172 hash_set<int> t; return 0;
20173   ;
20174   return 0;
20175 }
20176 _ACEOF
20177 rm -f conftest.$ac_objext
20178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20179   (eval $ac_compile) 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); } &&
20183          { ac_try='test -s conftest.$ac_objext'
20184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185   (eval $ac_try) 2>&5
20186   ac_status=$?
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); }; }; then
20189   ac_cv_cxx_have_ext_hash_set=std
20190 else
20191   echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194 ac_cv_cxx_have_ext_hash_set=no
20195 fi
20196 rm -f conftest.$ac_objext conftest.$ac_ext
20197   cat >conftest.$ac_ext <<_ACEOF
20198 #line $LINENO "configure"
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204 #include <ext/hash_set>
20205 #ifdef HAVE_NAMESPACES
20206 using namespace __gnu_cxx;
20207 #endif
20208 int
20209 main ()
20210 {
20211 hash_set<int> t; return 0;
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218   (eval $ac_compile) 2>&5
20219   ac_status=$?
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); } &&
20222          { ac_try='test -s conftest.$ac_objext'
20223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224   (eval $ac_try) 2>&5
20225   ac_status=$?
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); }; }; then
20228   ac_cv_cxx_have_ext_hash_set=gnu
20229 else
20230   echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233 ac_cv_cxx_have_ext_hash_set=no
20234 fi
20235 rm -f conftest.$ac_objext conftest.$ac_ext
20236   ac_ext=c
20237 ac_cpp='$CPP $CPPFLAGS'
20238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20241
20242
20243 fi
20244 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20245 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20246 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20247
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE_STD_EXT_HASH_SET
20250 _ACEOF
20251
20252 fi
20253 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20254
20255 cat >>confdefs.h <<\_ACEOF
20256 #define HAVE_GNU_EXT_HASH_SET
20257 _ACEOF
20258
20259 fi
20260
20261 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20262 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20263 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20264   echo $ECHO_N "(cached) $ECHO_C" >&6
20265 else
20266
20267
20268
20269   ac_ext=cc
20270 ac_cpp='$CXXCPP $CPPFLAGS'
20271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20274
20275   cat >conftest.$ac_ext <<_ACEOF
20276 #line $LINENO "configure"
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282 #include <ext/slist>
20283 #ifdef HAVE_NAMESPACES
20284 using namespace std;
20285 #endif
20286 int
20287 main ()
20288 {
20289 slist<int> s; return 0;
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20296   (eval $ac_compile) 2>&5
20297   ac_status=$?
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); } &&
20300          { ac_try='test -s conftest.$ac_objext'
20301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302   (eval $ac_try) 2>&5
20303   ac_status=$?
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); }; }; then
20306   ac_cv_cxx_have_ext_slist=std
20307 else
20308   echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311 ac_cv_cxx_have_ext_slist=no
20312 fi
20313 rm -f conftest.$ac_objext conftest.$ac_ext
20314   cat >conftest.$ac_ext <<_ACEOF
20315 #line $LINENO "configure"
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321 #include <ext/slist>
20322 #ifdef HAVE_NAMESPACES
20323 using namespace __gnu_cxx;
20324 #endif
20325 int
20326 main ()
20327 {
20328 slist<int> s; return 0;
20329   ;
20330   return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20335   (eval $ac_compile) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } &&
20339          { ac_try='test -s conftest.$ac_objext'
20340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341   (eval $ac_try) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; }; then
20345   ac_cv_cxx_have_ext_slist=gnu
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 ac_cv_cxx_have_ext_slist=no
20351 fi
20352 rm -f conftest.$ac_objext conftest.$ac_ext
20353
20354   ac_ext=c
20355 ac_cpp='$CPP $CPPFLAGS'
20356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20359
20360
20361 fi
20362 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20363 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20364 if test "$ac_cv_cxx_have_ext_slist" = std; then
20365
20366 cat >>confdefs.h <<\_ACEOF
20367 #define HAVE_EXT_SLIST std
20368 _ACEOF
20369
20370 fi
20371 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20372
20373 cat >>confdefs.h <<\_ACEOF
20374 #define HAVE_EXT_SLIST gnu
20375 _ACEOF
20376
20377 fi
20378
20379 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20380 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20381 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20382   echo $ECHO_N "(cached) $ECHO_C" >&6
20383 else
20384
20385
20386
20387   ac_ext=cc
20388 ac_cpp='$CXXCPP $CPPFLAGS'
20389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20392
20393   cat >conftest.$ac_ext <<_ACEOF
20394 #line $LINENO "configure"
20395 /* confdefs.h.  */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h.  */
20400 #include <iterator>
20401 #ifdef HAVE_NAMESPACES
20402 using namespace std;
20403 #endif
20404 int
20405 main ()
20406 {
20407 iterator<int,int,int> t; return 0;
20408   ;
20409   return 0;
20410 }
20411 _ACEOF
20412 rm -f conftest.$ac_objext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20414   (eval $ac_compile) 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } &&
20418          { ac_try='test -s conftest.$ac_objext'
20419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420   (eval $ac_try) 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; }; then
20424   ac_cv_cxx_have_std_iterator=yes
20425 else
20426   echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 ac_cv_cxx_have_std_iterator=no
20430 fi
20431 rm -f conftest.$ac_objext conftest.$ac_ext
20432   ac_ext=c
20433 ac_cpp='$CPP $CPPFLAGS'
20434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20437
20438
20439 fi
20440 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20441 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20442 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20443
20444 cat >>confdefs.h <<\_ACEOF
20445 #define HAVE_STD_ITERATOR
20446 _ACEOF
20447
20448 fi
20449
20450 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20451 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20452 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455
20456
20457
20458   ac_ext=cc
20459 ac_cpp='$CXXCPP $CPPFLAGS'
20460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20463
20464   cat >conftest.$ac_ext <<_ACEOF
20465 #line $LINENO "configure"
20466 /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471 #include <iterator>
20472 #ifdef HAVE_NAMESPACES
20473 using namespace std;
20474 #endif
20475 int
20476 main ()
20477 {
20478 bidirectional_iterator<int,int,int> t; return 0;
20479   ;
20480   return 0;
20481 }
20482 _ACEOF
20483 rm -f conftest.$ac_objext
20484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485   (eval $ac_compile) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); } &&
20489          { ac_try='test -s conftest.$ac_objext'
20490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491   (eval $ac_try) 2>&5
20492   ac_status=$?
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); }; }; then
20495   ac_cv_cxx_have_bi_iterator=yes
20496 else
20497   echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500 ac_cv_cxx_have_bi_iterator=no
20501 fi
20502 rm -f conftest.$ac_objext conftest.$ac_ext
20503   ac_ext=c
20504 ac_cpp='$CPP $CPPFLAGS'
20505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20508
20509
20510 fi
20511 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20512 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20513 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20514
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE_BI_ITERATOR
20517 _ACEOF
20518
20519 fi
20520
20521 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20522 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20523 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20524   echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526
20527
20528
20529   ac_ext=cc
20530 ac_cpp='$CXXCPP $CPPFLAGS'
20531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20534
20535   cat >conftest.$ac_ext <<_ACEOF
20536 #line $LINENO "configure"
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 #include <iterator>
20543 #ifdef HAVE_NAMESPACES
20544 using namespace std;
20545 #endif
20546 int
20547 main ()
20548 {
20549 forward_iterator<int,int,int> t; return 0;
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext
20555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20556   (eval $ac_compile) 2>&5
20557   ac_status=$?
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); } &&
20560          { ac_try='test -s conftest.$ac_objext'
20561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562   (eval $ac_try) 2>&5
20563   ac_status=$?
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); }; }; then
20566   ac_cv_cxx_have_fwd_iterator=yes
20567 else
20568   echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571 ac_cv_cxx_have_fwd_iterator=no
20572 fi
20573 rm -f conftest.$ac_objext conftest.$ac_ext
20574   ac_ext=c
20575 ac_cpp='$CPP $CPPFLAGS'
20576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20579
20580
20581 fi
20582 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20583 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20584 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20585
20586 cat >>confdefs.h <<\_ACEOF
20587 #define HAVE_FWD_ITERATOR
20588 _ACEOF
20589
20590 fi
20591
20592
20593 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20594 # for constant arguments.  Useless!
20595 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20596 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20597 if test "${ac_cv_working_alloca_h+set}" = set; then
20598   echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20600   cat >conftest.$ac_ext <<_ACEOF
20601 #line $LINENO "configure"
20602 /* confdefs.h.  */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h.  */
20607 #include <alloca.h>
20608 int
20609 main ()
20610 {
20611 char *p = (char *) alloca (2 * sizeof (int));
20612   ;
20613   return 0;
20614 }
20615 _ACEOF
20616 rm -f conftest.$ac_objext conftest$ac_exeext
20617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20618   (eval $ac_link) 2>&5
20619   ac_status=$?
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); } &&
20622          { ac_try='test -s conftest$ac_exeext'
20623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624   (eval $ac_try) 2>&5
20625   ac_status=$?
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); }; }; then
20628   ac_cv_working_alloca_h=yes
20629 else
20630   echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20632
20633 ac_cv_working_alloca_h=no
20634 fi
20635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20636 fi
20637 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20638 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20639 if test $ac_cv_working_alloca_h = yes; then
20640
20641 cat >>confdefs.h <<\_ACEOF
20642 #define HAVE_ALLOCA_H 1
20643 _ACEOF
20644
20645 fi
20646
20647 echo "$as_me:$LINENO: checking for alloca" >&5
20648 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20649 if test "${ac_cv_func_alloca_works+set}" = set; then
20650   echo $ECHO_N "(cached) $ECHO_C" >&6
20651 else
20652   cat >conftest.$ac_ext <<_ACEOF
20653 #line $LINENO "configure"
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659 #ifdef __GNUC__
20660 # define alloca __builtin_alloca
20661 #else
20662 # ifdef _MSC_VER
20663 #  include <malloc.h>
20664 #  define alloca _alloca
20665 # else
20666 #  if HAVE_ALLOCA_H
20667 #   include <alloca.h>
20668 #  else
20669 #   ifdef _AIX
20670  #pragma alloca
20671 #   else
20672 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20673 char *alloca ();
20674 #    endif
20675 #   endif
20676 #  endif
20677 # endif
20678 #endif
20679
20680 int
20681 main ()
20682 {
20683 char *p = (char *) alloca (1);
20684   ;
20685   return 0;
20686 }
20687 _ACEOF
20688 rm -f conftest.$ac_objext conftest$ac_exeext
20689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20690   (eval $ac_link) 2>&5
20691   ac_status=$?
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); } &&
20694          { ac_try='test -s conftest$ac_exeext'
20695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696   (eval $ac_try) 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); }; }; then
20700   ac_cv_func_alloca_works=yes
20701 else
20702   echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20704
20705 ac_cv_func_alloca_works=no
20706 fi
20707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20708 fi
20709 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20710 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20711
20712 if test $ac_cv_func_alloca_works = yes; then
20713
20714 cat >>confdefs.h <<\_ACEOF
20715 #define HAVE_ALLOCA 1
20716 _ACEOF
20717
20718 else
20719   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20720 # that cause trouble.  Some versions do not even contain alloca or
20721 # contain a buggy version.  If you still want to use their alloca,
20722 # use ar to extract alloca.o from them instead of compiling alloca.c.
20723
20724 ALLOCA=alloca.$ac_objext
20725
20726 cat >>confdefs.h <<\_ACEOF
20727 #define C_ALLOCA 1
20728 _ACEOF
20729
20730
20731 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20732 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20733 if test "${ac_cv_os_cray+set}" = set; then
20734   echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736   cat >conftest.$ac_ext <<_ACEOF
20737 #line $LINENO "configure"
20738 /* confdefs.h.  */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h.  */
20743 #if defined(CRAY) && ! defined(CRAY2)
20744 webecray
20745 #else
20746 wenotbecray
20747 #endif
20748
20749 _ACEOF
20750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20751   $EGREP "webecray" >/dev/null 2>&1; then
20752   ac_cv_os_cray=yes
20753 else
20754   ac_cv_os_cray=no
20755 fi
20756 rm -f conftest*
20757
20758 fi
20759 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20760 echo "${ECHO_T}$ac_cv_os_cray" >&6
20761 if test $ac_cv_os_cray = yes; then
20762   for ac_func in _getb67 GETB67 getb67; do
20763     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20764 echo "$as_me:$LINENO: checking for $ac_func" >&5
20765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20766 if eval "test \"\${$as_ac_var+set}\" = set"; then
20767   echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769   cat >conftest.$ac_ext <<_ACEOF
20770 #line $LINENO "configure"
20771 /* confdefs.h.  */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h.  */
20776 /* System header to define __stub macros and hopefully few prototypes,
20777     which can conflict with char $ac_func (); below.
20778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20779     <limits.h> exists even on freestanding compilers.  */
20780 #ifdef __STDC__
20781 # include <limits.h>
20782 #else
20783 # include <assert.h>
20784 #endif
20785 /* Override any gcc2 internal prototype to avoid an error.  */
20786 #ifdef __cplusplus
20787 extern "C"
20788 {
20789 #endif
20790 /* We use char because int might match the return type of a gcc2
20791    builtin and then its argument prototype would still apply.  */
20792 char $ac_func ();
20793 /* The GNU C library defines this for functions which it implements
20794     to always fail with ENOSYS.  Some functions are actually named
20795     something starting with __ and the normal name is an alias.  */
20796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20797 choke me
20798 #else
20799 char (*f) () = $ac_func;
20800 #endif
20801 #ifdef __cplusplus
20802 }
20803 #endif
20804
20805 int
20806 main ()
20807 {
20808 return f != $ac_func;
20809   ;
20810   return 0;
20811 }
20812 _ACEOF
20813 rm -f conftest.$ac_objext conftest$ac_exeext
20814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20815   (eval $ac_link) 2>&5
20816   ac_status=$?
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); } &&
20819          { ac_try='test -s conftest$ac_exeext'
20820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821   (eval $ac_try) 2>&5
20822   ac_status=$?
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); }; }; then
20825   eval "$as_ac_var=yes"
20826 else
20827   echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830 eval "$as_ac_var=no"
20831 fi
20832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20833 fi
20834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20836 if test `eval echo '${'$as_ac_var'}'` = yes; then
20837
20838 cat >>confdefs.h <<_ACEOF
20839 #define CRAY_STACKSEG_END $ac_func
20840 _ACEOF
20841
20842     break
20843 fi
20844
20845   done
20846 fi
20847
20848 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20849 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20850 if test "${ac_cv_c_stack_direction+set}" = set; then
20851   echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853   if test "$cross_compiling" = yes; then
20854   ac_cv_c_stack_direction=0
20855 else
20856   cat >conftest.$ac_ext <<_ACEOF
20857 #line $LINENO "configure"
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863 int
20864 find_stack_direction ()
20865 {
20866   static char *addr = 0;
20867   auto char dummy;
20868   if (addr == 0)
20869     {
20870       addr = &dummy;
20871       return find_stack_direction ();
20872     }
20873   else
20874     return (&dummy > addr) ? 1 : -1;
20875 }
20876
20877 int
20878 main ()
20879 {
20880   exit (find_stack_direction () < 0);
20881 }
20882 _ACEOF
20883 rm -f conftest$ac_exeext
20884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20885   (eval $ac_link) 2>&5
20886   ac_status=$?
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890   (eval $ac_try) 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; }; then
20894   ac_cv_c_stack_direction=1
20895 else
20896   echo "$as_me: program exited with status $ac_status" >&5
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900 ( exit $ac_status )
20901 ac_cv_c_stack_direction=-1
20902 fi
20903 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20904 fi
20905 fi
20906 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20907 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20908
20909 cat >>confdefs.h <<_ACEOF
20910 #define STACK_DIRECTION $ac_cv_c_stack_direction
20911 _ACEOF
20912
20913
20914 fi
20915
20916 if test $ac_cv_c_compiler_gnu = yes; then
20917     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20918 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20919 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20920   echo $ECHO_N "(cached) $ECHO_C" >&6
20921 else
20922     ac_pattern="Autoconf.*'x'"
20923   cat >conftest.$ac_ext <<_ACEOF
20924 #line $LINENO "configure"
20925 /* confdefs.h.  */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h.  */
20930 #include <sgtty.h>
20931 Autoconf TIOCGETP
20932 _ACEOF
20933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20934   $EGREP "$ac_pattern" >/dev/null 2>&1; then
20935   ac_cv_prog_gcc_traditional=yes
20936 else
20937   ac_cv_prog_gcc_traditional=no
20938 fi
20939 rm -f conftest*
20940
20941
20942   if test $ac_cv_prog_gcc_traditional = no; then
20943     cat >conftest.$ac_ext <<_ACEOF
20944 #line $LINENO "configure"
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 #include <termio.h>
20951 Autoconf TCGETA
20952 _ACEOF
20953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20954   $EGREP "$ac_pattern" >/dev/null 2>&1; then
20955   ac_cv_prog_gcc_traditional=yes
20956 fi
20957 rm -f conftest*
20958
20959   fi
20960 fi
20961 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20962 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20963   if test $ac_cv_prog_gcc_traditional = yes; then
20964     CC="$CC -traditional"
20965   fi
20966 fi
20967
20968 echo "$as_me:$LINENO: checking for working memcmp" >&5
20969 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20970 if test "${ac_cv_func_memcmp_working+set}" = set; then
20971   echo $ECHO_N "(cached) $ECHO_C" >&6
20972 else
20973   if test "$cross_compiling" = yes; then
20974   ac_cv_func_memcmp_working=no
20975 else
20976   cat >conftest.$ac_ext <<_ACEOF
20977 #line $LINENO "configure"
20978 /* confdefs.h.  */
20979 _ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h.  */
20983
20984 int
20985 main ()
20986 {
20987
20988   /* Some versions of memcmp are not 8-bit clean.  */
20989   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20990   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20991     exit (1);
20992
20993   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20994      or more and with at least one buffer not starting on a 4-byte boundary.
20995      William Lewis provided this test program.   */
20996   {
20997     char foo[21];
20998     char bar[21];
20999     int i;
21000     for (i = 0; i < 4; i++)
21001       {
21002         char *a = foo + i;
21003         char *b = bar + i;
21004         strcpy (a, "--------01111111");
21005         strcpy (b, "--------10000000");
21006         if (memcmp (a, b, 16) >= 0)
21007           exit (1);
21008       }
21009     exit (0);
21010   }
21011
21012   ;
21013   return 0;
21014 }
21015 _ACEOF
21016 rm -f conftest$ac_exeext
21017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21018   (eval $ac_link) 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023   (eval $ac_try) 2>&5
21024   ac_status=$?
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); }; }; then
21027   ac_cv_func_memcmp_working=yes
21028 else
21029   echo "$as_me: program exited with status $ac_status" >&5
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21032
21033 ( exit $ac_status )
21034 ac_cv_func_memcmp_working=no
21035 fi
21036 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21037 fi
21038 fi
21039 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21040 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21041 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21042
21043
21044
21045 for ac_header in stdlib.h unistd.h
21046 do
21047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21049   echo "$as_me:$LINENO: checking for $ac_header" >&5
21050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21052   echo $ECHO_N "(cached) $ECHO_C" >&6
21053 fi
21054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21056 else
21057   # Is the header compilable?
21058 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21060 cat >conftest.$ac_ext <<_ACEOF
21061 #line $LINENO "configure"
21062 /* confdefs.h.  */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h.  */
21067 $ac_includes_default
21068 #include <$ac_header>
21069 _ACEOF
21070 rm -f conftest.$ac_objext
21071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21072   (eval $ac_compile) 2>&5
21073   ac_status=$?
21074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075   (exit $ac_status); } &&
21076          { ac_try='test -s conftest.$ac_objext'
21077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078   (eval $ac_try) 2>&5
21079   ac_status=$?
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); }; }; then
21082   ac_header_compiler=yes
21083 else
21084   echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21086
21087 ac_header_compiler=no
21088 fi
21089 rm -f conftest.$ac_objext conftest.$ac_ext
21090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21091 echo "${ECHO_T}$ac_header_compiler" >&6
21092
21093 # Is the header present?
21094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21096 cat >conftest.$ac_ext <<_ACEOF
21097 #line $LINENO "configure"
21098 /* confdefs.h.  */
21099 _ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h.  */
21103 #include <$ac_header>
21104 _ACEOF
21105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21107   ac_status=$?
21108   grep -v '^ *+' conftest.er1 >conftest.err
21109   rm -f conftest.er1
21110   cat conftest.err >&5
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); } >/dev/null; then
21113   if test -s conftest.err; then
21114     ac_cpp_err=$ac_c_preproc_warn_flag
21115   else
21116     ac_cpp_err=
21117   fi
21118 else
21119   ac_cpp_err=yes
21120 fi
21121 if test -z "$ac_cpp_err"; then
21122   ac_header_preproc=yes
21123 else
21124   echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21126
21127   ac_header_preproc=no
21128 fi
21129 rm -f conftest.err conftest.$ac_ext
21130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21131 echo "${ECHO_T}$ac_header_preproc" >&6
21132
21133 # So?  What about this header?
21134 case $ac_header_compiler:$ac_header_preproc in
21135   yes:no )
21136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21140     (
21141       cat <<\_ASBOX
21142 ## ------------------------------------ ##
21143 ## Report this to bug-autoconf@gnu.org. ##
21144 ## ------------------------------------ ##
21145 _ASBOX
21146     ) |
21147       sed "s/^/$as_me: WARNING:     /" >&2
21148     ;;
21149   no:yes )
21150     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21152     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21156     (
21157       cat <<\_ASBOX
21158 ## ------------------------------------ ##
21159 ## Report this to bug-autoconf@gnu.org. ##
21160 ## ------------------------------------ ##
21161 _ASBOX
21162     ) |
21163       sed "s/^/$as_me: WARNING:     /" >&2
21164     ;;
21165 esac
21166 echo "$as_me:$LINENO: checking for $ac_header" >&5
21167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21169   echo $ECHO_N "(cached) $ECHO_C" >&6
21170 else
21171   eval "$as_ac_Header=$ac_header_preproc"
21172 fi
21173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21175
21176 fi
21177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21178   cat >>confdefs.h <<_ACEOF
21179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21180 _ACEOF
21181
21182 fi
21183
21184 done
21185
21186
21187 for ac_func in getpagesize
21188 do
21189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21190 echo "$as_me:$LINENO: checking for $ac_func" >&5
21191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21192 if eval "test \"\${$as_ac_var+set}\" = set"; then
21193   echo $ECHO_N "(cached) $ECHO_C" >&6
21194 else
21195   cat >conftest.$ac_ext <<_ACEOF
21196 #line $LINENO "configure"
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202 /* System header to define __stub macros and hopefully few prototypes,
21203     which can conflict with char $ac_func (); below.
21204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21205     <limits.h> exists even on freestanding compilers.  */
21206 #ifdef __STDC__
21207 # include <limits.h>
21208 #else
21209 # include <assert.h>
21210 #endif
21211 /* Override any gcc2 internal prototype to avoid an error.  */
21212 #ifdef __cplusplus
21213 extern "C"
21214 {
21215 #endif
21216 /* We use char because int might match the return type of a gcc2
21217    builtin and then its argument prototype would still apply.  */
21218 char $ac_func ();
21219 /* The GNU C library defines this for functions which it implements
21220     to always fail with ENOSYS.  Some functions are actually named
21221     something starting with __ and the normal name is an alias.  */
21222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21223 choke me
21224 #else
21225 char (*f) () = $ac_func;
21226 #endif
21227 #ifdef __cplusplus
21228 }
21229 #endif
21230
21231 int
21232 main ()
21233 {
21234 return f != $ac_func;
21235   ;
21236   return 0;
21237 }
21238 _ACEOF
21239 rm -f conftest.$ac_objext conftest$ac_exeext
21240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21241   (eval $ac_link) 2>&5
21242   ac_status=$?
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } &&
21245          { ac_try='test -s conftest$ac_exeext'
21246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247   (eval $ac_try) 2>&5
21248   ac_status=$?
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); }; }; then
21251   eval "$as_ac_var=yes"
21252 else
21253   echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21255
21256 eval "$as_ac_var=no"
21257 fi
21258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21259 fi
21260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21262 if test `eval echo '${'$as_ac_var'}'` = yes; then
21263   cat >>confdefs.h <<_ACEOF
21264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21265 _ACEOF
21266
21267 fi
21268 done
21269
21270 echo "$as_me:$LINENO: checking for working mmap" >&5
21271 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21272 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21273   echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275   if test "$cross_compiling" = yes; then
21276   ac_cv_func_mmap_fixed_mapped=no
21277 else
21278   cat >conftest.$ac_ext <<_ACEOF
21279 #line $LINENO "configure"
21280 /* confdefs.h.  */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h.  */
21285 $ac_includes_default
21286 /* malloc might have been renamed as rpl_malloc. */
21287 #undef malloc
21288
21289 /* Thanks to Mike Haertel and Jim Avera for this test.
21290    Here is a matrix of mmap possibilities:
21291         mmap private not fixed
21292         mmap private fixed at somewhere currently unmapped
21293         mmap private fixed at somewhere already mapped
21294         mmap shared not fixed
21295         mmap shared fixed at somewhere currently unmapped
21296         mmap shared fixed at somewhere already mapped
21297    For private mappings, we should verify that changes cannot be read()
21298    back from the file, nor mmap's back from the file at a different
21299    address.  (There have been systems where private was not correctly
21300    implemented like the infamous i386 svr4.0, and systems where the
21301    VM page cache was not coherent with the file system buffer cache
21302    like early versions of FreeBSD and possibly contemporary NetBSD.)
21303    For shared mappings, we should conversely verify that changes get
21304    propagated back to all the places they're supposed to be.
21305
21306    Grep wants private fixed already mapped.
21307    The main things grep needs to know about mmap are:
21308    * does it exist and is it safe to write into the mmap'd area
21309    * how to use it (BSD variants)  */
21310
21311 #include <fcntl.h>
21312 #include <sys/mman.h>
21313
21314 #if !STDC_HEADERS && !HAVE_STDLIB_H
21315 char *malloc ();
21316 #endif
21317
21318 /* This mess was copied from the GNU getpagesize.h.  */
21319 #if !HAVE_GETPAGESIZE
21320 /* Assume that all systems that can run configure have sys/param.h.  */
21321 # if !HAVE_SYS_PARAM_H
21322 #  define HAVE_SYS_PARAM_H 1
21323 # endif
21324
21325 # ifdef _SC_PAGESIZE
21326 #  define getpagesize() sysconf(_SC_PAGESIZE)
21327 # else /* no _SC_PAGESIZE */
21328 #  if HAVE_SYS_PARAM_H
21329 #   include <sys/param.h>
21330 #   ifdef EXEC_PAGESIZE
21331 #    define getpagesize() EXEC_PAGESIZE
21332 #   else /* no EXEC_PAGESIZE */
21333 #    ifdef NBPG
21334 #     define getpagesize() NBPG * CLSIZE
21335 #     ifndef CLSIZE
21336 #      define CLSIZE 1
21337 #     endif /* no CLSIZE */
21338 #    else /* no NBPG */
21339 #     ifdef NBPC
21340 #      define getpagesize() NBPC
21341 #     else /* no NBPC */
21342 #      ifdef PAGESIZE
21343 #       define getpagesize() PAGESIZE
21344 #      endif /* PAGESIZE */
21345 #     endif /* no NBPC */
21346 #    endif /* no NBPG */
21347 #   endif /* no EXEC_PAGESIZE */
21348 #  else /* no HAVE_SYS_PARAM_H */
21349 #   define getpagesize() 8192   /* punt totally */
21350 #  endif /* no HAVE_SYS_PARAM_H */
21351 # endif /* no _SC_PAGESIZE */
21352
21353 #endif /* no HAVE_GETPAGESIZE */
21354
21355 int
21356 main ()
21357 {
21358   char *data, *data2, *data3;
21359   int i, pagesize;
21360   int fd;
21361
21362   pagesize = getpagesize ();
21363
21364   /* First, make a file with some known garbage in it. */
21365   data = (char *) malloc (pagesize);
21366   if (!data)
21367     exit (1);
21368   for (i = 0; i < pagesize; ++i)
21369     *(data + i) = rand ();
21370   umask (0);
21371   fd = creat ("conftest.mmap", 0600);
21372   if (fd < 0)
21373     exit (1);
21374   if (write (fd, data, pagesize) != pagesize)
21375     exit (1);
21376   close (fd);
21377
21378   /* Next, try to mmap the file at a fixed address which already has
21379      something else allocated at it.  If we can, also make sure that
21380      we see the same garbage.  */
21381   fd = open ("conftest.mmap", O_RDWR);
21382   if (fd < 0)
21383     exit (1);
21384   data2 = (char *) malloc (2 * pagesize);
21385   if (!data2)
21386     exit (1);
21387   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21388   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21389                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21390     exit (1);
21391   for (i = 0; i < pagesize; ++i)
21392     if (*(data + i) != *(data2 + i))
21393       exit (1);
21394
21395   /* Finally, make sure that changes to the mapped area do not
21396      percolate back to the file as seen by read().  (This is a bug on
21397      some variants of i386 svr4.0.)  */
21398   for (i = 0; i < pagesize; ++i)
21399     *(data2 + i) = *(data2 + i) + 1;
21400   data3 = (char *) malloc (pagesize);
21401   if (!data3)
21402     exit (1);
21403   if (read (fd, data3, pagesize) != pagesize)
21404     exit (1);
21405   for (i = 0; i < pagesize; ++i)
21406     if (*(data + i) != *(data3 + i))
21407       exit (1);
21408   close (fd);
21409   exit (0);
21410 }
21411 _ACEOF
21412 rm -f conftest$ac_exeext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414   (eval $ac_link) 2>&5
21415   ac_status=$?
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419   (eval $ac_try) 2>&5
21420   ac_status=$?
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); }; }; then
21423   ac_cv_func_mmap_fixed_mapped=yes
21424 else
21425   echo "$as_me: program exited with status $ac_status" >&5
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429 ( exit $ac_status )
21430 ac_cv_func_mmap_fixed_mapped=no
21431 fi
21432 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21433 fi
21434 fi
21435 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21436 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21437 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21438
21439 cat >>confdefs.h <<\_ACEOF
21440 #define HAVE_MMAP 1
21441 _ACEOF
21442
21443 fi
21444 rm -f conftest.mmap
21445
21446 echo "$as_me:$LINENO: checking for mmap of files" >&5
21447 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21448 if test "${ac_cv_func_mmap_file+set}" = set; then
21449   echo $ECHO_N "(cached) $ECHO_C" >&6
21450 else
21451
21452
21453   ac_ext=c
21454 ac_cpp='$CPP $CPPFLAGS'
21455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21458
21459   if test "$cross_compiling" = yes; then
21460   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21461 See \`config.log' for more details." >&5
21462 echo "$as_me: error: cannot run test program while cross compiling
21463 See \`config.log' for more details." >&2;}
21464    { (exit 1); exit 1; }; }
21465 else
21466   cat >conftest.$ac_ext <<_ACEOF
21467 #line $LINENO "configure"
21468 /* confdefs.h.  */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h.  */
21473
21474 #ifdef HAVE_SYS_MMAN_H
21475 #include <sys/mman.h>
21476 #endif
21477
21478 #ifdef HAVE_SYS_TYPES_H
21479 #include <sys/types.h>
21480 #endif
21481
21482 #ifdef HAVE_FCNTL_H
21483 #include <fcntl.h>
21484 #endif
21485
21486   int fd;
21487   int main () {
21488   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21489 _ACEOF
21490 rm -f conftest$ac_exeext
21491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21492   (eval $ac_link) 2>&5
21493   ac_status=$?
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
21501   ac_cv_func_mmap_file=yes
21502 else
21503   echo "$as_me: program exited with status $ac_status" >&5
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 ( exit $ac_status )
21508 ac_cv_func_mmap_file=no
21509 fi
21510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21511 fi
21512   ac_ext=c
21513 ac_cpp='$CPP $CPPFLAGS'
21514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21517
21518
21519 fi
21520 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21521 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21522 if test "$ac_cv_func_mmap_file" = yes; then
21523    cat >>confdefs.h <<\_ACEOF
21524 #define HAVE_MMAP_FILE 1
21525 _ACEOF
21526
21527    MMAP_FILE=yes
21528
21529 fi
21530
21531 if test ${ac_cv_func_mmap_file} = "no"
21532 then
21533         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21534 echo "$as_me: error: mmap() of files required but not found" >&2;}
21535    { (exit 1); exit 1; }; }
21536 fi
21537 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21538 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21539 if test "${ac_cv_header_mmap_anon+set}" = set; then
21540   echo $ECHO_N "(cached) $ECHO_C" >&6
21541 else
21542
21543
21544   ac_ext=c
21545 ac_cpp='$CPP $CPPFLAGS'
21546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21549
21550   cat >conftest.$ac_ext <<_ACEOF
21551 #line $LINENO "configure"
21552 /* confdefs.h.  */
21553 _ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h.  */
21557 #include <sys/mman.h>
21558   #include <unistd.h>
21559   #include <fcntl.h>
21560 int
21561 main ()
21562 {
21563 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21564   ;
21565   return 0;
21566 }
21567 _ACEOF
21568 rm -f conftest.$ac_objext
21569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21570   (eval $ac_compile) 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } &&
21574          { ac_try='test -s conftest.$ac_objext'
21575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576   (eval $ac_try) 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; }; then
21580   ac_cv_header_mmap_anon=yes
21581 else
21582   echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585 ac_cv_header_mmap_anon=no
21586 fi
21587 rm -f conftest.$ac_objext conftest.$ac_ext
21588   ac_ext=c
21589 ac_cpp='$CPP $CPPFLAGS'
21590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21593
21594
21595 fi
21596 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21597 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21598 if test "$ac_cv_header_mmap_anon" = yes; then
21599    cat >>confdefs.h <<\_ACEOF
21600 #define HAVE_MMAP_ANONYMOUS 1
21601 _ACEOF
21602
21603 fi
21604
21605 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21606 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21607 if test "${ac_cv_type_signal+set}" = set; then
21608   echo $ECHO_N "(cached) $ECHO_C" >&6
21609 else
21610   cat >conftest.$ac_ext <<_ACEOF
21611 #line $LINENO "configure"
21612 /* confdefs.h.  */
21613 _ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h.  */
21617 #include <sys/types.h>
21618 #include <signal.h>
21619 #ifdef signal
21620 # undef signal
21621 #endif
21622 #ifdef __cplusplus
21623 extern "C" void (*signal (int, void (*)(int)))(int);
21624 #else
21625 void (*signal ()) ();
21626 #endif
21627
21628 int
21629 main ()
21630 {
21631 int i;
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638   (eval $ac_compile) 2>&5
21639   ac_status=$?
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); } &&
21642          { ac_try='test -s conftest.$ac_objext'
21643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644   (eval $ac_try) 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); }; }; then
21648   ac_cv_type_signal=void
21649 else
21650   echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653 ac_cv_type_signal=int
21654 fi
21655 rm -f conftest.$ac_objext conftest.$ac_ext
21656 fi
21657 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21658 echo "${ECHO_T}$ac_cv_type_signal" >&6
21659
21660 cat >>confdefs.h <<_ACEOF
21661 #define RETSIGTYPE $ac_cv_type_signal
21662 _ACEOF
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21675 do
21676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21677 echo "$as_me:$LINENO: checking for $ac_func" >&5
21678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21679 if eval "test \"\${$as_ac_var+set}\" = set"; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682   cat >conftest.$ac_ext <<_ACEOF
21683 #line $LINENO "configure"
21684 /* confdefs.h.  */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h.  */
21689 /* System header to define __stub macros and hopefully few prototypes,
21690     which can conflict with char $ac_func (); below.
21691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21692     <limits.h> exists even on freestanding compilers.  */
21693 #ifdef __STDC__
21694 # include <limits.h>
21695 #else
21696 # include <assert.h>
21697 #endif
21698 /* Override any gcc2 internal prototype to avoid an error.  */
21699 #ifdef __cplusplus
21700 extern "C"
21701 {
21702 #endif
21703 /* We use char because int might match the return type of a gcc2
21704    builtin and then its argument prototype would still apply.  */
21705 char $ac_func ();
21706 /* The GNU C library defines this for functions which it implements
21707     to always fail with ENOSYS.  Some functions are actually named
21708     something starting with __ and the normal name is an alias.  */
21709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21710 choke me
21711 #else
21712 char (*f) () = $ac_func;
21713 #endif
21714 #ifdef __cplusplus
21715 }
21716 #endif
21717
21718 int
21719 main ()
21720 {
21721 return f != $ac_func;
21722   ;
21723   return 0;
21724 }
21725 _ACEOF
21726 rm -f conftest.$ac_objext conftest$ac_exeext
21727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21728   (eval $ac_link) 2>&5
21729   ac_status=$?
21730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731   (exit $ac_status); } &&
21732          { ac_try='test -s conftest$ac_exeext'
21733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734   (eval $ac_try) 2>&5
21735   ac_status=$?
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); }; }; then
21738   eval "$as_ac_var=yes"
21739 else
21740   echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 eval "$as_ac_var=no"
21744 fi
21745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21746 fi
21747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21749 if test `eval echo '${'$as_ac_var'}'` = yes; then
21750   cat >>confdefs.h <<_ACEOF
21751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21752 _ACEOF
21753
21754 fi
21755 done
21756
21757
21758
21759 echo "$as_me:$LINENO: checking for mmap" >&5
21760 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21761 if test "${ac_cv_func_mmap+set}" = set; then
21762   echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764   cat >conftest.$ac_ext <<_ACEOF
21765 #line $LINENO "configure"
21766 /* confdefs.h.  */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h.  */
21771 /* System header to define __stub macros and hopefully few prototypes,
21772     which can conflict with char mmap (); below.
21773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21774     <limits.h> exists even on freestanding compilers.  */
21775 #ifdef __STDC__
21776 # include <limits.h>
21777 #else
21778 # include <assert.h>
21779 #endif
21780 /* Override any gcc2 internal prototype to avoid an error.  */
21781 #ifdef __cplusplus
21782 extern "C"
21783 {
21784 #endif
21785 /* We use char because int might match the return type of a gcc2
21786    builtin and then its argument prototype would still apply.  */
21787 char mmap ();
21788 /* The GNU C library defines this for functions which it implements
21789     to always fail with ENOSYS.  Some functions are actually named
21790     something starting with __ and the normal name is an alias.  */
21791 #if defined (__stub_mmap) || defined (__stub___mmap)
21792 choke me
21793 #else
21794 char (*f) () = mmap;
21795 #endif
21796 #ifdef __cplusplus
21797 }
21798 #endif
21799
21800 int
21801 main ()
21802 {
21803 return f != mmap;
21804   ;
21805   return 0;
21806 }
21807 _ACEOF
21808 rm -f conftest.$ac_objext conftest$ac_exeext
21809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21810   (eval $ac_link) 2>&5
21811   ac_status=$?
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); } &&
21814          { ac_try='test -s conftest$ac_exeext'
21815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816   (eval $ac_try) 2>&5
21817   ac_status=$?
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); }; }; then
21820   ac_cv_func_mmap=yes
21821 else
21822   echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21824
21825 ac_cv_func_mmap=no
21826 fi
21827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21828 fi
21829 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21830 echo "${ECHO_T}$ac_cv_func_mmap" >&6
21831 if test $ac_cv_func_mmap = yes; then
21832   :
21833 else
21834   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21835 echo "$as_me: error: Function mmap() required but not found" >&2;}
21836    { (exit 1); exit 1; }; }
21837 fi
21838
21839 echo "$as_me:$LINENO: checking for mprotect" >&5
21840 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21841 if test "${ac_cv_func_mprotect+set}" = set; then
21842   echo $ECHO_N "(cached) $ECHO_C" >&6
21843 else
21844   cat >conftest.$ac_ext <<_ACEOF
21845 #line $LINENO "configure"
21846 /* confdefs.h.  */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h.  */
21851 /* System header to define __stub macros and hopefully few prototypes,
21852     which can conflict with char mprotect (); below.
21853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21854     <limits.h> exists even on freestanding compilers.  */
21855 #ifdef __STDC__
21856 # include <limits.h>
21857 #else
21858 # include <assert.h>
21859 #endif
21860 /* Override any gcc2 internal prototype to avoid an error.  */
21861 #ifdef __cplusplus
21862 extern "C"
21863 {
21864 #endif
21865 /* We use char because int might match the return type of a gcc2
21866    builtin and then its argument prototype would still apply.  */
21867 char mprotect ();
21868 /* The GNU C library defines this for functions which it implements
21869     to always fail with ENOSYS.  Some functions are actually named
21870     something starting with __ and the normal name is an alias.  */
21871 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21872 choke me
21873 #else
21874 char (*f) () = mprotect;
21875 #endif
21876 #ifdef __cplusplus
21877 }
21878 #endif
21879
21880 int
21881 main ()
21882 {
21883 return f != mprotect;
21884   ;
21885   return 0;
21886 }
21887 _ACEOF
21888 rm -f conftest.$ac_objext conftest$ac_exeext
21889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21890   (eval $ac_link) 2>&5
21891   ac_status=$?
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); } &&
21894          { ac_try='test -s conftest$ac_exeext'
21895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896   (eval $ac_try) 2>&5
21897   ac_status=$?
21898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899   (exit $ac_status); }; }; then
21900   ac_cv_func_mprotect=yes
21901 else
21902   echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21904
21905 ac_cv_func_mprotect=no
21906 fi
21907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21908 fi
21909 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21910 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21911 if test $ac_cv_func_mprotect = yes; then
21912   :
21913 else
21914   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21915 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21916    { (exit 1); exit 1; }; }
21917 fi
21918
21919
21920 # Check whether --enable-purify or --disable-purify was given.
21921 if test "${enable_purify+set}" = set; then
21922   enableval="$enable_purify"
21923   ENABLE_PURIFY=ENABLE_PURIFY=1
21924
21925 else
21926   ENABLE_PURIFY=
21927
21928 fi;
21929 # Check whether --enable-optimized or --disable-optimized was given.
21930 if test "${enable_optimized+set}" = set; then
21931   enableval="$enable_optimized"
21932   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21933
21934 else
21935   ENABLE_OPTIMIZED=
21936
21937 fi;
21938 # Check whether --enable-spec or --disable-spec was given.
21939 if test "${enable_spec+set}" = set; then
21940   enableval="$enable_spec"
21941   USE_SPEC=USE_SPEC=1
21942
21943 else
21944   USE_SPEC=
21945
21946 fi;
21947 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21948 if test "${enable_precompiled_bytecode+set}" = set; then
21949   enableval="$enable_precompiled_bytecode"
21950   UPB=USE_PRECOMPILED_BYTECODE=1
21951
21952 else
21953   UPB=
21954
21955 fi;
21956 case $build in
21957         *i*86*)  # Check whether --enable-jit or --disable-jit was given.
21958 if test "${enable_jit+set}" = set; then
21959   enableval="$enable_jit"
21960   JIT=TARGET_HAS_JIT=1
21961
21962 else
21963   JIT=
21964
21965 fi;
21966                  ;;
21967         *)
21968                  ;;
21969 esac
21970
21971
21972 # Check whether --with-spec or --without-spec was given.
21973 if test "${with_spec+set}" = set; then
21974   withval="$with_spec"
21975   SPEC_ROOT=$withval
21976
21977 else
21978   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21979
21980 fi;
21981
21982 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21983 if test "${with_llvmgccdir+set}" = set; then
21984   withval="$with_llvmgccdir"
21985   LLVMGCCDIR=$withval
21986
21987 fi;
21988
21989 # Check whether --with-bcrepos or --without-bcrepos was given.
21990 if test "${with_bcrepos+set}" = set; then
21991   withval="$with_bcrepos"
21992   BCR=$withval
21993
21994 else
21995   BCR=/home/vadve/lattner/LLVMPrograms
21996
21997 fi;
21998
21999 # Check whether --with-papi or --without-papi was given.
22000 if test "${with_papi+set}" = set; then
22001   withval="$with_papi"
22002   PAPIDIR=$withval
22003
22004 else
22005   PAPIDIR=/home/vadve/shared/papi-2.3.4.1
22006
22007 fi;
22008
22009 # Check whether --with-objroot or --without-objroot was given.
22010 if test "${with_objroot+set}" = set; then
22011   withval="$with_objroot"
22012   OBJROOT=$withval
22013
22014 else
22015   OBJROOT=.
22016
22017 fi;
22018
22019 # Check whether --with-purify or --without-purify was given.
22020 if test "${with_purify+set}" = set; then
22021   withval="$with_purify"
22022   PURIFY=$withval
22023
22024 fi;
22025
22026           ac_config_files="$ac_config_files Makefile.config"
22027 cat >confcache <<\_ACEOF
22028 # This file is a shell script that caches the results of configure
22029 # tests run on this system so they can be shared between configure
22030 # scripts and configure runs, see configure's option --config-cache.
22031 # It is not useful on other systems.  If it contains results you don't
22032 # want to keep, you may remove or edit it.
22033 #
22034 # config.status only pays attention to the cache file if you give it
22035 # the --recheck option to rerun configure.
22036 #
22037 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22038 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22039 # following values.
22040
22041 _ACEOF
22042
22043 # The following way of writing the cache mishandles newlines in values,
22044 # but we know of no workaround that is simple, portable, and efficient.
22045 # So, don't put newlines in cache variables' values.
22046 # Ultrix sh set writes to stderr and can't be redirected directly,
22047 # and sets the high bit in the cache file unless we assign to the vars.
22048 {
22049   (set) 2>&1 |
22050     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22051     *ac_space=\ *)
22052       # `set' does not quote correctly, so add quotes (double-quote
22053       # substitution turns \\\\ into \\, and sed turns \\ into \).
22054       sed -n \
22055         "s/'/'\\\\''/g;
22056           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22057       ;;
22058     *)
22059       # `set' quotes correctly as required by POSIX, so do not add quotes.
22060       sed -n \
22061         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22062       ;;
22063     esac;
22064 } |
22065   sed '
22066      t clear
22067      : clear
22068      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22069      t end
22070      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22071      : end' >>confcache
22072 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22073   if test -w $cache_file; then
22074     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22075     cat confcache >$cache_file
22076   else
22077     echo "not updating unwritable cache $cache_file"
22078   fi
22079 fi
22080 rm -f confcache
22081
22082 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22083 # Let make expand exec_prefix.
22084 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22085
22086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22088 # trailing colons and then remove the whole line if VPATH becomes empty
22089 # (actually we leave an empty line to preserve line numbers).
22090 if test "x$srcdir" = x.; then
22091   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22092 s/:*\$(srcdir):*/:/;
22093 s/:*\${srcdir}:*/:/;
22094 s/:*@srcdir@:*/:/;
22095 s/^\([^=]*=[    ]*\):*/\1/;
22096 s/:*$//;
22097 s/^[^=]*=[      ]*$//;
22098 }'
22099 fi
22100
22101 DEFS=-DHAVE_CONFIG_H
22102
22103 ac_libobjs=
22104 ac_ltlibobjs=
22105 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22106   # 1. Remove the extension, and $U if already installed.
22107   ac_i=`echo "$ac_i" |
22108          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22109   # 2. Add them.
22110   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22111   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22112 done
22113 LIBOBJS=$ac_libobjs
22114
22115 LTLIBOBJS=$ac_ltlibobjs
22116
22117
22118
22119 : ${CONFIG_STATUS=./config.status}
22120 ac_clean_files_save=$ac_clean_files
22121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22124 cat >$CONFIG_STATUS <<_ACEOF
22125 #! $SHELL
22126 # Generated by $as_me.
22127 # Run this file to recreate the current configuration.
22128 # Compiler output produced by configure, useful for debugging
22129 # configure, is in config.log if it exists.
22130
22131 debug=false
22132 ac_cs_recheck=false
22133 ac_cs_silent=false
22134 SHELL=\${CONFIG_SHELL-$SHELL}
22135 _ACEOF
22136
22137 cat >>$CONFIG_STATUS <<\_ACEOF
22138 ## --------------------- ##
22139 ## M4sh Initialization.  ##
22140 ## --------------------- ##
22141
22142 # Be Bourne compatible
22143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22144   emulate sh
22145   NULLCMD=:
22146   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22147   # is contrary to our usage.  Disable this feature.
22148   alias -g '${1+"$@"}'='"$@"'
22149 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22150   set -o posix
22151 fi
22152
22153 # Support unset when possible.
22154 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22155   as_unset=unset
22156 else
22157   as_unset=false
22158 fi
22159
22160
22161 # Work around bugs in pre-3.0 UWIN ksh.
22162 $as_unset ENV MAIL MAILPATH
22163 PS1='$ '
22164 PS2='> '
22165 PS4='+ '
22166
22167 # NLS nuisances.
22168 for as_var in \
22169   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22170   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22171   LC_TELEPHONE LC_TIME
22172 do
22173   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22174     eval $as_var=C; export $as_var
22175   else
22176     $as_unset $as_var
22177   fi
22178 done
22179
22180 # Required to use basename.
22181 if expr a : '\(a\)' >/dev/null 2>&1; then
22182   as_expr=expr
22183 else
22184   as_expr=false
22185 fi
22186
22187 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22188   as_basename=basename
22189 else
22190   as_basename=false
22191 fi
22192
22193
22194 # Name of the executable.
22195 as_me=`$as_basename "$0" ||
22196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22197          X"$0" : 'X\(//\)$' \| \
22198          X"$0" : 'X\(/\)$' \| \
22199          .     : '\(.\)' 2>/dev/null ||
22200 echo X/"$0" |
22201     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22202           /^X\/\(\/\/\)$/{ s//\1/; q; }
22203           /^X\/\(\/\).*/{ s//\1/; q; }
22204           s/.*/./; q'`
22205
22206
22207 # PATH needs CR, and LINENO needs CR and PATH.
22208 # Avoid depending upon Character Ranges.
22209 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22210 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22211 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22212 as_cr_digits='0123456789'
22213 as_cr_alnum=$as_cr_Letters$as_cr_digits
22214
22215 # The user is always right.
22216 if test "${PATH_SEPARATOR+set}" != set; then
22217   echo "#! /bin/sh" >conf$$.sh
22218   echo  "exit 0"   >>conf$$.sh
22219   chmod +x conf$$.sh
22220   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22221     PATH_SEPARATOR=';'
22222   else
22223     PATH_SEPARATOR=:
22224   fi
22225   rm -f conf$$.sh
22226 fi
22227
22228
22229   as_lineno_1=$LINENO
22230   as_lineno_2=$LINENO
22231   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22232   test "x$as_lineno_1" != "x$as_lineno_2" &&
22233   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22234   # Find who we are.  Look in the path if we contain no path at all
22235   # relative or not.
22236   case $0 in
22237     *[\\/]* ) as_myself=$0 ;;
22238     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22239 for as_dir in $PATH
22240 do
22241   IFS=$as_save_IFS
22242   test -z "$as_dir" && as_dir=.
22243   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22244 done
22245
22246        ;;
22247   esac
22248   # We did not find ourselves, most probably we were run as `sh COMMAND'
22249   # in which case we are not to be found in the path.
22250   if test "x$as_myself" = x; then
22251     as_myself=$0
22252   fi
22253   if test ! -f "$as_myself"; then
22254     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22255 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22256    { (exit 1); exit 1; }; }
22257   fi
22258   case $CONFIG_SHELL in
22259   '')
22260     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22261 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22262 do
22263   IFS=$as_save_IFS
22264   test -z "$as_dir" && as_dir=.
22265   for as_base in sh bash ksh sh5; do
22266          case $as_dir in
22267          /*)
22268            if ("$as_dir/$as_base" -c '
22269   as_lineno_1=$LINENO
22270   as_lineno_2=$LINENO
22271   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22272   test "x$as_lineno_1" != "x$as_lineno_2" &&
22273   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22274              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22275              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22276              CONFIG_SHELL=$as_dir/$as_base
22277              export CONFIG_SHELL
22278              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22279            fi;;
22280          esac
22281        done
22282 done
22283 ;;
22284   esac
22285
22286   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22287   # uniformly replaced by the line number.  The first 'sed' inserts a
22288   # line-number line before each line; the second 'sed' does the real
22289   # work.  The second script uses 'N' to pair each line-number line
22290   # with the numbered line, and appends trailing '-' during
22291   # substitution so that $LINENO is not a special case at line end.
22292   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22293   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22294   sed '=' <$as_myself |
22295     sed '
22296       N
22297       s,$,-,
22298       : loop
22299       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22300       t loop
22301       s,-$,,
22302       s,^['$as_cr_digits']*\n,,
22303     ' >$as_me.lineno &&
22304   chmod +x $as_me.lineno ||
22305     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22306 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22307    { (exit 1); exit 1; }; }
22308
22309   # Don't try to exec as it changes $[0], causing all sort of problems
22310   # (the dirname of $[0] is not the place where we might find the
22311   # original and so on.  Autoconf is especially sensible to this).
22312   . ./$as_me.lineno
22313   # Exit status is that of the last command.
22314   exit
22315 }
22316
22317
22318 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22319   *c*,-n*) ECHO_N= ECHO_C='
22320 ' ECHO_T='      ' ;;
22321   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22322   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22323 esac
22324
22325 if expr a : '\(a\)' >/dev/null 2>&1; then
22326   as_expr=expr
22327 else
22328   as_expr=false
22329 fi
22330
22331 rm -f conf$$ conf$$.exe conf$$.file
22332 echo >conf$$.file
22333 if ln -s conf$$.file conf$$ 2>/dev/null; then
22334   # We could just check for DJGPP; but this test a) works b) is more generic
22335   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22336   if test -f conf$$.exe; then
22337     # Don't use ln at all; we don't have any links
22338     as_ln_s='cp -p'
22339   else
22340     as_ln_s='ln -s'
22341   fi
22342 elif ln conf$$.file conf$$ 2>/dev/null; then
22343   as_ln_s=ln
22344 else
22345   as_ln_s='cp -p'
22346 fi
22347 rm -f conf$$ conf$$.exe conf$$.file
22348
22349 if mkdir -p . 2>/dev/null; then
22350   as_mkdir_p=:
22351 else
22352   as_mkdir_p=false
22353 fi
22354
22355 as_executable_p="test -f"
22356
22357 # Sed expression to map a string onto a valid CPP name.
22358 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22359
22360 # Sed expression to map a string onto a valid variable name.
22361 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22362
22363
22364 # IFS
22365 # We need space, tab and new line, in precisely that order.
22366 as_nl='
22367 '
22368 IFS="   $as_nl"
22369
22370 # CDPATH.
22371 $as_unset CDPATH
22372
22373 exec 6>&1
22374
22375 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22376 # report actual input values of CONFIG_FILES etc. instead of their
22377 # values after options handling.  Logging --version etc. is OK.
22378 exec 5>>config.log
22379 {
22380   echo
22381   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22382 ## Running $as_me. ##
22383 _ASBOX
22384 } >&5
22385 cat >&5 <<_CSEOF
22386
22387 This file was extended by [LLVM] $as_me [1.0], which was
22388 generated by GNU Autoconf 2.57.  Invocation command line was
22389
22390   CONFIG_FILES    = $CONFIG_FILES
22391   CONFIG_HEADERS  = $CONFIG_HEADERS
22392   CONFIG_LINKS    = $CONFIG_LINKS
22393   CONFIG_COMMANDS = $CONFIG_COMMANDS
22394   $ $0 $@
22395
22396 _CSEOF
22397 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22398 echo >&5
22399 _ACEOF
22400
22401 # Files that config.status was made for.
22402 if test -n "$ac_config_files"; then
22403   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22404 fi
22405
22406 if test -n "$ac_config_headers"; then
22407   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22408 fi
22409
22410 if test -n "$ac_config_links"; then
22411   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22412 fi
22413
22414 if test -n "$ac_config_commands"; then
22415   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22416 fi
22417
22418 cat >>$CONFIG_STATUS <<\_ACEOF
22419
22420 ac_cs_usage="\
22421 \`$as_me' instantiates files from templates according to the
22422 current configuration.
22423
22424 Usage: $0 [OPTIONS] [FILE]...
22425
22426   -h, --help       print this help, then exit
22427   -V, --version    print version number, then exit
22428   -q, --quiet      do not print progress messages
22429   -d, --debug      don't remove temporary files
22430       --recheck    update $as_me by reconfiguring in the same conditions
22431   --file=FILE[:TEMPLATE]
22432                    instantiate the configuration file FILE
22433   --header=FILE[:TEMPLATE]
22434                    instantiate the configuration header FILE
22435
22436 Configuration files:
22437 $config_files
22438
22439 Configuration headers:
22440 $config_headers
22441
22442 Report bugs to <bug-autoconf@gnu.org>."
22443 _ACEOF
22444
22445 cat >>$CONFIG_STATUS <<_ACEOF
22446 ac_cs_version="\\
22447 [LLVM] config.status [1.0]
22448 configured by $0, generated by GNU Autoconf 2.57,
22449   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22450
22451 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22452 Free Software Foundation, Inc.
22453 This config.status script is free software; the Free Software Foundation
22454 gives unlimited permission to copy, distribute and modify it."
22455 srcdir=$srcdir
22456 INSTALL="$INSTALL"
22457 _ACEOF
22458
22459 cat >>$CONFIG_STATUS <<\_ACEOF
22460 # If no file are specified by the user, then we need to provide default
22461 # value.  By we need to know if files were specified by the user.
22462 ac_need_defaults=:
22463 while test $# != 0
22464 do
22465   case $1 in
22466   --*=*)
22467     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22468     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22469     ac_shift=:
22470     ;;
22471   -*)
22472     ac_option=$1
22473     ac_optarg=$2
22474     ac_shift=shift
22475     ;;
22476   *) # This is not an option, so the user has probably given explicit
22477      # arguments.
22478      ac_option=$1
22479      ac_need_defaults=false;;
22480   esac
22481
22482   case $ac_option in
22483   # Handling of the options.
22484 _ACEOF
22485 cat >>$CONFIG_STATUS <<\_ACEOF
22486   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22487     ac_cs_recheck=: ;;
22488   --version | --vers* | -V )
22489     echo "$ac_cs_version"; exit 0 ;;
22490   --he | --h)
22491     # Conflict between --help and --header
22492     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22493 Try \`$0 --help' for more information." >&5
22494 echo "$as_me: error: ambiguous option: $1
22495 Try \`$0 --help' for more information." >&2;}
22496    { (exit 1); exit 1; }; };;
22497   --help | --hel | -h )
22498     echo "$ac_cs_usage"; exit 0 ;;
22499   --debug | --d* | -d )
22500     debug=: ;;
22501   --file | --fil | --fi | --f )
22502     $ac_shift
22503     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22504     ac_need_defaults=false;;
22505   --header | --heade | --head | --hea )
22506     $ac_shift
22507     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22508     ac_need_defaults=false;;
22509   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22510   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22511     ac_cs_silent=: ;;
22512
22513   # This is an error.
22514   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22515 Try \`$0 --help' for more information." >&5
22516 echo "$as_me: error: unrecognized option: $1
22517 Try \`$0 --help' for more information." >&2;}
22518    { (exit 1); exit 1; }; } ;;
22519
22520   *) ac_config_targets="$ac_config_targets $1" ;;
22521
22522   esac
22523   shift
22524 done
22525
22526 ac_configure_extra_args=
22527
22528 if $ac_cs_silent; then
22529   exec 6>/dev/null
22530   ac_configure_extra_args="$ac_configure_extra_args --silent"
22531 fi
22532
22533 _ACEOF
22534 cat >>$CONFIG_STATUS <<_ACEOF
22535 if \$ac_cs_recheck; then
22536   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22537   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22538 fi
22539
22540 _ACEOF
22541
22542
22543
22544
22545
22546 cat >>$CONFIG_STATUS <<\_ACEOF
22547 for ac_config_target in $ac_config_targets
22548 do
22549   case "$ac_config_target" in
22550   # Handling of arguments.
22551   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22552   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22553   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22554 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22555    { (exit 1); exit 1; }; };;
22556   esac
22557 done
22558
22559 # If the user did not use the arguments to specify the items to instantiate,
22560 # then the envvar interface is used.  Set only those that are not.
22561 # We use the long form for the default assignment because of an extremely
22562 # bizarre bug on SunOS 4.1.3.
22563 if $ac_need_defaults; then
22564   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22565   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22566 fi
22567
22568 # Have a temporary directory for convenience.  Make it in the build tree
22569 # simply because there is no reason to put it here, and in addition,
22570 # creating and moving files from /tmp can sometimes cause problems.
22571 # Create a temporary directory, and hook for its removal unless debugging.
22572 $debug ||
22573 {
22574   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22575   trap '{ (exit 1); exit 1; }' 1 2 13 15
22576 }
22577
22578 # Create a (secure) tmp directory for tmp files.
22579
22580 {
22581   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22582   test -n "$tmp" && test -d "$tmp"
22583 }  ||
22584 {
22585   tmp=./confstat$$-$RANDOM
22586   (umask 077 && mkdir $tmp)
22587 } ||
22588 {
22589    echo "$me: cannot create a temporary directory in ." >&2
22590    { (exit 1); exit 1; }
22591 }
22592
22593 _ACEOF
22594
22595 cat >>$CONFIG_STATUS <<_ACEOF
22596
22597 #
22598 # CONFIG_FILES section.
22599 #
22600
22601 # No need to generate the scripts if there are no CONFIG_FILES.
22602 # This happens for instance when ./config.status config.h
22603 if test -n "\$CONFIG_FILES"; then
22604   # Protect against being on the right side of a sed subst in config.status.
22605   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22606    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22607 s,@SHELL@,$SHELL,;t t
22608 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22609 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22610 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22611 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22612 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22613 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22614 s,@exec_prefix@,$exec_prefix,;t t
22615 s,@prefix@,$prefix,;t t
22616 s,@program_transform_name@,$program_transform_name,;t t
22617 s,@bindir@,$bindir,;t t
22618 s,@sbindir@,$sbindir,;t t
22619 s,@libexecdir@,$libexecdir,;t t
22620 s,@datadir@,$datadir,;t t
22621 s,@sysconfdir@,$sysconfdir,;t t
22622 s,@sharedstatedir@,$sharedstatedir,;t t
22623 s,@localstatedir@,$localstatedir,;t t
22624 s,@libdir@,$libdir,;t t
22625 s,@includedir@,$includedir,;t t
22626 s,@oldincludedir@,$oldincludedir,;t t
22627 s,@infodir@,$infodir,;t t
22628 s,@mandir@,$mandir,;t t
22629 s,@build_alias@,$build_alias,;t t
22630 s,@host_alias@,$host_alias,;t t
22631 s,@target_alias@,$target_alias,;t t
22632 s,@DEFS@,$DEFS,;t t
22633 s,@ECHO_C@,$ECHO_C,;t t
22634 s,@ECHO_N@,$ECHO_N,;t t
22635 s,@ECHO_T@,$ECHO_T,;t t
22636 s,@LIBS@,$LIBS,;t t
22637 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22638 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22639 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22640 s,@build@,$build,;t t
22641 s,@build_cpu@,$build_cpu,;t t
22642 s,@build_vendor@,$build_vendor,;t t
22643 s,@build_os@,$build_os,;t t
22644 s,@host@,$host,;t t
22645 s,@host_cpu@,$host_cpu,;t t
22646 s,@host_vendor@,$host_vendor,;t t
22647 s,@host_os@,$host_os,;t t
22648 s,@target@,$target,;t t
22649 s,@target_cpu@,$target_cpu,;t t
22650 s,@target_vendor@,$target_vendor,;t t
22651 s,@target_os@,$target_os,;t t
22652 s,@OS@,$OS,;t t
22653 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22654 s,@ARCH@,$ARCH,;t t
22655 s,@CXX@,$CXX,;t t
22656 s,@CXXFLAGS@,$CXXFLAGS,;t t
22657 s,@LDFLAGS@,$LDFLAGS,;t t
22658 s,@CPPFLAGS@,$CPPFLAGS,;t t
22659 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22660 s,@EXEEXT@,$EXEEXT,;t t
22661 s,@OBJEXT@,$OBJEXT,;t t
22662 s,@CC@,$CC,;t t
22663 s,@CFLAGS@,$CFLAGS,;t t
22664 s,@ac_ct_CC@,$ac_ct_CC,;t t
22665 s,@CPP@,$CPP,;t t
22666 s,@ifGNUmake@,$ifGNUmake,;t t
22667 s,@LEX@,$LEX,;t t
22668 s,@LEXLIB@,$LEXLIB,;t t
22669 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22670 s,@YACC@,$YACC,;t t
22671 s,@EGREP@,$EGREP,;t t
22672 s,@LN_S@,$LN_S,;t t
22673 s,@ECHO@,$ECHO,;t t
22674 s,@AR@,$AR,;t t
22675 s,@ac_ct_AR@,$ac_ct_AR,;t t
22676 s,@RANLIB@,$RANLIB,;t t
22677 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22678 s,@STRIP@,$STRIP,;t t
22679 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22680 s,@CXXCPP@,$CXXCPP,;t t
22681 s,@F77@,$F77,;t t
22682 s,@FFLAGS@,$FFLAGS,;t t
22683 s,@ac_ct_F77@,$ac_ct_F77,;t t
22684 s,@LIBTOOL@,$LIBTOOL,;t t
22685 s,@SED@,$SED,;t t
22686 s,@RM@,$RM,;t t
22687 s,@MKDIR@,$MKDIR,;t t
22688 s,@DATE@,$DATE,;t t
22689 s,@MV@,$MV,;t t
22690 s,@DOT@,$DOT,;t t
22691 s,@ETAGS@,$ETAGS,;t t
22692 s,@PURIFY@,$PURIFY,;t t
22693 s,@ALLOCA@,$ALLOCA,;t t
22694 s,@LIBOBJS@,$LIBOBJS,;t t
22695 s,@MMAP_FILE@,$MMAP_FILE,;t t
22696 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
22697 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22698 s,@USE_SPEC@,$USE_SPEC,;t t
22699 s,@UPB@,$UPB,;t t
22700 s,@JIT@,$JIT,;t t
22701 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22702 s,@BCR@,$BCR,;t t
22703 s,@PAPIDIR@,$PAPIDIR,;t t
22704 s,@OBJROOT@,$OBJROOT,;t t
22705 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22706 CEOF
22707
22708 _ACEOF
22709
22710   cat >>$CONFIG_STATUS <<\_ACEOF
22711   # Split the substitutions into bite-sized pieces for seds with
22712   # small command number limits, like on Digital OSF/1 and HP-UX.
22713   ac_max_sed_lines=48
22714   ac_sed_frag=1 # Number of current file.
22715   ac_beg=1 # First line for current file.
22716   ac_end=$ac_max_sed_lines # Line after last line for current file.
22717   ac_more_lines=:
22718   ac_sed_cmds=
22719   while $ac_more_lines; do
22720     if test $ac_beg -gt 1; then
22721       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22722     else
22723       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22724     fi
22725     if test ! -s $tmp/subs.frag; then
22726       ac_more_lines=false
22727     else
22728       # The purpose of the label and of the branching condition is to
22729       # speed up the sed processing (if there are no `@' at all, there
22730       # is no need to browse any of the substitutions).
22731       # These are the two extra sed commands mentioned above.
22732       (echo ':t
22733   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22734       if test -z "$ac_sed_cmds"; then
22735         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22736       else
22737         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22738       fi
22739       ac_sed_frag=`expr $ac_sed_frag + 1`
22740       ac_beg=$ac_end
22741       ac_end=`expr $ac_end + $ac_max_sed_lines`
22742     fi
22743   done
22744   if test -z "$ac_sed_cmds"; then
22745     ac_sed_cmds=cat
22746   fi
22747 fi # test -n "$CONFIG_FILES"
22748
22749 _ACEOF
22750 cat >>$CONFIG_STATUS <<\_ACEOF
22751 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22752   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22753   case $ac_file in
22754   - | *:- | *:-:* ) # input from stdin
22755         cat >$tmp/stdin
22756         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22757         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22758   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22759         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22760   * )   ac_file_in=$ac_file.in ;;
22761   esac
22762
22763   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22764   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22766          X"$ac_file" : 'X\(//\)[^/]' \| \
22767          X"$ac_file" : 'X\(//\)$' \| \
22768          X"$ac_file" : 'X\(/\)' \| \
22769          .     : '\(.\)' 2>/dev/null ||
22770 echo X"$ac_file" |
22771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22772           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22773           /^X\(\/\/\)$/{ s//\1/; q; }
22774           /^X\(\/\).*/{ s//\1/; q; }
22775           s/.*/./; q'`
22776   { if $as_mkdir_p; then
22777     mkdir -p "$ac_dir"
22778   else
22779     as_dir="$ac_dir"
22780     as_dirs=
22781     while test ! -d "$as_dir"; do
22782       as_dirs="$as_dir $as_dirs"
22783       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22785          X"$as_dir" : 'X\(//\)[^/]' \| \
22786          X"$as_dir" : 'X\(//\)$' \| \
22787          X"$as_dir" : 'X\(/\)' \| \
22788          .     : '\(.\)' 2>/dev/null ||
22789 echo X"$as_dir" |
22790     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22791           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22792           /^X\(\/\/\)$/{ s//\1/; q; }
22793           /^X\(\/\).*/{ s//\1/; q; }
22794           s/.*/./; q'`
22795     done
22796     test ! -n "$as_dirs" || mkdir $as_dirs
22797   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22798 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22799    { (exit 1); exit 1; }; }; }
22800
22801   ac_builddir=.
22802
22803 if test "$ac_dir" != .; then
22804   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22805   # A "../" for each directory in $ac_dir_suffix.
22806   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22807 else
22808   ac_dir_suffix= ac_top_builddir=
22809 fi
22810
22811 case $srcdir in
22812   .)  # No --srcdir option.  We are building in place.
22813     ac_srcdir=.
22814     if test -z "$ac_top_builddir"; then
22815        ac_top_srcdir=.
22816     else
22817        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22818     fi ;;
22819   [\\/]* | ?:[\\/]* )  # Absolute path.
22820     ac_srcdir=$srcdir$ac_dir_suffix;
22821     ac_top_srcdir=$srcdir ;;
22822   *) # Relative path.
22823     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22824     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22825 esac
22826 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22827 # absolute.
22828 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22829 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22830 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22831 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22832
22833
22834   case $INSTALL in
22835   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22836   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22837   esac
22838
22839   if test x"$ac_file" != x-; then
22840     { echo "$as_me:$LINENO: creating $ac_file" >&5
22841 echo "$as_me: creating $ac_file" >&6;}
22842     rm -f "$ac_file"
22843   fi
22844   # Let's still pretend it is `configure' which instantiates (i.e., don't
22845   # use $as_me), people would be surprised to read:
22846   #    /* config.h.  Generated by config.status.  */
22847   if test x"$ac_file" = x-; then
22848     configure_input=
22849   else
22850     configure_input="$ac_file.  "
22851   fi
22852   configure_input=$configure_input"Generated from `echo $ac_file_in |
22853                                      sed 's,.*/,,'` by configure."
22854
22855   # First look for the input files in the build tree, otherwise in the
22856   # src tree.
22857   ac_file_inputs=`IFS=:
22858     for f in $ac_file_in; do
22859       case $f in
22860       -) echo $tmp/stdin ;;
22861       [\\/$]*)
22862          # Absolute (can't be DOS-style, as IFS=:)
22863          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22864 echo "$as_me: error: cannot find input file: $f" >&2;}
22865    { (exit 1); exit 1; }; }
22866          echo $f;;
22867       *) # Relative
22868          if test -f "$f"; then
22869            # Build tree
22870            echo $f
22871          elif test -f "$srcdir/$f"; then
22872            # Source tree
22873            echo $srcdir/$f
22874          else
22875            # /dev/null tree
22876            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22877 echo "$as_me: error: cannot find input file: $f" >&2;}
22878    { (exit 1); exit 1; }; }
22879          fi;;
22880       esac
22881     done` || { (exit 1); exit 1; }
22882 _ACEOF
22883 cat >>$CONFIG_STATUS <<_ACEOF
22884   sed "$ac_vpsub
22885 $extrasub
22886 _ACEOF
22887 cat >>$CONFIG_STATUS <<\_ACEOF
22888 :t
22889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22890 s,@configure_input@,$configure_input,;t t
22891 s,@srcdir@,$ac_srcdir,;t t
22892 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22893 s,@top_srcdir@,$ac_top_srcdir,;t t
22894 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22895 s,@builddir@,$ac_builddir,;t t
22896 s,@abs_builddir@,$ac_abs_builddir,;t t
22897 s,@top_builddir@,$ac_top_builddir,;t t
22898 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22899 s,@INSTALL@,$ac_INSTALL,;t t
22900 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22901   rm -f $tmp/stdin
22902   if test x"$ac_file" != x-; then
22903     mv $tmp/out $ac_file
22904   else
22905     cat $tmp/out
22906     rm -f $tmp/out
22907   fi
22908
22909 done
22910 _ACEOF
22911 cat >>$CONFIG_STATUS <<\_ACEOF
22912
22913 #
22914 # CONFIG_HEADER section.
22915 #
22916
22917 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22918 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22919 #
22920 # ac_d sets the value in "#define NAME VALUE" lines.
22921 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22922 ac_dB='[        ].*$,\1#\2'
22923 ac_dC=' '
22924 ac_dD=',;t'
22925 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22926 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22927 ac_uB='$,\1#\2define\3'
22928 ac_uC=' '
22929 ac_uD=',;t'
22930
22931 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22932   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22933   case $ac_file in
22934   - | *:- | *:-:* ) # input from stdin
22935         cat >$tmp/stdin
22936         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22937         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22938   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22939         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22940   * )   ac_file_in=$ac_file.in ;;
22941   esac
22942
22943   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22944 echo "$as_me: creating $ac_file" >&6;}
22945
22946   # First look for the input files in the build tree, otherwise in the
22947   # src tree.
22948   ac_file_inputs=`IFS=:
22949     for f in $ac_file_in; do
22950       case $f in
22951       -) echo $tmp/stdin ;;
22952       [\\/$]*)
22953          # Absolute (can't be DOS-style, as IFS=:)
22954          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22955 echo "$as_me: error: cannot find input file: $f" >&2;}
22956    { (exit 1); exit 1; }; }
22957          echo $f;;
22958       *) # Relative
22959          if test -f "$f"; then
22960            # Build tree
22961            echo $f
22962          elif test -f "$srcdir/$f"; then
22963            # Source tree
22964            echo $srcdir/$f
22965          else
22966            # /dev/null tree
22967            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22968 echo "$as_me: error: cannot find input file: $f" >&2;}
22969    { (exit 1); exit 1; }; }
22970          fi;;
22971       esac
22972     done` || { (exit 1); exit 1; }
22973   # Remove the trailing spaces.
22974   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
22975
22976 _ACEOF
22977
22978 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22979 # `conftest.undefs', that substitutes the proper values into
22980 # config.h.in to produce config.h.  The first handles `#define'
22981 # templates, and the second `#undef' templates.
22982 # And first: Protect against being on the right side of a sed subst in
22983 # config.status.  Protect against being in an unquoted here document
22984 # in config.status.
22985 rm -f conftest.defines conftest.undefs
22986 # Using a here document instead of a string reduces the quoting nightmare.
22987 # Putting comments in sed scripts is not portable.
22988 #
22989 # `end' is used to avoid that the second main sed command (meant for
22990 # 0-ary CPP macros) applies to n-ary macro definitions.
22991 # See the Autoconf documentation for `clear'.
22992 cat >confdef2sed.sed <<\_ACEOF
22993 s/[\\&,]/\\&/g
22994 s,[\\$`],\\&,g
22995 t clear
22996 : clear
22997 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22998 t end
22999 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23000 : end
23001 _ACEOF
23002 # If some macros were called several times there might be several times
23003 # the same #defines, which is useless.  Nevertheless, we may not want to
23004 # sort them, since we want the *last* AC-DEFINE to be honored.
23005 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23006 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23007 rm -f confdef2sed.sed
23008
23009 # This sed command replaces #undef with comments.  This is necessary, for
23010 # example, in the case of _POSIX_SOURCE, which is predefined and required
23011 # on some systems where configure will not decide to define it.
23012 cat >>conftest.undefs <<\_ACEOF
23013 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23014 _ACEOF
23015
23016 # Break up conftest.defines because some shells have a limit on the size
23017 # of here documents, and old seds have small limits too (100 cmds).
23018 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23019 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23020 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23021 echo '  :' >>$CONFIG_STATUS
23022 rm -f conftest.tail
23023 while grep . conftest.defines >/dev/null
23024 do
23025   # Write a limited-size here document to $tmp/defines.sed.
23026   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23027   # Speed up: don't consider the non `#define' lines.
23028   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23029   # Work around the forget-to-reset-the-flag bug.
23030   echo 't clr' >>$CONFIG_STATUS
23031   echo ': clr' >>$CONFIG_STATUS
23032   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23033   echo 'CEOF
23034   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23035   rm -f $tmp/in
23036   mv $tmp/out $tmp/in
23037 ' >>$CONFIG_STATUS
23038   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23039   rm -f conftest.defines
23040   mv conftest.tail conftest.defines
23041 done
23042 rm -f conftest.defines
23043 echo '  fi # grep' >>$CONFIG_STATUS
23044 echo >>$CONFIG_STATUS
23045
23046 # Break up conftest.undefs because some shells have a limit on the size
23047 # of here documents, and old seds have small limits too (100 cmds).
23048 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23049 rm -f conftest.tail
23050 while grep . conftest.undefs >/dev/null
23051 do
23052   # Write a limited-size here document to $tmp/undefs.sed.
23053   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23054   # Speed up: don't consider the non `#undef'
23055   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23056   # Work around the forget-to-reset-the-flag bug.
23057   echo 't clr' >>$CONFIG_STATUS
23058   echo ': clr' >>$CONFIG_STATUS
23059   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23060   echo 'CEOF
23061   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23062   rm -f $tmp/in
23063   mv $tmp/out $tmp/in
23064 ' >>$CONFIG_STATUS
23065   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23066   rm -f conftest.undefs
23067   mv conftest.tail conftest.undefs
23068 done
23069 rm -f conftest.undefs
23070
23071 cat >>$CONFIG_STATUS <<\_ACEOF
23072   # Let's still pretend it is `configure' which instantiates (i.e., don't
23073   # use $as_me), people would be surprised to read:
23074   #    /* config.h.  Generated by config.status.  */
23075   if test x"$ac_file" = x-; then
23076     echo "/* Generated by configure.  */" >$tmp/config.h
23077   else
23078     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23079   fi
23080   cat $tmp/in >>$tmp/config.h
23081   rm -f $tmp/in
23082   if test x"$ac_file" != x-; then
23083     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23084       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23085 echo "$as_me: $ac_file is unchanged" >&6;}
23086     else
23087       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23089          X"$ac_file" : 'X\(//\)[^/]' \| \
23090          X"$ac_file" : 'X\(//\)$' \| \
23091          X"$ac_file" : 'X\(/\)' \| \
23092          .     : '\(.\)' 2>/dev/null ||
23093 echo X"$ac_file" |
23094     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23095           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23096           /^X\(\/\/\)$/{ s//\1/; q; }
23097           /^X\(\/\).*/{ s//\1/; q; }
23098           s/.*/./; q'`
23099       { if $as_mkdir_p; then
23100     mkdir -p "$ac_dir"
23101   else
23102     as_dir="$ac_dir"
23103     as_dirs=
23104     while test ! -d "$as_dir"; do
23105       as_dirs="$as_dir $as_dirs"
23106       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23108          X"$as_dir" : 'X\(//\)[^/]' \| \
23109          X"$as_dir" : 'X\(//\)$' \| \
23110          X"$as_dir" : 'X\(/\)' \| \
23111          .     : '\(.\)' 2>/dev/null ||
23112 echo X"$as_dir" |
23113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23114           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23115           /^X\(\/\/\)$/{ s//\1/; q; }
23116           /^X\(\/\).*/{ s//\1/; q; }
23117           s/.*/./; q'`
23118     done
23119     test ! -n "$as_dirs" || mkdir $as_dirs
23120   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23121 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23122    { (exit 1); exit 1; }; }; }
23123
23124       rm -f $ac_file
23125       mv $tmp/config.h $ac_file
23126     fi
23127   else
23128     cat $tmp/config.h
23129     rm -f $tmp/config.h
23130   fi
23131 done
23132 _ACEOF
23133
23134 cat >>$CONFIG_STATUS <<\_ACEOF
23135
23136 { (exit 0); exit 0; }
23137 _ACEOF
23138 chmod +x $CONFIG_STATUS
23139 ac_clean_files=$ac_clean_files_save
23140
23141
23142 # configure is writing to config.log, and then calls config.status.
23143 # config.status does its own redirection, appending to config.log.
23144 # Unfortunately, on DOS this fails, as config.log is still kept open
23145 # by configure, so config.status won't be able to write to it; its
23146 # output is simply discarded.  So we exec the FD to /dev/null,
23147 # effectively closing config.log, so it can be properly (re)opened and
23148 # appended to by config.status.  When coming back to configure, we
23149 # need to make the FD available again.
23150 if test "$no_create" != yes; then
23151   ac_cs_success=:
23152   ac_config_status_args=
23153   test "$silent" = yes &&
23154     ac_config_status_args="$ac_config_status_args --quiet"
23155   exec 5>/dev/null
23156   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23157   exec 5>>config.log
23158   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23159   # would make configure fail if this is the last instruction.
23160   $ac_cs_success || { (exit 1); exit 1; }
23161 fi
23162