Whoopsie. I should remember to use aclocal next time.
[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.1].
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.1]'
426 PACKAGE_STRING='[LLVM] [1.1]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_unique_file=""Makefile.config.in""
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS PYTHON QMTEST ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
926 ac_env_CC_value=$CC
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures [LLVM] [1.1] to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013   --target=TARGET   configure for building compilers for TARGET [HOST]
1014 _ACEOF
1015 fi
1016
1017 if test -n "$ac_init_help"; then
1018   case $ac_init_help in
1019      short | recursive ) echo "Configuration of [LLVM] [1.1]:";;
1020    esac
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-shared[=PKGS]
1027                           build shared libraries [default=yes]
1028   --enable-static[=PKGS]
1029                           build static libraries [default=yes]
1030   --enable-fast-install[=PKGS]
1031                           optimize for fast installation [default=yes]
1032   --disable-libtool-lock  avoid locking (might break parallel builds)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec2000       Compile SPEC 2000 benchmarks (default is NO)
1035   --enable-precompiled_bytecode
1036                           Use pre-compiled bytecode (default is NO)
1037   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048   --with-llvmgccdir       Location of LLVM GCC front-end
1049   --with-bcrepos          Location of Bytecode Repository
1050   --with-papi             Location of PAPI
1051
1052 Some influential environment variables:
1053   CXX         C++ compiler command
1054   CXXFLAGS    C++ compiler flags
1055   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1056               nonstandard directory <lib dir>
1057   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058               headers in a nonstandard directory <include dir>
1059   CC          C compiler command
1060   CFLAGS      C compiler flags
1061   CPP         C preprocessor
1062   CXXCPP      C++ preprocessor
1063   F77         Fortran 77 compiler command
1064   FFLAGS      Fortran 77 compiler flags
1065
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1068
1069 Report bugs to <llvmbugs@cs.uiuc.edu>.
1070 _ACEOF
1071 fi
1072
1073 if test "$ac_init_help" = "recursive"; then
1074   # If there are subdirs, report their specific --help.
1075   ac_popdir=`pwd`
1076   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077     test -d $ac_dir || continue
1078     ac_builddir=.
1079
1080 if test "$ac_dir" != .; then
1081   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082   # A "../" for each directory in $ac_dir_suffix.
1083   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 else
1085   ac_dir_suffix= ac_top_builddir=
1086 fi
1087
1088 case $srcdir in
1089   .)  # No --srcdir option.  We are building in place.
1090     ac_srcdir=.
1091     if test -z "$ac_top_builddir"; then
1092        ac_top_srcdir=.
1093     else
1094        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095     fi ;;
1096   [\\/]* | ?:[\\/]* )  # Absolute path.
1097     ac_srcdir=$srcdir$ac_dir_suffix;
1098     ac_top_srcdir=$srcdir ;;
1099   *) # Relative path.
1100     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 esac
1103 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1104 # absolute.
1105 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1106 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1107 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1108 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1109
1110     cd $ac_dir
1111     # Check for guested configure; otherwise get Cygnus style configure.
1112     if test -f $ac_srcdir/configure.gnu; then
1113       echo
1114       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1115     elif test -f $ac_srcdir/configure; then
1116       echo
1117       $SHELL $ac_srcdir/configure  --help=recursive
1118     elif test -f $ac_srcdir/configure.ac ||
1119            test -f $ac_srcdir/configure.in; then
1120       echo
1121       $ac_configure --help
1122     else
1123       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124     fi
1125     cd $ac_popdir
1126   done
1127 fi
1128
1129 test -n "$ac_init_help" && exit 0
1130 if $ac_init_version; then
1131   cat <<\_ACEOF
1132 [LLVM] configure [1.1]
1133 generated by GNU Autoconf 2.57
1134
1135 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1136 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1139 _ACEOF
1140   exit 0
1141 fi
1142 exec 5>config.log
1143 cat >&5 <<_ACEOF
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1146
1147 It was created by [LLVM] $as_me [1.1], which was
1148 generated by GNU Autoconf 2.57.  Invocation command line was
1149
1150   $ $0 $@
1151
1152 _ACEOF
1153 {
1154 cat <<_ASUNAME
1155 ## --------- ##
1156 ## Platform. ##
1157 ## --------- ##
1158
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1167
1168 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1169 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1172 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1173 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1174 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1175
1176 _ASUNAME
1177
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $PATH
1180 do
1181   IFS=$as_save_IFS
1182   test -z "$as_dir" && as_dir=.
1183   echo "PATH: $as_dir"
1184 done
1185
1186 } >&5
1187
1188 cat >&5 <<_ACEOF
1189
1190
1191 ## ----------- ##
1192 ## Core tests. ##
1193 ## ----------- ##
1194
1195 _ACEOF
1196
1197
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1203 ac_configure_args=
1204 ac_configure_args0=
1205 ac_configure_args1=
1206 ac_sep=
1207 ac_must_keep_next=false
1208 for ac_pass in 1 2
1209 do
1210   for ac_arg
1211   do
1212     case $ac_arg in
1213     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215     | -silent | --silent | --silen | --sile | --sil)
1216       continue ;;
1217     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219     esac
1220     case $ac_pass in
1221     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222     2)
1223       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224       if test $ac_must_keep_next = true; then
1225         ac_must_keep_next=false # Got value, back to normal.
1226       else
1227         case $ac_arg in
1228           *=* | --config-cache | -C | -disable-* | --disable-* \
1229           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231           | -with-* | --with-* | -without-* | --without-* | --x)
1232             case "$ac_configure_args0 " in
1233               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234             esac
1235             ;;
1236           -* ) ac_must_keep_next=true ;;
1237         esac
1238       fi
1239       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240       # Get rid of the leading space.
1241       ac_sep=" "
1242       ;;
1243     esac
1244   done
1245 done
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log.  We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255   # Save into config.log some information that might help in debugging.
1256   {
1257     echo
1258
1259     cat <<\_ASBOX
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1263 _ASBOX
1264     echo
1265     # The following way of writing the cache mishandles newlines in values,
1266 {
1267   (set) 2>&1 |
1268     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269     *ac_space=\ *)
1270       sed -n \
1271         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273       ;;
1274     *)
1275       sed -n \
1276         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277       ;;
1278     esac;
1279 }
1280     echo
1281
1282     cat <<\_ASBOX
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1286 _ASBOX
1287     echo
1288     for ac_var in $ac_subst_vars
1289     do
1290       eval ac_val=$`echo $ac_var`
1291       echo "$ac_var='"'"'$ac_val'"'"'"
1292     done | sort
1293     echo
1294
1295     if test -n "$ac_subst_files"; then
1296       cat <<\_ASBOX
1297 ## ------------- ##
1298 ## Output files. ##
1299 ## ------------- ##
1300 _ASBOX
1301       echo
1302       for ac_var in $ac_subst_files
1303       do
1304         eval ac_val=$`echo $ac_var`
1305         echo "$ac_var='"'"'$ac_val'"'"'"
1306       done | sort
1307       echo
1308     fi
1309
1310     if test -s confdefs.h; then
1311       cat <<\_ASBOX
1312 ## ----------- ##
1313 ## confdefs.h. ##
1314 ## ----------- ##
1315 _ASBOX
1316       echo
1317       sed "/^$/d" confdefs.h | sort
1318       echo
1319     fi
1320     test "$ac_signal" != 0 &&
1321       echo "$as_me: caught signal $ac_signal"
1322     echo "$as_me: exit $exit_status"
1323   } >&5
1324   rm -f core core.* *.core &&
1325   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326     exit $exit_status
1327      ' 0
1328 for ac_signal in 1 2 13 15; do
1329   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 done
1331 ac_signal=0
1332
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336 echo >confdefs.h
1337
1338 # Predefined preprocessor variables.
1339
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 _ACEOF
1343
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 _ACEOF
1348
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 _ACEOF
1363
1364
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368   if test "x$prefix" != xNONE; then
1369     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370   else
1371     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372   fi
1373 fi
1374 for ac_site_file in $CONFIG_SITE; do
1375   if test -r "$ac_site_file"; then
1376     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378     sed 's/^/| /' "$ac_site_file" >&5
1379     . "$ac_site_file"
1380   fi
1381 done
1382
1383 if test -r "$cache_file"; then
1384   # Some versions of bash will fail to source /dev/null (special
1385   # files actually), so we avoid doing that.
1386   if test -f "$cache_file"; then
1387     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1389     case $cache_file in
1390       [\\/]* | ?:[\\/]* ) . $cache_file;;
1391       *)                      . ./$cache_file;;
1392     esac
1393   fi
1394 else
1395   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1397   >$cache_file
1398 fi
1399
1400 # Check that the precious variables saved in the cache have kept the same
1401 # value.
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406   eval ac_new_set=\$ac_env_${ac_var}_set
1407   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408   eval ac_new_val="\$ac_env_${ac_var}_value"
1409   case $ac_old_set,$ac_new_set in
1410     set,)
1411       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413       ac_cache_corrupted=: ;;
1414     ,set)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,);;
1419     *)
1420       if test "x$ac_old_val" != "x$ac_new_val"; then
1421         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1424 echo "$as_me:   former value:  $ac_old_val" >&2;}
1425         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1426 echo "$as_me:   current value: $ac_new_val" >&2;}
1427         ac_cache_corrupted=:
1428       fi;;
1429   esac
1430   # Pass precious variables to config.status.
1431   if test "$ac_new_set" = set; then
1432     case $ac_new_val in
1433     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435     *) ac_arg=$ac_var=$ac_new_val ;;
1436     esac
1437     case " $ac_configure_args " in
1438       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1439       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440     esac
1441   fi
1442 done
1443 if $ac_cache_corrupted; then
1444   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484 ac_aux_dir=
1485 for ac_dir in autoconf $srcdir/autoconf; do
1486   if test -f $ac_dir/install-sh; then
1487     ac_aux_dir=$ac_dir
1488     ac_install_sh="$ac_aux_dir/install-sh -c"
1489     break
1490   elif test -f $ac_dir/install.sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install.sh -c"
1493     break
1494   elif test -f $ac_dir/shtool; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/shtool install -c"
1497     break
1498   fi
1499 done
1500 if test -z "$ac_aux_dir"; then
1501   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1502 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1503    { (exit 1); exit 1; }; }
1504 fi
1505 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1506 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1507 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1508
1509
1510 if test ${srcdir} != "."
1511 then
1512         if test -f ${srcdir}/include/Config/config.h
1513         then
1514                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1515 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1516    { (exit 1); exit 1; }; }
1517         fi
1518 fi
1519
1520 for i in `ls ${srcdir}/projects`
1521 do
1522   if test ${i} != "CVS"
1523   then
1524     if test -f ${srcdir}/projects/${i}/configure
1525     then
1526
1527
1528 subdirs="$subdirs projects/${i}"
1529
1530     fi
1531   fi
1532 done
1533
1534           ac_config_headers="$ac_config_headers include/Config/config.h"
1535
1536           ac_config_commands="$ac_config_commands Makefile"
1537
1538
1539           ac_config_commands="$ac_config_commands Makefile.common"
1540
1541
1542           ac_config_commands="$ac_config_commands lib/Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands runtime/Makefile"
1546
1547
1548           ac_config_commands="$ac_config_commands test/Makefile"
1549
1550
1551           ac_config_commands="$ac_config_commands test/Makefile.tests"
1552
1553
1554           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1555
1556
1557           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1558
1559
1560           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1561
1562
1563           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1564
1565
1566           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1570
1571
1572           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1573
1574
1575           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1576
1577
1578           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1591
1592
1593           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1597
1598
1599           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1603
1604
1605           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1615
1616
1617           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1621
1622
1623           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1624
1625
1626           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1630
1631
1632           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1636
1637
1638           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1642
1643
1644           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1648
1649
1650           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1654
1655
1656           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1660
1661
1662           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1666
1667
1668           ac_config_commands="$ac_config_commands tools/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands utils/Makefile"
1672
1673
1674           ac_config_commands="$ac_config_commands projects/Makefile"
1675
1676
1677
1678 # Find a good install program.  We prefer a C program (faster),
1679 # so one script is as good as another.  But avoid the broken or
1680 # incompatible versions:
1681 # SysV /etc/install, /usr/sbin/install
1682 # SunOS /usr/etc/install
1683 # IRIX /sbin/install
1684 # AIX /bin/install
1685 # AmigaOS /C/install, which installs bootblocks on floppy discs
1686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1689 # ./install, which can be erroneously created by make from ./install.sh.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   # Account for people who put trailing slashes in PATH elements.
1702 case $as_dir/ in
1703   ./ | .// | /cC/* | \
1704   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705   /usr/ucb/* ) ;;
1706   *)
1707     # OSF1 and SCO ODT 3.0 have their own names for install.
1708     # Don't use installbsd from OSF since it installs stuff as root
1709     # by default.
1710     for ac_prog in ginstall scoinst install; do
1711       for ac_exec_ext in '' $ac_executable_extensions; do
1712         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1713           if test $ac_prog = install &&
1714             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1715             # AIX install.  It has an incompatible calling convention.
1716             :
1717           elif test $ac_prog = install &&
1718             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1719             # program-specific install script used by HP pwplus--don't use.
1720             :
1721           else
1722             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1723             break 3
1724           fi
1725         fi
1726       done
1727     done
1728     ;;
1729 esac
1730 done
1731
1732
1733 fi
1734   if test "${ac_cv_path_install+set}" = set; then
1735     INSTALL=$ac_cv_path_install
1736   else
1737     # As a last resort, use the slow shell script.  We don't cache a
1738     # path for INSTALL within a source directory, because that will
1739     # break other packages using the cache if that directory is
1740     # removed, or if the path is relative.
1741     INSTALL=$ac_install_sh
1742   fi
1743 fi
1744 echo "$as_me:$LINENO: result: $INSTALL" >&5
1745 echo "${ECHO_T}$INSTALL" >&6
1746
1747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1748 # It thinks the first close brace ends the variable substitution.
1749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1750
1751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1752
1753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1754
1755
1756 # Make sure we can run config.sub.
1757 $ac_config_sub sun4 >/dev/null 2>&1 ||
1758   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1759 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1760    { (exit 1); exit 1; }; }
1761
1762 echo "$as_me:$LINENO: checking build system type" >&5
1763 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1764 if test "${ac_cv_build+set}" = set; then
1765   echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767   ac_cv_build_alias=$build_alias
1768 test -z "$ac_cv_build_alias" &&
1769   ac_cv_build_alias=`$ac_config_guess`
1770 test -z "$ac_cv_build_alias" &&
1771   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1772 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1773    { (exit 1); exit 1; }; }
1774 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1775   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1776 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1777    { (exit 1); exit 1; }; }
1778
1779 fi
1780 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1781 echo "${ECHO_T}$ac_cv_build" >&6
1782 build=$ac_cv_build
1783 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1784 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1785 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1786
1787
1788 echo "$as_me:$LINENO: checking host system type" >&5
1789 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1790 if test "${ac_cv_host+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   ac_cv_host_alias=$host_alias
1794 test -z "$ac_cv_host_alias" &&
1795   ac_cv_host_alias=$ac_cv_build_alias
1796 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1797   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1798 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1799    { (exit 1); exit 1; }; }
1800
1801 fi
1802 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1803 echo "${ECHO_T}$ac_cv_host" >&6
1804 host=$ac_cv_host
1805 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1806 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1807 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1808
1809
1810 echo "$as_me:$LINENO: checking target system type" >&5
1811 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1812 if test "${ac_cv_target+set}" = set; then
1813   echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815   ac_cv_target_alias=$target_alias
1816 test "x$ac_cv_target_alias" = "x" &&
1817   ac_cv_target_alias=$ac_cv_host_alias
1818 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1819   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1820 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1821    { (exit 1); exit 1; }; }
1822
1823 fi
1824 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1825 echo "${ECHO_T}$ac_cv_target" >&6
1826 target=$ac_cv_target
1827 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1828 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1829 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1830
1831
1832 # The aliases save the names the user supplied, while $host etc.
1833 # will get canonicalized.
1834 test -n "$target_alias" &&
1835   test "$program_prefix$program_suffix$program_transform_name" = \
1836     NONENONEs,x,x, &&
1837   program_prefix=${target_alias}-
1838
1839 case $build in
1840         *-*-linux*)
1841              OS=Linux
1842
1843                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1844                          then
1845                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1846
1847                          fi
1848                  ;;
1849
1850         *-*-solaris*)
1851              OS=SunOS
1852
1853                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1854                          then
1855                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1856
1857                          fi
1858                  ;;
1859
1860         *-*-darwin*)
1861              OS=Darwin
1862
1863                  ;;
1864
1865         *)       OS=Unknown
1866
1867                  ;;
1868 esac
1869
1870 case $target in
1871         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1872
1873                             ;;
1874 esac
1875
1876 case $target in
1877         i*86-*)           ARCH=x86
1878
1879                           ;;
1880         sparc*-*)         ARCH=Sparc
1881
1882                           ;;
1883         powerpc*-*)       ARCH=PowerPC
1884
1885                           ;;
1886         *)                ARCH=Unknown
1887
1888                           ;;
1889 esac
1890
1891 ac_ext=cc
1892 ac_cpp='$CXXCPP $CPPFLAGS'
1893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1896 if test -n "$ac_tool_prefix"; then
1897   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1898   do
1899     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_CXX+set}" = set; then
1904   echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906   if test -n "$CXX"; then
1907   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1908 else
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1911 do
1912   IFS=$as_save_IFS
1913   test -z "$as_dir" && as_dir=.
1914   for ac_exec_ext in '' $ac_executable_extensions; do
1915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918     break 2
1919   fi
1920 done
1921 done
1922
1923 fi
1924 fi
1925 CXX=$ac_cv_prog_CXX
1926 if test -n "$CXX"; then
1927   echo "$as_me:$LINENO: result: $CXX" >&5
1928 echo "${ECHO_T}$CXX" >&6
1929 else
1930   echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6
1932 fi
1933
1934     test -n "$CXX" && break
1935   done
1936 fi
1937 if test -z "$CXX"; then
1938   ac_ct_CXX=$CXX
1939   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1940 do
1941   # Extract the first word of "$ac_prog", so it can be a program name with args.
1942 set dummy $ac_prog; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   if test -n "$ac_ct_CXX"; then
1949   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1950 else
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954   IFS=$as_save_IFS
1955   test -z "$as_dir" && as_dir=.
1956   for ac_exec_ext in '' $ac_executable_extensions; do
1957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958     ac_cv_prog_ac_ct_CXX="$ac_prog"
1959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960     break 2
1961   fi
1962 done
1963 done
1964
1965 fi
1966 fi
1967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1968 if test -n "$ac_ct_CXX"; then
1969   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1970 echo "${ECHO_T}$ac_ct_CXX" >&6
1971 else
1972   echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1974 fi
1975
1976   test -n "$ac_ct_CXX" && break
1977 done
1978 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1979
1980   CXX=$ac_ct_CXX
1981 fi
1982
1983
1984 # Provide some information about the compiler.
1985 echo "$as_me:$LINENO:" \
1986      "checking for C++ compiler version" >&5
1987 ac_compiler=`set X $ac_compile; echo $2`
1988 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1989   (eval $ac_compiler --version </dev/null >&5) 2>&5
1990   ac_status=$?
1991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992   (exit $ac_status); }
1993 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1994   (eval $ac_compiler -v </dev/null >&5) 2>&5
1995   ac_status=$?
1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997   (exit $ac_status); }
1998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1999   (eval $ac_compiler -V </dev/null >&5) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }
2003
2004 cat >conftest.$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2006 /* confdefs.h.  */
2007 _ACEOF
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h.  */
2011
2012 int
2013 main ()
2014 {
2015
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 ac_clean_files_save=$ac_clean_files
2021 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2022 # Try to create an executable without -o first, disregard a.out.
2023 # It will help us diagnose broken compilers, and finding out an intuition
2024 # of exeext.
2025 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2026 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2027 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2028 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2029   (eval $ac_link_default) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); }; then
2033   # Find the output, starting from the most likely.  This scheme is
2034 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2035 # resort.
2036
2037 # Be careful to initialize this variable, since it used to be cached.
2038 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2039 ac_cv_exeext=
2040 # b.out is created by i960 compilers.
2041 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2042 do
2043   test -f "$ac_file" || continue
2044   case $ac_file in
2045     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2046         ;;
2047     conftest.$ac_ext )
2048         # This is the source file.
2049         ;;
2050     [ab].out )
2051         # We found the default executable, but exeext='' is most
2052         # certainly right.
2053         break;;
2054     *.* )
2055         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2056         # FIXME: I believe we export ac_cv_exeext for Libtool,
2057         # but it would be cool to find out if it's true.  Does anybody
2058         # maintain Libtool? --akim.
2059         export ac_cv_exeext
2060         break;;
2061     * )
2062         break;;
2063   esac
2064 done
2065 else
2066   echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2068
2069 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: C++ compiler cannot create executables
2072 See \`config.log' for more details." >&2;}
2073    { (exit 77); exit 77; }; }
2074 fi
2075
2076 ac_exeext=$ac_cv_exeext
2077 echo "$as_me:$LINENO: result: $ac_file" >&5
2078 echo "${ECHO_T}$ac_file" >&6
2079
2080 # Check the compiler produces executables we can run.  If not, either
2081 # the compiler is broken, or we cross compile.
2082 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2083 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2084 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2085 # If not cross compiling, check that we can run a simple program.
2086 if test "$cross_compiling" != yes; then
2087   if { ac_try='./$ac_file'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093     cross_compiling=no
2094   else
2095     if test "$cross_compiling" = maybe; then
2096         cross_compiling=yes
2097     else
2098         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2099 If you meant to cross compile, use \`--host'.
2100 See \`config.log' for more details." >&5
2101 echo "$as_me: error: cannot run C++ compiled programs.
2102 If you meant to cross compile, use \`--host'.
2103 See \`config.log' for more details." >&2;}
2104    { (exit 1); exit 1; }; }
2105     fi
2106   fi
2107 fi
2108 echo "$as_me:$LINENO: result: yes" >&5
2109 echo "${ECHO_T}yes" >&6
2110
2111 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2112 ac_clean_files=$ac_clean_files_save
2113 # Check the compiler produces executables we can run.  If not, either
2114 # the compiler is broken, or we cross compile.
2115 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2116 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2117 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2118 echo "${ECHO_T}$cross_compiling" >&6
2119
2120 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2121 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2123   (eval $ac_link) 2>&5
2124   ac_status=$?
2125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126   (exit $ac_status); }; then
2127   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2128 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2129 # work properly (i.e., refer to `conftest.exe'), while it won't with
2130 # `rm'.
2131 for ac_file in conftest.exe conftest conftest.*; do
2132   test -f "$ac_file" || continue
2133   case $ac_file in
2134     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2135     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2136           export ac_cv_exeext
2137           break;;
2138     * ) break;;
2139   esac
2140 done
2141 else
2142   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2145 See \`config.log' for more details." >&2;}
2146    { (exit 1); exit 1; }; }
2147 fi
2148
2149 rm -f conftest$ac_cv_exeext
2150 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2151 echo "${ECHO_T}$ac_cv_exeext" >&6
2152
2153 rm -f conftest.$ac_ext
2154 EXEEXT=$ac_cv_exeext
2155 ac_exeext=$EXEEXT
2156 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2157 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2158 if test "${ac_cv_objext+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   cat >conftest.$ac_ext <<_ACEOF
2162 #line $LINENO "configure"
2163 /* confdefs.h.  */
2164 _ACEOF
2165 cat confdefs.h >>conftest.$ac_ext
2166 cat >>conftest.$ac_ext <<_ACEOF
2167 /* end confdefs.h.  */
2168
2169 int
2170 main ()
2171 {
2172
2173   ;
2174   return 0;
2175 }
2176 _ACEOF
2177 rm -f conftest.o conftest.obj
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179   (eval $ac_compile) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; then
2183   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2184   case $ac_file in
2185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2186     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2187        break;;
2188   esac
2189 done
2190 else
2191   echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2197 See \`config.log' for more details." >&2;}
2198    { (exit 1); exit 1; }; }
2199 fi
2200
2201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2202 fi
2203 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2204 echo "${ECHO_T}$ac_cv_objext" >&6
2205 OBJEXT=$ac_cv_objext
2206 ac_objext=$OBJEXT
2207 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2208 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2209 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   cat >conftest.$ac_ext <<_ACEOF
2213 #line $LINENO "configure"
2214 /* confdefs.h.  */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h.  */
2219
2220 int
2221 main ()
2222 {
2223 #ifndef __GNUC__
2224        choke me
2225 #endif
2226
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 rm -f conftest.$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233   (eval $ac_compile) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); } &&
2237          { ac_try='test -s conftest.$ac_objext'
2238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; }; then
2243   ac_compiler_gnu=yes
2244 else
2245   echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2247
2248 ac_compiler_gnu=no
2249 fi
2250 rm -f conftest.$ac_objext conftest.$ac_ext
2251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2252
2253 fi
2254 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2255 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2256 GXX=`test $ac_compiler_gnu = yes && echo yes`
2257 ac_test_CXXFLAGS=${CXXFLAGS+set}
2258 ac_save_CXXFLAGS=$CXXFLAGS
2259 CXXFLAGS="-g"
2260 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2261 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2262 if test "${ac_cv_prog_cxx_g+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   cat >conftest.$ac_ext <<_ACEOF
2266 #line $LINENO "configure"
2267 /* confdefs.h.  */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h.  */
2272
2273 int
2274 main ()
2275 {
2276
2277   ;
2278   return 0;
2279 }
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283   (eval $ac_compile) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); } &&
2287          { ac_try='test -s conftest.$ac_objext'
2288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289   (eval $ac_try) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }; }; then
2293   ac_cv_prog_cxx_g=yes
2294 else
2295   echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 ac_cv_prog_cxx_g=no
2299 fi
2300 rm -f conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2303 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2304 if test "$ac_test_CXXFLAGS" = set; then
2305   CXXFLAGS=$ac_save_CXXFLAGS
2306 elif test $ac_cv_prog_cxx_g = yes; then
2307   if test "$GXX" = yes; then
2308     CXXFLAGS="-g -O2"
2309   else
2310     CXXFLAGS="-g"
2311   fi
2312 else
2313   if test "$GXX" = yes; then
2314     CXXFLAGS="-O2"
2315   else
2316     CXXFLAGS=
2317   fi
2318 fi
2319 for ac_declaration in \
2320    ''\
2321    '#include <stdlib.h>' \
2322    'extern "C" void std::exit (int) throw (); using std::exit;' \
2323    'extern "C" void std::exit (int); using std::exit;' \
2324    'extern "C" void exit (int) throw ();' \
2325    'extern "C" void exit (int);' \
2326    'void exit (int);'
2327 do
2328   cat >conftest.$ac_ext <<_ACEOF
2329 #line $LINENO "configure"
2330 /* confdefs.h.  */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h.  */
2335 #include <stdlib.h>
2336 $ac_declaration
2337 int
2338 main ()
2339 {
2340 exit (42);
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347   (eval $ac_compile) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); } &&
2351          { ac_try='test -s conftest.$ac_objext'
2352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353   (eval $ac_try) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; }; then
2357   :
2358 else
2359   echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 continue
2363 fi
2364 rm -f conftest.$ac_objext conftest.$ac_ext
2365   cat >conftest.$ac_ext <<_ACEOF
2366 #line $LINENO "configure"
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372 $ac_declaration
2373 int
2374 main ()
2375 {
2376 exit (42);
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383   (eval $ac_compile) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); } &&
2387          { ac_try='test -s conftest.$ac_objext'
2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389   (eval $ac_try) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; }; then
2393   break
2394 else
2395   echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 fi
2399 rm -f conftest.$ac_objext conftest.$ac_ext
2400 done
2401 rm -f conftest*
2402 if test -n "$ac_declaration"; then
2403   echo '#ifdef __cplusplus' >>confdefs.h
2404   echo $ac_declaration      >>confdefs.h
2405   echo '#endif'             >>confdefs.h
2406 fi
2407
2408 ac_ext=c
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 if test -n "$ac_tool_prefix"; then
2420   for ac_prog in gcc
2421   do
2422     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2424 echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2426 if test "${ac_cv_prog_CC+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   if test -n "$CC"; then
2430   ac_cv_prog_CC="$CC" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   for ac_exec_ext in '' $ac_executable_extensions; do
2438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441     break 2
2442   fi
2443 done
2444 done
2445
2446 fi
2447 fi
2448 CC=$ac_cv_prog_CC
2449 if test -n "$CC"; then
2450   echo "$as_me:$LINENO: result: $CC" >&5
2451 echo "${ECHO_T}$CC" >&6
2452 else
2453   echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2455 fi
2456
2457     test -n "$CC" && break
2458   done
2459 fi
2460 if test -z "$CC"; then
2461   ac_ct_CC=$CC
2462   for ac_prog in gcc
2463 do
2464   # Extract the first word of "$ac_prog", so it can be a program name with args.
2465 set dummy $ac_prog; ac_word=$2
2466 echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   if test -n "$ac_ct_CC"; then
2472   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479   for ac_exec_ext in '' $ac_executable_extensions; do
2480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481     ac_cv_prog_ac_ct_CC="$ac_prog"
2482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486 done
2487
2488 fi
2489 fi
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493 echo "${ECHO_T}$ac_ct_CC" >&6
2494 else
2495   echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6
2497 fi
2498
2499   test -n "$ac_ct_CC" && break
2500 done
2501
2502   CC=$ac_ct_CC
2503 fi
2504
2505
2506 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: no acceptable C compiler found in \$PATH
2509 See \`config.log' for more details." >&2;}
2510    { (exit 1); exit 1; }; }
2511
2512 # Provide some information about the compiler.
2513 echo "$as_me:$LINENO:" \
2514      "checking for C compiler version" >&5
2515 ac_compiler=`set X $ac_compile; echo $2`
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2517   (eval $ac_compiler --version </dev/null >&5) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2522   (eval $ac_compiler -v </dev/null >&5) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2527   (eval $ac_compiler -V </dev/null >&5) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }
2531
2532 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   cat >conftest.$ac_ext <<_ACEOF
2538 #line $LINENO "configure"
2539 /* confdefs.h.  */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h.  */
2544
2545 int
2546 main ()
2547 {
2548 #ifndef __GNUC__
2549        choke me
2550 #endif
2551
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558   (eval $ac_compile) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); } &&
2562          { ac_try='test -s conftest.$ac_objext'
2563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564   (eval $ac_try) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; }; then
2568   ac_compiler_gnu=yes
2569 else
2570   echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 ac_compiler_gnu=no
2574 fi
2575 rm -f conftest.$ac_objext conftest.$ac_ext
2576 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2577
2578 fi
2579 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2580 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2581 GCC=`test $ac_compiler_gnu = yes && echo yes`
2582 ac_test_CFLAGS=${CFLAGS+set}
2583 ac_save_CFLAGS=$CFLAGS
2584 CFLAGS="-g"
2585 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2586 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2587 if test "${ac_cv_prog_cc_g+set}" = set; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 /* confdefs.h.  */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h.  */
2597
2598 int
2599 main ()
2600 {
2601
2602   ;
2603   return 0;
2604 }
2605 _ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608   (eval $ac_compile) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_cv_prog_cc_g=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_cv_prog_cc_g=no
2624 fi
2625 rm -f conftest.$ac_objext conftest.$ac_ext
2626 fi
2627 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2628 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2629 if test "$ac_test_CFLAGS" = set; then
2630   CFLAGS=$ac_save_CFLAGS
2631 elif test $ac_cv_prog_cc_g = yes; then
2632   if test "$GCC" = yes; then
2633     CFLAGS="-g -O2"
2634   else
2635     CFLAGS="-g"
2636   fi
2637 else
2638   if test "$GCC" = yes; then
2639     CFLAGS="-O2"
2640   else
2641     CFLAGS=
2642   fi
2643 fi
2644 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2645 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2646 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   ac_cv_prog_cc_stdc=no
2650 ac_save_CC=$CC
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2653 /* confdefs.h.  */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h.  */
2658 #include <stdarg.h>
2659 #include <stdio.h>
2660 #include <sys/types.h>
2661 #include <sys/stat.h>
2662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2663 struct buf { int x; };
2664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2665 static char *e (p, i)
2666      char **p;
2667      int i;
2668 {
2669   return p[i];
2670 }
2671 static char *f (char * (*g) (char **, int), char **p, ...)
2672 {
2673   char *s;
2674   va_list v;
2675   va_start (v,p);
2676   s = g (p, va_arg (v,int));
2677   va_end (v);
2678   return s;
2679 }
2680 int test (int i, double x);
2681 struct s1 {int (*f) (int a);};
2682 struct s2 {int (*f) (double a);};
2683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2684 int argc;
2685 char **argv;
2686 int
2687 main ()
2688 {
2689 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 # Don't try gcc -ansi; that turns off useful extensions and
2695 # breaks some systems' header files.
2696 # AIX                   -qlanglvl=ansi
2697 # Ultrix and OSF/1      -std1
2698 # HP-UX 10.20 and later -Ae
2699 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2700 # SVR4                  -Xc -D__EXTENSIONS__
2701 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 do
2703   CC="$ac_save_CC $ac_arg"
2704   rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706   (eval $ac_compile) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -s conftest.$ac_objext'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; }; then
2716   ac_cv_prog_cc_stdc=$ac_arg
2717 break
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 fi
2723 rm -f conftest.$ac_objext
2724 done
2725 rm -f conftest.$ac_ext conftest.$ac_objext
2726 CC=$ac_save_CC
2727
2728 fi
2729
2730 case "x$ac_cv_prog_cc_stdc" in
2731   x|xno)
2732     echo "$as_me:$LINENO: result: none needed" >&5
2733 echo "${ECHO_T}none needed" >&6 ;;
2734   *)
2735     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2736 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2737     CC="$CC $ac_cv_prog_cc_stdc" ;;
2738 esac
2739
2740 # Some people use a C++ compiler to compile C.  Since we use `exit',
2741 # in C++ we need to declare it.  In case someone uses the same compiler
2742 # for both compiling C and C++ we need to have the C++ compiler decide
2743 # the declaration of exit, since it's the most demanding environment.
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #ifndef __cplusplus
2746   choke me
2747 #endif
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751   (eval $ac_compile) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); } &&
2755          { ac_try='test -s conftest.$ac_objext'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   for ac_declaration in \
2762    ''\
2763    '#include <stdlib.h>' \
2764    'extern "C" void std::exit (int) throw (); using std::exit;' \
2765    'extern "C" void std::exit (int); using std::exit;' \
2766    'extern "C" void exit (int) throw ();' \
2767    'extern "C" void exit (int);' \
2768    'void exit (int);'
2769 do
2770   cat >conftest.$ac_ext <<_ACEOF
2771 #line $LINENO "configure"
2772 /* confdefs.h.  */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h.  */
2777 #include <stdlib.h>
2778 $ac_declaration
2779 int
2780 main ()
2781 {
2782 exit (42);
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   :
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804 continue
2805 fi
2806 rm -f conftest.$ac_objext conftest.$ac_ext
2807   cat >conftest.$ac_ext <<_ACEOF
2808 #line $LINENO "configure"
2809 /* confdefs.h.  */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h.  */
2814 $ac_declaration
2815 int
2816 main ()
2817 {
2818 exit (42);
2819   ;
2820   return 0;
2821 }
2822 _ACEOF
2823 rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825   (eval $ac_compile) 2>&5
2826   ac_status=$?
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } &&
2829          { ac_try='test -s conftest.$ac_objext'
2830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831   (eval $ac_try) 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); }; }; then
2835   break
2836 else
2837   echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2839
2840 fi
2841 rm -f conftest.$ac_objext conftest.$ac_ext
2842 done
2843 rm -f conftest*
2844 if test -n "$ac_declaration"; then
2845   echo '#ifdef __cplusplus' >>confdefs.h
2846   echo $ac_declaration      >>confdefs.h
2847   echo '#endif'             >>confdefs.h
2848 fi
2849
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 fi
2855 rm -f conftest.$ac_objext conftest.$ac_ext
2856 ac_ext=c
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2868 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2869 # On Suns, sometimes $CPP names a directory.
2870 if test -n "$CPP" && test -d "$CPP"; then
2871   CPP=
2872 fi
2873 if test -z "$CPP"; then
2874   if test "${ac_cv_prog_CPP+set}" = set; then
2875   echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877       # Double quotes because CPP needs to be expanded
2878     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2879     do
2880       ac_preproc_ok=false
2881 for ac_c_preproc_warn_flag in '' yes
2882 do
2883   # Use a header file that comes with gcc, so configuring glibc
2884   # with a fresh cross-compiler works.
2885   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886   # <limits.h> exists even on freestanding compilers.
2887   # On the NeXT, cc -E runs the code through the compiler's parser,
2888   # not just through cpp. "Syntax error" is here to catch this case.
2889   cat >conftest.$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896 #ifdef __STDC__
2897 # include <limits.h>
2898 #else
2899 # include <assert.h>
2900 #endif
2901                      Syntax error
2902 _ACEOF
2903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2905   ac_status=$?
2906   grep -v '^ *+' conftest.er1 >conftest.err
2907   rm -f conftest.er1
2908   cat conftest.err >&5
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); } >/dev/null; then
2911   if test -s conftest.err; then
2912     ac_cpp_err=$ac_c_preproc_warn_flag
2913   else
2914     ac_cpp_err=
2915   fi
2916 else
2917   ac_cpp_err=yes
2918 fi
2919 if test -z "$ac_cpp_err"; then
2920   :
2921 else
2922   echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925   # Broken: fails on valid input.
2926 continue
2927 fi
2928 rm -f conftest.err conftest.$ac_ext
2929
2930   # OK, works on sane cases.  Now check whether non-existent headers
2931   # can be detected and how.
2932   cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2934 /* confdefs.h.  */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h.  */
2939 #include <ac_nonexistent.h>
2940 _ACEOF
2941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2943   ac_status=$?
2944   grep -v '^ *+' conftest.er1 >conftest.err
2945   rm -f conftest.er1
2946   cat conftest.err >&5
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } >/dev/null; then
2949   if test -s conftest.err; then
2950     ac_cpp_err=$ac_c_preproc_warn_flag
2951   else
2952     ac_cpp_err=
2953   fi
2954 else
2955   ac_cpp_err=yes
2956 fi
2957 if test -z "$ac_cpp_err"; then
2958   # Broken: success on invalid input.
2959 continue
2960 else
2961   echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964   # Passes both tests.
2965 ac_preproc_ok=:
2966 break
2967 fi
2968 rm -f conftest.err conftest.$ac_ext
2969
2970 done
2971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2972 rm -f conftest.err conftest.$ac_ext
2973 if $ac_preproc_ok; then
2974   break
2975 fi
2976
2977     done
2978     ac_cv_prog_CPP=$CPP
2979
2980 fi
2981   CPP=$ac_cv_prog_CPP
2982 else
2983   ac_cv_prog_CPP=$CPP
2984 fi
2985 echo "$as_me:$LINENO: result: $CPP" >&5
2986 echo "${ECHO_T}$CPP" >&6
2987 ac_preproc_ok=false
2988 for ac_c_preproc_warn_flag in '' yes
2989 do
2990   # Use a header file that comes with gcc, so configuring glibc
2991   # with a fresh cross-compiler works.
2992   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993   # <limits.h> exists even on freestanding compilers.
2994   # On the NeXT, cc -E runs the code through the compiler's parser,
2995   # not just through cpp. "Syntax error" is here to catch this case.
2996   cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 /* confdefs.h.  */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h.  */
3003 #ifdef __STDC__
3004 # include <limits.h>
3005 #else
3006 # include <assert.h>
3007 #endif
3008                      Syntax error
3009 _ACEOF
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3012   ac_status=$?
3013   grep -v '^ *+' conftest.er1 >conftest.err
3014   rm -f conftest.er1
3015   cat conftest.err >&5
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); } >/dev/null; then
3018   if test -s conftest.err; then
3019     ac_cpp_err=$ac_c_preproc_warn_flag
3020   else
3021     ac_cpp_err=
3022   fi
3023 else
3024   ac_cpp_err=yes
3025 fi
3026 if test -z "$ac_cpp_err"; then
3027   :
3028 else
3029   echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032   # Broken: fails on valid input.
3033 continue
3034 fi
3035 rm -f conftest.err conftest.$ac_ext
3036
3037   # OK, works on sane cases.  Now check whether non-existent headers
3038   # can be detected and how.
3039   cat >conftest.$ac_ext <<_ACEOF
3040 #line $LINENO "configure"
3041 /* confdefs.h.  */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h.  */
3046 #include <ac_nonexistent.h>
3047 _ACEOF
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } >/dev/null; then
3056   if test -s conftest.err; then
3057     ac_cpp_err=$ac_c_preproc_warn_flag
3058   else
3059     ac_cpp_err=
3060   fi
3061 else
3062   ac_cpp_err=yes
3063 fi
3064 if test -z "$ac_cpp_err"; then
3065   # Broken: success on invalid input.
3066 continue
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071   # Passes both tests.
3072 ac_preproc_ok=:
3073 break
3074 fi
3075 rm -f conftest.err conftest.$ac_ext
3076
3077 done
3078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079 rm -f conftest.err conftest.$ac_ext
3080 if $ac_preproc_ok; then
3081   :
3082 else
3083   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3086 See \`config.log' for more details." >&2;}
3087    { (exit 1); exit 1; }; }
3088 fi
3089
3090 ac_ext=c
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095
3096
3097 if test "$GCC" != "yes"
3098 then
3099         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3100 echo "$as_me: error: gcc required but not found" >&2;}
3101    { (exit 1); exit 1; }; }
3102 fi
3103 if test "$GXX" != "yes"
3104 then
3105         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3106 echo "$as_me: error: g++ required but not found" >&2;}
3107    { (exit 1); exit 1; }; }
3108 fi
3109
3110 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3111 if test "$gccmajor" -lt "3"
3112 then
3113         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3114 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3115    { (exit 1); exit 1; }; }
3116 fi
3117
3118  echo "$as_me:$LINENO: checking for GNU make" >&5
3119 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3120 if test "${_cv_gnu_make_command+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   _cv_gnu_make_command='' ;
3124                 for a in "$MAKE" make gmake gnumake ; do
3125                         if test -z "$a" ; then continue ; fi ;
3126                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3127                                 _cv_gnu_make_command=$a ;
3128                                 break;
3129                         fi
3130                 done ;
3131
3132 fi
3133 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3134 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3135         if test  "x$_cv_gnu_make_command" != "x"  ; then
3136                 ifGNUmake='' ;
3137         else
3138                 ifGNUmake='#' ;
3139                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3140 echo "${ECHO_T}\"Not found\"" >&6;
3141         fi
3142
3143
3144 if test -z "$_cv_gnu_make_command"
3145 then
3146         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3147 echo "$as_me: error: GNU Make required but not found" >&2;}
3148    { (exit 1); exit 1; }; }
3149 fi
3150
3151
3152 echo "$as_me:$LINENO: checking " >&5
3153 echo $ECHO_N "checking ... $ECHO_C" >&6
3154 if test "${ac_cv_has_flex+set}" = set; then
3155   echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157   for ac_prog in flex lex
3158 do
3159   # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_LEX+set}" = set; then
3164   echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166   if test -n "$LEX"; then
3167   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174   for ac_exec_ext in '' $ac_executable_extensions; do
3175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176     ac_cv_prog_LEX="$ac_prog"
3177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181 done
3182
3183 fi
3184 fi
3185 LEX=$ac_cv_prog_LEX
3186 if test -n "$LEX"; then
3187   echo "$as_me:$LINENO: result: $LEX" >&5
3188 echo "${ECHO_T}$LEX" >&6
3189 else
3190   echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3192 fi
3193
3194   test -n "$LEX" && break
3195 done
3196 test -n "$LEX" || LEX=":"
3197
3198 if test -z "$LEXLIB"
3199 then
3200   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3201 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3202 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   ac_check_lib_save_LIBS=$LIBS
3206 LIBS="-lfl  $LIBS"
3207 cat >conftest.$ac_ext <<_ACEOF
3208 #line $LINENO "configure"
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214
3215 /* Override any gcc2 internal prototype to avoid an error.  */
3216 #ifdef __cplusplus
3217 extern "C"
3218 #endif
3219 /* We use char because int might match the return type of a gcc2
3220    builtin and then its argument prototype would still apply.  */
3221 char yywrap ();
3222 int
3223 main ()
3224 {
3225 yywrap ();
3226   ;
3227   return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.$ac_objext conftest$ac_exeext
3231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3232   (eval $ac_link) 2>&5
3233   ac_status=$?
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); } &&
3236          { ac_try='test -s conftest$ac_exeext'
3237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238   (eval $ac_try) 2>&5
3239   ac_status=$?
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); }; }; then
3242   ac_cv_lib_fl_yywrap=yes
3243 else
3244   echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247 ac_cv_lib_fl_yywrap=no
3248 fi
3249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3250 LIBS=$ac_check_lib_save_LIBS
3251 fi
3252 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3253 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3254 if test $ac_cv_lib_fl_yywrap = yes; then
3255   LEXLIB="-lfl"
3256 else
3257   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3258 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3259 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262   ac_check_lib_save_LIBS=$LIBS
3263 LIBS="-ll  $LIBS"
3264 cat >conftest.$ac_ext <<_ACEOF
3265 #line $LINENO "configure"
3266 /* confdefs.h.  */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h.  */
3271
3272 /* Override any gcc2 internal prototype to avoid an error.  */
3273 #ifdef __cplusplus
3274 extern "C"
3275 #endif
3276 /* We use char because int might match the return type of a gcc2
3277    builtin and then its argument prototype would still apply.  */
3278 char yywrap ();
3279 int
3280 main ()
3281 {
3282 yywrap ();
3283   ;
3284   return 0;
3285 }
3286 _ACEOF
3287 rm -f conftest.$ac_objext conftest$ac_exeext
3288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3289   (eval $ac_link) 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); } &&
3293          { ac_try='test -s conftest$ac_exeext'
3294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295   (eval $ac_try) 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); }; }; then
3299   ac_cv_lib_l_yywrap=yes
3300 else
3301   echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 ac_cv_lib_l_yywrap=no
3305 fi
3306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3307 LIBS=$ac_check_lib_save_LIBS
3308 fi
3309 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3310 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3311 if test $ac_cv_lib_l_yywrap = yes; then
3312   LEXLIB="-ll"
3313 fi
3314
3315 fi
3316
3317 fi
3318
3319 if test "x$LEX" != "x:"; then
3320   echo "$as_me:$LINENO: checking lex output file root" >&5
3321 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3322 if test "${ac_cv_prog_lex_root+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   # The minimal lex program is just a single line: %%.  But some broken lexes
3326 # (Solaris, I think it was) want two %% lines, so accommodate them.
3327 cat >conftest.l <<_ACEOF
3328 %%
3329 %%
3330 _ACEOF
3331 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3332   (eval $LEX conftest.l) 2>&5
3333   ac_status=$?
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); }
3336 if test -f lex.yy.c; then
3337   ac_cv_prog_lex_root=lex.yy
3338 elif test -f lexyy.c; then
3339   ac_cv_prog_lex_root=lexyy
3340 else
3341   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3342 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3343    { (exit 1); exit 1; }; }
3344 fi
3345 fi
3346 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3347 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3348 rm -f conftest.l
3349 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3350
3351 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3352 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3353 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   # POSIX says lex can declare yytext either as a pointer or an array; the
3357 # default is implementation-dependent. Figure out which it is, since
3358 # not all implementations provide the %pointer and %array declarations.
3359 ac_cv_prog_lex_yytext_pointer=no
3360 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3361 ac_save_LIBS=$LIBS
3362 LIBS="$LIBS $LEXLIB"
3363 cat >conftest.$ac_ext <<_ACEOF
3364 `cat $LEX_OUTPUT_ROOT.c`
3365 _ACEOF
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368   (eval $ac_link) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); } &&
3372          { ac_try='test -s conftest$ac_exeext'
3373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374   (eval $ac_try) 2>&5
3375   ac_status=$?
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); }; }; then
3378   ac_cv_prog_lex_yytext_pointer=yes
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 fi
3384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3385 LIBS=$ac_save_LIBS
3386 rm -f "${LEX_OUTPUT_ROOT}.c"
3387
3388 fi
3389 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3390 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3391 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3392
3393 cat >>confdefs.h <<\_ACEOF
3394 #define YYTEXT_POINTER 1
3395 _ACEOF
3396
3397 fi
3398
3399 fi
3400
3401 fi
3402 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3403 echo "${ECHO_T}$ac_cv_has_flex" >&6
3404 if test "$LEX" != "flex"; then
3405   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3406 echo "$as_me: error: flex not found but required" >&2;}
3407    { (exit 1); exit 1; }; }
3408 fi
3409
3410 echo "$as_me:$LINENO: checking " >&5
3411 echo $ECHO_N "checking ... $ECHO_C" >&6
3412 if test "${ac_cv_has_bison+set}" = set; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   for ac_prog in 'bison -y' byacc
3416 do
3417   # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421 if test "${ac_cv_prog_YACC+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   if test -n "$YACC"; then
3425   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432   for ac_exec_ext in '' $ac_executable_extensions; do
3433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434     ac_cv_prog_YACC="$ac_prog"
3435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439 done
3440
3441 fi
3442 fi
3443 YACC=$ac_cv_prog_YACC
3444 if test -n "$YACC"; then
3445   echo "$as_me:$LINENO: result: $YACC" >&5
3446 echo "${ECHO_T}$YACC" >&6
3447 else
3448   echo "$as_me:$LINENO: result: no" >&5
3449 echo "${ECHO_T}no" >&6
3450 fi
3451
3452   test -n "$YACC" && break
3453 done
3454 test -n "$YACC" || YACC="yacc"
3455
3456
3457 fi
3458 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3459 echo "${ECHO_T}$ac_cv_has_bison" >&6
3460 if test "$YACC" != "bison -y"; then
3461   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3462 echo "$as_me: error: bison not found but required" >&2;}
3463    { (exit 1); exit 1; }; }
3464 else
3465   BISON=bison
3466
3467 fi
3468
3469 # Check whether --enable-shared or --disable-shared was given.
3470 if test "${enable_shared+set}" = set; then
3471   enableval="$enable_shared"
3472   p=${PACKAGE-default}
3473     case $enableval in
3474     yes) enable_shared=yes ;;
3475     no) enable_shared=no ;;
3476     *)
3477       enable_shared=no
3478       # Look at the argument we got.  We use all the common list separators.
3479       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3480       for pkg in $enableval; do
3481         IFS="$lt_save_ifs"
3482         if test "X$pkg" = "X$p"; then
3483           enable_shared=yes
3484         fi
3485       done
3486       IFS="$lt_save_ifs"
3487       ;;
3488     esac
3489 else
3490   enable_shared=yes
3491 fi;
3492
3493 # Check whether --enable-static or --disable-static was given.
3494 if test "${enable_static+set}" = set; then
3495   enableval="$enable_static"
3496   p=${PACKAGE-default}
3497     case $enableval in
3498     yes) enable_static=yes ;;
3499     no) enable_static=no ;;
3500     *)
3501      enable_static=no
3502       # Look at the argument we got.  We use all the common list separators.
3503       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3504       for pkg in $enableval; do
3505         IFS="$lt_save_ifs"
3506         if test "X$pkg" = "X$p"; then
3507           enable_static=yes
3508         fi
3509       done
3510       IFS="$lt_save_ifs"
3511       ;;
3512     esac
3513 else
3514   enable_static=yes
3515 fi;
3516
3517 # Check whether --enable-fast-install or --disable-fast-install was given.
3518 if test "${enable_fast_install+set}" = set; then
3519   enableval="$enable_fast_install"
3520   p=${PACKAGE-default}
3521     case $enableval in
3522     yes) enable_fast_install=yes ;;
3523     no) enable_fast_install=no ;;
3524     *)
3525       enable_fast_install=no
3526       # Look at the argument we got.  We use all the common list separators.
3527       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3528       for pkg in $enableval; do
3529         IFS="$lt_save_ifs"
3530         if test "X$pkg" = "X$p"; then
3531           enable_fast_install=yes
3532         fi
3533       done
3534       IFS="$lt_save_ifs"
3535       ;;
3536     esac
3537 else
3538   enable_fast_install=yes
3539 fi;
3540
3541 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3542 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3543 if test "${lt_cv_path_SED+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   # Loop through the user's path and test for sed and gsed.
3547 # Then use that list of sed's as ones to test for truncation.
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553   for lt_ac_prog in sed gsed; do
3554     for ac_exec_ext in '' $ac_executable_extensions; do
3555       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3556         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3557       fi
3558     done
3559   done
3560 done
3561 lt_ac_max=0
3562 lt_ac_count=0
3563 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3564 # along with /bin/sed that truncates output.
3565 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3566   test ! -f $lt_ac_sed && break
3567   cat /dev/null > conftest.in
3568   lt_ac_count=0
3569   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3570   # Check for GNU sed and select it if it is found.
3571   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3572     lt_cv_path_SED=$lt_ac_sed
3573     break
3574   fi
3575   while true; do
3576     cat conftest.in conftest.in >conftest.tmp
3577     mv conftest.tmp conftest.in
3578     cp conftest.in conftest.nl
3579     echo >>conftest.nl
3580     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3581     cmp -s conftest.out conftest.nl || break
3582     # 10000 chars as input seems more than enough
3583     test $lt_ac_count -gt 10 && break
3584     lt_ac_count=`expr $lt_ac_count + 1`
3585     if test $lt_ac_count -gt $lt_ac_max; then
3586       lt_ac_max=$lt_ac_count
3587       lt_cv_path_SED=$lt_ac_sed
3588     fi
3589   done
3590 done
3591 SED=$lt_cv_path_SED
3592
3593 fi
3594
3595 echo "$as_me:$LINENO: result: $SED" >&5
3596 echo "${ECHO_T}$SED" >&6
3597
3598 echo "$as_me:$LINENO: checking for egrep" >&5
3599 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3600 if test "${ac_cv_prog_egrep+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3604     then ac_cv_prog_egrep='grep -E'
3605     else ac_cv_prog_egrep='egrep'
3606     fi
3607 fi
3608 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3609 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3610  EGREP=$ac_cv_prog_egrep
3611
3612
3613
3614 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3615 if test "${with_gnu_ld+set}" = set; then
3616   withval="$with_gnu_ld"
3617   test "$withval" = no || with_gnu_ld=yes
3618 else
3619   with_gnu_ld=no
3620 fi;
3621 ac_prog=ld
3622 if test "$GCC" = yes; then
3623   # Check if gcc -print-prog-name=ld gives a path.
3624   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3625 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3626   case $host in
3627   *-*-mingw*)
3628     # gcc leaves a trailing carriage return which upsets mingw
3629     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3630   *)
3631     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3632   esac
3633   case $ac_prog in
3634     # Accept absolute paths.
3635     [\\/]* | ?:[\\/]*)
3636       re_direlt='/[^/][^/]*/\.\./'
3637       # Canonicalize the path of ld
3638       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3639       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3640         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3641       done
3642       test -z "$LD" && LD="$ac_prog"
3643       ;;
3644   "")
3645     # If it fails, then pretend we aren't using GCC.
3646     ac_prog=ld
3647     ;;
3648   *)
3649     # If it is relative, then search for the first ld in PATH.
3650     with_gnu_ld=unknown
3651     ;;
3652   esac
3653 elif test "$with_gnu_ld" = yes; then
3654   echo "$as_me:$LINENO: checking for GNU ld" >&5
3655 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3656 else
3657   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3658 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3659 fi
3660 if test "${lt_cv_path_LD+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   if test -z "$LD"; then
3664   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3665   for ac_dir in $PATH; do
3666     IFS="$lt_save_ifs"
3667     test -z "$ac_dir" && ac_dir=.
3668     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3669       lt_cv_path_LD="$ac_dir/$ac_prog"
3670       # Check to see if the program is GNU ld.  I'd rather use --version,
3671       # but apparently some GNU ld's only accept -v.
3672       # Break only if it was the GNU/non-GNU ld that we prefer.
3673       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3674       *GNU* | *'with BFD'*)
3675         test "$with_gnu_ld" != no && break
3676         ;;
3677       *)
3678         test "$with_gnu_ld" != yes && break
3679         ;;
3680       esac
3681     fi
3682   done
3683   IFS="$lt_save_ifs"
3684 else
3685   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3686 fi
3687 fi
3688
3689 LD="$lt_cv_path_LD"
3690 if test -n "$LD"; then
3691   echo "$as_me:$LINENO: result: $LD" >&5
3692 echo "${ECHO_T}$LD" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3698 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3699    { (exit 1); exit 1; }; }
3700 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3701 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3702 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3706 case `"$LD" -v 2>&1 </dev/null` in
3707 *GNU* | *'with BFD'*)
3708   lt_cv_prog_gnu_ld=yes
3709   ;;
3710 *)
3711   lt_cv_prog_gnu_ld=no
3712   ;;
3713 esac
3714 fi
3715 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3716 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3717 with_gnu_ld=$lt_cv_prog_gnu_ld
3718
3719
3720 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3721 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3722 if test "${lt_cv_ld_reload_flag+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   lt_cv_ld_reload_flag='-r'
3726 fi
3727 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3728 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3729 reload_flag=$lt_cv_ld_reload_flag
3730 case $reload_flag in
3731 "" | " "*) ;;
3732 *) reload_flag=" $reload_flag" ;;
3733 esac
3734 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3735
3736 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3737 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3738 if test "${lt_cv_path_NM+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   if test -n "$NM"; then
3742   # Let the user override the test.
3743   lt_cv_path_NM="$NM"
3744 else
3745   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3746   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3747     IFS="$lt_save_ifs"
3748     test -z "$ac_dir" && ac_dir=.
3749     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3750     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3751       # Check to see if the nm accepts a BSD-compat flag.
3752       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3753       #   nm: unknown option "B" ignored
3754       # Tru64's nm complains that /dev/null is an invalid object file
3755       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3756       */dev/null* | *'Invalid file or object type'*)
3757         lt_cv_path_NM="$tmp_nm -B"
3758         break
3759         ;;
3760       *)
3761         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3762         */dev/null*)
3763           lt_cv_path_NM="$tmp_nm -p"
3764           break
3765           ;;
3766         *)
3767           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3768           continue # so that we can try to find one that supports BSD flags
3769           ;;
3770         esac
3771       esac
3772     fi
3773   done
3774   IFS="$lt_save_ifs"
3775   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3776 fi
3777 fi
3778 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3779 echo "${ECHO_T}$lt_cv_path_NM" >&6
3780 NM="$lt_cv_path_NM"
3781
3782 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3783 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3784 LN_S=$as_ln_s
3785 if test "$LN_S" = "ln -s"; then
3786   echo "$as_me:$LINENO: result: yes" >&5
3787 echo "${ECHO_T}yes" >&6
3788 else
3789   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3790 echo "${ECHO_T}no, using $LN_S" >&6
3791 fi
3792
3793 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3794 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3795 if test "${lt_cv_deplibs_check_method+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   lt_cv_file_magic_cmd='$MAGIC_CMD'
3799 lt_cv_file_magic_test_file=
3800 lt_cv_deplibs_check_method='unknown'
3801 # Need to set the preceding variable on all platforms that support
3802 # interlibrary dependencies.
3803 # 'none' -- dependencies not supported.
3804 # `unknown' -- same as none, but documents that we really don't know.
3805 # 'pass_all' -- all dependencies passed with no checks.
3806 # 'test_compile' -- check by making test program.
3807 # 'file_magic [[regex]]' -- check by looking for files in library path
3808 # which responds to the $file_magic_cmd with a given extended regex.
3809 # If you have `file' or equivalent on your system and you're not sure
3810 # whether `pass_all' will *always* work, you probably want this one.
3811
3812 case $host_os in
3813 aix4* | aix5*)
3814   lt_cv_deplibs_check_method=pass_all
3815   ;;
3816
3817 beos*)
3818   lt_cv_deplibs_check_method=pass_all
3819   ;;
3820
3821 bsdi4*)
3822   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3823   lt_cv_file_magic_cmd='/usr/bin/file -L'
3824   lt_cv_file_magic_test_file=/shlib/libc.so
3825   ;;
3826
3827 cygwin* | mingw* | pw32*)
3828   # win32_libid is a shell function defined in ltmain.sh
3829   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3830   lt_cv_file_magic_cmd='win32_libid'
3831   ;;
3832
3833 darwin* | rhapsody*)
3834   # this will be overwritten by pass_all, but leave it in just in case
3835   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3836   lt_cv_file_magic_cmd='/usr/bin/file -L'
3837   case "$host_os" in
3838   rhapsody* | darwin1.[012])
3839     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3840     ;;
3841   *) # Darwin 1.3 on
3842     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3843     ;;
3844   esac
3845   lt_cv_deplibs_check_method=pass_all
3846   ;;
3847
3848 freebsd*)
3849   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3850     case $host_cpu in
3851     i*86 )
3852       # Not sure whether the presence of OpenBSD here was a mistake.
3853       # Let's accept both of them until this is cleared up.
3854       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3855       lt_cv_file_magic_cmd=/usr/bin/file
3856       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3857       ;;
3858     esac
3859   else
3860     lt_cv_deplibs_check_method=pass_all
3861   fi
3862   ;;
3863
3864 gnu*)
3865   lt_cv_deplibs_check_method=pass_all
3866   ;;
3867
3868 hpux10.20* | hpux11*)
3869   lt_cv_file_magic_cmd=/usr/bin/file
3870   case "$host_cpu" in
3871   ia64*)
3872     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3873     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3874     ;;
3875   hppa*64*)
3876     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]'
3877     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3878     ;;
3879   *)
3880     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3881     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3882     ;;
3883   esac
3884   ;;
3885
3886 irix5* | irix6* | nonstopux*)
3887   case $host_os in
3888   irix5* | nonstopux*)
3889     # this will be overridden with pass_all, but let us keep it just in case
3890     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3891     ;;
3892   *)
3893     case $LD in
3894     *-32|*"-32 ") libmagic=32-bit;;
3895     *-n32|*"-n32 ") libmagic=N32;;
3896     *-64|*"-64 ") libmagic=64-bit;;
3897     *) libmagic=never-match;;
3898     esac
3899     # this will be overridden with pass_all, but let us keep it just in case
3900     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3901     ;;
3902   esac
3903   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3904   lt_cv_deplibs_check_method=pass_all
3905   ;;
3906
3907 # This must be Linux ELF.
3908 linux*)
3909   case $host_cpu in
3910   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3911     lt_cv_deplibs_check_method=pass_all ;;
3912   *)
3913     # glibc up to 2.1.1 does not perform some relocations on ARM
3914     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3915   esac
3916   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3917   ;;
3918
3919 netbsd*)
3920   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3921     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3922   else
3923     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3924   fi
3925   ;;
3926
3927 newos6*)
3928   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3929   lt_cv_file_magic_cmd=/usr/bin/file
3930   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3931   ;;
3932
3933 nto-qnx)
3934   lt_cv_deplibs_check_method=unknown
3935   ;;
3936
3937 openbsd*)
3938   lt_cv_file_magic_cmd=/usr/bin/file
3939   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3940   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3941     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3942   else
3943     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3944   fi
3945   ;;
3946
3947 osf3* | osf4* | osf5*)
3948   # this will be overridden with pass_all, but let us keep it just in case
3949   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3950   lt_cv_file_magic_test_file=/shlib/libc.so
3951   lt_cv_deplibs_check_method=pass_all
3952   ;;
3953
3954 sco3.2v5*)
3955   lt_cv_deplibs_check_method=pass_all
3956   ;;
3957
3958 solaris*)
3959   lt_cv_deplibs_check_method=pass_all
3960   lt_cv_file_magic_test_file=/lib/libc.so
3961   ;;
3962
3963 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3964   case $host_vendor in
3965   motorola)
3966     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]'
3967     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3968     ;;
3969   ncr)
3970     lt_cv_deplibs_check_method=pass_all
3971     ;;
3972   sequent)
3973     lt_cv_file_magic_cmd='/bin/file'
3974     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3975     ;;
3976   sni)
3977     lt_cv_file_magic_cmd='/bin/file'
3978     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3979     lt_cv_file_magic_test_file=/lib/libc.so
3980     ;;
3981   siemens)
3982     lt_cv_deplibs_check_method=pass_all
3983     ;;
3984   esac
3985   ;;
3986
3987 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3988   lt_cv_deplibs_check_method=pass_all
3989   ;;
3990 esac
3991
3992 fi
3993 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3994 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3995 file_magic_cmd=$lt_cv_file_magic_cmd
3996 deplibs_check_method=$lt_cv_deplibs_check_method
3997 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3998
3999
4000
4001
4002 # If no C compiler was specified, use CC.
4003 LTCC=${LTCC-"$CC"}
4004
4005 # Allow CC to be a program name with arguments.
4006 compiler=$CC
4007
4008 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4009 if test "${enable_libtool_lock+set}" = set; then
4010   enableval="$enable_libtool_lock"
4011
4012 fi;
4013 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4014
4015 # Some flags need to be propagated to the compiler or linker for good
4016 # libtool support.
4017 case $host in
4018 ia64-*-hpux*)
4019   # Find out which ABI we are using.
4020   echo 'int i;' > conftest.$ac_ext
4021   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022   (eval $ac_compile) 2>&5
4023   ac_status=$?
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); }; then
4026     case `/usr/bin/file conftest.$ac_objext` in
4027     *ELF-32*)
4028       HPUX_IA64_MODE="32"
4029       ;;
4030     *ELF-64*)
4031       HPUX_IA64_MODE="64"
4032       ;;
4033     esac
4034   fi
4035   rm -rf conftest*
4036   ;;
4037 *-*-irix6*)
4038   # Find out which ABI we are using.
4039   echo '#line 4039 "configure"' > conftest.$ac_ext
4040   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041   (eval $ac_compile) 2>&5
4042   ac_status=$?
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); }; then
4045    if test "$lt_cv_prog_gnu_ld" = yes; then
4046     case `/usr/bin/file conftest.$ac_objext` in
4047     *32-bit*)
4048       LD="${LD-ld} -melf32bsmip"
4049       ;;
4050     *N32*)
4051       LD="${LD-ld} -melf32bmipn32"
4052       ;;
4053     *64-bit*)
4054       LD="${LD-ld} -melf64bmip"
4055       ;;
4056     esac
4057    else
4058     case `/usr/bin/file conftest.$ac_objext` in
4059     *32-bit*)
4060       LD="${LD-ld} -32"
4061       ;;
4062     *N32*)
4063       LD="${LD-ld} -n32"
4064       ;;
4065     *64-bit*)
4066       LD="${LD-ld} -64"
4067       ;;
4068     esac
4069    fi
4070   fi
4071   rm -rf conftest*
4072   ;;
4073
4074 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4075   # Find out which ABI we are using.
4076   echo 'int i;' > conftest.$ac_ext
4077   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078   (eval $ac_compile) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; then
4082     case "`/usr/bin/file conftest.o`" in
4083     *32-bit*)
4084       case $host in
4085         x86_64-*linux*)
4086           LD="${LD-ld} -m elf_i386"
4087           ;;
4088         ppc64-*linux*)
4089           LD="${LD-ld} -m elf32ppclinux"
4090           ;;
4091         s390x-*linux*)
4092           LD="${LD-ld} -m elf_s390"
4093           ;;
4094         sparc64-*linux*)
4095           LD="${LD-ld} -m elf32_sparc"
4096           ;;
4097       esac
4098       ;;
4099     *64-bit*)
4100       case $host in
4101         x86_64-*linux*)
4102           LD="${LD-ld} -m elf_x86_64"
4103           ;;
4104         ppc*-*linux*|powerpc*-*linux*)
4105           LD="${LD-ld} -m elf64ppc"
4106           ;;
4107         s390*-*linux*)
4108           LD="${LD-ld} -m elf64_s390"
4109           ;;
4110         sparc*-*linux*)
4111           LD="${LD-ld} -m elf64_sparc"
4112           ;;
4113       esac
4114       ;;
4115     esac
4116   fi
4117   rm -rf conftest*
4118   ;;
4119
4120 *-*-sco3.2v5*)
4121   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4122   SAVE_CFLAGS="$CFLAGS"
4123   CFLAGS="$CFLAGS -belf"
4124   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4125 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4126 if test "${lt_cv_cc_needs_belf+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
4135      cat >conftest.$ac_ext <<_ACEOF
4136 #line $LINENO "configure"
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142
4143 int
4144 main ()
4145 {
4146
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext conftest$ac_exeext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153   (eval $ac_link) 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); } &&
4157          { ac_try='test -s conftest$ac_exeext'
4158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159   (eval $ac_try) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }; }; then
4163   lt_cv_cc_needs_belf=yes
4164 else
4165   echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 lt_cv_cc_needs_belf=no
4169 fi
4170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4171      ac_ext=c
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176
4177 fi
4178 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4179 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4180   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4181     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4182     CFLAGS="$SAVE_CFLAGS"
4183   fi
4184   ;;
4185
4186 esac
4187
4188 need_locks="$enable_libtool_lock"
4189
4190
4191
4192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4194 if test "${ac_cv_header_stdc+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   cat >conftest.$ac_ext <<_ACEOF
4198 #line $LINENO "configure"
4199 /* confdefs.h.  */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h.  */
4204 #include <stdlib.h>
4205 #include <stdarg.h>
4206 #include <string.h>
4207 #include <float.h>
4208
4209 int
4210 main ()
4211 {
4212
4213   ;
4214   return 0;
4215 }
4216 _ACEOF
4217 rm -f conftest.$ac_objext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219   (eval $ac_compile) 2>&5
4220   ac_status=$?
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); } &&
4223          { ac_try='test -s conftest.$ac_objext'
4224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225   (eval $ac_try) 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); }; }; then
4229   ac_cv_header_stdc=yes
4230 else
4231   echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 ac_cv_header_stdc=no
4235 fi
4236 rm -f conftest.$ac_objext conftest.$ac_ext
4237
4238 if test $ac_cv_header_stdc = yes; then
4239   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4240   cat >conftest.$ac_ext <<_ACEOF
4241 #line $LINENO "configure"
4242 /* confdefs.h.  */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h.  */
4247 #include <string.h>
4248
4249 _ACEOF
4250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4251   $EGREP "memchr" >/dev/null 2>&1; then
4252   :
4253 else
4254   ac_cv_header_stdc=no
4255 fi
4256 rm -f conftest*
4257
4258 fi
4259
4260 if test $ac_cv_header_stdc = yes; then
4261   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4262   cat >conftest.$ac_ext <<_ACEOF
4263 #line $LINENO "configure"
4264 /* confdefs.h.  */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h.  */
4269 #include <stdlib.h>
4270
4271 _ACEOF
4272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273   $EGREP "free" >/dev/null 2>&1; then
4274   :
4275 else
4276   ac_cv_header_stdc=no
4277 fi
4278 rm -f conftest*
4279
4280 fi
4281
4282 if test $ac_cv_header_stdc = yes; then
4283   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4284   if test "$cross_compiling" = yes; then
4285   :
4286 else
4287   cat >conftest.$ac_ext <<_ACEOF
4288 #line $LINENO "configure"
4289 /* confdefs.h.  */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h.  */
4294 #include <ctype.h>
4295 #if ((' ' & 0x0FF) == 0x020)
4296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4298 #else
4299 # define ISLOWER(c) \
4300                    (('a' <= (c) && (c) <= 'i') \
4301                      || ('j' <= (c) && (c) <= 'r') \
4302                      || ('s' <= (c) && (c) <= 'z'))
4303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4304 #endif
4305
4306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4307 int
4308 main ()
4309 {
4310   int i;
4311   for (i = 0; i < 256; i++)
4312     if (XOR (islower (i), ISLOWER (i))
4313         || toupper (i) != TOUPPER (i))
4314       exit(2);
4315   exit (0);
4316 }
4317 _ACEOF
4318 rm -f conftest$ac_exeext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320   (eval $ac_link) 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325   (eval $ac_try) 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; }; then
4329   :
4330 else
4331   echo "$as_me: program exited with status $ac_status" >&5
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4334
4335 ( exit $ac_status )
4336 ac_cv_header_stdc=no
4337 fi
4338 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 fi
4341 fi
4342 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4343 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4344 if test $ac_cv_header_stdc = yes; then
4345
4346 cat >>confdefs.h <<\_ACEOF
4347 #define STDC_HEADERS 1
4348 _ACEOF
4349
4350 fi
4351
4352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4363                   inttypes.h stdint.h unistd.h
4364 do
4365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4366 echo "$as_me:$LINENO: checking for $ac_header" >&5
4367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   cat >conftest.$ac_ext <<_ACEOF
4372 #line $LINENO "configure"
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378 $ac_includes_default
4379
4380 #include <$ac_header>
4381 _ACEOF
4382 rm -f conftest.$ac_objext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384   (eval $ac_compile) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); } &&
4388          { ac_try='test -s conftest.$ac_objext'
4389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390   (eval $ac_try) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }; }; then
4394   eval "$as_ac_Header=yes"
4395 else
4396   echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 eval "$as_ac_Header=no"
4400 fi
4401 rm -f conftest.$ac_objext conftest.$ac_ext
4402 fi
4403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4406   cat >>confdefs.h <<_ACEOF
4407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408 _ACEOF
4409
4410 fi
4411
4412 done
4413
4414
4415
4416 for ac_header in dlfcn.h
4417 do
4418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4420   echo "$as_me:$LINENO: checking for $ac_header" >&5
4421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 fi
4425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4427 else
4428   # Is the header compilable?
4429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4431 cat >conftest.$ac_ext <<_ACEOF
4432 #line $LINENO "configure"
4433 /* confdefs.h.  */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h.  */
4438 $ac_includes_default
4439 #include <$ac_header>
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443   (eval $ac_compile) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); } &&
4447          { ac_try='test -s conftest.$ac_objext'
4448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449   (eval $ac_try) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); }; }; then
4453   ac_header_compiler=yes
4454 else
4455   echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458 ac_header_compiler=no
4459 fi
4460 rm -f conftest.$ac_objext conftest.$ac_ext
4461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4462 echo "${ECHO_T}$ac_header_compiler" >&6
4463
4464 # Is the header present?
4465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 /* confdefs.h.  */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h.  */
4474 #include <$ac_header>
4475 _ACEOF
4476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } >/dev/null; then
4484   if test -s conftest.err; then
4485     ac_cpp_err=$ac_c_preproc_warn_flag
4486   else
4487     ac_cpp_err=
4488   fi
4489 else
4490   ac_cpp_err=yes
4491 fi
4492 if test -z "$ac_cpp_err"; then
4493   ac_header_preproc=yes
4494 else
4495   echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498   ac_header_preproc=no
4499 fi
4500 rm -f conftest.err conftest.$ac_ext
4501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4502 echo "${ECHO_T}$ac_header_preproc" >&6
4503
4504 # So?  What about this header?
4505 case $ac_header_compiler:$ac_header_preproc in
4506   yes:no )
4507     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4511     (
4512       cat <<\_ASBOX
4513 ## ------------------------------------ ##
4514 ## Report this to bug-autoconf@gnu.org. ##
4515 ## ------------------------------------ ##
4516 _ASBOX
4517     ) |
4518       sed "s/^/$as_me: WARNING:     /" >&2
4519     ;;
4520   no:yes )
4521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4523     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4527     (
4528       cat <<\_ASBOX
4529 ## ------------------------------------ ##
4530 ## Report this to bug-autoconf@gnu.org. ##
4531 ## ------------------------------------ ##
4532 _ASBOX
4533     ) |
4534       sed "s/^/$as_me: WARNING:     /" >&2
4535     ;;
4536 esac
4537 echo "$as_me:$LINENO: checking for $ac_header" >&5
4538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   eval "$as_ac_Header=$ac_header_preproc"
4543 fi
4544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4546
4547 fi
4548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4549   cat >>confdefs.h <<_ACEOF
4550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551 _ACEOF
4552
4553 fi
4554
4555 done
4556
4557 ac_ext=cc
4558 ac_cpp='$CXXCPP $CPPFLAGS'
4559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4562 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4563 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4564 if test -z "$CXXCPP"; then
4565   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568       # Double quotes because CXXCPP needs to be expanded
4569     for CXXCPP in "$CXX -E" "/lib/cpp"
4570     do
4571       ac_preproc_ok=false
4572 for ac_cxx_preproc_warn_flag in '' yes
4573 do
4574   # Use a header file that comes with gcc, so configuring glibc
4575   # with a fresh cross-compiler works.
4576   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4577   # <limits.h> exists even on freestanding compilers.
4578   # On the NeXT, cc -E runs the code through the compiler's parser,
4579   # not just through cpp. "Syntax error" is here to catch this case.
4580   cat >conftest.$ac_ext <<_ACEOF
4581 #line $LINENO "configure"
4582 /* confdefs.h.  */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h.  */
4587 #ifdef __STDC__
4588 # include <limits.h>
4589 #else
4590 # include <assert.h>
4591 #endif
4592                      Syntax error
4593 _ACEOF
4594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4596   ac_status=$?
4597   grep -v '^ *+' conftest.er1 >conftest.err
4598   rm -f conftest.er1
4599   cat conftest.err >&5
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); } >/dev/null; then
4602   if test -s conftest.err; then
4603     ac_cpp_err=$ac_cxx_preproc_warn_flag
4604   else
4605     ac_cpp_err=
4606   fi
4607 else
4608   ac_cpp_err=yes
4609 fi
4610 if test -z "$ac_cpp_err"; then
4611   :
4612 else
4613   echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616   # Broken: fails on valid input.
4617 continue
4618 fi
4619 rm -f conftest.err conftest.$ac_ext
4620
4621   # OK, works on sane cases.  Now check whether non-existent headers
4622   # can be detected and how.
4623   cat >conftest.$ac_ext <<_ACEOF
4624 #line $LINENO "configure"
4625 /* confdefs.h.  */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h.  */
4630 #include <ac_nonexistent.h>
4631 _ACEOF
4632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4634   ac_status=$?
4635   grep -v '^ *+' conftest.er1 >conftest.err
4636   rm -f conftest.er1
4637   cat conftest.err >&5
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); } >/dev/null; then
4640   if test -s conftest.err; then
4641     ac_cpp_err=$ac_cxx_preproc_warn_flag
4642   else
4643     ac_cpp_err=
4644   fi
4645 else
4646   ac_cpp_err=yes
4647 fi
4648 if test -z "$ac_cpp_err"; then
4649   # Broken: success on invalid input.
4650 continue
4651 else
4652   echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655   # Passes both tests.
4656 ac_preproc_ok=:
4657 break
4658 fi
4659 rm -f conftest.err conftest.$ac_ext
4660
4661 done
4662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4663 rm -f conftest.err conftest.$ac_ext
4664 if $ac_preproc_ok; then
4665   break
4666 fi
4667
4668     done
4669     ac_cv_prog_CXXCPP=$CXXCPP
4670
4671 fi
4672   CXXCPP=$ac_cv_prog_CXXCPP
4673 else
4674   ac_cv_prog_CXXCPP=$CXXCPP
4675 fi
4676 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4677 echo "${ECHO_T}$CXXCPP" >&6
4678 ac_preproc_ok=false
4679 for ac_cxx_preproc_warn_flag in '' yes
4680 do
4681   # Use a header file that comes with gcc, so configuring glibc
4682   # with a fresh cross-compiler works.
4683   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4684   # <limits.h> exists even on freestanding compilers.
4685   # On the NeXT, cc -E runs the code through the compiler's parser,
4686   # not just through cpp. "Syntax error" is here to catch this case.
4687   cat >conftest.$ac_ext <<_ACEOF
4688 #line $LINENO "configure"
4689 /* confdefs.h.  */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h.  */
4694 #ifdef __STDC__
4695 # include <limits.h>
4696 #else
4697 # include <assert.h>
4698 #endif
4699                      Syntax error
4700 _ACEOF
4701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4703   ac_status=$?
4704   grep -v '^ *+' conftest.er1 >conftest.err
4705   rm -f conftest.er1
4706   cat conftest.err >&5
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); } >/dev/null; then
4709   if test -s conftest.err; then
4710     ac_cpp_err=$ac_cxx_preproc_warn_flag
4711   else
4712     ac_cpp_err=
4713   fi
4714 else
4715   ac_cpp_err=yes
4716 fi
4717 if test -z "$ac_cpp_err"; then
4718   :
4719 else
4720   echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723   # Broken: fails on valid input.
4724 continue
4725 fi
4726 rm -f conftest.err conftest.$ac_ext
4727
4728   # OK, works on sane cases.  Now check whether non-existent headers
4729   # can be detected and how.
4730   cat >conftest.$ac_ext <<_ACEOF
4731 #line $LINENO "configure"
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 #include <ac_nonexistent.h>
4738 _ACEOF
4739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4741   ac_status=$?
4742   grep -v '^ *+' conftest.er1 >conftest.err
4743   rm -f conftest.er1
4744   cat conftest.err >&5
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); } >/dev/null; then
4747   if test -s conftest.err; then
4748     ac_cpp_err=$ac_cxx_preproc_warn_flag
4749   else
4750     ac_cpp_err=
4751   fi
4752 else
4753   ac_cpp_err=yes
4754 fi
4755 if test -z "$ac_cpp_err"; then
4756   # Broken: success on invalid input.
4757 continue
4758 else
4759   echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762   # Passes both tests.
4763 ac_preproc_ok=:
4764 break
4765 fi
4766 rm -f conftest.err conftest.$ac_ext
4767
4768 done
4769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4770 rm -f conftest.err conftest.$ac_ext
4771 if $ac_preproc_ok; then
4772   :
4773 else
4774   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4775 See \`config.log' for more details." >&5
4776 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4777 See \`config.log' for more details." >&2;}
4778    { (exit 1); exit 1; }; }
4779 fi
4780
4781 ac_ext=cc
4782 ac_cpp='$CXXCPP $CPPFLAGS'
4783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4786
4787
4788 ac_ext=f
4789 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4790 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4792 if test -n "$ac_tool_prefix"; then
4793   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4794   do
4795     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4797 echo "$as_me:$LINENO: checking for $ac_word" >&5
4798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4799 if test "${ac_cv_prog_F77+set}" = set; then
4800   echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802   if test -n "$F77"; then
4803   ac_cv_prog_F77="$F77" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808   IFS=$as_save_IFS
4809   test -z "$as_dir" && as_dir=.
4810   for ac_exec_ext in '' $ac_executable_extensions; do
4811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814     break 2
4815   fi
4816 done
4817 done
4818
4819 fi
4820 fi
4821 F77=$ac_cv_prog_F77
4822 if test -n "$F77"; then
4823   echo "$as_me:$LINENO: result: $F77" >&5
4824 echo "${ECHO_T}$F77" >&6
4825 else
4826   echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4828 fi
4829
4830     test -n "$F77" && break
4831   done
4832 fi
4833 if test -z "$F77"; then
4834   ac_ct_F77=$F77
4835   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4836 do
4837   # Extract the first word of "$ac_prog", so it can be a program name with args.
4838 set dummy $ac_prog; ac_word=$2
4839 echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4841 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   if test -n "$ac_ct_F77"; then
4845   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852   for ac_exec_ext in '' $ac_executable_extensions; do
4853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854     ac_cv_prog_ac_ct_F77="$ac_prog"
4855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859 done
4860
4861 fi
4862 fi
4863 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4864 if test -n "$ac_ct_F77"; then
4865   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4866 echo "${ECHO_T}$ac_ct_F77" >&6
4867 else
4868   echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4870 fi
4871
4872   test -n "$ac_ct_F77" && break
4873 done
4874
4875   F77=$ac_ct_F77
4876 fi
4877
4878
4879 # Provide some information about the compiler.
4880 echo "$as_me:4880:" \
4881      "checking for Fortran 77 compiler version" >&5
4882 ac_compiler=`set X $ac_compile; echo $2`
4883 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4884   (eval $ac_compiler --version </dev/null >&5) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }
4888 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4889   (eval $ac_compiler -v </dev/null >&5) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); }
4893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4894   (eval $ac_compiler -V </dev/null >&5) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }
4898
4899 # If we don't use `.F' as extension, the preprocessor is not run on the
4900 # input file.
4901 ac_save_ext=$ac_ext
4902 ac_ext=F
4903 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4904 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4905 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   cat >conftest.$ac_ext <<_ACEOF
4909       program main
4910 #ifndef __GNUC__
4911        choke me
4912 #endif
4913
4914       end
4915 _ACEOF
4916 rm -f conftest.$ac_objext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918   (eval $ac_compile) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } &&
4922          { ac_try='test -s conftest.$ac_objext'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; }; then
4928   ac_compiler_gnu=yes
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 ac_compiler_gnu=no
4934 fi
4935 rm -f conftest.$ac_objext conftest.$ac_ext
4936 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4937
4938 fi
4939 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4940 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4941 ac_ext=$ac_save_ext
4942 G77=`test $ac_compiler_gnu = yes && echo yes`
4943 ac_test_FFLAGS=${FFLAGS+set}
4944 ac_save_FFLAGS=$FFLAGS
4945 FFLAGS=
4946 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4947 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4948 if test "${ac_cv_prog_f77_g+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   FFLAGS=-g
4952 cat >conftest.$ac_ext <<_ACEOF
4953       program main
4954
4955       end
4956 _ACEOF
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959   (eval $ac_compile) 2>&5
4960   ac_status=$?
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); } &&
4963          { ac_try='test -s conftest.$ac_objext'
4964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965   (eval $ac_try) 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); }; }; then
4969   ac_cv_prog_f77_g=yes
4970 else
4971   echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4973
4974 ac_cv_prog_f77_g=no
4975 fi
4976 rm -f conftest.$ac_objext conftest.$ac_ext
4977
4978 fi
4979 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4980 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4981 if test "$ac_test_FFLAGS" = set; then
4982   FFLAGS=$ac_save_FFLAGS
4983 elif test $ac_cv_prog_f77_g = yes; then
4984   if test "$G77" = yes; then
4985     FFLAGS="-g -O2"
4986   else
4987     FFLAGS="-g"
4988   fi
4989 else
4990   if test "$G77" = yes; then
4991     FFLAGS="-O2"
4992   else
4993     FFLAGS=
4994   fi
4995 fi
4996 ac_ext=c
4997 ac_cpp='$CPP $CPPFLAGS'
4998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001
5002
5003
5004 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5005
5006 # find the maximum length of command line arguments
5007 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5008 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5009 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012     i=0
5013   testring="ABCD"
5014
5015   case $build_os in
5016   msdosdjgpp*)
5017     # On DJGPP, this test can blow up pretty badly due to problems in libc
5018     # (any single argument exceeding 2000 bytes causes a buffer overrun
5019     # during glob expansion).  Even if it were fixed, the result of this
5020     # check would be larger than it should be.
5021     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5022     ;;
5023
5024   gnu*)
5025     # Under GNU Hurd, this test is not required because there is
5026     # no limit to the length of command line arguments.
5027     # Libtool will interpret -1 as no limit whatsoever
5028     lt_cv_sys_max_cmd_len=-1;
5029     ;;
5030
5031   cygwin* | mingw*)
5032     # On Win9x/ME, this test blows up -- it succeeds, but takes
5033     # about 5 minutes as the teststring grows exponentially.
5034     # Worse, since 9x/ME are not pre-emptively multitasking,
5035     # you end up with a "frozen" computer, even though with patience
5036     # the test eventually succeeds (with a max line length of 256k).
5037     # Instead, let's just punt: use the minimum linelength reported by
5038     # all of the supported platforms: 8192 (on NT/2K/XP).
5039     lt_cv_sys_max_cmd_len=8192;
5040     ;;
5041
5042  *)
5043     # If test is not a shell built-in, we'll probably end up computing a
5044     # maximum length that is only half of the actual maximum length, but
5045     # we can't tell.
5046     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5047                = "XX$testring") >/dev/null 2>&1 &&
5048             new_result=`expr "X$testring" : ".*" 2>&1` &&
5049             lt_cv_sys_max_cmd_len=$new_result &&
5050             test $i != 17 # 1/2 MB should be enough
5051     do
5052       i=`expr $i + 1`
5053       testring=$testring$testring
5054     done
5055     testring=
5056     # Add a significant safety factor because C++ compilers can tack on massive
5057     # amounts of additional arguments before passing them to the linker.
5058     # It appears as though 1/2 is a usable value.
5059     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5060     ;;
5061   esac
5062
5063 fi
5064
5065 if test -n $lt_cv_sys_max_cmd_len ; then
5066   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5067 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5068 else
5069   echo "$as_me:$LINENO: result: none" >&5
5070 echo "${ECHO_T}none" >&6
5071 fi
5072
5073
5074
5075
5076 # Check for command to grab the raw symbol name followed by C symbol from nm.
5077 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5078 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5079 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5080   echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082
5083 # These are sane defaults that work on at least a few old systems.
5084 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5085
5086 # Character class describing NM global symbol codes.
5087 symcode='[BCDEGRST]'
5088
5089 # Regexp to match symbols that can be accessed directly from C.
5090 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5091
5092 # Transform the above into a raw symbol and a C symbol.
5093 symxfrm='\1 \2\3 \3'
5094
5095 # Transform an extracted symbol line into a proper C declaration
5096 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5097
5098 # Transform an extracted symbol line into symbol name and symbol address
5099 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'"
5100
5101 # Define system-specific variables.
5102 case $host_os in
5103 aix*)
5104   symcode='[BCDT]'
5105   ;;
5106 cygwin* | mingw* | pw32*)
5107   symcode='[ABCDGISTW]'
5108   ;;
5109 hpux*) # Its linker distinguishes data from code symbols
5110   if test "$host_cpu" = ia64; then
5111     symcode='[ABCDEGRST]'
5112   fi
5113   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5114   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'"
5115   ;;
5116 irix* | nonstopux*)
5117   symcode='[BCDEGRST]'
5118   ;;
5119 osf*)
5120   symcode='[BCDEGQRST]'
5121   ;;
5122 solaris* | sysv5*)
5123   symcode='[BDT]'
5124   ;;
5125 sysv4)
5126   symcode='[DFNSTU]'
5127   ;;
5128 esac
5129
5130 # Handle CRLF in mingw tool chain
5131 opt_cr=
5132 case $build_os in
5133 mingw*)
5134   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5135   ;;
5136 esac
5137
5138 # If we're using GNU nm, then use its standard symbol codes.
5139 case `$NM -V 2>&1` in
5140 *GNU* | *'with BFD'*)
5141   symcode='[ABCDGISTW]' ;;
5142 esac
5143
5144 # Try without a prefix undercore, then with it.
5145 for ac_symprfx in "" "_"; do
5146
5147   # Write the raw and C identifiers.
5148   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5149
5150   # Check to see that the pipe works correctly.
5151   pipe_works=no
5152
5153   rm -f conftest*
5154   cat > conftest.$ac_ext <<EOF
5155 #ifdef __cplusplus
5156 extern "C" {
5157 #endif
5158 char nm_test_var;
5159 void nm_test_func(){}
5160 #ifdef __cplusplus
5161 }
5162 #endif
5163 int main(){nm_test_var='a';nm_test_func();return(0);}
5164 EOF
5165
5166   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167   (eval $ac_compile) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; then
5171     # Now try to grab the symbols.
5172     nlist=conftest.nm
5173     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5174   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); } && test -s "$nlist"; then
5178       # Try sorting and uniquifying the output.
5179       if sort "$nlist" | uniq > "$nlist"T; then
5180         mv -f "$nlist"T "$nlist"
5181       else
5182         rm -f "$nlist"T
5183       fi
5184
5185       # Make sure that we snagged all the symbols we need.
5186       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5187         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5188           cat <<EOF > conftest.$ac_ext
5189 #ifdef __cplusplus
5190 extern "C" {
5191 #endif
5192
5193 EOF
5194           # Now generate the symbol file.
5195           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5196
5197           cat <<EOF >> conftest.$ac_ext
5198 #if defined (__STDC__) && __STDC__
5199 # define lt_ptr_t void *
5200 #else
5201 # define lt_ptr_t char *
5202 # define const
5203 #endif
5204
5205 /* The mapping between symbol names and symbols. */
5206 const struct {
5207   const char *name;
5208   lt_ptr_t address;
5209 }
5210 lt_preloaded_symbols[] =
5211 {
5212 EOF
5213           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5214           cat <<\EOF >> conftest.$ac_ext
5215   {0, (lt_ptr_t) 0}
5216 };
5217
5218 #ifdef __cplusplus
5219 }
5220 #endif
5221 EOF
5222           # Now try linking the two files.
5223           mv conftest.$ac_objext conftstm.$ac_objext
5224           lt_save_LIBS="$LIBS"
5225           lt_save_CFLAGS="$CFLAGS"
5226           LIBS="conftstm.$ac_objext"
5227           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5228           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229   (eval $ac_link) 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5233             pipe_works=yes
5234           fi
5235           LIBS="$lt_save_LIBS"
5236           CFLAGS="$lt_save_CFLAGS"
5237         else
5238           echo "cannot find nm_test_func in $nlist" >&5
5239         fi
5240       else
5241         echo "cannot find nm_test_var in $nlist" >&5
5242       fi
5243     else
5244       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5245     fi
5246   else
5247     echo "$progname: failed program was:" >&5
5248     cat conftest.$ac_ext >&5
5249   fi
5250   rm -f conftest* conftst*
5251
5252   # Do not use the global_symbol_pipe unless it works.
5253   if test "$pipe_works" = yes; then
5254     break
5255   else
5256     lt_cv_sys_global_symbol_pipe=
5257   fi
5258 done
5259
5260 fi
5261
5262 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5263   lt_cv_sys_global_symbol_to_cdecl=
5264 fi
5265 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5266   echo "$as_me:$LINENO: result: failed" >&5
5267 echo "${ECHO_T}failed" >&6
5268 else
5269   echo "$as_me:$LINENO: result: ok" >&5
5270 echo "${ECHO_T}ok" >&6
5271 fi
5272
5273 echo "$as_me:$LINENO: checking for objdir" >&5
5274 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5275 if test "${lt_cv_objdir+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   rm -f .libs 2>/dev/null
5279 mkdir .libs 2>/dev/null
5280 if test -d .libs; then
5281   lt_cv_objdir=.libs
5282 else
5283   # MS-DOS does not allow filenames that begin with a dot.
5284   lt_cv_objdir=_libs
5285 fi
5286 rmdir .libs 2>/dev/null
5287 fi
5288 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5289 echo "${ECHO_T}$lt_cv_objdir" >&6
5290 objdir=$lt_cv_objdir
5291
5292
5293
5294
5295
5296 case $host_os in
5297 aix3*)
5298   # AIX sometimes has problems with the GCC collect2 program.  For some
5299   # reason, if we set the COLLECT_NAMES environment variable, the problems
5300   # vanish in a puff of smoke.
5301   if test "X${COLLECT_NAMES+set}" != Xset; then
5302     COLLECT_NAMES=
5303     export COLLECT_NAMES
5304   fi
5305   ;;
5306 esac
5307
5308 # Sed substitution that helps us do robust quoting.  It backslashifies
5309 # metacharacters that are still active within double-quoted strings.
5310 Xsed='sed -e s/^X//'
5311 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5312
5313 # Same as above, but do not quote variable references.
5314 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5315
5316 # Sed substitution to delay expansion of an escaped shell variable in a
5317 # double_quote_subst'ed string.
5318 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5319
5320 # Sed substitution to avoid accidental globbing in evaled expressions
5321 no_glob_subst='s/\*/\\\*/g'
5322
5323 # Constants:
5324 rm="rm -f"
5325
5326 # Global variables:
5327 default_ofile=mklib
5328 can_build_shared=yes
5329
5330 # All known linkers require a `.a' archive for static linking (except M$VC,
5331 # which needs '.lib').
5332 libext=a
5333 ltmain="$ac_aux_dir/ltmain.sh"
5334 ofile="$default_ofile"
5335 with_gnu_ld="$lt_cv_prog_gnu_ld"
5336
5337 if test -n "$ac_tool_prefix"; then
5338   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5339 set dummy ${ac_tool_prefix}ar; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_prog_AR+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   if test -n "$AR"; then
5346   ac_cv_prog_AR="$AR" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353   for ac_exec_ext in '' $ac_executable_extensions; do
5354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355     ac_cv_prog_AR="${ac_tool_prefix}ar"
5356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360 done
5361
5362 fi
5363 fi
5364 AR=$ac_cv_prog_AR
5365 if test -n "$AR"; then
5366   echo "$as_me:$LINENO: result: $AR" >&5
5367 echo "${ECHO_T}$AR" >&6
5368 else
5369   echo "$as_me:$LINENO: result: no" >&5
5370 echo "${ECHO_T}no" >&6
5371 fi
5372
5373 fi
5374 if test -z "$ac_cv_prog_AR"; then
5375   ac_ct_AR=$AR
5376   # Extract the first word of "ar", so it can be a program name with args.
5377 set dummy ar; ac_word=$2
5378 echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383   if test -n "$ac_ct_AR"; then
5384   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391   for ac_exec_ext in '' $ac_executable_extensions; do
5392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393     ac_cv_prog_ac_ct_AR="ar"
5394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398 done
5399
5400   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5401 fi
5402 fi
5403 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5404 if test -n "$ac_ct_AR"; then
5405   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5406 echo "${ECHO_T}$ac_ct_AR" >&6
5407 else
5408   echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5410 fi
5411
5412   AR=$ac_ct_AR
5413 else
5414   AR="$ac_cv_prog_AR"
5415 fi
5416
5417 if test -n "$ac_tool_prefix"; then
5418   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5420 echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422 if test "${ac_cv_prog_RANLIB+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   if test -n "$RANLIB"; then
5426   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431   IFS=$as_save_IFS
5432   test -z "$as_dir" && as_dir=.
5433   for ac_exec_ext in '' $ac_executable_extensions; do
5434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437     break 2
5438   fi
5439 done
5440 done
5441
5442 fi
5443 fi
5444 RANLIB=$ac_cv_prog_RANLIB
5445 if test -n "$RANLIB"; then
5446   echo "$as_me:$LINENO: result: $RANLIB" >&5
5447 echo "${ECHO_T}$RANLIB" >&6
5448 else
5449   echo "$as_me:$LINENO: result: no" >&5
5450 echo "${ECHO_T}no" >&6
5451 fi
5452
5453 fi
5454 if test -z "$ac_cv_prog_RANLIB"; then
5455   ac_ct_RANLIB=$RANLIB
5456   # Extract the first word of "ranlib", so it can be a program name with args.
5457 set dummy ranlib; ac_word=$2
5458 echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5460 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463   if test -n "$ac_ct_RANLIB"; then
5464   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471   for ac_exec_ext in '' $ac_executable_extensions; do
5472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473     ac_cv_prog_ac_ct_RANLIB="ranlib"
5474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475     break 2
5476   fi
5477 done
5478 done
5479
5480   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5481 fi
5482 fi
5483 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5484 if test -n "$ac_ct_RANLIB"; then
5485   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5486 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5487 else
5488   echo "$as_me:$LINENO: result: no" >&5
5489 echo "${ECHO_T}no" >&6
5490 fi
5491
5492   RANLIB=$ac_ct_RANLIB
5493 else
5494   RANLIB="$ac_cv_prog_RANLIB"
5495 fi
5496
5497 if test -n "$ac_tool_prefix"; then
5498   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}strip; ac_word=$2
5500 echo "$as_me:$LINENO: checking for $ac_word" >&5
5501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5502 if test "${ac_cv_prog_STRIP+set}" = set; then
5503   echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505   if test -n "$STRIP"; then
5506   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513   for ac_exec_ext in '' $ac_executable_extensions; do
5514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517     break 2
5518   fi
5519 done
5520 done
5521
5522 fi
5523 fi
5524 STRIP=$ac_cv_prog_STRIP
5525 if test -n "$STRIP"; then
5526   echo "$as_me:$LINENO: result: $STRIP" >&5
5527 echo "${ECHO_T}$STRIP" >&6
5528 else
5529   echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6
5531 fi
5532
5533 fi
5534 if test -z "$ac_cv_prog_STRIP"; then
5535   ac_ct_STRIP=$STRIP
5536   # Extract the first word of "strip", so it can be a program name with args.
5537 set dummy strip; ac_word=$2
5538 echo "$as_me:$LINENO: checking for $ac_word" >&5
5539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5540 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5541   echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543   if test -n "$ac_ct_STRIP"; then
5544   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549   IFS=$as_save_IFS
5550   test -z "$as_dir" && as_dir=.
5551   for ac_exec_ext in '' $ac_executable_extensions; do
5552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553     ac_cv_prog_ac_ct_STRIP="strip"
5554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555     break 2
5556   fi
5557 done
5558 done
5559
5560   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5561 fi
5562 fi
5563 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5564 if test -n "$ac_ct_STRIP"; then
5565   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5566 echo "${ECHO_T}$ac_ct_STRIP" >&6
5567 else
5568   echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6
5570 fi
5571
5572   STRIP=$ac_ct_STRIP
5573 else
5574   STRIP="$ac_cv_prog_STRIP"
5575 fi
5576
5577
5578 old_CC="$CC"
5579 old_CFLAGS="$CFLAGS"
5580
5581 # Set sane defaults for various variables
5582 test -z "$AR" && AR=ar
5583 test -z "$AR_FLAGS" && AR_FLAGS=cru
5584 test -z "$AS" && AS=as
5585 test -z "$CC" && CC=cc
5586 test -z "$LTCC" && LTCC=$CC
5587 test -z "$DLLTOOL" && DLLTOOL=dlltool
5588 test -z "$LD" && LD=ld
5589 test -z "$LN_S" && LN_S="ln -s"
5590 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5591 test -z "$NM" && NM=nm
5592 test -z "$SED" && SED=sed
5593 test -z "$OBJDUMP" && OBJDUMP=objdump
5594 test -z "$RANLIB" && RANLIB=:
5595 test -z "$STRIP" && STRIP=:
5596 test -z "$ac_objext" && ac_objext=o
5597
5598 # Determine commands to create old-style static archives.
5599 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5600 old_postinstall_cmds='chmod 644 $oldlib'
5601 old_postuninstall_cmds=
5602
5603 if test -n "$RANLIB"; then
5604   case $host_os in
5605   openbsd*)
5606     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5607     ;;
5608   *)
5609     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5610     ;;
5611   esac
5612   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5613 fi
5614
5615 # Only perform the check for file, if the check method requires it
5616 case $deplibs_check_method in
5617 file_magic*)
5618   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5619     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5620 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5621 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   case $MAGIC_CMD in
5625 [\\/*] |  ?:[\\/]*)
5626   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5627   ;;
5628 *)
5629   lt_save_MAGIC_CMD="$MAGIC_CMD"
5630   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5631   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5632   for ac_dir in $ac_dummy; do
5633     IFS="$lt_save_ifs"
5634     test -z "$ac_dir" && ac_dir=.
5635     if test -f $ac_dir/${ac_tool_prefix}file; then
5636       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5637       if test -n "$file_magic_test_file"; then
5638         case $deplibs_check_method in
5639         "file_magic "*)
5640           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5641           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5642           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5643             $EGREP "$file_magic_regex" > /dev/null; then
5644             :
5645           else
5646             cat <<EOF 1>&2
5647
5648 *** Warning: the command libtool uses to detect shared libraries,
5649 *** $file_magic_cmd, produces output that libtool cannot recognize.
5650 *** The result is that libtool may fail to recognize shared libraries
5651 *** as such.  This will affect the creation of libtool libraries that
5652 *** depend on shared libraries, but programs linked with such libtool
5653 *** libraries will work regardless of this problem.  Nevertheless, you
5654 *** may want to report the problem to your system manager and/or to
5655 *** bug-libtool@gnu.org
5656
5657 EOF
5658           fi ;;
5659         esac
5660       fi
5661       break
5662     fi
5663   done
5664   IFS="$lt_save_ifs"
5665   MAGIC_CMD="$lt_save_MAGIC_CMD"
5666   ;;
5667 esac
5668 fi
5669
5670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5671 if test -n "$MAGIC_CMD"; then
5672   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5673 echo "${ECHO_T}$MAGIC_CMD" >&6
5674 else
5675   echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5677 fi
5678
5679 if test -z "$lt_cv_path_MAGIC_CMD"; then
5680   if test -n "$ac_tool_prefix"; then
5681     echo "$as_me:$LINENO: checking for file" >&5
5682 echo $ECHO_N "checking for file... $ECHO_C" >&6
5683 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   case $MAGIC_CMD in
5687 [\\/*] |  ?:[\\/]*)
5688   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5689   ;;
5690 *)
5691   lt_save_MAGIC_CMD="$MAGIC_CMD"
5692   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5693   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5694   for ac_dir in $ac_dummy; do
5695     IFS="$lt_save_ifs"
5696     test -z "$ac_dir" && ac_dir=.
5697     if test -f $ac_dir/file; then
5698       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5699       if test -n "$file_magic_test_file"; then
5700         case $deplibs_check_method in
5701         "file_magic "*)
5702           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5703           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5704           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5705             $EGREP "$file_magic_regex" > /dev/null; then
5706             :
5707           else
5708             cat <<EOF 1>&2
5709
5710 *** Warning: the command libtool uses to detect shared libraries,
5711 *** $file_magic_cmd, produces output that libtool cannot recognize.
5712 *** The result is that libtool may fail to recognize shared libraries
5713 *** as such.  This will affect the creation of libtool libraries that
5714 *** depend on shared libraries, but programs linked with such libtool
5715 *** libraries will work regardless of this problem.  Nevertheless, you
5716 *** may want to report the problem to your system manager and/or to
5717 *** bug-libtool@gnu.org
5718
5719 EOF
5720           fi ;;
5721         esac
5722       fi
5723       break
5724     fi
5725   done
5726   IFS="$lt_save_ifs"
5727   MAGIC_CMD="$lt_save_MAGIC_CMD"
5728   ;;
5729 esac
5730 fi
5731
5732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5733 if test -n "$MAGIC_CMD"; then
5734   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5735 echo "${ECHO_T}$MAGIC_CMD" >&6
5736 else
5737   echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6
5739 fi
5740
5741   else
5742     MAGIC_CMD=:
5743   fi
5744 fi
5745
5746   fi
5747   ;;
5748 esac
5749
5750 enable_dlopen=no
5751 enable_win32_dll=no
5752
5753 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5754 if test "${enable_libtool_lock+set}" = set; then
5755   enableval="$enable_libtool_lock"
5756
5757 fi;
5758 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5759
5760
5761 # Check whether --with-pic or --without-pic was given.
5762 if test "${with_pic+set}" = set; then
5763   withval="$with_pic"
5764   pic_mode="$withval"
5765 else
5766   pic_mode=default
5767 fi;
5768 test -z "$pic_mode" && pic_mode=default
5769
5770 # Use C for the default configuration in the libtool script
5771 tagname=
5772 lt_save_CC="$CC"
5773 ac_ext=c
5774 ac_cpp='$CPP $CPPFLAGS'
5775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5778
5779
5780 # Source file extension for C test sources.
5781 ac_ext=c
5782
5783 # Object file extension for compiled C test sources.
5784 objext=o
5785 objext=$objext
5786
5787 # Code to be used in simple compile tests
5788 lt_simple_compile_test_code="int some_variable = 0;\n"
5789
5790 # Code to be used in simple link tests
5791 lt_simple_link_test_code='int main(){return(0);}\n'
5792
5793
5794 # If no C compiler was specified, use CC.
5795 LTCC=${LTCC-"$CC"}
5796
5797 # Allow CC to be a program name with arguments.
5798 compiler=$CC
5799
5800
5801 #
5802 # Check for any special shared library compilation flags.
5803 #
5804 lt_prog_cc_shlib=
5805 if test "$GCC" = no; then
5806   case $host_os in
5807   sco3.2v5*)
5808     lt_prog_cc_shlib='-belf'
5809     ;;
5810   esac
5811 fi
5812 if test -n "$lt_prog_cc_shlib"; then
5813   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5814 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5815   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5816   else
5817     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5818 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5819     lt_cv_prog_cc_can_build_shared=no
5820   fi
5821 fi
5822
5823
5824 #
5825 # Check to make sure the static flag actually works.
5826 #
5827 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5828 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5829 if test "${lt_prog_compiler_static_works+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   lt_prog_compiler_static_works=no
5833    save_LDFLAGS="$LDFLAGS"
5834    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5835    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5836    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5837      # The compiler can only warn and ignore the option if not recognized
5838      # So say no if there are warnings
5839      if test -s conftest.err; then
5840        # Append any errors to the config.log.
5841        cat conftest.err 1>&5
5842      else
5843        lt_prog_compiler_static_works=yes
5844      fi
5845    fi
5846    $rm conftest*
5847    LDFLAGS="$save_LDFLAGS"
5848
5849 fi
5850 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5851 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5852
5853 if test x"$lt_prog_compiler_static_works" = xyes; then
5854     :
5855 else
5856     lt_prog_compiler_static=
5857 fi
5858
5859
5860
5861
5862 lt_prog_compiler_no_builtin_flag=
5863
5864 if test "$GCC" = yes; then
5865   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5866
5867   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5868 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5869 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5870   echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872   lt_cv_prog_compiler_rtti_exceptions=no
5873   ac_outfile=conftest.$ac_objext
5874    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5875    lt_compiler_flag="-fno-rtti -fno-exceptions"
5876    # Insert the option either (1) after the last *FLAGS variable, or
5877    # (2) before a word containing "conftest.", or (3) at the end.
5878    # Note that $ac_compile itself does not contain backslashes and begins
5879    # with a dollar sign (not a hyphen), so the echo should work correctly.
5880    # The option is referenced via a variable to avoid confusing sed.
5881    lt_compile=`echo "$ac_compile" | $SED \
5882    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5883    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5884    -e 's:$: $lt_compiler_flag:'`
5885    (eval echo "\"\$as_me:5885: $lt_compile\"" >&5)
5886    (eval "$lt_compile" 2>conftest.err)
5887    ac_status=$?
5888    cat conftest.err >&5
5889    echo "$as_me:5889: \$? = $ac_status" >&5
5890    if (exit $ac_status) && test -s "$ac_outfile"; then
5891      # The compiler can only warn and ignore the option if not recognized
5892      # So say no if there are warnings
5893      if test ! -s conftest.err; then
5894        lt_cv_prog_compiler_rtti_exceptions=yes
5895      fi
5896    fi
5897    $rm conftest*
5898
5899 fi
5900 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5901 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5902
5903 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5904     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5905 else
5906     :
5907 fi
5908
5909 fi
5910
5911 lt_prog_compiler_wl=
5912 lt_prog_compiler_pic=
5913 lt_prog_compiler_static=
5914
5915 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5916 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5917
5918   if test "$GCC" = yes; then
5919     lt_prog_compiler_wl='-Wl,'
5920     lt_prog_compiler_static='-static'
5921
5922     case $host_os in
5923       aix*)
5924       # All AIX code is PIC.
5925       if test "$host_cpu" = ia64; then
5926         # AIX 5 now supports IA64 processor
5927         lt_prog_compiler_static='-Bstatic'
5928       fi
5929       ;;
5930
5931     amigaos*)
5932       # FIXME: we need at least 68020 code to build shared libraries, but
5933       # adding the `-m68020' flag to GCC prevents building anything better,
5934       # like `-m68040'.
5935       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5936       ;;
5937
5938     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5939       # PIC is the default for these OSes.
5940       ;;
5941
5942     mingw* | pw32* | os2*)
5943       # This hack is so that the source file can tell whether it is being
5944       # built for inclusion in a dll (and should export symbols for example).
5945       lt_prog_compiler_pic='-DDLL_EXPORT'
5946       ;;
5947
5948     darwin* | rhapsody*)
5949       # PIC is the default on this platform
5950       # Common symbols not allowed in MH_DYLIB files
5951       lt_prog_compiler_pic='-fno-common'
5952       ;;
5953
5954     msdosdjgpp*)
5955       # Just because we use GCC doesn't mean we suddenly get shared libraries
5956       # on systems that don't support them.
5957       lt_prog_compiler_can_build_shared=no
5958       enable_shared=no
5959       ;;
5960
5961     sysv4*MP*)
5962       if test -d /usr/nec; then
5963         lt_prog_compiler_pic=-Kconform_pic
5964       fi
5965       ;;
5966
5967     hpux*)
5968       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5969       # not for PA HP-UX.
5970       case "$host_cpu" in
5971       hppa*64*|ia64*)
5972         # +Z the default
5973         ;;
5974       *)
5975         lt_prog_compiler_pic='-fPIC'
5976         ;;
5977       esac
5978       ;;
5979
5980     *)
5981       lt_prog_compiler_pic='-fPIC'
5982       ;;
5983     esac
5984   else
5985     # PORTME Check for flag to pass linker flags through the system compiler.
5986     case $host_os in
5987     aix*)
5988       lt_prog_compiler_wl='-Wl,'
5989       if test "$host_cpu" = ia64; then
5990         # AIX 5 now supports IA64 processor
5991         lt_prog_compiler_static='-Bstatic'
5992       else
5993         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5994       fi
5995       ;;
5996
5997     mingw* | pw32* | os2*)
5998       # This hack is so that the source file can tell whether it is being
5999       # built for inclusion in a dll (and should export symbols for example).
6000       lt_prog_compiler_pic='-DDLL_EXPORT'
6001       ;;
6002
6003     hpux9* | hpux10* | hpux11*)
6004       lt_prog_compiler_wl='-Wl,'
6005       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6006       # not for PA HP-UX.
6007       case "$host_cpu" in
6008       hppa*64*|ia64*)
6009         # +Z the default
6010         ;;
6011       *)
6012         lt_prog_compiler_pic='+Z'
6013         ;;
6014       esac
6015       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6016       lt_prog_compiler_static='${wl}-a ${wl}archive'
6017       ;;
6018
6019     irix5* | irix6* | nonstopux*)
6020       lt_prog_compiler_wl='-Wl,'
6021       # PIC (with -KPIC) is the default.
6022       lt_prog_compiler_static='-non_shared'
6023       ;;
6024
6025     newsos6)
6026       lt_prog_compiler_pic='-KPIC'
6027       lt_prog_compiler_static='-Bstatic'
6028       ;;
6029
6030     linux*)
6031       case $CC in
6032       icc|ecc)
6033         lt_prog_compiler_wl='-Wl,'
6034         lt_prog_compiler_pic='-KPIC'
6035         lt_prog_compiler_static='-static'
6036         ;;
6037       ccc)
6038         lt_prog_compiler_wl='-Wl,'
6039         # All Alpha code is PIC.
6040         lt_prog_compiler_static='-non_shared'
6041         ;;
6042       esac
6043       ;;
6044
6045     osf3* | osf4* | osf5*)
6046       lt_prog_compiler_wl='-Wl,'
6047       # All OSF/1 code is PIC.
6048       lt_prog_compiler_static='-non_shared'
6049       ;;
6050
6051     sco3.2v5*)
6052       lt_prog_compiler_pic='-Kpic'
6053       lt_prog_compiler_static='-dn'
6054       ;;
6055
6056     solaris*)
6057       lt_prog_compiler_wl='-Wl,'
6058       lt_prog_compiler_pic='-KPIC'
6059       lt_prog_compiler_static='-Bstatic'
6060       ;;
6061
6062     sunos4*)
6063       lt_prog_compiler_wl='-Qoption ld '
6064       lt_prog_compiler_pic='-PIC'
6065       lt_prog_compiler_static='-Bstatic'
6066       ;;
6067
6068     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6069       lt_prog_compiler_wl='-Wl,'
6070       lt_prog_compiler_pic='-KPIC'
6071       lt_prog_compiler_static='-Bstatic'
6072       ;;
6073
6074     sysv4*MP*)
6075       if test -d /usr/nec ;then
6076         lt_prog_compiler_pic='-Kconform_pic'
6077         lt_prog_compiler_static='-Bstatic'
6078       fi
6079       ;;
6080
6081     uts4*)
6082       lt_prog_compiler_pic='-pic'
6083       lt_prog_compiler_static='-Bstatic'
6084       ;;
6085
6086     *)
6087       lt_prog_compiler_can_build_shared=no
6088       ;;
6089     esac
6090   fi
6091
6092 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6093 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6094
6095 #
6096 # Check to make sure the PIC flag actually works.
6097 #
6098 if test -n "$lt_prog_compiler_pic"; then
6099   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6100 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6101 if test "${lt_prog_compiler_pic_works+set}" = set; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104   lt_prog_compiler_pic_works=no
6105   ac_outfile=conftest.$ac_objext
6106    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6108    # Insert the option either (1) after the last *FLAGS variable, or
6109    # (2) before a word containing "conftest.", or (3) at the end.
6110    # Note that $ac_compile itself does not contain backslashes and begins
6111    # with a dollar sign (not a hyphen), so the echo should work correctly.
6112    # The option is referenced via a variable to avoid confusing sed.
6113    lt_compile=`echo "$ac_compile" | $SED \
6114    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6116    -e 's:$: $lt_compiler_flag:'`
6117    (eval echo "\"\$as_me:6117: $lt_compile\"" >&5)
6118    (eval "$lt_compile" 2>conftest.err)
6119    ac_status=$?
6120    cat conftest.err >&5
6121    echo "$as_me:6121: \$? = $ac_status" >&5
6122    if (exit $ac_status) && test -s "$ac_outfile"; then
6123      # The compiler can only warn and ignore the option if not recognized
6124      # So say no if there are warnings
6125      if test ! -s conftest.err; then
6126        lt_prog_compiler_pic_works=yes
6127      fi
6128    fi
6129    $rm conftest*
6130
6131 fi
6132 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6133 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6134
6135 if test x"$lt_prog_compiler_pic_works" = xyes; then
6136     case $lt_prog_compiler_pic in
6137      "" | " "*) ;;
6138      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6139      esac
6140 else
6141     lt_prog_compiler_pic=
6142      lt_prog_compiler_can_build_shared=no
6143 fi
6144
6145 fi
6146 case "$host_os" in
6147   # For platforms which do not support PIC, -DPIC is meaningless:
6148   *djgpp*)
6149     lt_prog_compiler_pic=
6150     ;;
6151   *)
6152     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6153     ;;
6154 esac
6155
6156 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6157 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6158 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   lt_cv_prog_compiler_c_o=no
6162    $rm -r conftest 2>/dev/null
6163    mkdir conftest
6164    cd conftest
6165    mkdir out
6166    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6167
6168    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6169    # that will create temporary files in the current directory regardless of
6170    # the output directory.  Thus, making CWD read-only will cause this test
6171    # to fail, enabling locking or at least warning the user not to do parallel
6172    # builds.
6173    chmod -w .
6174
6175    lt_compiler_flag="-o out/conftest2.$ac_objext"
6176    # Insert the option either (1) after the last *FLAGS variable, or
6177    # (2) before a word containing "conftest.", or (3) at the end.
6178    # Note that $ac_compile itself does not contain backslashes and begins
6179    # with a dollar sign (not a hyphen), so the echo should work correctly.
6180    lt_compile=`echo "$ac_compile" | $SED \
6181    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6182    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6183    -e 's:$: $lt_compiler_flag:'`
6184    (eval echo "\"\$as_me:6184: $lt_compile\"" >&5)
6185    (eval "$lt_compile" 2>out/conftest.err)
6186    ac_status=$?
6187    cat out/conftest.err >&5
6188    echo "$as_me:6188: \$? = $ac_status" >&5
6189    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6190    then
6191      # The compiler can only warn and ignore the option if not recognized
6192      # So say no if there are warnings
6193      if test ! -s out/conftest.err; then
6194        lt_cv_prog_compiler_c_o=yes
6195      fi
6196    fi
6197    chmod u+w .
6198    $rm conftest* out/*
6199    rmdir out
6200    cd ..
6201    rmdir conftest
6202    $rm conftest*
6203
6204 fi
6205 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6206 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6207
6208
6209 hard_links="nottested"
6210 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6211   # do not overwrite the value of need_locks provided by the user
6212   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6213 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6214   hard_links=yes
6215   $rm conftest*
6216   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6217   touch conftest.a
6218   ln conftest.a conftest.b 2>&5 || hard_links=no
6219   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6220   echo "$as_me:$LINENO: result: $hard_links" >&5
6221 echo "${ECHO_T}$hard_links" >&6
6222   if test "$hard_links" = no; then
6223     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6224 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6225     need_locks=warn
6226   fi
6227 else
6228   need_locks=no
6229 fi
6230
6231 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6232 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6233
6234   runpath_var=
6235   allow_undefined_flag=
6236   enable_shared_with_static_runtimes=no
6237   archive_cmds=
6238   archive_expsym_cmds=
6239   old_archive_From_new_cmds=
6240   old_archive_from_expsyms_cmds=
6241   export_dynamic_flag_spec=
6242   whole_archive_flag_spec=
6243   thread_safe_flag_spec=
6244   hardcode_libdir_flag_spec=
6245   hardcode_libdir_flag_spec_ld=
6246   hardcode_libdir_separator=
6247   hardcode_direct=no
6248   hardcode_minus_L=no
6249   hardcode_shlibpath_var=unsupported
6250   link_all_deplibs=unknown
6251   hardcode_automatic=no
6252   module_cmds=
6253   module_expsym_cmds=
6254   always_export_symbols=no
6255   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6256   # include_expsyms should be a list of space-separated symbols to be *always*
6257   # included in the symbol list
6258   include_expsyms=
6259   # exclude_expsyms can be an extended regexp of symbols to exclude
6260   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6261   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6262   # as well as any symbol that contains `d'.
6263   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6264   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6265   # platforms (ab)use it in PIC code, but their linkers get confused if
6266   # the symbol is explicitly referenced.  Since portable code cannot
6267   # rely on this symbol name, it's probably fine to never include it in
6268   # preloaded symbol tables.
6269   extract_expsyms_cmds=
6270
6271   case $host_os in
6272   cygwin* | mingw* | pw32*)
6273     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6274     # When not using gcc, we currently assume that we are using
6275     # Microsoft Visual C++.
6276     if test "$GCC" != yes; then
6277       with_gnu_ld=no
6278     fi
6279     ;;
6280   openbsd*)
6281     with_gnu_ld=no
6282     ;;
6283   esac
6284
6285   ld_shlibs=yes
6286   if test "$with_gnu_ld" = yes; then
6287     # If archive_cmds runs LD, not CC, wlarc should be empty
6288     wlarc='${wl}'
6289
6290     # See if GNU ld supports shared libraries.
6291     case $host_os in
6292     aix3* | aix4* | aix5*)
6293       # On AIX/PPC, the GNU linker is very broken
6294       if test "$host_cpu" != ia64; then
6295         ld_shlibs=no
6296         cat <<EOF 1>&2
6297
6298 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6299 *** to be unable to reliably create shared libraries on AIX.
6300 *** Therefore, libtool is disabling shared libraries support.  If you
6301 *** really care for shared libraries, you may want to modify your PATH
6302 *** so that a non-GNU linker is found, and then restart.
6303
6304 EOF
6305       fi
6306       ;;
6307
6308     amigaos*)
6309       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)'
6310       hardcode_libdir_flag_spec='-L$libdir'
6311       hardcode_minus_L=yes
6312
6313       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6314       # that the semantics of dynamic libraries on AmigaOS, at least up
6315       # to version 4, is to share data among multiple programs linked
6316       # with the same dynamic library.  Since this doesn't match the
6317       # behavior of shared libraries on other platforms, we can't use
6318       # them.
6319       ld_shlibs=no
6320       ;;
6321
6322     beos*)
6323       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6324         allow_undefined_flag=unsupported
6325         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6326         # support --undefined.  This deserves some investigation.  FIXME
6327         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6328       else
6329         ld_shlibs=no
6330       fi
6331       ;;
6332
6333     cygwin* | mingw* | pw32*)
6334       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6335       # as there is no search path for DLLs.
6336       hardcode_libdir_flag_spec='-L$libdir'
6337       allow_undefined_flag=unsupported
6338       always_export_symbols=no
6339       enable_shared_with_static_runtimes=yes
6340       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6341
6342       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6343         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6344         # If the export-symbols file already is a .def file (1st line
6345         # is EXPORTS), use it as is; otherwise, prepend...
6346         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6347           cp $export_symbols $output_objdir/$soname.def;
6348         else
6349           echo EXPORTS > $output_objdir/$soname.def;
6350           cat $export_symbols >> $output_objdir/$soname.def;
6351         fi~
6352         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6353       else
6354         ld_shlibs=no
6355       fi
6356       ;;
6357
6358     netbsd*)
6359       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6360         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6361         wlarc=
6362       else
6363         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6364         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6365       fi
6366       ;;
6367
6368     solaris* | sysv5*)
6369       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6370         ld_shlibs=no
6371         cat <<EOF 1>&2
6372
6373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6374 *** create shared libraries on Solaris systems.  Therefore, libtool
6375 *** is disabling shared libraries support.  We urge you to upgrade GNU
6376 *** binutils to release 2.9.1 or newer.  Another option is to modify
6377 *** your PATH or compiler configuration so that the native linker is
6378 *** used, and then restart.
6379
6380 EOF
6381       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6382         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6383         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6384       else
6385         ld_shlibs=no
6386       fi
6387       ;;
6388
6389     sunos4*)
6390       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6391       wlarc=
6392       hardcode_direct=yes
6393       hardcode_shlibpath_var=no
6394       ;;
6395
6396     *)
6397       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6398         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6399         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6400       else
6401         ld_shlibs=no
6402       fi
6403       ;;
6404     esac
6405
6406     if test "$ld_shlibs" = yes; then
6407       runpath_var=LD_RUN_PATH
6408       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6409       export_dynamic_flag_spec='${wl}--export-dynamic'
6410       # ancient GNU ld didn't support --whole-archive et. al.
6411       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6412         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6413       else
6414         whole_archive_flag_spec=
6415       fi
6416     fi
6417   else
6418     # PORTME fill in a description of your system's linker (not GNU ld)
6419     case $host_os in
6420     aix3*)
6421       allow_undefined_flag=unsupported
6422       always_export_symbols=yes
6423       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'
6424       # Note: this linker hardcodes the directories in LIBPATH if there
6425       # are no directories specified by -L.
6426       hardcode_minus_L=yes
6427       if test "$GCC" = yes && test -z "$link_static_flag"; then
6428         # Neither direct hardcoding nor static linking is supported with a
6429         # broken collect2.
6430         hardcode_direct=unsupported
6431       fi
6432       ;;
6433
6434     aix4* | aix5*)
6435       if test "$host_cpu" = ia64; then
6436         # On IA64, the linker does run time linking by default, so we don't
6437         # have to do anything special.
6438         aix_use_runtimelinking=no
6439         exp_sym_flag='-Bexport'
6440         no_entry_flag=""
6441       else
6442         # If we're using GNU nm, then we don't want the "-C" option.
6443         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6444         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6445           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'
6446         else
6447           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'
6448         fi
6449         aix_use_runtimelinking=no
6450
6451         # Test if we are trying to use run time linking or normal
6452         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6453         # need to do runtime linking.
6454         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6455           for ld_flag in $LDFLAGS; do
6456           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6457             aix_use_runtimelinking=yes
6458             break
6459           fi
6460           done
6461         esac
6462
6463         exp_sym_flag='-bexport'
6464         no_entry_flag='-bnoentry'
6465       fi
6466
6467       # When large executables or shared objects are built, AIX ld can
6468       # have problems creating the table of contents.  If linking a library
6469       # or program results in "error TOC overflow" add -mminimal-toc to
6470       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6471       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6472
6473       archive_cmds=''
6474       hardcode_direct=yes
6475       hardcode_libdir_separator=':'
6476       link_all_deplibs=yes
6477
6478       if test "$GCC" = yes; then
6479         case $host_os in aix4.012|aix4.012.*)
6480         # We only want to do this on AIX 4.2 and lower, the check
6481         # below for broken collect2 doesn't work under 4.3+
6482           collect2name=`${CC} -print-prog-name=collect2`
6483           if test -f "$collect2name" && \
6484            strings "$collect2name" | grep resolve_lib_name >/dev/null
6485           then
6486           # We have reworked collect2
6487           hardcode_direct=yes
6488           else
6489           # We have old collect2
6490           hardcode_direct=unsupported
6491           # It fails to find uninstalled libraries when the uninstalled
6492           # path is not listed in the libpath.  Setting hardcode_minus_L
6493           # to unsupported forces relinking
6494           hardcode_minus_L=yes
6495           hardcode_libdir_flag_spec='-L$libdir'
6496           hardcode_libdir_separator=
6497           fi
6498         esac
6499         shared_flag='-shared'
6500       else
6501         # not using gcc
6502         if test "$host_cpu" = ia64; then
6503         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6504         # chokes on -Wl,-G. The following line is correct:
6505           shared_flag='-G'
6506         else
6507         if test "$aix_use_runtimelinking" = yes; then
6508             shared_flag='${wl}-G'
6509           else
6510             shared_flag='${wl}-bM:SRE'
6511         fi
6512         fi
6513       fi
6514
6515       # It seems that -bexpall does not export symbols beginning with
6516       # underscore (_), so it is better to generate a list of symbols to export.
6517       always_export_symbols=yes
6518       if test "$aix_use_runtimelinking" = yes; then
6519         # Warning - without using the other runtime loading flags (-brtl),
6520         # -berok will link without error, but may produce a broken library.
6521         allow_undefined_flag='-berok'
6522        # Determine the default libpath from the value encoded in an empty executable.
6523        cat >conftest.$ac_ext <<_ACEOF
6524 #line $LINENO "configure"
6525 /* confdefs.h.  */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h.  */
6530
6531 int
6532 main ()
6533 {
6534
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6541   (eval $ac_link) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); } &&
6545          { ac_try='test -s conftest$ac_exeext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551
6552 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6553 }'`
6554 # Check for a 64-bit object if we didn't find anything.
6555 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; }
6556 }'`; fi
6557 else
6558   echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 fi
6562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6564
6565        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6566         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"
6567        else
6568         if test "$host_cpu" = ia64; then
6569           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6570           allow_undefined_flag="-z nodefs"
6571           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"
6572         else
6573          # Determine the default libpath from the value encoded in an empty executable.
6574          cat >conftest.$ac_ext <<_ACEOF
6575 #line $LINENO "configure"
6576 /* confdefs.h.  */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h.  */
6581
6582 int
6583 main ()
6584 {
6585
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 rm -f conftest.$ac_objext conftest$ac_exeext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592   (eval $ac_link) 2>&5
6593   ac_status=$?
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } &&
6596          { ac_try='test -s conftest$ac_exeext'
6597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598   (eval $ac_try) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; }; then
6602
6603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6604 }'`
6605 # Check for a 64-bit object if we didn't find anything.
6606 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; }
6607 }'`; fi
6608 else
6609   echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6611
6612 fi
6613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6615
6616          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6617           # Warning - without using the other run time loading flags,
6618           # -berok will link without error, but may produce a broken library.
6619           no_undefined_flag=' ${wl}-bernotok'
6620           allow_undefined_flag=' ${wl}-berok'
6621           # -bexpall does not export symbols beginning with underscore (_)
6622           always_export_symbols=yes
6623           # Exported symbols can be pulled into shared objects from archives
6624           whole_archive_flag_spec=' '
6625           archive_cmds_need_lc=yes
6626           # This is similar to how AIX traditionally builds it's shared libraries.
6627           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'
6628         fi
6629       fi
6630       ;;
6631
6632     amigaos*)
6633       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)'
6634       hardcode_libdir_flag_spec='-L$libdir'
6635       hardcode_minus_L=yes
6636       # see comment about different semantics on the GNU ld section
6637       ld_shlibs=no
6638       ;;
6639
6640     bsdi4*)
6641       export_dynamic_flag_spec=-rdynamic
6642       ;;
6643
6644     cygwin* | mingw* | pw32*)
6645       # When not using gcc, we currently assume that we are using
6646       # Microsoft Visual C++.
6647       # hardcode_libdir_flag_spec is actually meaningless, as there is
6648       # no search path for DLLs.
6649       hardcode_libdir_flag_spec=' '
6650       allow_undefined_flag=unsupported
6651       # Tell ltmain to make .lib files, not .a files.
6652       libext=lib
6653       # Tell ltmain to make .dll files, not .so files.
6654       shrext=".dll"
6655       # FIXME: Setting linknames here is a bad hack.
6656       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6657       # The linker will automatically build a .lib file if we build a DLL.
6658       old_archive_From_new_cmds='true'
6659       # FIXME: Should let the user specify the lib program.
6660       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6661       fix_srcfile_path='`cygpath -w "$srcfile"`'
6662       enable_shared_with_static_runtimes=yes
6663       ;;
6664
6665     darwin* | rhapsody*)
6666     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6667       archive_cmds_need_lc=no
6668       case "$host_os" in
6669       rhapsody* | darwin1.[012])
6670         allow_undefined_flag='-undefined suppress'
6671         ;;
6672       *) # Darwin 1.3 on
6673         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6674         ;;
6675       esac
6676       # FIXME: Relying on posixy $() will cause problems for
6677       #        cross-compilation, but unfortunately the echo tests do not
6678       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6679       #        `"' quotes if we put them in here... so don't!
6680         lt_int_apple_cc_single_mod=no
6681         output_verbose_link_cmd='echo'
6682         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6683           lt_int_apple_cc_single_mod=yes
6684         fi
6685         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6686           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6687         else
6688         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'
6689       fi
6690       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6691       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6692         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6693           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}'
6694         else
6695           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}'
6696         fi
6697           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}'
6698       hardcode_direct=no
6699       hardcode_automatic=yes
6700       hardcode_shlibpath_var=unsupported
6701       whole_archive_flag_spec='-all_load $convenience'
6702       link_all_deplibs=yes
6703     fi
6704       ;;
6705
6706     dgux*)
6707       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6708       hardcode_libdir_flag_spec='-L$libdir'
6709       hardcode_shlibpath_var=no
6710       ;;
6711
6712     freebsd1*)
6713       ld_shlibs=no
6714       ;;
6715
6716     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6717     # support.  Future versions do this automatically, but an explicit c++rt0.o
6718     # does not break anything, and helps significantly (at the cost of a little
6719     # extra space).
6720     freebsd2.2*)
6721       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6722       hardcode_libdir_flag_spec='-R$libdir'
6723       hardcode_direct=yes
6724       hardcode_shlibpath_var=no
6725       ;;
6726
6727     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6728     freebsd2*)
6729       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6730       hardcode_direct=yes
6731       hardcode_minus_L=yes
6732       hardcode_shlibpath_var=no
6733       ;;
6734
6735     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6736     freebsd*)
6737       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6738       hardcode_libdir_flag_spec='-R$libdir'
6739       hardcode_direct=yes
6740       hardcode_shlibpath_var=no
6741       ;;
6742
6743     hpux9*)
6744       if test "$GCC" = yes; then
6745         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'
6746       else
6747         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'
6748       fi
6749       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6750       hardcode_libdir_separator=:
6751       hardcode_direct=yes
6752
6753       # hardcode_minus_L: Not really in the search PATH,
6754       # but as the default location of the library.
6755       hardcode_minus_L=yes
6756       export_dynamic_flag_spec='${wl}-E'
6757       ;;
6758
6759     hpux10* | hpux11*)
6760       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6761         case "$host_cpu" in
6762         hppa*64*|ia64*)
6763           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6764           ;;
6765         *)
6766           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6767           ;;
6768         esac
6769       else
6770         case "$host_cpu" in
6771         hppa*64*|ia64*)
6772           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6773           ;;
6774         *)
6775           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6776           ;;
6777         esac
6778       fi
6779       if test "$with_gnu_ld" = no; then
6780         case "$host_cpu" in
6781         hppa*64*)
6782           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6783           hardcode_libdir_flag_spec_ld='+b $libdir'
6784           hardcode_libdir_separator=:
6785           hardcode_direct=no
6786           hardcode_shlibpath_var=no
6787           ;;
6788         ia64*)
6789           hardcode_libdir_flag_spec='-L$libdir'
6790           hardcode_direct=no
6791           hardcode_shlibpath_var=no
6792
6793           # hardcode_minus_L: Not really in the search PATH,
6794           # but as the default location of the library.
6795           hardcode_minus_L=yes
6796           ;;
6797         *)
6798           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6799           hardcode_libdir_separator=:
6800           hardcode_direct=yes
6801           export_dynamic_flag_spec='${wl}-E'
6802
6803           # hardcode_minus_L: Not really in the search PATH,
6804           # but as the default location of the library.
6805           hardcode_minus_L=yes
6806           ;;
6807         esac
6808       fi
6809       ;;
6810
6811     irix5* | irix6* | nonstopux*)
6812       if test "$GCC" = yes; then
6813         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'
6814       else
6815         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'
6816         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6817       fi
6818       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6819       hardcode_libdir_separator=:
6820       link_all_deplibs=yes
6821       ;;
6822
6823     netbsd*)
6824       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6825         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6826       else
6827         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6828       fi
6829       hardcode_libdir_flag_spec='-R$libdir'
6830       hardcode_direct=yes
6831       hardcode_shlibpath_var=no
6832       ;;
6833
6834     newsos6)
6835       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6836       hardcode_direct=yes
6837       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6838       hardcode_libdir_separator=:
6839       hardcode_shlibpath_var=no
6840       ;;
6841
6842     openbsd*)
6843       hardcode_direct=yes
6844       hardcode_shlibpath_var=no
6845       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6846         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6847         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6848         export_dynamic_flag_spec='${wl}-E'
6849       else
6850        case $host_os in
6851          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6852            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6853            hardcode_libdir_flag_spec='-R$libdir'
6854            ;;
6855          *)
6856            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6857            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6858            ;;
6859        esac
6860       fi
6861       ;;
6862
6863     os2*)
6864       hardcode_libdir_flag_spec='-L$libdir'
6865       hardcode_minus_L=yes
6866       allow_undefined_flag=unsupported
6867       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'
6868       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6869       ;;
6870
6871     osf3*)
6872       if test "$GCC" = yes; then
6873         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6874         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'
6875       else
6876         allow_undefined_flag=' -expect_unresolved \*'
6877         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'
6878       fi
6879       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6880       hardcode_libdir_separator=:
6881       ;;
6882
6883     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6884       if test "$GCC" = yes; then
6885         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6886         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'
6887         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6888       else
6889         allow_undefined_flag=' -expect_unresolved \*'
6890         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'
6891         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6892         $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'
6893
6894         # Both c and cxx compiler support -rpath directly
6895         hardcode_libdir_flag_spec='-rpath $libdir'
6896       fi
6897       hardcode_libdir_separator=:
6898       ;;
6899
6900     sco3.2v5*)
6901       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6902       hardcode_shlibpath_var=no
6903       export_dynamic_flag_spec='${wl}-Bexport'
6904       runpath_var=LD_RUN_PATH
6905       hardcode_runpath_var=yes
6906       ;;
6907
6908     solaris*)
6909       no_undefined_flag=' -z text'
6910       if test "$GCC" = yes; then
6911         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6912         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6913           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6914       else
6915         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6916         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6917         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6918       fi
6919       hardcode_libdir_flag_spec='-R$libdir'
6920       hardcode_shlibpath_var=no
6921       case $host_os in
6922       solaris2.[0-5] | solaris2.[0-5].*) ;;
6923       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6924         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6925       esac
6926       link_all_deplibs=yes
6927       ;;
6928
6929     sunos4*)
6930       if test "x$host_vendor" = xsequent; then
6931         # Use $CC to link under sequent, because it throws in some extra .o
6932         # files that make .init and .fini sections work.
6933         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6934       else
6935         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6936       fi
6937       hardcode_libdir_flag_spec='-L$libdir'
6938       hardcode_direct=yes
6939       hardcode_minus_L=yes
6940       hardcode_shlibpath_var=no
6941       ;;
6942
6943     sysv4)
6944       case $host_vendor in
6945         sni)
6946           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6947           hardcode_direct=yes # is this really true???
6948         ;;
6949         siemens)
6950           ## LD is ld it makes a PLAMLIB
6951           ## CC just makes a GrossModule.
6952           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6953           reload_cmds='$CC -r -o $output$reload_objs'
6954           hardcode_direct=no
6955         ;;
6956         motorola)
6957           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6958           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6959         ;;
6960       esac
6961       runpath_var='LD_RUN_PATH'
6962       hardcode_shlibpath_var=no
6963       ;;
6964
6965     sysv4.3*)
6966       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967       hardcode_shlibpath_var=no
6968       export_dynamic_flag_spec='-Bexport'
6969       ;;
6970
6971     sysv4*MP*)
6972       if test -d /usr/nec; then
6973         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974         hardcode_shlibpath_var=no
6975         runpath_var=LD_RUN_PATH
6976         hardcode_runpath_var=yes
6977         ld_shlibs=yes
6978       fi
6979       ;;
6980
6981     sysv4.2uw2*)
6982       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6983       hardcode_direct=yes
6984       hardcode_minus_L=no
6985       hardcode_shlibpath_var=no
6986       hardcode_runpath_var=yes
6987       runpath_var=LD_RUN_PATH
6988       ;;
6989
6990    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6991       no_undefined_flag='${wl}-z ${wl}text'
6992       if test "$GCC" = yes; then
6993         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6994       else
6995         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6996       fi
6997       runpath_var='LD_RUN_PATH'
6998       hardcode_shlibpath_var=no
6999       ;;
7000
7001     sysv5*)
7002       no_undefined_flag=' -z text'
7003       # $CC -shared without GNU ld will not create a library from C++
7004       # object files and a static libstdc++, better avoid it by now
7005       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7006       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7007                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7008       hardcode_libdir_flag_spec=
7009       hardcode_shlibpath_var=no
7010       runpath_var='LD_RUN_PATH'
7011       ;;
7012
7013     uts4*)
7014       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7015       hardcode_libdir_flag_spec='-L$libdir'
7016       hardcode_shlibpath_var=no
7017       ;;
7018
7019     *)
7020       ld_shlibs=no
7021       ;;
7022     esac
7023   fi
7024
7025 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7026 echo "${ECHO_T}$ld_shlibs" >&6
7027 test "$ld_shlibs" = no && can_build_shared=no
7028
7029 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7030 if test "$GCC" = yes; then
7031   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7032 fi
7033
7034 #
7035 # Do we need to explicitly link libc?
7036 #
7037 case "x$archive_cmds_need_lc" in
7038 x|xyes)
7039   # Assume -lc should be added
7040   archive_cmds_need_lc=yes
7041
7042   if test "$enable_shared" = yes && test "$GCC" = yes; then
7043     case $archive_cmds in
7044     *'~'*)
7045       # FIXME: we may have to deal with multi-command sequences.
7046       ;;
7047     '$CC '*)
7048       # Test whether the compiler implicitly links with -lc since on some
7049       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7050       # to ld, don't add -lc before -lgcc.
7051       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7053       $rm conftest*
7054       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7055
7056       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057   (eval $ac_compile) 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); } 2>conftest.err; then
7061         soname=conftest
7062         lib=conftest
7063         libobjs=conftest.$ac_objext
7064         deplibs=
7065         wl=$lt_prog_compiler_wl
7066         compiler_flags=-v
7067         linker_flags=-v
7068         verstring=
7069         output_objdir=.
7070         libname=conftest
7071         lt_save_allow_undefined_flag=$allow_undefined_flag
7072         allow_undefined_flag=
7073         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7074   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); }
7078         then
7079           archive_cmds_need_lc=no
7080         else
7081           archive_cmds_need_lc=yes
7082         fi
7083         allow_undefined_flag=$lt_save_allow_undefined_flag
7084       else
7085         cat conftest.err 1>&5
7086       fi
7087       $rm conftest*
7088       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7089 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7090       ;;
7091     esac
7092   fi
7093   ;;
7094 esac
7095
7096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7098 hardcode_action=
7099 if test -n "$hardcode_libdir_flag_spec" || \
7100    test -n "$runpath_var " || \
7101    test "X$hardcode_automatic"="Xyes" ; then
7102
7103   # We can hardcode non-existant directories.
7104   if test "$hardcode_direct" != no &&
7105      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7106      # have to relink, otherwise we might link with an installed library
7107      # when we should be linking with a yet-to-be-installed one
7108      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7109      test "$hardcode_minus_L" != no; then
7110     # Linking always hardcodes the temporary library directory.
7111     hardcode_action=relink
7112   else
7113     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7114     hardcode_action=immediate
7115   fi
7116 else
7117   # We cannot hardcode anything, or else we can only hardcode existing
7118   # directories.
7119   hardcode_action=unsupported
7120 fi
7121 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7122 echo "${ECHO_T}$hardcode_action" >&6
7123
7124 if test "$hardcode_action" = relink; then
7125   # Fast installation is not supported
7126   enable_fast_install=no
7127 elif test "$shlibpath_overrides_runpath" = yes ||
7128      test "$enable_shared" = no; then
7129   # Fast installation is not necessary
7130   enable_fast_install=needless
7131 fi
7132
7133 striplib=
7134 old_striplib=
7135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7137 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7138   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7139   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7140   echo "$as_me:$LINENO: result: yes" >&5
7141 echo "${ECHO_T}yes" >&6
7142 else
7143 # FIXME - insert some real tests, host_os isn't really good enough
7144   case $host_os in
7145    darwin*)
7146        if test -n "$STRIP" ; then
7147          striplib="$STRIP -x"
7148          echo "$as_me:$LINENO: result: yes" >&5
7149 echo "${ECHO_T}yes" >&6
7150        else
7151   echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6
7153 fi
7154        ;;
7155    *)
7156   echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7158     ;;
7159   esac
7160 fi
7161
7162 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7163 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7164 library_names_spec=
7165 libname_spec='lib$name'
7166 soname_spec=
7167 shrext=".so"
7168 postinstall_cmds=
7169 postuninstall_cmds=
7170 finish_cmds=
7171 finish_eval=
7172 shlibpath_var=
7173 shlibpath_overrides_runpath=unknown
7174 version_type=none
7175 dynamic_linker="$host_os ld.so"
7176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7177 if test "$GCC" = yes; then
7178   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7179   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7180     # if the path contains ";" then we assume it to be the separator
7181     # otherwise default to the standard path separator (i.e. ":") - it is
7182     # assumed that no part of a normal pathname contains ";" but that should
7183     # okay in the real world where ";" in dirpaths is itself problematic.
7184     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7185   else
7186     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7187   fi
7188 else
7189   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7190 fi
7191 need_lib_prefix=unknown
7192 hardcode_into_libs=no
7193
7194 # when you set need_version to no, make sure it does not cause -set_version
7195 # flags to be left without arguments
7196 need_version=unknown
7197
7198 case $host_os in
7199 aix3*)
7200   version_type=linux
7201   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7202   shlibpath_var=LIBPATH
7203
7204   # AIX 3 has no versioning support, so we append a major version to the name.
7205   soname_spec='${libname}${release}${shared_ext}$major'
7206   ;;
7207
7208 aix4* | aix5*)
7209   version_type=linux
7210   need_lib_prefix=no
7211   need_version=no
7212   hardcode_into_libs=yes
7213   if test "$host_cpu" = ia64; then
7214     # AIX 5 supports IA64
7215     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7216     shlibpath_var=LD_LIBRARY_PATH
7217   else
7218     # With GCC up to 2.95.x, collect2 would create an import file
7219     # for dependence libraries.  The import file would start with
7220     # the line `#! .'.  This would cause the generated library to
7221     # depend on `.', always an invalid library.  This was fixed in
7222     # development snapshots of GCC prior to 3.0.
7223     case $host_os in
7224       aix4 | aix4.[01] | aix4.[01].*)
7225       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7226            echo ' yes '
7227            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7228         :
7229       else
7230         can_build_shared=no
7231       fi
7232       ;;
7233     esac
7234     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7235     # soname into executable. Probably we can add versioning support to
7236     # collect2, so additional links can be useful in future.
7237     if test "$aix_use_runtimelinking" = yes; then
7238       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7239       # instead of lib<name>.a to let people know that these are not
7240       # typical AIX shared libraries.
7241       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7242     else
7243       # We preserve .a as extension for shared libraries through AIX4.2
7244       # and later when we are not doing run time linking.
7245       library_names_spec='${libname}${release}.a $libname.a'
7246       soname_spec='${libname}${release}${shared_ext}$major'
7247     fi
7248     shlibpath_var=LIBPATH
7249   fi
7250   ;;
7251
7252 amigaos*)
7253   library_names_spec='$libname.ixlibrary $libname.a'
7254   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7255   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'
7256   ;;
7257
7258 beos*)
7259   library_names_spec='${libname}${shared_ext}'
7260   dynamic_linker="$host_os ld.so"
7261   shlibpath_var=LIBRARY_PATH
7262   ;;
7263
7264 bsdi4*)
7265   version_type=linux
7266   need_version=no
7267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7268   soname_spec='${libname}${release}${shared_ext}$major'
7269   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7270   shlibpath_var=LD_LIBRARY_PATH
7271   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7272   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7273   # the default ld.so.conf also contains /usr/contrib/lib and
7274   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7275   # libtool to hard-code these into programs
7276   ;;
7277
7278 cygwin* | mingw* | pw32*)
7279   version_type=windows
7280   shrext=".dll"
7281   need_version=no
7282   need_lib_prefix=no
7283
7284   case $GCC,$host_os in
7285   yes,cygwin* | yes,mingw* | yes,pw32*)
7286     library_names_spec='$libname.dll.a'
7287     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7288     postinstall_cmds='base_file=`basename \${file}`~
7289       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7290       dldir=$destdir/`dirname \$dlpath`~
7291       test -d \$dldir || mkdir -p \$dldir~
7292       $install_prog $dir/$dlname \$dldir/$dlname'
7293     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7294       dlpath=$dir/\$dldll~
7295        $rm \$dlpath'
7296     shlibpath_overrides_runpath=yes
7297
7298     case $host_os in
7299     cygwin*)
7300       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7301       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7302       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7303       ;;
7304     mingw*)
7305       # MinGW DLLs use traditional 'lib' prefix
7306       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7307       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7308       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7309         # It is most probably a Windows format PATH printed by
7310         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7311         # path with ; separators, and with drive letters. We can handle the
7312         # drive letters (cygwin fileutils understands them), so leave them,
7313         # especially as we might pass files found there to a mingw objdump,
7314         # which wouldn't understand a cygwinified path. Ahh.
7315         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7316       else
7317         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7318       fi
7319       ;;
7320     pw32*)
7321       # pw32 DLLs use 'pw' prefix rather than 'lib'
7322       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7323       ;;
7324     esac
7325     ;;
7326
7327   *)
7328     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7329     ;;
7330   esac
7331   dynamic_linker='Win32 ld.exe'
7332   # FIXME: first we should search . and the directory the executable is in
7333   shlibpath_var=PATH
7334   ;;
7335
7336 darwin* | rhapsody*)
7337   dynamic_linker="$host_os dyld"
7338   version_type=darwin
7339   need_lib_prefix=no
7340   need_version=no
7341   # FIXME: Relying on posixy $() will cause problems for
7342   #        cross-compilation, but unfortunately the echo tests do not
7343   #        yet detect zsh echo's removal of \ escapes.
7344   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7345   soname_spec='${libname}${release}${major}$shared_ext'
7346   shlibpath_overrides_runpath=yes
7347   shlibpath_var=DYLD_LIBRARY_PATH
7348   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7349   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7350   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7351   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"`
7352   fi
7353   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7354   ;;
7355
7356 dgux*)
7357   version_type=linux
7358   need_lib_prefix=no
7359   need_version=no
7360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7361   soname_spec='${libname}${release}${shared_ext}$major'
7362   shlibpath_var=LD_LIBRARY_PATH
7363   ;;
7364
7365 freebsd1*)
7366   dynamic_linker=no
7367   ;;
7368
7369 freebsd*)
7370   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7371   version_type=freebsd-$objformat
7372   case $version_type in
7373     freebsd-elf*)
7374       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7375       need_version=no
7376       need_lib_prefix=no
7377       ;;
7378     freebsd-*)
7379       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7380       need_version=yes
7381       ;;
7382   esac
7383   shlibpath_var=LD_LIBRARY_PATH
7384   case $host_os in
7385   freebsd2*)
7386     shlibpath_overrides_runpath=yes
7387     ;;
7388   freebsd3.01* | freebsdelf3.01*)
7389     shlibpath_overrides_runpath=yes
7390     hardcode_into_libs=yes
7391     ;;
7392   *) # from 3.2 on
7393     shlibpath_overrides_runpath=no
7394     hardcode_into_libs=yes
7395     ;;
7396   esac
7397   ;;
7398
7399 gnu*)
7400   version_type=linux
7401   need_lib_prefix=no
7402   need_version=no
7403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7404   soname_spec='${libname}${release}${shared_ext}$major'
7405   shlibpath_var=LD_LIBRARY_PATH
7406   hardcode_into_libs=yes
7407   ;;
7408
7409 hpux9* | hpux10* | hpux11*)
7410   # Give a soname corresponding to the major version so that dld.sl refuses to
7411   # link against other versions.
7412   version_type=sunos
7413   need_lib_prefix=no
7414   need_version=no
7415   case "$host_cpu" in
7416   ia64*)
7417     shrext='.so'
7418     hardcode_into_libs=yes
7419     dynamic_linker="$host_os dld.so"
7420     shlibpath_var=LD_LIBRARY_PATH
7421     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7423     soname_spec='${libname}${release}${shared_ext}$major'
7424     if test "X$HPUX_IA64_MODE" = X32; then
7425       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7426     else
7427       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7428     fi
7429     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7430     ;;
7431    hppa*64*)
7432      shrext='.sl'
7433      hardcode_into_libs=yes
7434      dynamic_linker="$host_os dld.sl"
7435      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7436      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7437      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7438      soname_spec='${libname}${release}${shared_ext}$major'
7439      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7440      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7441      ;;
7442    *)
7443     shrext='.sl'
7444     dynamic_linker="$host_os dld.sl"
7445     shlibpath_var=SHLIB_PATH
7446     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7448     soname_spec='${libname}${release}${shared_ext}$major'
7449     ;;
7450   esac
7451   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7452   postinstall_cmds='chmod 555 $lib'
7453   ;;
7454
7455 irix5* | irix6* | nonstopux*)
7456   case $host_os in
7457     nonstopux*) version_type=nonstopux ;;
7458     *)
7459         if test "$lt_cv_prog_gnu_ld" = yes; then
7460                 version_type=linux
7461         else
7462                 version_type=irix
7463         fi ;;
7464   esac
7465   need_lib_prefix=no
7466   need_version=no
7467   soname_spec='${libname}${release}${shared_ext}$major'
7468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7469   case $host_os in
7470   irix5* | nonstopux*)
7471     libsuff= shlibsuff=
7472     ;;
7473   *)
7474     case $LD in # libtool.m4 will add one of these switches to LD
7475     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7476       libsuff= shlibsuff= libmagic=32-bit;;
7477     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7478       libsuff=32 shlibsuff=N32 libmagic=N32;;
7479     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7480       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7481     *) libsuff= shlibsuff= libmagic=never-match;;
7482     esac
7483     ;;
7484   esac
7485   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7486   shlibpath_overrides_runpath=no
7487   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7488   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7489   hardcode_into_libs=yes
7490   ;;
7491
7492 # No shared lib support for Linux oldld, aout, or coff.
7493 linux*oldld* | linux*aout* | linux*coff*)
7494   dynamic_linker=no
7495   ;;
7496
7497 # This must be Linux ELF.
7498 linux*)
7499   version_type=linux
7500   need_lib_prefix=no
7501   need_version=no
7502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7503   soname_spec='${libname}${release}${shared_ext}$major'
7504   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7505   shlibpath_var=LD_LIBRARY_PATH
7506   shlibpath_overrides_runpath=no
7507   # This implies no fast_install, which is unacceptable.
7508   # Some rework will be needed to allow for fast_install
7509   # before this can be enabled.
7510   hardcode_into_libs=yes
7511
7512   # We used to test for /lib/ld.so.1 and disable shared libraries on
7513   # powerpc, because MkLinux only supported shared libraries with the
7514   # GNU dynamic linker.  Since this was broken with cross compilers,
7515   # most powerpc-linux boxes support dynamic linking these days and
7516   # people can always --disable-shared, the test was removed, and we
7517   # assume the GNU/Linux dynamic linker is in use.
7518   dynamic_linker='GNU/Linux ld.so'
7519   ;;
7520
7521 netbsd*)
7522   version_type=sunos
7523   need_lib_prefix=no
7524   need_version=no
7525   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7527     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7528     dynamic_linker='NetBSD (a.out) ld.so'
7529   else
7530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7531     soname_spec='${libname}${release}${shared_ext}$major'
7532     dynamic_linker='NetBSD ld.elf_so'
7533   fi
7534   shlibpath_var=LD_LIBRARY_PATH
7535   shlibpath_overrides_runpath=yes
7536   hardcode_into_libs=yes
7537   ;;
7538
7539 newsos6)
7540   version_type=linux
7541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7542   shlibpath_var=LD_LIBRARY_PATH
7543   shlibpath_overrides_runpath=yes
7544   ;;
7545
7546 nto-qnx)
7547   version_type=linux
7548   need_lib_prefix=no
7549   need_version=no
7550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7551   soname_spec='${libname}${release}${shared_ext}$major'
7552   shlibpath_var=LD_LIBRARY_PATH
7553   shlibpath_overrides_runpath=yes
7554   ;;
7555
7556 openbsd*)
7557   version_type=sunos
7558   need_lib_prefix=no
7559   need_version=no
7560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7561   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7562   shlibpath_var=LD_LIBRARY_PATH
7563   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7564     case $host_os in
7565       openbsd2.[89] | openbsd2.[89].*)
7566         shlibpath_overrides_runpath=no
7567         ;;
7568       *)
7569         shlibpath_overrides_runpath=yes
7570         ;;
7571       esac
7572   else
7573     shlibpath_overrides_runpath=yes
7574   fi
7575   ;;
7576
7577 os2*)
7578   libname_spec='$name'
7579   shrext=".dll"
7580   need_lib_prefix=no
7581   library_names_spec='$libname${shared_ext} $libname.a'
7582   dynamic_linker='OS/2 ld.exe'
7583   shlibpath_var=LIBPATH
7584   ;;
7585
7586 osf3* | osf4* | osf5*)
7587   version_type=osf
7588   need_lib_prefix=no
7589   need_version=no
7590   soname_spec='${libname}${release}${shared_ext}$major'
7591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7592   shlibpath_var=LD_LIBRARY_PATH
7593   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7594   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7595   ;;
7596
7597 sco3.2v5*)
7598   version_type=osf
7599   soname_spec='${libname}${release}${shared_ext}$major'
7600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7601   shlibpath_var=LD_LIBRARY_PATH
7602   ;;
7603
7604 solaris*)
7605   version_type=linux
7606   need_lib_prefix=no
7607   need_version=no
7608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609   soname_spec='${libname}${release}${shared_ext}$major'
7610   shlibpath_var=LD_LIBRARY_PATH
7611   shlibpath_overrides_runpath=yes
7612   hardcode_into_libs=yes
7613   # ldd complains unless libraries are executable
7614   postinstall_cmds='chmod +x $lib'
7615   ;;
7616
7617 sunos4*)
7618   version_type=sunos
7619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7620   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7621   shlibpath_var=LD_LIBRARY_PATH
7622   shlibpath_overrides_runpath=yes
7623   if test "$with_gnu_ld" = yes; then
7624     need_lib_prefix=no
7625   fi
7626   need_version=yes
7627   ;;
7628
7629 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7630   version_type=linux
7631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7632   soname_spec='${libname}${release}${shared_ext}$major'
7633   shlibpath_var=LD_LIBRARY_PATH
7634   case $host_vendor in
7635     sni)
7636       shlibpath_overrides_runpath=no
7637       need_lib_prefix=no
7638       export_dynamic_flag_spec='${wl}-Blargedynsym'
7639       runpath_var=LD_RUN_PATH
7640       ;;
7641     siemens)
7642       need_lib_prefix=no
7643       ;;
7644     motorola)
7645       need_lib_prefix=no
7646       need_version=no
7647       shlibpath_overrides_runpath=no
7648       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7649       ;;
7650   esac
7651   ;;
7652
7653 sysv4*MP*)
7654   if test -d /usr/nec ;then
7655     version_type=linux
7656     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7657     soname_spec='$libname${shared_ext}.$major'
7658     shlibpath_var=LD_LIBRARY_PATH
7659   fi
7660   ;;
7661
7662 uts4*)
7663   version_type=linux
7664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7665   soname_spec='${libname}${release}${shared_ext}$major'
7666   shlibpath_var=LD_LIBRARY_PATH
7667   ;;
7668
7669 *)
7670   dynamic_linker=no
7671   ;;
7672 esac
7673 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7674 echo "${ECHO_T}$dynamic_linker" >&6
7675 test "$dynamic_linker" = no && can_build_shared=no
7676
7677 if test "x$enable_dlopen" != xyes; then
7678   enable_dlopen=unknown
7679   enable_dlopen_self=unknown
7680   enable_dlopen_self_static=unknown
7681 else
7682   lt_cv_dlopen=no
7683   lt_cv_dlopen_libs=
7684
7685   case $host_os in
7686   beos*)
7687     lt_cv_dlopen="load_add_on"
7688     lt_cv_dlopen_libs=
7689     lt_cv_dlopen_self=yes
7690     ;;
7691
7692   mingw* | pw32*)
7693     lt_cv_dlopen="LoadLibrary"
7694     lt_cv_dlopen_libs=
7695    ;;
7696
7697   cygwin*)
7698     lt_cv_dlopen="dlopen"
7699     lt_cv_dlopen_libs=
7700    ;;
7701
7702   darwin*)
7703   # if libdl is installed we need to link against it
7704     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7705 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7706 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   ac_check_lib_save_LIBS=$LIBS
7710 LIBS="-ldl  $LIBS"
7711 cat >conftest.$ac_ext <<_ACEOF
7712 #line $LINENO "configure"
7713 /* confdefs.h.  */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h.  */
7718
7719 /* Override any gcc2 internal prototype to avoid an error.  */
7720 #ifdef __cplusplus
7721 extern "C"
7722 #endif
7723 /* We use char because int might match the return type of a gcc2
7724    builtin and then its argument prototype would still apply.  */
7725 char dlopen ();
7726 int
7727 main ()
7728 {
7729 dlopen ();
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736   (eval $ac_link) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } &&
7740          { ac_try='test -s conftest$ac_exeext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   ac_cv_lib_dl_dlopen=yes
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 ac_cv_lib_dl_dlopen=no
7752 fi
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754 LIBS=$ac_check_lib_save_LIBS
7755 fi
7756 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7757 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7758 if test $ac_cv_lib_dl_dlopen = yes; then
7759   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7760 else
7761
7762     lt_cv_dlopen="dyld"
7763     lt_cv_dlopen_libs=
7764     lt_cv_dlopen_self=yes
7765
7766 fi
7767
7768    ;;
7769
7770   *)
7771     echo "$as_me:$LINENO: checking for shl_load" >&5
7772 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7773 if test "${ac_cv_func_shl_load+set}" = set; then
7774   echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776   cat >conftest.$ac_ext <<_ACEOF
7777 #line $LINENO "configure"
7778 /* confdefs.h.  */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h.  */
7783 /* System header to define __stub macros and hopefully few prototypes,
7784     which can conflict with char shl_load (); below.
7785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786     <limits.h> exists even on freestanding compilers.  */
7787 #ifdef __STDC__
7788 # include <limits.h>
7789 #else
7790 # include <assert.h>
7791 #endif
7792 /* Override any gcc2 internal prototype to avoid an error.  */
7793 #ifdef __cplusplus
7794 extern "C"
7795 {
7796 #endif
7797 /* We use char because int might match the return type of a gcc2
7798    builtin and then its argument prototype would still apply.  */
7799 char shl_load ();
7800 /* The GNU C library defines this for functions which it implements
7801     to always fail with ENOSYS.  Some functions are actually named
7802     something starting with __ and the normal name is an alias.  */
7803 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7804 choke me
7805 #else
7806 char (*f) () = shl_load;
7807 #endif
7808 #ifdef __cplusplus
7809 }
7810 #endif
7811
7812 int
7813 main ()
7814 {
7815 return f != shl_load;
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822   (eval $ac_link) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } &&
7826          { ac_try='test -s conftest$ac_exeext'
7827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828   (eval $ac_try) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; }; then
7832   ac_cv_func_shl_load=yes
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 ac_cv_func_shl_load=no
7838 fi
7839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7840 fi
7841 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7843 if test $ac_cv_func_shl_load = yes; then
7844   lt_cv_dlopen="shl_load"
7845 else
7846   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7847 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7848 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7849   echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851   ac_check_lib_save_LIBS=$LIBS
7852 LIBS="-ldld  $LIBS"
7853 cat >conftest.$ac_ext <<_ACEOF
7854 #line $LINENO "configure"
7855 /* confdefs.h.  */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h.  */
7860
7861 /* Override any gcc2 internal prototype to avoid an error.  */
7862 #ifdef __cplusplus
7863 extern "C"
7864 #endif
7865 /* We use char because int might match the return type of a gcc2
7866    builtin and then its argument prototype would still apply.  */
7867 char shl_load ();
7868 int
7869 main ()
7870 {
7871 shl_load ();
7872   ;
7873   return 0;
7874 }
7875 _ACEOF
7876 rm -f conftest.$ac_objext conftest$ac_exeext
7877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7878   (eval $ac_link) 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); } &&
7882          { ac_try='test -s conftest$ac_exeext'
7883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884   (eval $ac_try) 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); }; }; then
7888   ac_cv_lib_dld_shl_load=yes
7889 else
7890   echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 ac_cv_lib_dld_shl_load=no
7894 fi
7895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7896 LIBS=$ac_check_lib_save_LIBS
7897 fi
7898 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7900 if test $ac_cv_lib_dld_shl_load = yes; then
7901   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7902 else
7903   echo "$as_me:$LINENO: checking for dlopen" >&5
7904 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7905 if test "${ac_cv_func_dlopen+set}" = set; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908   cat >conftest.$ac_ext <<_ACEOF
7909 #line $LINENO "configure"
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915 /* System header to define __stub macros and hopefully few prototypes,
7916     which can conflict with char dlopen (); below.
7917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7918     <limits.h> exists even on freestanding compilers.  */
7919 #ifdef __STDC__
7920 # include <limits.h>
7921 #else
7922 # include <assert.h>
7923 #endif
7924 /* Override any gcc2 internal prototype to avoid an error.  */
7925 #ifdef __cplusplus
7926 extern "C"
7927 {
7928 #endif
7929 /* We use char because int might match the return type of a gcc2
7930    builtin and then its argument prototype would still apply.  */
7931 char dlopen ();
7932 /* The GNU C library defines this for functions which it implements
7933     to always fail with ENOSYS.  Some functions are actually named
7934     something starting with __ and the normal name is an alias.  */
7935 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7936 choke me
7937 #else
7938 char (*f) () = dlopen;
7939 #endif
7940 #ifdef __cplusplus
7941 }
7942 #endif
7943
7944 int
7945 main ()
7946 {
7947 return f != dlopen;
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7954   (eval $ac_link) 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } &&
7958          { ac_try='test -s conftest$ac_exeext'
7959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960   (eval $ac_try) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); }; }; then
7964   ac_cv_func_dlopen=yes
7965 else
7966   echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7968
7969 ac_cv_func_dlopen=no
7970 fi
7971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7972 fi
7973 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7974 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7975 if test $ac_cv_func_dlopen = yes; then
7976   lt_cv_dlopen="dlopen"
7977 else
7978   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7979 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7980 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   ac_check_lib_save_LIBS=$LIBS
7984 LIBS="-ldl  $LIBS"
7985 cat >conftest.$ac_ext <<_ACEOF
7986 #line $LINENO "configure"
7987 /* confdefs.h.  */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h.  */
7992
7993 /* Override any gcc2 internal prototype to avoid an error.  */
7994 #ifdef __cplusplus
7995 extern "C"
7996 #endif
7997 /* We use char because int might match the return type of a gcc2
7998    builtin and then its argument prototype would still apply.  */
7999 char dlopen ();
8000 int
8001 main ()
8002 {
8003 dlopen ();
8004   ;
8005   return 0;
8006 }
8007 _ACEOF
8008 rm -f conftest.$ac_objext conftest$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010   (eval $ac_link) 2>&5
8011   ac_status=$?
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); } &&
8014          { ac_try='test -s conftest$ac_exeext'
8015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016   (eval $ac_try) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; }; then
8020   ac_cv_lib_dl_dlopen=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 ac_cv_lib_dl_dlopen=no
8026 fi
8027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8029 fi
8030 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8032 if test $ac_cv_lib_dl_dlopen = yes; then
8033   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8034 else
8035   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8036 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8037 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   ac_check_lib_save_LIBS=$LIBS
8041 LIBS="-lsvld  $LIBS"
8042 cat >conftest.$ac_ext <<_ACEOF
8043 #line $LINENO "configure"
8044 /* confdefs.h.  */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h.  */
8049
8050 /* Override any gcc2 internal prototype to avoid an error.  */
8051 #ifdef __cplusplus
8052 extern "C"
8053 #endif
8054 /* We use char because int might match the return type of a gcc2
8055    builtin and then its argument prototype would still apply.  */
8056 char dlopen ();
8057 int
8058 main ()
8059 {
8060 dlopen ();
8061   ;
8062   return 0;
8063 }
8064 _ACEOF
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067   (eval $ac_link) 2>&5
8068   ac_status=$?
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); } &&
8071          { ac_try='test -s conftest$ac_exeext'
8072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073   (eval $ac_try) 2>&5
8074   ac_status=$?
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); }; }; then
8077   ac_cv_lib_svld_dlopen=yes
8078 else
8079   echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 ac_cv_lib_svld_dlopen=no
8083 fi
8084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8085 LIBS=$ac_check_lib_save_LIBS
8086 fi
8087 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8088 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8089 if test $ac_cv_lib_svld_dlopen = yes; then
8090   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8091 else
8092   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8093 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8094 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   ac_check_lib_save_LIBS=$LIBS
8098 LIBS="-ldld  $LIBS"
8099 cat >conftest.$ac_ext <<_ACEOF
8100 #line $LINENO "configure"
8101 /* confdefs.h.  */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h.  */
8106
8107 /* Override any gcc2 internal prototype to avoid an error.  */
8108 #ifdef __cplusplus
8109 extern "C"
8110 #endif
8111 /* We use char because int might match the return type of a gcc2
8112    builtin and then its argument prototype would still apply.  */
8113 char dld_link ();
8114 int
8115 main ()
8116 {
8117 dld_link ();
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124   (eval $ac_link) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -s conftest$ac_exeext'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_cv_lib_dld_dld_link=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ac_cv_lib_dld_dld_link=no
8140 fi
8141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8142 LIBS=$ac_check_lib_save_LIBS
8143 fi
8144 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8145 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8146 if test $ac_cv_lib_dld_dld_link = yes; then
8147   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8148 fi
8149
8150
8151 fi
8152
8153
8154 fi
8155
8156
8157 fi
8158
8159
8160 fi
8161
8162
8163 fi
8164
8165     ;;
8166   esac
8167
8168   if test "x$lt_cv_dlopen" != xno; then
8169     enable_dlopen=yes
8170   else
8171     enable_dlopen=no
8172   fi
8173
8174   case $lt_cv_dlopen in
8175   dlopen)
8176     save_CPPFLAGS="$CPPFLAGS"
8177     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8178
8179     save_LDFLAGS="$LDFLAGS"
8180     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8181
8182     save_LIBS="$LIBS"
8183     LIBS="$lt_cv_dlopen_libs $LIBS"
8184
8185     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8186 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8187 if test "${lt_cv_dlopen_self+set}" = set; then
8188   echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190           if test "$cross_compiling" = yes; then :
8191   lt_cv_dlopen_self=cross
8192 else
8193   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8194   lt_status=$lt_dlunknown
8195   cat > conftest.$ac_ext <<EOF
8196 #line 8196 "configure"
8197 #include "confdefs.h"
8198
8199 #if HAVE_DLFCN_H
8200 #include <dlfcn.h>
8201 #endif
8202
8203 #include <stdio.h>
8204
8205 #ifdef RTLD_GLOBAL
8206 #  define LT_DLGLOBAL           RTLD_GLOBAL
8207 #else
8208 #  ifdef DL_GLOBAL
8209 #    define LT_DLGLOBAL         DL_GLOBAL
8210 #  else
8211 #    define LT_DLGLOBAL         0
8212 #  endif
8213 #endif
8214
8215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8216    find out it does not work in some platform. */
8217 #ifndef LT_DLLAZY_OR_NOW
8218 #  ifdef RTLD_LAZY
8219 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8220 #  else
8221 #    ifdef DL_LAZY
8222 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8223 #    else
8224 #      ifdef RTLD_NOW
8225 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8226 #      else
8227 #        ifdef DL_NOW
8228 #          define LT_DLLAZY_OR_NOW      DL_NOW
8229 #        else
8230 #          define LT_DLLAZY_OR_NOW      0
8231 #        endif
8232 #      endif
8233 #    endif
8234 #  endif
8235 #endif
8236
8237 #ifdef __cplusplus
8238 extern "C" void exit (int);
8239 #endif
8240
8241 void fnord() { int i=42;}
8242 int main ()
8243 {
8244   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8245   int status = $lt_dlunknown;
8246
8247   if (self)
8248     {
8249       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8250       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8251       /* dlclose (self); */
8252     }
8253
8254     exit (status);
8255 }
8256 EOF
8257   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258   (eval $ac_link) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8262     (./conftest; exit; ) 2>/dev/null
8263     lt_status=$?
8264     case x$lt_status in
8265       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8266       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8267       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8268     esac
8269   else :
8270     # compilation failed
8271     lt_cv_dlopen_self=no
8272   fi
8273 fi
8274 rm -fr conftest*
8275
8276
8277 fi
8278 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8279 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8280
8281     if test "x$lt_cv_dlopen_self" = xyes; then
8282       LDFLAGS="$LDFLAGS $link_static_flag"
8283       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8284 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8285 if test "${lt_cv_dlopen_self_static+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288           if test "$cross_compiling" = yes; then :
8289   lt_cv_dlopen_self_static=cross
8290 else
8291   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8292   lt_status=$lt_dlunknown
8293   cat > conftest.$ac_ext <<EOF
8294 #line 8294 "configure"
8295 #include "confdefs.h"
8296
8297 #if HAVE_DLFCN_H
8298 #include <dlfcn.h>
8299 #endif
8300
8301 #include <stdio.h>
8302
8303 #ifdef RTLD_GLOBAL
8304 #  define LT_DLGLOBAL           RTLD_GLOBAL
8305 #else
8306 #  ifdef DL_GLOBAL
8307 #    define LT_DLGLOBAL         DL_GLOBAL
8308 #  else
8309 #    define LT_DLGLOBAL         0
8310 #  endif
8311 #endif
8312
8313 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8314    find out it does not work in some platform. */
8315 #ifndef LT_DLLAZY_OR_NOW
8316 #  ifdef RTLD_LAZY
8317 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8318 #  else
8319 #    ifdef DL_LAZY
8320 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8321 #    else
8322 #      ifdef RTLD_NOW
8323 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8324 #      else
8325 #        ifdef DL_NOW
8326 #          define LT_DLLAZY_OR_NOW      DL_NOW
8327 #        else
8328 #          define LT_DLLAZY_OR_NOW      0
8329 #        endif
8330 #      endif
8331 #    endif
8332 #  endif
8333 #endif
8334
8335 #ifdef __cplusplus
8336 extern "C" void exit (int);
8337 #endif
8338
8339 void fnord() { int i=42;}
8340 int main ()
8341 {
8342   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8343   int status = $lt_dlunknown;
8344
8345   if (self)
8346     {
8347       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8348       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8349       /* dlclose (self); */
8350     }
8351
8352     exit (status);
8353 }
8354 EOF
8355   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356   (eval $ac_link) 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8360     (./conftest; exit; ) 2>/dev/null
8361     lt_status=$?
8362     case x$lt_status in
8363       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8364       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8365       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8366     esac
8367   else :
8368     # compilation failed
8369     lt_cv_dlopen_self_static=no
8370   fi
8371 fi
8372 rm -fr conftest*
8373
8374
8375 fi
8376 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8377 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8378     fi
8379
8380     CPPFLAGS="$save_CPPFLAGS"
8381     LDFLAGS="$save_LDFLAGS"
8382     LIBS="$save_LIBS"
8383     ;;
8384   esac
8385
8386   case $lt_cv_dlopen_self in
8387   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8388   *) enable_dlopen_self=unknown ;;
8389   esac
8390
8391   case $lt_cv_dlopen_self_static in
8392   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8393   *) enable_dlopen_self_static=unknown ;;
8394   esac
8395 fi
8396
8397
8398 # Report which librarie types wil actually be built
8399 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8400 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8401 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8402 echo "${ECHO_T}$can_build_shared" >&6
8403
8404 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8405 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8406 test "$can_build_shared" = "no" && enable_shared=no
8407
8408 # On AIX, shared libraries and static libraries use the same namespace, and
8409 # are all built from PIC.
8410 case "$host_os" in
8411 aix3*)
8412   test "$enable_shared" = yes && enable_static=no
8413   if test -n "$RANLIB"; then
8414     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8415     postinstall_cmds='$RANLIB $lib'
8416   fi
8417   ;;
8418
8419 aix4*)
8420   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8421     test "$enable_shared" = yes && enable_static=no
8422   fi
8423   ;;
8424   darwin* | rhapsody*)
8425   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8426     archive_cmds_need_lc=no
8427     case "$host_os" in
8428     rhapsody* | darwin1.[012])
8429       allow_undefined_flag='-undefined suppress'
8430       ;;
8431     *) # Darwin 1.3 on
8432       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8433       ;;
8434     esac
8435     # FIXME: Relying on posixy $() will cause problems for
8436     #        cross-compilation, but unfortunately the echo tests do not
8437     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8438     #          `"' quotes if we put them in here... so don't!
8439                 output_verbose_link_cmd='echo'
8440     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8441     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8442     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8443                   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}'
8444                   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}'
8445     hardcode_direct=no
8446     hardcode_automatic=yes
8447     hardcode_shlibpath_var=unsupported
8448     whole_archive_flag_spec='-all_load $convenience'
8449     link_all_deplibs=yes
8450     fi
8451     ;;
8452 esac
8453 echo "$as_me:$LINENO: result: $enable_shared" >&5
8454 echo "${ECHO_T}$enable_shared" >&6
8455
8456 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8457 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8458 # Make sure either enable_shared or enable_static is yes.
8459 test "$enable_shared" = yes || enable_static=yes
8460 echo "$as_me:$LINENO: result: $enable_static" >&5
8461 echo "${ECHO_T}$enable_static" >&6
8462
8463 # The else clause should only fire when bootstrapping the
8464 # libtool distribution, otherwise you forgot to ship ltmain.sh
8465 # with your package, and you will get complaints that there are
8466 # no rules to generate ltmain.sh.
8467 if test -f "$ltmain"; then
8468   # See if we are running on zsh, and set the options which allow our commands through
8469   # without removal of \ escapes.
8470   if test -n "${ZSH_VERSION+set}" ; then
8471     setopt NO_GLOB_SUBST
8472   fi
8473   # Now quote all the things that may contain metacharacters while being
8474   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8475   # variables and quote the copies for generation of the libtool script.
8476   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8477     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8478     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8479     deplibs_check_method reload_flag reload_cmds need_locks \
8480     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8481     lt_cv_sys_global_symbol_to_c_name_address \
8482     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8483     old_postinstall_cmds old_postuninstall_cmds \
8484     compiler \
8485     CC \
8486     LD \
8487     lt_prog_compiler_wl \
8488     lt_prog_compiler_pic \
8489     lt_prog_compiler_static \
8490     lt_prog_compiler_no_builtin_flag \
8491     export_dynamic_flag_spec \
8492     thread_safe_flag_spec \
8493     whole_archive_flag_spec \
8494     enable_shared_with_static_runtimes \
8495     old_archive_cmds \
8496     old_archive_from_new_cmds \
8497     predep_objects \
8498     postdep_objects \
8499     predeps \
8500     postdeps \
8501     compiler_lib_search_path \
8502     archive_cmds \
8503     archive_expsym_cmds \
8504     postinstall_cmds \
8505     postuninstall_cmds \
8506     old_archive_from_expsyms_cmds \
8507     allow_undefined_flag \
8508     no_undefined_flag \
8509     export_symbols_cmds \
8510     hardcode_libdir_flag_spec \
8511     hardcode_libdir_flag_spec_ld \
8512     hardcode_libdir_separator \
8513     hardcode_automatic \
8514     module_cmds \
8515     module_expsym_cmds \
8516     lt_cv_prog_compiler_c_o \
8517     exclude_expsyms \
8518     include_expsyms; do
8519
8520     case $var in
8521     old_archive_cmds | \
8522     old_archive_from_new_cmds | \
8523     archive_cmds | \
8524     archive_expsym_cmds | \
8525     module_cmds | \
8526     module_expsym_cmds | \
8527     old_archive_from_expsyms_cmds | \
8528     export_symbols_cmds | \
8529     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8530     postinstall_cmds | postuninstall_cmds | \
8531     old_postinstall_cmds | old_postuninstall_cmds | \
8532     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8533       # Double-quote double-evaled strings.
8534       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8535       ;;
8536     *)
8537       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8538       ;;
8539     esac
8540   done
8541
8542   case $lt_echo in
8543   *'\$0 --fallback-echo"')
8544     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8545     ;;
8546   esac
8547
8548 cfgfile="${ofile}T"
8549   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8550   $rm -f "$cfgfile"
8551   { echo "$as_me:$LINENO: creating $ofile" >&5
8552 echo "$as_me: creating $ofile" >&6;}
8553
8554   cat <<__EOF__ >> "$cfgfile"
8555 #! $SHELL
8556
8557 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8558 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8559 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8560 #
8561 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8562 # Free Software Foundation, Inc.
8563 #
8564 # This file is part of GNU Libtool:
8565 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8566 #
8567 # This program is free software; you can redistribute it and/or modify
8568 # it under the terms of the GNU General Public License as published by
8569 # the Free Software Foundation; either version 2 of the License, or
8570 # (at your option) any later version.
8571 #
8572 # This program is distributed in the hope that it will be useful, but
8573 # WITHOUT ANY WARRANTY; without even the implied warranty of
8574 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8575 # General Public License for more details.
8576 #
8577 # You should have received a copy of the GNU General Public License
8578 # along with this program; if not, write to the Free Software
8579 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8580 #
8581 # As a special exception to the GNU General Public License, if you
8582 # distribute this file as part of a program that contains a
8583 # configuration script generated by Autoconf, you may include it under
8584 # the same distribution terms that you use for the rest of that program.
8585
8586 # A sed program that does not truncate output.
8587 SED=$lt_SED
8588
8589 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8590 Xsed="$SED -e s/^X//"
8591
8592 # The HP-UX ksh and POSIX shell print the target directory to stdout
8593 # if CDPATH is set.
8594 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8595
8596 # The names of the tagged configurations supported by this script.
8597 available_tags=
8598
8599 # ### BEGIN LIBTOOL CONFIG
8600
8601 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8602
8603 # Shell to use when invoking shell scripts.
8604 SHELL=$lt_SHELL
8605
8606 # Whether or not to build shared libraries.
8607 build_libtool_libs=$enable_shared
8608
8609 # Whether or not to build static libraries.
8610 build_old_libs=$enable_static
8611
8612 # Whether or not to add -lc for building shared libraries.
8613 build_libtool_need_lc=$archive_cmds_need_lc
8614
8615 # Whether or not to disallow shared libs when runtime libs are static
8616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8617
8618 # Whether or not to optimize for fast installation.
8619 fast_install=$enable_fast_install
8620
8621 # The host system.
8622 host_alias=$host_alias
8623 host=$host
8624
8625 # An echo program that does not interpret backslashes.
8626 echo=$lt_echo
8627
8628 # The archiver.
8629 AR=$lt_AR
8630 AR_FLAGS=$lt_AR_FLAGS
8631
8632 # A C compiler.
8633 LTCC=$lt_LTCC
8634
8635 # A language-specific compiler.
8636 CC=$lt_compiler
8637
8638 # Is the compiler the GNU C compiler?
8639 with_gcc=$GCC
8640
8641 # An ERE matcher.
8642 EGREP=$lt_EGREP
8643
8644 # The linker used to build libraries.
8645 LD=$lt_LD
8646
8647 # Whether we need hard or soft links.
8648 LN_S=$lt_LN_S
8649
8650 # A BSD-compatible nm program.
8651 NM=$lt_NM
8652
8653 # A symbol stripping program
8654 STRIP=$STRIP
8655
8656 # Used to examine libraries when file_magic_cmd begins "file"
8657 MAGIC_CMD=$MAGIC_CMD
8658
8659 # Used on cygwin: DLL creation program.
8660 DLLTOOL="$DLLTOOL"
8661
8662 # Used on cygwin: object dumper.
8663 OBJDUMP="$OBJDUMP"
8664
8665 # Used on cygwin: assembler.
8666 AS="$AS"
8667
8668 # The name of the directory that contains temporary libtool files.
8669 objdir=$objdir
8670
8671 # How to create reloadable object files.
8672 reload_flag=$lt_reload_flag
8673 reload_cmds=$lt_reload_cmds
8674
8675 # How to pass a linker flag through the compiler.
8676 wl=$lt_lt_prog_compiler_wl
8677
8678 # Object file suffix (normally "o").
8679 objext="$ac_objext"
8680
8681 # Old archive suffix (normally "a").
8682 libext="$libext"
8683
8684 # Shared library suffix (normally ".so").
8685 shrext='$shrext'
8686
8687 # Executable file suffix (normally "").
8688 exeext="$exeext"
8689
8690 # Additional compiler flags for building library objects.
8691 pic_flag=$lt_lt_prog_compiler_pic
8692 pic_mode=$pic_mode
8693
8694 # What is the maximum length of a command?
8695 max_cmd_len=$lt_cv_sys_max_cmd_len
8696
8697 # Does compiler simultaneously support -c and -o options?
8698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8699
8700 # Must we lock files when doing compilation ?
8701 need_locks=$lt_need_locks
8702
8703 # Do we need the lib prefix for modules?
8704 need_lib_prefix=$need_lib_prefix
8705
8706 # Do we need a version for libraries?
8707 need_version=$need_version
8708
8709 # Whether dlopen is supported.
8710 dlopen_support=$enable_dlopen
8711
8712 # Whether dlopen of programs is supported.
8713 dlopen_self=$enable_dlopen_self
8714
8715 # Whether dlopen of statically linked programs is supported.
8716 dlopen_self_static=$enable_dlopen_self_static
8717
8718 # Compiler flag to prevent dynamic linking.
8719 link_static_flag=$lt_lt_prog_compiler_static
8720
8721 # Compiler flag to turn off builtin functions.
8722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8723
8724 # Compiler flag to allow reflexive dlopens.
8725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8726
8727 # Compiler flag to generate shared objects directly from archives.
8728 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8729
8730 # Compiler flag to generate thread-safe objects.
8731 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8732
8733 # Library versioning type.
8734 version_type=$version_type
8735
8736 # Format of library name prefix.
8737 libname_spec=$lt_libname_spec
8738
8739 # List of archive names.  First name is the real one, the rest are links.
8740 # The last name is the one that the linker finds with -lNAME.
8741 library_names_spec=$lt_library_names_spec
8742
8743 # The coded name of the library, if different from the real name.
8744 soname_spec=$lt_soname_spec
8745
8746 # Commands used to build and install an old-style archive.
8747 RANLIB=$lt_RANLIB
8748 old_archive_cmds=$lt_old_archive_cmds
8749 old_postinstall_cmds=$lt_old_postinstall_cmds
8750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8751
8752 # Create an old-style archive from a shared archive.
8753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8754
8755 # Create a temporary old-style archive to link instead of a shared archive.
8756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8757
8758 # Commands used to build and install a shared archive.
8759 archive_cmds=$lt_archive_cmds
8760 archive_expsym_cmds=$lt_archive_expsym_cmds
8761 postinstall_cmds=$lt_postinstall_cmds
8762 postuninstall_cmds=$lt_postuninstall_cmds
8763
8764 # Commands used to build a loadable module (assumed same as above if empty)
8765 module_cmds=$lt_module_cmds
8766 module_expsym_cmds=$lt_module_expsym_cmds
8767
8768 # Commands to strip libraries.
8769 old_striplib=$lt_old_striplib
8770 striplib=$lt_striplib
8771
8772 # Dependencies to place before the objects being linked to create a
8773 # shared library.
8774 predep_objects=$lt_predep_objects
8775
8776 # Dependencies to place after the objects being linked to create a
8777 # shared library.
8778 postdep_objects=$lt_postdep_objects
8779
8780 # Dependencies to place before the objects being linked to create a
8781 # shared library.
8782 predeps=$lt_predeps
8783
8784 # Dependencies to place after the objects being linked to create a
8785 # shared library.
8786 postdeps=$lt_postdeps
8787
8788 # The library search path used internally by the compiler when linking
8789 # a shared library.
8790 compiler_lib_search_path=$lt_compiler_lib_search_path
8791
8792 # Method to check whether dependent libraries are shared objects.
8793 deplibs_check_method=$lt_deplibs_check_method
8794
8795 # Command to use when deplibs_check_method == file_magic.
8796 file_magic_cmd=$lt_file_magic_cmd
8797
8798 # Flag that allows shared libraries with undefined symbols to be built.
8799 allow_undefined_flag=$lt_allow_undefined_flag
8800
8801 # Flag that forces no undefined symbols.
8802 no_undefined_flag=$lt_no_undefined_flag
8803
8804 # Commands used to finish a libtool library installation in a directory.
8805 finish_cmds=$lt_finish_cmds
8806
8807 # Same as above, but a single script fragment to be evaled but not shown.
8808 finish_eval=$lt_finish_eval
8809
8810 # Take the output of nm and produce a listing of raw symbols and C names.
8811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8812
8813 # Transform the output of nm in a proper C declaration
8814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8815
8816 # Transform the output of nm in a C name address pair
8817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8818
8819 # This is the shared library runtime path variable.
8820 runpath_var=$runpath_var
8821
8822 # This is the shared library path variable.
8823 shlibpath_var=$shlibpath_var
8824
8825 # Is shlibpath searched before the hard-coded library search path?
8826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8827
8828 # How to hardcode a shared library path into an executable.
8829 hardcode_action=$hardcode_action
8830
8831 # Whether we should hardcode library paths into libraries.
8832 hardcode_into_libs=$hardcode_into_libs
8833
8834 # Flag to hardcode \$libdir into a binary during linking.
8835 # This must work even if \$libdir does not exist.
8836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8837
8838 # If ld is used when linking, flag to hardcode \$libdir into
8839 # a binary during linking. This must work even if \$libdir does
8840 # not exist.
8841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8842
8843 # Whether we need a single -rpath flag with a separated argument.
8844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8845
8846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8847 # resulting binary.
8848 hardcode_direct=$hardcode_direct
8849
8850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8851 # resulting binary.
8852 hardcode_minus_L=$hardcode_minus_L
8853
8854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8855 # the resulting binary.
8856 hardcode_shlibpath_var=$hardcode_shlibpath_var
8857
8858 # Set to yes if building a shared library automatically hardcodes DIR into the library
8859 # and all subsequent libraries and executables linked against it.
8860 hardcode_automatic=$hardcode_automatic
8861
8862 # Variables whose values should be saved in libtool wrapper scripts and
8863 # restored at relink time.
8864 variables_saved_for_relink="$variables_saved_for_relink"
8865
8866 # Whether libtool must link a program against all its dependency libraries.
8867 link_all_deplibs=$link_all_deplibs
8868
8869 # Compile-time system search path for libraries
8870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8871
8872 # Run-time system search path for libraries
8873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8874
8875 # Fix the shell variable \$srcfile for the compiler.
8876 fix_srcfile_path="$fix_srcfile_path"
8877
8878 # Set to yes if exported symbols are required.
8879 always_export_symbols=$always_export_symbols
8880
8881 # The commands to list exported symbols.
8882 export_symbols_cmds=$lt_export_symbols_cmds
8883
8884 # The commands to extract the exported symbol list from a shared archive.
8885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8886
8887 # Symbols that should not be listed in the preloaded symbols.
8888 exclude_expsyms=$lt_exclude_expsyms
8889
8890 # Symbols that must always be exported.
8891 include_expsyms=$lt_include_expsyms
8892
8893 # ### END LIBTOOL CONFIG
8894
8895 __EOF__
8896
8897
8898   case $host_os in
8899   aix3*)
8900     cat <<\EOF >> "$cfgfile"
8901
8902 # AIX sometimes has problems with the GCC collect2 program.  For some
8903 # reason, if we set the COLLECT_NAMES environment variable, the problems
8904 # vanish in a puff of smoke.
8905 if test "X${COLLECT_NAMES+set}" != Xset; then
8906   COLLECT_NAMES=
8907   export COLLECT_NAMES
8908 fi
8909 EOF
8910     ;;
8911   esac
8912
8913   # We use sed instead of cat because bash on DJGPP gets confused if
8914   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8915   # text mode, it properly converts lines to CR/LF.  This bash problem
8916   # is reportedly fixed, but why not run on old versions too?
8917   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8918
8919   mv -f "$cfgfile" "$ofile" || \
8920     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8921   chmod +x "$ofile"
8922
8923 else
8924   # If there is no Makefile yet, we rely on a make rule to execute
8925   # `config.status --recheck' to rerun these tests and create the
8926   # libtool script then.
8927   test -f Makefile && make "$ltmain"
8928 fi
8929
8930
8931 ac_ext=c
8932 ac_cpp='$CPP $CPPFLAGS'
8933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8936
8937 CC="$lt_save_CC"
8938
8939
8940 # Check whether --with-tags or --without-tags was given.
8941 if test "${with_tags+set}" = set; then
8942   withval="$with_tags"
8943   tagnames="$withval"
8944 fi;
8945
8946 if test -f "$ltmain" && test -n "$tagnames"; then
8947   if test ! -f "${ofile}"; then
8948     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8949 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8950   fi
8951
8952   if test -z "$LTCC"; then
8953     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8954     if test -z "$LTCC"; then
8955       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8956 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8957     else
8958       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8959 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8960     fi
8961   fi
8962
8963   # Extract list of available tagged configurations in $ofile.
8964   # Note that this assumes the entire list is on one line.
8965   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8966
8967   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8968   for tagname in $tagnames; do
8969     IFS="$lt_save_ifs"
8970     # Check whether tagname contains only valid characters
8971     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8972     "") ;;
8973     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8974 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8975    { (exit 1); exit 1; }; }
8976         ;;
8977     esac
8978
8979     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8980     then
8981       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8982 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8983    { (exit 1); exit 1; }; }
8984     fi
8985
8986     # Update the list of available tags.
8987     if test -n "$tagname"; then
8988       echo appending configuration tag \"$tagname\" to $ofile
8989
8990       case $tagname in
8991       CXX)
8992         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8993           ac_ext=cc
8994 ac_cpp='$CXXCPP $CPPFLAGS'
8995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8998
8999
9000
9001
9002 archive_cmds_need_lc_CXX=no
9003 allow_undefined_flag_CXX=
9004 always_export_symbols_CXX=no
9005 archive_expsym_cmds_CXX=
9006 export_dynamic_flag_spec_CXX=
9007 hardcode_direct_CXX=no
9008 hardcode_libdir_flag_spec_CXX=
9009 hardcode_libdir_flag_spec_ld_CXX=
9010 hardcode_libdir_separator_CXX=
9011 hardcode_minus_L_CXX=no
9012 hardcode_automatic_CXX=no
9013 module_cmds_CXX=
9014 module_expsym_cmds_CXX=
9015 link_all_deplibs_CXX=unknown
9016 old_archive_cmds_CXX=$old_archive_cmds
9017 no_undefined_flag_CXX=
9018 whole_archive_flag_spec_CXX=
9019 enable_shared_with_static_runtimes_CXX=no
9020
9021 # Dependencies to place before and after the object being linked:
9022 predep_objects_CXX=
9023 postdep_objects_CXX=
9024 predeps_CXX=
9025 postdeps_CXX=
9026 compiler_lib_search_path_CXX=
9027
9028 # Source file extension for C++ test sources.
9029 ac_ext=cc
9030
9031 # Object file extension for compiled C++ test sources.
9032 objext=o
9033 objext_CXX=$objext
9034
9035 # Code to be used in simple compile tests
9036 lt_simple_compile_test_code="int some_variable = 0;\n"
9037
9038 # Code to be used in simple link tests
9039 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9040
9041 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9042
9043 # If no C compiler was specified, use CC.
9044 LTCC=${LTCC-"$CC"}
9045
9046 # Allow CC to be a program name with arguments.
9047 compiler=$CC
9048
9049
9050 # Allow CC to be a program name with arguments.
9051 lt_save_CC=$CC
9052 lt_save_LD=$LD
9053 lt_save_GCC=$GCC
9054 GCC=$GXX
9055 lt_save_with_gnu_ld=$with_gnu_ld
9056 lt_save_path_LD=$lt_cv_path_LD
9057 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9058   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9059 else
9060   unset lt_cv_prog_gnu_ld
9061 fi
9062 if test -n "${lt_cv_path_LDCXX+set}"; then
9063   lt_cv_path_LD=$lt_cv_path_LDCXX
9064 else
9065   unset lt_cv_path_LD
9066 fi
9067 test -z "${LDCXX+set}" || LD=$LDCXX
9068 CC=${CXX-"c++"}
9069 compiler=$CC
9070 compiler_CXX=$CC
9071 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9072
9073 # We don't want -fno-exception wen compiling C++ code, so set the
9074 # no_builtin_flag separately
9075 if test "$GXX" = yes; then
9076   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9077 else
9078   lt_prog_compiler_no_builtin_flag_CXX=
9079 fi
9080
9081 if test "$GXX" = yes; then
9082   # Set up default GNU C++ configuration
9083
9084
9085 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9086 if test "${with_gnu_ld+set}" = set; then
9087   withval="$with_gnu_ld"
9088   test "$withval" = no || with_gnu_ld=yes
9089 else
9090   with_gnu_ld=no
9091 fi;
9092 ac_prog=ld
9093 if test "$GCC" = yes; then
9094   # Check if gcc -print-prog-name=ld gives a path.
9095   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9096 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9097   case $host in
9098   *-*-mingw*)
9099     # gcc leaves a trailing carriage return which upsets mingw
9100     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9101   *)
9102     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9103   esac
9104   case $ac_prog in
9105     # Accept absolute paths.
9106     [\\/]* | ?:[\\/]*)
9107       re_direlt='/[^/][^/]*/\.\./'
9108       # Canonicalize the path of ld
9109       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9110       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9111         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9112       done
9113       test -z "$LD" && LD="$ac_prog"
9114       ;;
9115   "")
9116     # If it fails, then pretend we aren't using GCC.
9117     ac_prog=ld
9118     ;;
9119   *)
9120     # If it is relative, then search for the first ld in PATH.
9121     with_gnu_ld=unknown
9122     ;;
9123   esac
9124 elif test "$with_gnu_ld" = yes; then
9125   echo "$as_me:$LINENO: checking for GNU ld" >&5
9126 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9127 else
9128   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9129 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9130 fi
9131 if test "${lt_cv_path_LD+set}" = set; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134   if test -z "$LD"; then
9135   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9136   for ac_dir in $PATH; do
9137     IFS="$lt_save_ifs"
9138     test -z "$ac_dir" && ac_dir=.
9139     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9140       lt_cv_path_LD="$ac_dir/$ac_prog"
9141       # Check to see if the program is GNU ld.  I'd rather use --version,
9142       # but apparently some GNU ld's only accept -v.
9143       # Break only if it was the GNU/non-GNU ld that we prefer.
9144       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9145       *GNU* | *'with BFD'*)
9146         test "$with_gnu_ld" != no && break
9147         ;;
9148       *)
9149         test "$with_gnu_ld" != yes && break
9150         ;;
9151       esac
9152     fi
9153   done
9154   IFS="$lt_save_ifs"
9155 else
9156   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9157 fi
9158 fi
9159
9160 LD="$lt_cv_path_LD"
9161 if test -n "$LD"; then
9162   echo "$as_me:$LINENO: result: $LD" >&5
9163 echo "${ECHO_T}$LD" >&6
9164 else
9165   echo "$as_me:$LINENO: result: no" >&5
9166 echo "${ECHO_T}no" >&6
9167 fi
9168 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9169 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9170    { (exit 1); exit 1; }; }
9171 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9172 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9173 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9174   echo $ECHO_N "(cached) $ECHO_C" >&6
9175 else
9176   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9177 case `"$LD" -v 2>&1 </dev/null` in
9178 *GNU* | *'with BFD'*)
9179   lt_cv_prog_gnu_ld=yes
9180   ;;
9181 *)
9182   lt_cv_prog_gnu_ld=no
9183   ;;
9184 esac
9185 fi
9186 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9187 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9188 with_gnu_ld=$lt_cv_prog_gnu_ld
9189
9190
9191
9192   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9193   # archiving commands below assume that GNU ld is being used.
9194   if test "$with_gnu_ld" = yes; then
9195     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196     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'
9197
9198     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9199     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9200
9201     # If archive_cmds runs LD, not CC, wlarc should be empty
9202     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9203     #     investigate it a little bit more. (MM)
9204     wlarc='${wl}'
9205
9206     # ancient GNU ld didn't support --whole-archive et. al.
9207     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9208         grep 'no-whole-archive' > /dev/null; then
9209       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9210     else
9211       whole_archive_flag_spec_CXX=
9212     fi
9213   else
9214     with_gnu_ld=no
9215     wlarc=
9216
9217     # A generic and very simple default shared library creation
9218     # command for GNU C++ for the case where it uses the native
9219     # linker, instead of GNU ld.  If possible, this setting should
9220     # overridden to take advantage of the native linker features on
9221     # the platform it is being used on.
9222     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9223   fi
9224
9225   # Commands to make compiler produce verbose output that lists
9226   # what "hidden" libraries, object files and flags are used when
9227   # linking a shared library.
9228   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9229
9230 else
9231   GXX=no
9232   with_gnu_ld=no
9233   wlarc=
9234 fi
9235
9236 # PORTME: fill in a description of your system's C++ link characteristics
9237 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9239 ld_shlibs_CXX=yes
9240 case $host_os in
9241   aix3*)
9242     # FIXME: insert proper C++ library support
9243     ld_shlibs_CXX=no
9244     ;;
9245   aix4* | aix5*)
9246     if test "$host_cpu" = ia64; then
9247       # On IA64, the linker does run time linking by default, so we don't
9248       # have to do anything special.
9249       aix_use_runtimelinking=no
9250       exp_sym_flag='-Bexport'
9251       no_entry_flag=""
9252     else
9253       aix_use_runtimelinking=no
9254
9255       # Test if we are trying to use run time linking or normal
9256       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9257       # need to do runtime linking.
9258       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9259         for ld_flag in $LDFLAGS; do
9260           case $ld_flag in
9261           *-brtl*)
9262             aix_use_runtimelinking=yes
9263             break
9264             ;;
9265           esac
9266         done
9267       esac
9268
9269       exp_sym_flag='-bexport'
9270       no_entry_flag='-bnoentry'
9271     fi
9272
9273     # When large executables or shared objects are built, AIX ld can
9274     # have problems creating the table of contents.  If linking a library
9275     # or program results in "error TOC overflow" add -mminimal-toc to
9276     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9277     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9278
9279     archive_cmds_CXX=''
9280     hardcode_direct_CXX=yes
9281     hardcode_libdir_separator_CXX=':'
9282     link_all_deplibs_CXX=yes
9283
9284     if test "$GXX" = yes; then
9285       case $host_os in aix4.012|aix4.012.*)
9286       # We only want to do this on AIX 4.2 and lower, the check
9287       # below for broken collect2 doesn't work under 4.3+
9288         collect2name=`${CC} -print-prog-name=collect2`
9289         if test -f "$collect2name" && \
9290            strings "$collect2name" | grep resolve_lib_name >/dev/null
9291         then
9292           # We have reworked collect2
9293           hardcode_direct_CXX=yes
9294         else
9295           # We have old collect2
9296           hardcode_direct_CXX=unsupported
9297           # It fails to find uninstalled libraries when the uninstalled
9298           # path is not listed in the libpath.  Setting hardcode_minus_L
9299           # to unsupported forces relinking
9300           hardcode_minus_L_CXX=yes
9301           hardcode_libdir_flag_spec_CXX='-L$libdir'
9302           hardcode_libdir_separator_CXX=
9303         fi
9304       esac
9305       shared_flag='-shared'
9306     else
9307       # not using gcc
9308       if test "$host_cpu" = ia64; then
9309         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9310         # chokes on -Wl,-G. The following line is correct:
9311         shared_flag='-G'
9312       else
9313         if test "$aix_use_runtimelinking" = yes; then
9314           shared_flag='${wl}-G'
9315         else
9316           shared_flag='${wl}-bM:SRE'
9317         fi
9318       fi
9319     fi
9320
9321     # It seems that -bexpall does not export symbols beginning with
9322     # underscore (_), so it is better to generate a list of symbols to export.
9323     always_export_symbols_CXX=yes
9324     if test "$aix_use_runtimelinking" = yes; then
9325       # Warning - without using the other runtime loading flags (-brtl),
9326       # -berok will link without error, but may produce a broken library.
9327       allow_undefined_flag_CXX='-berok'
9328       # Determine the default libpath from the value encoded in an empty executable.
9329       cat >conftest.$ac_ext <<_ACEOF
9330 #line $LINENO "configure"
9331 /* confdefs.h.  */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h.  */
9336
9337 int
9338 main ()
9339 {
9340
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347   (eval $ac_link) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); } &&
9351          { ac_try='test -s conftest$ac_exeext'
9352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353   (eval $ac_try) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; }; then
9357
9358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9359 }'`
9360 # Check for a 64-bit object if we didn't find anything.
9361 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; }
9362 }'`; fi
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367 fi
9368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9370
9371       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9372
9373       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"
9374      else
9375       if test "$host_cpu" = ia64; then
9376         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9377         allow_undefined_flag_CXX="-z nodefs"
9378         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"
9379       else
9380         # Determine the default libpath from the value encoded in an empty executable.
9381         cat >conftest.$ac_ext <<_ACEOF
9382 #line $LINENO "configure"
9383 /* confdefs.h.  */
9384 _ACEOF
9385 cat confdefs.h >>conftest.$ac_ext
9386 cat >>conftest.$ac_ext <<_ACEOF
9387 /* end confdefs.h.  */
9388
9389 int
9390 main ()
9391 {
9392
9393   ;
9394   return 0;
9395 }
9396 _ACEOF
9397 rm -f conftest.$ac_objext conftest$ac_exeext
9398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9399   (eval $ac_link) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); } &&
9403          { ac_try='test -s conftest$ac_exeext'
9404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405   (eval $ac_try) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); }; }; then
9409
9410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9411 }'`
9412 # Check for a 64-bit object if we didn't find anything.
9413 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; }
9414 }'`; fi
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 fi
9420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9422
9423         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9424         # Warning - without using the other run time loading flags,
9425         # -berok will link without error, but may produce a broken library.
9426         no_undefined_flag_CXX=' ${wl}-bernotok'
9427         allow_undefined_flag_CXX=' ${wl}-berok'
9428         # -bexpall does not export symbols beginning with underscore (_)
9429         always_export_symbols_CXX=yes
9430         # Exported symbols can be pulled into shared objects from archives
9431         whole_archive_flag_spec_CXX=' '
9432         archive_cmds_need_lc_CXX=yes
9433         # This is similar to how AIX traditionally builds it's shared libraries.
9434         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'
9435       fi
9436     fi
9437     ;;
9438   chorus*)
9439     case $cc_basename in
9440       *)
9441         # FIXME: insert proper C++ library support
9442         ld_shlibs_CXX=no
9443         ;;
9444     esac
9445     ;;
9446
9447   cygwin* | mingw* | pw32*)
9448     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9449     # as there is no search path for DLLs.
9450     hardcode_libdir_flag_spec_CXX='-L$libdir'
9451     allow_undefined_flag_CXX=unsupported
9452     always_export_symbols_CXX=no
9453     enable_shared_with_static_runtimes_CXX=yes
9454
9455     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9456       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'
9457       # If the export-symbols file already is a .def file (1st line
9458       # is EXPORTS), use it as is; otherwise, prepend...
9459       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9460         cp $export_symbols $output_objdir/$soname.def;
9461       else
9462         echo EXPORTS > $output_objdir/$soname.def;
9463         cat $export_symbols >> $output_objdir/$soname.def;
9464       fi~
9465       $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'
9466     else
9467       ld_shlibs_CXX=no
9468     fi
9469   ;;
9470
9471   darwin* | rhapsody*)
9472    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9473     archive_cmds_need_lc_CXX=no
9474     case "$host_os" in
9475     rhapsody* | darwin1.[012])
9476       allow_undefined_flag_CXX='-undefined suppress'
9477       ;;
9478     *) # Darwin 1.3 on
9479       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9480       ;;
9481     esac
9482         lt_int_apple_cc_single_mod=no
9483         output_verbose_link_cmd='echo'
9484         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9485           lt_int_apple_cc_single_mod=yes
9486         fi
9487         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9488           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9489         else
9490         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'
9491       fi
9492       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9493
9494     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9495       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9496         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}'
9497       else
9498         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}'
9499       fi
9500         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}'
9501     hardcode_direct_CXX=no
9502     hardcode_automatic_CXX=yes
9503     hardcode_shlibpath_var_CXX=unsupported
9504     whole_archive_flag_spec_CXX='-all_load $convenience'
9505     link_all_deplibs_CXX=yes
9506    fi
9507     ;;
9508
9509   dgux*)
9510     case $cc_basename in
9511       ec++)
9512         # FIXME: insert proper C++ library support
9513         ld_shlibs_CXX=no
9514         ;;
9515       ghcx)
9516         # Green Hills C++ Compiler
9517         # FIXME: insert proper C++ library support
9518         ld_shlibs_CXX=no
9519         ;;
9520       *)
9521         # FIXME: insert proper C++ library support
9522         ld_shlibs_CXX=no
9523         ;;
9524     esac
9525     ;;
9526   freebsd12*)
9527     # C++ shared libraries reported to be fairly broken before switch to ELF
9528     ld_shlibs_CXX=no
9529     ;;
9530   freebsd-elf*)
9531     archive_cmds_need_lc_CXX=no
9532     ;;
9533   freebsd*)
9534     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9535     # conventions
9536     ld_shlibs_CXX=yes
9537     ;;
9538   gnu*)
9539     ;;
9540   hpux9*)
9541     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9542     hardcode_libdir_separator_CXX=:
9543     export_dynamic_flag_spec_CXX='${wl}-E'
9544     hardcode_direct_CXX=yes
9545     hardcode_minus_L_CXX=yes # Not in the search PATH,
9546                                 # but as the default
9547                                 # location of the library.
9548
9549     case $cc_basename in
9550     CC)
9551       # FIXME: insert proper C++ library support
9552       ld_shlibs_CXX=no
9553       ;;
9554     aCC)
9555       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'
9556       # Commands to make compiler produce verbose output that lists
9557       # what "hidden" libraries, object files and flags are used when
9558       # linking a shared library.
9559       #
9560       # There doesn't appear to be a way to prevent this compiler from
9561       # explicitly linking system object files so we need to strip them
9562       # from the output so that they don't get included in the library
9563       # dependencies.
9564       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'
9565       ;;
9566     *)
9567       if test "$GXX" = yes; then
9568         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'
9569       else
9570         # FIXME: insert proper C++ library support
9571         ld_shlibs_CXX=no
9572       fi
9573       ;;
9574     esac
9575     ;;
9576   hpux10*|hpux11*)
9577     if test $with_gnu_ld = no; then
9578       case "$host_cpu" in
9579       hppa*64*)
9580         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9581         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9582         hardcode_libdir_separator_CXX=:
9583         ;;
9584       ia64*)
9585         hardcode_libdir_flag_spec_CXX='-L$libdir'
9586         ;;
9587       *)
9588         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9589         hardcode_libdir_separator_CXX=:
9590         export_dynamic_flag_spec_CXX='${wl}-E'
9591         ;;
9592       esac
9593     fi
9594     case "$host_cpu" in
9595     hppa*64*)
9596       hardcode_direct_CXX=no
9597       hardcode_shlibpath_var_CXX=no
9598       ;;
9599     ia64*)
9600       hardcode_direct_CXX=no
9601       hardcode_shlibpath_var_CXX=no
9602       hardcode_minus_L_CXX=yes # Not in the search PATH,
9603                                               # but as the default
9604                                               # location of the library.
9605       ;;
9606     *)
9607       hardcode_direct_CXX=yes
9608       hardcode_minus_L_CXX=yes # Not in the search PATH,
9609                                               # but as the default
9610                                               # location of the library.
9611       ;;
9612     esac
9613
9614     case $cc_basename in
9615       CC)
9616         # FIXME: insert proper C++ library support
9617         ld_shlibs_CXX=no
9618         ;;
9619       aCC)
9620         case "$host_cpu" in
9621         hppa*64*|ia64*)
9622           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9623           ;;
9624         *)
9625           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9626           ;;
9627         esac
9628         # Commands to make compiler produce verbose output that lists
9629         # what "hidden" libraries, object files and flags are used when
9630         # linking a shared library.
9631         #
9632         # There doesn't appear to be a way to prevent this compiler from
9633         # explicitly linking system object files so we need to strip them
9634         # from the output so that they don't get included in the library
9635         # dependencies.
9636         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'
9637         ;;
9638       *)
9639         if test "$GXX" = yes; then
9640           if test $with_gnu_ld = no; then
9641             case "$host_cpu" in
9642             ia64*|hppa*64*)
9643               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9644               ;;
9645             *)
9646               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'
9647               ;;
9648             esac
9649           fi
9650         else
9651           # FIXME: insert proper C++ library support
9652           ld_shlibs_CXX=no
9653         fi
9654         ;;
9655     esac
9656     ;;
9657   irix5* | irix6*)
9658     case $cc_basename in
9659       CC)
9660         # SGI C++
9661         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'
9662
9663         # Archives containing C++ object files must be created using
9664         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9665         # necessary to make sure instantiated templates are included
9666         # in the archive.
9667         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9668         ;;
9669       *)
9670         if test "$GXX" = yes; then
9671           if test "$with_gnu_ld" = no; then
9672             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'
9673           else
9674             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'
9675           fi
9676         fi
9677         link_all_deplibs_CXX=yes
9678         ;;
9679     esac
9680     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9681     hardcode_libdir_separator_CXX=:
9682     ;;
9683   linux*)
9684     case $cc_basename in
9685       KCC)
9686         # Kuck and Associates, Inc. (KAI) C++ Compiler
9687
9688         # KCC will only create a shared library if the output file
9689         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9690         # to its proper name (with version) after linking.
9691         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'
9692         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'
9693         # Commands to make compiler produce verbose output that lists
9694         # what "hidden" libraries, object files and flags are used when
9695         # linking a shared library.
9696         #
9697         # There doesn't appear to be a way to prevent this compiler from
9698         # explicitly linking system object files so we need to strip them
9699         # from the output so that they don't get included in the library
9700         # dependencies.
9701         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'
9702
9703         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9704         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9705
9706         # Archives containing C++ object files must be created using
9707         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9708         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9709         ;;
9710       icpc)
9711         # Intel C++
9712         with_gnu_ld=yes
9713         archive_cmds_need_lc_CXX=no
9714         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9715         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'
9716         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9717         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9718         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9719         ;;
9720       cxx)
9721         # Compaq C++
9722         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723         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'
9724
9725         runpath_var=LD_RUN_PATH
9726         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9727         hardcode_libdir_separator_CXX=:
9728
9729         # Commands to make compiler produce verbose output that lists
9730         # what "hidden" libraries, object files and flags are used when
9731         # linking a shared library.
9732         #
9733         # There doesn't appear to be a way to prevent this compiler from
9734         # explicitly linking system object files so we need to strip them
9735         # from the output so that they don't get included in the library
9736         # dependencies.
9737         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'
9738         ;;
9739     esac
9740     ;;
9741   lynxos*)
9742     # FIXME: insert proper C++ library support
9743     ld_shlibs_CXX=no
9744     ;;
9745   m88k*)
9746     # FIXME: insert proper C++ library support
9747     ld_shlibs_CXX=no
9748     ;;
9749   mvs*)
9750     case $cc_basename in
9751       cxx)
9752         # FIXME: insert proper C++ library support
9753         ld_shlibs_CXX=no
9754         ;;
9755       *)
9756         # FIXME: insert proper C++ library support
9757         ld_shlibs_CXX=no
9758         ;;
9759     esac
9760     ;;
9761   netbsd*)
9762     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9763       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9764       wlarc=
9765       hardcode_libdir_flag_spec_CXX='-R$libdir'
9766       hardcode_direct_CXX=yes
9767       hardcode_shlibpath_var_CXX=no
9768     fi
9769     # Workaround some broken pre-1.5 toolchains
9770     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9771     ;;
9772   osf3*)
9773     case $cc_basename in
9774       KCC)
9775         # Kuck and Associates, Inc. (KAI) C++ Compiler
9776
9777         # KCC will only create a shared library if the output file
9778         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9779         # to its proper name (with version) after linking.
9780         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'
9781
9782         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9783         hardcode_libdir_separator_CXX=:
9784
9785         # Archives containing C++ object files must be created using
9786         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9787         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9788
9789         ;;
9790       RCC)
9791         # Rational C++ 2.4.1
9792         # FIXME: insert proper C++ library support
9793         ld_shlibs_CXX=no
9794         ;;
9795       cxx)
9796         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9797         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'
9798
9799         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9800         hardcode_libdir_separator_CXX=:
9801
9802         # Commands to make compiler produce verbose output that lists
9803         # what "hidden" libraries, object files and flags are used when
9804         # linking a shared library.
9805         #
9806         # There doesn't appear to be a way to prevent this compiler from
9807         # explicitly linking system object files so we need to strip them
9808         # from the output so that they don't get included in the library
9809         # dependencies.
9810         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'
9811         ;;
9812       *)
9813         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9814           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9815           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'
9816
9817           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9818           hardcode_libdir_separator_CXX=:
9819
9820           # Commands to make compiler produce verbose output that lists
9821           # what "hidden" libraries, object files and flags are used when
9822           # linking a shared library.
9823           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9824
9825         else
9826           # FIXME: insert proper C++ library support
9827           ld_shlibs_CXX=no
9828         fi
9829         ;;
9830     esac
9831     ;;
9832   osf4* | osf5*)
9833     case $cc_basename in
9834       KCC)
9835         # Kuck and Associates, Inc. (KAI) C++ Compiler
9836
9837         # KCC will only create a shared library if the output file
9838         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9839         # to its proper name (with version) after linking.
9840         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'
9841
9842         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9843         hardcode_libdir_separator_CXX=:
9844
9845         # Archives containing C++ object files must be created using
9846         # the KAI C++ compiler.
9847         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9848         ;;
9849       RCC)
9850         # Rational C++ 2.4.1
9851         # FIXME: insert proper C++ library support
9852         ld_shlibs_CXX=no
9853         ;;
9854       cxx)
9855         allow_undefined_flag_CXX=' -expect_unresolved \*'
9856         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'
9857         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9858           echo "-hidden">> $lib.exp~
9859           $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~
9860           $rm $lib.exp'
9861
9862         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9863         hardcode_libdir_separator_CXX=:
9864
9865         # Commands to make compiler produce verbose output that lists
9866         # what "hidden" libraries, object files and flags are used when
9867         # linking a shared library.
9868         #
9869         # There doesn't appear to be a way to prevent this compiler from
9870         # explicitly linking system object files so we need to strip them
9871         # from the output so that they don't get included in the library
9872         # dependencies.
9873         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'
9874         ;;
9875       *)
9876         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9877           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9878          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'
9879
9880           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9881           hardcode_libdir_separator_CXX=:
9882
9883           # Commands to make compiler produce verbose output that lists
9884           # what "hidden" libraries, object files and flags are used when
9885           # linking a shared library.
9886           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9887
9888         else
9889           # FIXME: insert proper C++ library support
9890           ld_shlibs_CXX=no
9891         fi
9892         ;;
9893     esac
9894     ;;
9895   psos*)
9896     # FIXME: insert proper C++ library support
9897     ld_shlibs_CXX=no
9898     ;;
9899   sco*)
9900     archive_cmds_need_lc_CXX=no
9901     case $cc_basename in
9902       CC)
9903         # FIXME: insert proper C++ library support
9904         ld_shlibs_CXX=no
9905         ;;
9906       *)
9907         # FIXME: insert proper C++ library support
9908         ld_shlibs_CXX=no
9909         ;;
9910     esac
9911     ;;
9912   sunos4*)
9913     case $cc_basename in
9914       CC)
9915         # Sun C++ 4.x
9916         # FIXME: insert proper C++ library support
9917         ld_shlibs_CXX=no
9918         ;;
9919       lcc)
9920         # Lucid
9921         # FIXME: insert proper C++ library support
9922         ld_shlibs_CXX=no
9923         ;;
9924       *)
9925         # FIXME: insert proper C++ library support
9926         ld_shlibs_CXX=no
9927         ;;
9928     esac
9929     ;;
9930   solaris*)
9931     case $cc_basename in
9932       CC)
9933         # Sun C++ 4.2, 5.x and Centerline C++
9934         no_undefined_flag_CXX=' -zdefs'
9935         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9936         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9937         $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'
9938
9939         hardcode_libdir_flag_spec_CXX='-R$libdir'
9940         hardcode_shlibpath_var_CXX=no
9941         case $host_os in
9942           solaris2.0-5 | solaris2.0-5.*) ;;
9943           *)
9944             # The C++ compiler is used as linker so we must use $wl
9945             # flag to pass the commands to the underlying system
9946             # linker.
9947             # Supported since Solaris 2.6 (maybe 2.5.1?)
9948             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9949             ;;
9950         esac
9951         link_all_deplibs_CXX=yes
9952
9953         # Commands to make compiler produce verbose output that lists
9954         # what "hidden" libraries, object files and flags are used when
9955         # linking a shared library.
9956         #
9957         # There doesn't appear to be a way to prevent this compiler from
9958         # explicitly linking system object files so we need to strip them
9959         # from the output so that they don't get included in the library
9960         # dependencies.
9961         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'
9962
9963         # Archives containing C++ object files must be created using
9964         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9965         # necessary to make sure instantiated templates are included
9966         # in the archive.
9967         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9968         ;;
9969       gcx)
9970         # Green Hills C++ Compiler
9971         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9972
9973         # The C++ compiler must be used to create the archive.
9974         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9975         ;;
9976       *)
9977         # GNU C++ compiler with Solaris linker
9978         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9979           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9980           if $CC --version | grep -v '^2\.7' > /dev/null; then
9981             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9982             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9983                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9984
9985             # Commands to make compiler produce verbose output that lists
9986             # what "hidden" libraries, object files and flags are used when
9987             # linking a shared library.
9988             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9989           else
9990             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9991             # platform.
9992             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9993             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9994                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9995
9996             # Commands to make compiler produce verbose output that lists
9997             # what "hidden" libraries, object files and flags are used when
9998             # linking a shared library.
9999             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10000           fi
10001
10002           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10003         fi
10004         ;;
10005     esac
10006     ;;
10007   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10008     archive_cmds_need_lc_CXX=no
10009     ;;
10010   tandem*)
10011     case $cc_basename in
10012       NCC)
10013         # NonStop-UX NCC 3.20
10014         # FIXME: insert proper C++ library support
10015         ld_shlibs_CXX=no
10016         ;;
10017       *)
10018         # FIXME: insert proper C++ library support
10019         ld_shlibs_CXX=no
10020         ;;
10021     esac
10022     ;;
10023   vxworks*)
10024     # FIXME: insert proper C++ library support
10025     ld_shlibs_CXX=no
10026     ;;
10027   *)
10028     # FIXME: insert proper C++ library support
10029     ld_shlibs_CXX=no
10030     ;;
10031 esac
10032 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10033 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10034 test "$ld_shlibs_CXX" = no && can_build_shared=no
10035
10036 GCC_CXX="$GXX"
10037 LD_CXX="$LD"
10038
10039
10040 cat > conftest.$ac_ext <<EOF
10041 class Foo
10042 {
10043 public:
10044   Foo (void) { a = 0; }
10045 private:
10046   int a;
10047 };
10048 EOF
10049
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051   (eval $ac_compile) 2>&5
10052   ac_status=$?
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); }; then
10055   # Parse the compiler output and extract the necessary
10056   # objects, libraries and library flags.
10057
10058   # Sentinel used to keep track of whether or not we are before
10059   # the conftest object file.
10060   pre_test_object_deps_done=no
10061
10062   # The `*' in the case matches for architectures that use `case' in
10063   # $output_verbose_cmd can trigger glob expansion during the loop
10064   # eval without this substitution.
10065   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10066
10067   for p in `eval $output_verbose_link_cmd`; do
10068     case $p in
10069
10070     -L* | -R* | -l*)
10071        # Some compilers place space between "-{L,R}" and the path.
10072        # Remove the space.
10073        if test $p = "-L" \
10074           || test $p = "-R"; then
10075          prev=$p
10076          continue
10077        else
10078          prev=
10079        fi
10080
10081        if test "$pre_test_object_deps_done" = no; then
10082          case $p in
10083          -L* | -R*)
10084            # Internal compiler library paths should come after those
10085            # provided the user.  The postdeps already come after the
10086            # user supplied libs so there is no need to process them.
10087            if test -z "$compiler_lib_search_path_CXX"; then
10088              compiler_lib_search_path_CXX="${prev}${p}"
10089            else
10090              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10091            fi
10092            ;;
10093          # The "-l" case would never come before the object being
10094          # linked, so don't bother handling this case.
10095          esac
10096        else
10097          if test -z "$postdeps_CXX"; then
10098            postdeps_CXX="${prev}${p}"
10099          else
10100            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10101          fi
10102        fi
10103        ;;
10104
10105     *.$objext)
10106        # This assumes that the test object file only shows up
10107        # once in the compiler output.
10108        if test "$p" = "conftest.$objext"; then
10109          pre_test_object_deps_done=yes
10110          continue
10111        fi
10112
10113        if test "$pre_test_object_deps_done" = no; then
10114          if test -z "$predep_objects_CXX"; then
10115            predep_objects_CXX="$p"
10116          else
10117            predep_objects_CXX="$predep_objects_CXX $p"
10118          fi
10119        else
10120          if test -z "$postdep_objects_CXX"; then
10121            postdep_objects_CXX="$p"
10122          else
10123            postdep_objects_CXX="$postdep_objects_CXX $p"
10124          fi
10125        fi
10126        ;;
10127
10128     *) ;; # Ignore the rest.
10129
10130     esac
10131   done
10132
10133   # Clean up.
10134   rm -f a.out a.exe
10135 else
10136   echo "libtool.m4: error: problem compiling CXX test program"
10137 fi
10138
10139 $rm -f confest.$objext
10140
10141 case " $postdeps_CXX " in
10142 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10143 esac
10144
10145 lt_prog_compiler_wl_CXX=
10146 lt_prog_compiler_pic_CXX=
10147 lt_prog_compiler_static_CXX=
10148
10149 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10150 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10151
10152   # C++ specific cases for pic, static, wl, etc.
10153   if test "$GXX" = yes; then
10154     lt_prog_compiler_wl_CXX='-Wl,'
10155     lt_prog_compiler_static_CXX='-static'
10156
10157     case $host_os in
10158     aix*)
10159       # All AIX code is PIC.
10160       if test "$host_cpu" = ia64; then
10161         # AIX 5 now supports IA64 processor
10162         lt_prog_compiler_static_CXX='-Bstatic'
10163       fi
10164       ;;
10165     amigaos*)
10166       # FIXME: we need at least 68020 code to build shared libraries, but
10167       # adding the `-m68020' flag to GCC prevents building anything better,
10168       # like `-m68040'.
10169       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10170       ;;
10171     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10172       # PIC is the default for these OSes.
10173       ;;
10174     mingw* | os2* | pw32*)
10175       # This hack is so that the source file can tell whether it is being
10176       # built for inclusion in a dll (and should export symbols for example).
10177       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10178       ;;
10179     darwin* | rhapsody*)
10180       # PIC is the default on this platform
10181       # Common symbols not allowed in MH_DYLIB files
10182       lt_prog_compiler_pic_CXX='-fno-common'
10183       ;;
10184     *djgpp*)
10185       # DJGPP does not support shared libraries at all
10186       lt_prog_compiler_pic_CXX=
10187       ;;
10188     sysv4*MP*)
10189       if test -d /usr/nec; then
10190         lt_prog_compiler_pic_CXX=-Kconform_pic
10191       fi
10192       ;;
10193     hpux*)
10194       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10195       # not for PA HP-UX.
10196       case "$host_cpu" in
10197       hppa*64*|ia64*)
10198         ;;
10199       *)
10200         lt_prog_compiler_pic_CXX='-fPIC'
10201         ;;
10202       esac
10203       ;;
10204     *)
10205       lt_prog_compiler_pic_CXX='-fPIC'
10206       ;;
10207     esac
10208   else
10209     case $host_os in
10210       aix4* | aix5*)
10211         # All AIX code is PIC.
10212         if test "$host_cpu" = ia64; then
10213           # AIX 5 now supports IA64 processor
10214           lt_prog_compiler_static_CXX='-Bstatic'
10215         else
10216           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10217         fi
10218         ;;
10219       chorus*)
10220         case $cc_basename in
10221         cxch68)
10222           # Green Hills C++ Compiler
10223           # _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"
10224           ;;
10225         esac
10226         ;;
10227       dgux*)
10228         case $cc_basename in
10229           ec++)
10230             lt_prog_compiler_pic_CXX='-KPIC'
10231             ;;
10232           ghcx)
10233             # Green Hills C++ Compiler
10234             lt_prog_compiler_pic_CXX='-pic'
10235             ;;
10236           *)
10237             ;;
10238         esac
10239         ;;
10240       freebsd*)
10241         # FreeBSD uses GNU C++
10242         ;;
10243       hpux9* | hpux10* | hpux11*)
10244         case $cc_basename in
10245           CC)
10246             lt_prog_compiler_wl_CXX='-Wl,'
10247             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10248             if test "$host_cpu" != ia64; then
10249               lt_prog_compiler_pic_CXX='+Z'
10250             fi
10251             ;;
10252           aCC)
10253             lt_prog_compiler_wl_CXX='-Wl,'
10254             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10255             case "$host_cpu" in
10256             hppa*64*|ia64*)
10257               # +Z the default
10258               ;;
10259             *)
10260               lt_prog_compiler_pic_CXX='+Z'
10261               ;;
10262             esac
10263             ;;
10264           *)
10265             ;;
10266         esac
10267         ;;
10268       irix5* | irix6* | nonstopux*)
10269         case $cc_basename in
10270           CC)
10271             lt_prog_compiler_wl_CXX='-Wl,'
10272             lt_prog_compiler_static_CXX='-non_shared'
10273             # CC pic flag -KPIC is the default.
10274             ;;
10275           *)
10276             ;;
10277         esac
10278         ;;
10279       linux*)
10280         case $cc_basename in
10281           KCC)
10282             # KAI C++ Compiler
10283             lt_prog_compiler_wl_CXX='--backend -Wl,'
10284             lt_prog_compiler_pic_CXX='-fPIC'
10285             ;;
10286           icpc)
10287             # Intel C++
10288             lt_prog_compiler_wl_CXX='-Wl,'
10289             lt_prog_compiler_pic_CXX='-KPIC'
10290             lt_prog_compiler_static_CXX='-static'
10291             ;;
10292           cxx)
10293             # Compaq C++
10294             # Make sure the PIC flag is empty.  It appears that all Alpha
10295             # Linux and Compaq Tru64 Unix objects are PIC.
10296             lt_prog_compiler_pic_CXX=
10297             lt_prog_compiler_static_CXX='-non_shared'
10298             ;;
10299           *)
10300             ;;
10301         esac
10302         ;;
10303       lynxos*)
10304         ;;
10305       m88k*)
10306         ;;
10307       mvs*)
10308         case $cc_basename in
10309           cxx)
10310             lt_prog_compiler_pic_CXX='-W c,exportall'
10311             ;;
10312           *)
10313             ;;
10314         esac
10315         ;;
10316       netbsd*)
10317         ;;
10318       osf3* | osf4* | osf5*)
10319         case $cc_basename in
10320           KCC)
10321             lt_prog_compiler_wl_CXX='--backend -Wl,'
10322             ;;
10323           RCC)
10324             # Rational C++ 2.4.1
10325             lt_prog_compiler_pic_CXX='-pic'
10326             ;;
10327           cxx)
10328             # Digital/Compaq C++
10329             lt_prog_compiler_wl_CXX='-Wl,'
10330             # Make sure the PIC flag is empty.  It appears that all Alpha
10331             # Linux and Compaq Tru64 Unix objects are PIC.
10332             lt_prog_compiler_pic_CXX=
10333             lt_prog_compiler_static_CXX='-non_shared'
10334             ;;
10335           *)
10336             ;;
10337         esac
10338         ;;
10339       psos*)
10340         ;;
10341       sco*)
10342         case $cc_basename in
10343           CC)
10344             lt_prog_compiler_pic_CXX='-fPIC'
10345             ;;
10346           *)
10347             ;;
10348         esac
10349         ;;
10350       solaris*)
10351         case $cc_basename in
10352           CC)
10353             # Sun C++ 4.2, 5.x and Centerline C++
10354             lt_prog_compiler_pic_CXX='-KPIC'
10355             lt_prog_compiler_static_CXX='-Bstatic'
10356             lt_prog_compiler_wl_CXX='-Qoption ld '
10357             ;;
10358           gcx)
10359             # Green Hills C++ Compiler
10360             lt_prog_compiler_pic_CXX='-PIC'
10361             ;;
10362           *)
10363             ;;
10364         esac
10365         ;;
10366       sunos4*)
10367         case $cc_basename in
10368           CC)
10369             # Sun C++ 4.x
10370             lt_prog_compiler_pic_CXX='-pic'
10371             lt_prog_compiler_static_CXX='-Bstatic'
10372             ;;
10373           lcc)
10374             # Lucid
10375             lt_prog_compiler_pic_CXX='-pic'
10376             ;;
10377           *)
10378             ;;
10379         esac
10380         ;;
10381       tandem*)
10382         case $cc_basename in
10383           NCC)
10384             # NonStop-UX NCC 3.20
10385             lt_prog_compiler_pic_CXX='-KPIC'
10386             ;;
10387           *)
10388             ;;
10389         esac
10390         ;;
10391       unixware*)
10392         ;;
10393       vxworks*)
10394         ;;
10395       *)
10396         lt_prog_compiler_can_build_shared_CXX=no
10397         ;;
10398     esac
10399   fi
10400
10401 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10402 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10403
10404 #
10405 # Check to make sure the PIC flag actually works.
10406 #
10407 if test -n "$lt_prog_compiler_pic_CXX"; then
10408   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10409 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10410 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10411   echo $ECHO_N "(cached) $ECHO_C" >&6
10412 else
10413   lt_prog_compiler_pic_works_CXX=no
10414   ac_outfile=conftest.$ac_objext
10415    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10416    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10417    # Insert the option either (1) after the last *FLAGS variable, or
10418    # (2) before a word containing "conftest.", or (3) at the end.
10419    # Note that $ac_compile itself does not contain backslashes and begins
10420    # with a dollar sign (not a hyphen), so the echo should work correctly.
10421    # The option is referenced via a variable to avoid confusing sed.
10422    lt_compile=`echo "$ac_compile" | $SED \
10423    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10425    -e 's:$: $lt_compiler_flag:'`
10426    (eval echo "\"\$as_me:10426: $lt_compile\"" >&5)
10427    (eval "$lt_compile" 2>conftest.err)
10428    ac_status=$?
10429    cat conftest.err >&5
10430    echo "$as_me:10430: \$? = $ac_status" >&5
10431    if (exit $ac_status) && test -s "$ac_outfile"; then
10432      # The compiler can only warn and ignore the option if not recognized
10433      # So say no if there are warnings
10434      if test ! -s conftest.err; then
10435        lt_prog_compiler_pic_works_CXX=yes
10436      fi
10437    fi
10438    $rm conftest*
10439
10440 fi
10441 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10442 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10443
10444 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10445     case $lt_prog_compiler_pic_CXX in
10446      "" | " "*) ;;
10447      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10448      esac
10449 else
10450     lt_prog_compiler_pic_CXX=
10451      lt_prog_compiler_can_build_shared_CXX=no
10452 fi
10453
10454 fi
10455 case "$host_os" in
10456   # For platforms which do not support PIC, -DPIC is meaningless:
10457   *djgpp*)
10458     lt_prog_compiler_pic_CXX=
10459     ;;
10460   *)
10461     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10462     ;;
10463 esac
10464
10465 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10466 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10467 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10468   echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470   lt_cv_prog_compiler_c_o_CXX=no
10471    $rm -r conftest 2>/dev/null
10472    mkdir conftest
10473    cd conftest
10474    mkdir out
10475    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10476
10477    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10478    # that will create temporary files in the current directory regardless of
10479    # the output directory.  Thus, making CWD read-only will cause this test
10480    # to fail, enabling locking or at least warning the user not to do parallel
10481    # builds.
10482    chmod -w .
10483
10484    lt_compiler_flag="-o out/conftest2.$ac_objext"
10485    # Insert the option either (1) after the last *FLAGS variable, or
10486    # (2) before a word containing "conftest.", or (3) at the end.
10487    # Note that $ac_compile itself does not contain backslashes and begins
10488    # with a dollar sign (not a hyphen), so the echo should work correctly.
10489    lt_compile=`echo "$ac_compile" | $SED \
10490    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10491    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10492    -e 's:$: $lt_compiler_flag:'`
10493    (eval echo "\"\$as_me:10493: $lt_compile\"" >&5)
10494    (eval "$lt_compile" 2>out/conftest.err)
10495    ac_status=$?
10496    cat out/conftest.err >&5
10497    echo "$as_me:10497: \$? = $ac_status" >&5
10498    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10499    then
10500      # The compiler can only warn and ignore the option if not recognized
10501      # So say no if there are warnings
10502      if test ! -s out/conftest.err; then
10503        lt_cv_prog_compiler_c_o_CXX=yes
10504      fi
10505    fi
10506    chmod u+w .
10507    $rm conftest* out/*
10508    rmdir out
10509    cd ..
10510    rmdir conftest
10511    $rm conftest*
10512
10513 fi
10514 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10515 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10516
10517
10518 hard_links="nottested"
10519 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10520   # do not overwrite the value of need_locks provided by the user
10521   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10522 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10523   hard_links=yes
10524   $rm conftest*
10525   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10526   touch conftest.a
10527   ln conftest.a conftest.b 2>&5 || hard_links=no
10528   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10529   echo "$as_me:$LINENO: result: $hard_links" >&5
10530 echo "${ECHO_T}$hard_links" >&6
10531   if test "$hard_links" = no; then
10532     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10533 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10534     need_locks=warn
10535   fi
10536 else
10537   need_locks=no
10538 fi
10539
10540 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10541 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10542
10543   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10544   case $host_os in
10545   aix4* | aix5*)
10546     # If we're using GNU nm, then we don't want the "-C" option.
10547     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10548     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10549       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'
10550     else
10551       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'
10552     fi
10553     ;;
10554   pw32*)
10555     export_symbols_cmds_CXX="$ltdll_cmds"
10556   ;;
10557   cygwin* | mingw*)
10558     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10559   ;;
10560   *)
10561     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10562   ;;
10563   esac
10564
10565 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10566 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10567 test "$ld_shlibs_CXX" = no && can_build_shared=no
10568
10569 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10570 if test "$GCC" = yes; then
10571   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10572 fi
10573
10574 #
10575 # Do we need to explicitly link libc?
10576 #
10577 case "x$archive_cmds_need_lc_CXX" in
10578 x|xyes)
10579   # Assume -lc should be added
10580   archive_cmds_need_lc_CXX=yes
10581
10582   if test "$enable_shared" = yes && test "$GCC" = yes; then
10583     case $archive_cmds_CXX in
10584     *'~'*)
10585       # FIXME: we may have to deal with multi-command sequences.
10586       ;;
10587     '$CC '*)
10588       # Test whether the compiler implicitly links with -lc since on some
10589       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10590       # to ld, don't add -lc before -lgcc.
10591       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10592 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10593       $rm conftest*
10594       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10595
10596       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597   (eval $ac_compile) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } 2>conftest.err; then
10601         soname=conftest
10602         lib=conftest
10603         libobjs=conftest.$ac_objext
10604         deplibs=
10605         wl=$lt_prog_compiler_wl_CXX
10606         compiler_flags=-v
10607         linker_flags=-v
10608         verstring=
10609         output_objdir=.
10610         libname=conftest
10611         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10612         allow_undefined_flag_CXX=
10613         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10614   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }
10618         then
10619           archive_cmds_need_lc_CXX=no
10620         else
10621           archive_cmds_need_lc_CXX=yes
10622         fi
10623         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10624       else
10625         cat conftest.err 1>&5
10626       fi
10627       $rm conftest*
10628       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10629 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10630       ;;
10631     esac
10632   fi
10633   ;;
10634 esac
10635
10636 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10638 hardcode_action_CXX=
10639 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10640    test -n "$runpath_var CXX" || \
10641    test "X$hardcode_automatic_CXX"="Xyes" ; then
10642
10643   # We can hardcode non-existant directories.
10644   if test "$hardcode_direct_CXX" != no &&
10645      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10646      # have to relink, otherwise we might link with an installed library
10647      # when we should be linking with a yet-to-be-installed one
10648      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10649      test "$hardcode_minus_L_CXX" != no; then
10650     # Linking always hardcodes the temporary library directory.
10651     hardcode_action_CXX=relink
10652   else
10653     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10654     hardcode_action_CXX=immediate
10655   fi
10656 else
10657   # We cannot hardcode anything, or else we can only hardcode existing
10658   # directories.
10659   hardcode_action_CXX=unsupported
10660 fi
10661 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10662 echo "${ECHO_T}$hardcode_action_CXX" >&6
10663
10664 if test "$hardcode_action_CXX" = relink; then
10665   # Fast installation is not supported
10666   enable_fast_install=no
10667 elif test "$shlibpath_overrides_runpath" = yes ||
10668      test "$enable_shared" = no; then
10669   # Fast installation is not necessary
10670   enable_fast_install=needless
10671 fi
10672
10673 striplib=
10674 old_striplib=
10675 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10676 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10677 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10678   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10679   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10680   echo "$as_me:$LINENO: result: yes" >&5
10681 echo "${ECHO_T}yes" >&6
10682 else
10683 # FIXME - insert some real tests, host_os isn't really good enough
10684   case $host_os in
10685    darwin*)
10686        if test -n "$STRIP" ; then
10687          striplib="$STRIP -x"
10688          echo "$as_me:$LINENO: result: yes" >&5
10689 echo "${ECHO_T}yes" >&6
10690        else
10691   echo "$as_me:$LINENO: result: no" >&5
10692 echo "${ECHO_T}no" >&6
10693 fi
10694        ;;
10695    *)
10696   echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6
10698     ;;
10699   esac
10700 fi
10701
10702 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10703 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10704 library_names_spec=
10705 libname_spec='lib$name'
10706 soname_spec=
10707 shrext=".so"
10708 postinstall_cmds=
10709 postuninstall_cmds=
10710 finish_cmds=
10711 finish_eval=
10712 shlibpath_var=
10713 shlibpath_overrides_runpath=unknown
10714 version_type=none
10715 dynamic_linker="$host_os ld.so"
10716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10717 if test "$GCC" = yes; then
10718   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10719   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10720     # if the path contains ";" then we assume it to be the separator
10721     # otherwise default to the standard path separator (i.e. ":") - it is
10722     # assumed that no part of a normal pathname contains ";" but that should
10723     # okay in the real world where ";" in dirpaths is itself problematic.
10724     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10725   else
10726     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10727   fi
10728 else
10729   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10730 fi
10731 need_lib_prefix=unknown
10732 hardcode_into_libs=no
10733
10734 # when you set need_version to no, make sure it does not cause -set_version
10735 # flags to be left without arguments
10736 need_version=unknown
10737
10738 case $host_os in
10739 aix3*)
10740   version_type=linux
10741   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10742   shlibpath_var=LIBPATH
10743
10744   # AIX 3 has no versioning support, so we append a major version to the name.
10745   soname_spec='${libname}${release}${shared_ext}$major'
10746   ;;
10747
10748 aix4* | aix5*)
10749   version_type=linux
10750   need_lib_prefix=no
10751   need_version=no
10752   hardcode_into_libs=yes
10753   if test "$host_cpu" = ia64; then
10754     # AIX 5 supports IA64
10755     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10756     shlibpath_var=LD_LIBRARY_PATH
10757   else
10758     # With GCC up to 2.95.x, collect2 would create an import file
10759     # for dependence libraries.  The import file would start with
10760     # the line `#! .'.  This would cause the generated library to
10761     # depend on `.', always an invalid library.  This was fixed in
10762     # development snapshots of GCC prior to 3.0.
10763     case $host_os in
10764       aix4 | aix4.[01] | aix4.[01].*)
10765       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10766            echo ' yes '
10767            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10768         :
10769       else
10770         can_build_shared=no
10771       fi
10772       ;;
10773     esac
10774     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10775     # soname into executable. Probably we can add versioning support to
10776     # collect2, so additional links can be useful in future.
10777     if test "$aix_use_runtimelinking" = yes; then
10778       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10779       # instead of lib<name>.a to let people know that these are not
10780       # typical AIX shared libraries.
10781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782     else
10783       # We preserve .a as extension for shared libraries through AIX4.2
10784       # and later when we are not doing run time linking.
10785       library_names_spec='${libname}${release}.a $libname.a'
10786       soname_spec='${libname}${release}${shared_ext}$major'
10787     fi
10788     shlibpath_var=LIBPATH
10789   fi
10790   ;;
10791
10792 amigaos*)
10793   library_names_spec='$libname.ixlibrary $libname.a'
10794   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10795   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'
10796   ;;
10797
10798 beos*)
10799   library_names_spec='${libname}${shared_ext}'
10800   dynamic_linker="$host_os ld.so"
10801   shlibpath_var=LIBRARY_PATH
10802   ;;
10803
10804 bsdi4*)
10805   version_type=linux
10806   need_version=no
10807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808   soname_spec='${libname}${release}${shared_ext}$major'
10809   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10810   shlibpath_var=LD_LIBRARY_PATH
10811   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10812   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10813   # the default ld.so.conf also contains /usr/contrib/lib and
10814   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10815   # libtool to hard-code these into programs
10816   ;;
10817
10818 cygwin* | mingw* | pw32*)
10819   version_type=windows
10820   shrext=".dll"
10821   need_version=no
10822   need_lib_prefix=no
10823
10824   case $GCC,$host_os in
10825   yes,cygwin* | yes,mingw* | yes,pw32*)
10826     library_names_spec='$libname.dll.a'
10827     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10828     postinstall_cmds='base_file=`basename \${file}`~
10829       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10830       dldir=$destdir/`dirname \$dlpath`~
10831       test -d \$dldir || mkdir -p \$dldir~
10832       $install_prog $dir/$dlname \$dldir/$dlname'
10833     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10834       dlpath=$dir/\$dldll~
10835        $rm \$dlpath'
10836     shlibpath_overrides_runpath=yes
10837
10838     case $host_os in
10839     cygwin*)
10840       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10841       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10842       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10843       ;;
10844     mingw*)
10845       # MinGW DLLs use traditional 'lib' prefix
10846       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10848       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10849         # It is most probably a Windows format PATH printed by
10850         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10851         # path with ; separators, and with drive letters. We can handle the
10852         # drive letters (cygwin fileutils understands them), so leave them,
10853         # especially as we might pass files found there to a mingw objdump,
10854         # which wouldn't understand a cygwinified path. Ahh.
10855         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10856       else
10857         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10858       fi
10859       ;;
10860     pw32*)
10861       # pw32 DLLs use 'pw' prefix rather than 'lib'
10862       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10863       ;;
10864     esac
10865     ;;
10866
10867   *)
10868     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10869     ;;
10870   esac
10871   dynamic_linker='Win32 ld.exe'
10872   # FIXME: first we should search . and the directory the executable is in
10873   shlibpath_var=PATH
10874   ;;
10875
10876 darwin* | rhapsody*)
10877   dynamic_linker="$host_os dyld"
10878   version_type=darwin
10879   need_lib_prefix=no
10880   need_version=no
10881   # FIXME: Relying on posixy $() will cause problems for
10882   #        cross-compilation, but unfortunately the echo tests do not
10883   #        yet detect zsh echo's removal of \ escapes.
10884   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10885   soname_spec='${libname}${release}${major}$shared_ext'
10886   shlibpath_overrides_runpath=yes
10887   shlibpath_var=DYLD_LIBRARY_PATH
10888   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10889   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10890   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10891   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"`
10892   fi
10893   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10894   ;;
10895
10896 dgux*)
10897   version_type=linux
10898   need_lib_prefix=no
10899   need_version=no
10900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10901   soname_spec='${libname}${release}${shared_ext}$major'
10902   shlibpath_var=LD_LIBRARY_PATH
10903   ;;
10904
10905 freebsd1*)
10906   dynamic_linker=no
10907   ;;
10908
10909 freebsd*)
10910   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10911   version_type=freebsd-$objformat
10912   case $version_type in
10913     freebsd-elf*)
10914       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10915       need_version=no
10916       need_lib_prefix=no
10917       ;;
10918     freebsd-*)
10919       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10920       need_version=yes
10921       ;;
10922   esac
10923   shlibpath_var=LD_LIBRARY_PATH
10924   case $host_os in
10925   freebsd2*)
10926     shlibpath_overrides_runpath=yes
10927     ;;
10928   freebsd3.01* | freebsdelf3.01*)
10929     shlibpath_overrides_runpath=yes
10930     hardcode_into_libs=yes
10931     ;;
10932   *) # from 3.2 on
10933     shlibpath_overrides_runpath=no
10934     hardcode_into_libs=yes
10935     ;;
10936   esac
10937   ;;
10938
10939 gnu*)
10940   version_type=linux
10941   need_lib_prefix=no
10942   need_version=no
10943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10944   soname_spec='${libname}${release}${shared_ext}$major'
10945   shlibpath_var=LD_LIBRARY_PATH
10946   hardcode_into_libs=yes
10947   ;;
10948
10949 hpux9* | hpux10* | hpux11*)
10950   # Give a soname corresponding to the major version so that dld.sl refuses to
10951   # link against other versions.
10952   version_type=sunos
10953   need_lib_prefix=no
10954   need_version=no
10955   case "$host_cpu" in
10956   ia64*)
10957     shrext='.so'
10958     hardcode_into_libs=yes
10959     dynamic_linker="$host_os dld.so"
10960     shlibpath_var=LD_LIBRARY_PATH
10961     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963     soname_spec='${libname}${release}${shared_ext}$major'
10964     if test "X$HPUX_IA64_MODE" = X32; then
10965       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10966     else
10967       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10968     fi
10969     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10970     ;;
10971    hppa*64*)
10972      shrext='.sl'
10973      hardcode_into_libs=yes
10974      dynamic_linker="$host_os dld.sl"
10975      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10976      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10977      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978      soname_spec='${libname}${release}${shared_ext}$major'
10979      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10980      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10981      ;;
10982    *)
10983     shrext='.sl'
10984     dynamic_linker="$host_os dld.sl"
10985     shlibpath_var=SHLIB_PATH
10986     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988     soname_spec='${libname}${release}${shared_ext}$major'
10989     ;;
10990   esac
10991   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10992   postinstall_cmds='chmod 555 $lib'
10993   ;;
10994
10995 irix5* | irix6* | nonstopux*)
10996   case $host_os in
10997     nonstopux*) version_type=nonstopux ;;
10998     *)
10999         if test "$lt_cv_prog_gnu_ld" = yes; then
11000                 version_type=linux
11001         else
11002                 version_type=irix
11003         fi ;;
11004   esac
11005   need_lib_prefix=no
11006   need_version=no
11007   soname_spec='${libname}${release}${shared_ext}$major'
11008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11009   case $host_os in
11010   irix5* | nonstopux*)
11011     libsuff= shlibsuff=
11012     ;;
11013   *)
11014     case $LD in # libtool.m4 will add one of these switches to LD
11015     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11016       libsuff= shlibsuff= libmagic=32-bit;;
11017     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11018       libsuff=32 shlibsuff=N32 libmagic=N32;;
11019     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11020       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11021     *) libsuff= shlibsuff= libmagic=never-match;;
11022     esac
11023     ;;
11024   esac
11025   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11026   shlibpath_overrides_runpath=no
11027   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11028   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11029   hardcode_into_libs=yes
11030   ;;
11031
11032 # No shared lib support for Linux oldld, aout, or coff.
11033 linux*oldld* | linux*aout* | linux*coff*)
11034   dynamic_linker=no
11035   ;;
11036
11037 # This must be Linux ELF.
11038 linux*)
11039   version_type=linux
11040   need_lib_prefix=no
11041   need_version=no
11042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043   soname_spec='${libname}${release}${shared_ext}$major'
11044   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11045   shlibpath_var=LD_LIBRARY_PATH
11046   shlibpath_overrides_runpath=no
11047   # This implies no fast_install, which is unacceptable.
11048   # Some rework will be needed to allow for fast_install
11049   # before this can be enabled.
11050   hardcode_into_libs=yes
11051
11052   # We used to test for /lib/ld.so.1 and disable shared libraries on
11053   # powerpc, because MkLinux only supported shared libraries with the
11054   # GNU dynamic linker.  Since this was broken with cross compilers,
11055   # most powerpc-linux boxes support dynamic linking these days and
11056   # people can always --disable-shared, the test was removed, and we
11057   # assume the GNU/Linux dynamic linker is in use.
11058   dynamic_linker='GNU/Linux ld.so'
11059   ;;
11060
11061 netbsd*)
11062   version_type=sunos
11063   need_lib_prefix=no
11064   need_version=no
11065   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11067     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11068     dynamic_linker='NetBSD (a.out) ld.so'
11069   else
11070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11071     soname_spec='${libname}${release}${shared_ext}$major'
11072     dynamic_linker='NetBSD ld.elf_so'
11073   fi
11074   shlibpath_var=LD_LIBRARY_PATH
11075   shlibpath_overrides_runpath=yes
11076   hardcode_into_libs=yes
11077   ;;
11078
11079 newsos6)
11080   version_type=linux
11081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082   shlibpath_var=LD_LIBRARY_PATH
11083   shlibpath_overrides_runpath=yes
11084   ;;
11085
11086 nto-qnx)
11087   version_type=linux
11088   need_lib_prefix=no
11089   need_version=no
11090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091   soname_spec='${libname}${release}${shared_ext}$major'
11092   shlibpath_var=LD_LIBRARY_PATH
11093   shlibpath_overrides_runpath=yes
11094   ;;
11095
11096 openbsd*)
11097   version_type=sunos
11098   need_lib_prefix=no
11099   need_version=no
11100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11101   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11102   shlibpath_var=LD_LIBRARY_PATH
11103   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11104     case $host_os in
11105       openbsd2.[89] | openbsd2.[89].*)
11106         shlibpath_overrides_runpath=no
11107         ;;
11108       *)
11109         shlibpath_overrides_runpath=yes
11110         ;;
11111       esac
11112   else
11113     shlibpath_overrides_runpath=yes
11114   fi
11115   ;;
11116
11117 os2*)
11118   libname_spec='$name'
11119   shrext=".dll"
11120   need_lib_prefix=no
11121   library_names_spec='$libname${shared_ext} $libname.a'
11122   dynamic_linker='OS/2 ld.exe'
11123   shlibpath_var=LIBPATH
11124   ;;
11125
11126 osf3* | osf4* | osf5*)
11127   version_type=osf
11128   need_lib_prefix=no
11129   need_version=no
11130   soname_spec='${libname}${release}${shared_ext}$major'
11131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132   shlibpath_var=LD_LIBRARY_PATH
11133   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11134   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11135   ;;
11136
11137 sco3.2v5*)
11138   version_type=osf
11139   soname_spec='${libname}${release}${shared_ext}$major'
11140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141   shlibpath_var=LD_LIBRARY_PATH
11142   ;;
11143
11144 solaris*)
11145   version_type=linux
11146   need_lib_prefix=no
11147   need_version=no
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149   soname_spec='${libname}${release}${shared_ext}$major'
11150   shlibpath_var=LD_LIBRARY_PATH
11151   shlibpath_overrides_runpath=yes
11152   hardcode_into_libs=yes
11153   # ldd complains unless libraries are executable
11154   postinstall_cmds='chmod +x $lib'
11155   ;;
11156
11157 sunos4*)
11158   version_type=sunos
11159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11160   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11161   shlibpath_var=LD_LIBRARY_PATH
11162   shlibpath_overrides_runpath=yes
11163   if test "$with_gnu_ld" = yes; then
11164     need_lib_prefix=no
11165   fi
11166   need_version=yes
11167   ;;
11168
11169 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11170   version_type=linux
11171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172   soname_spec='${libname}${release}${shared_ext}$major'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   case $host_vendor in
11175     sni)
11176       shlibpath_overrides_runpath=no
11177       need_lib_prefix=no
11178       export_dynamic_flag_spec='${wl}-Blargedynsym'
11179       runpath_var=LD_RUN_PATH
11180       ;;
11181     siemens)
11182       need_lib_prefix=no
11183       ;;
11184     motorola)
11185       need_lib_prefix=no
11186       need_version=no
11187       shlibpath_overrides_runpath=no
11188       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11189       ;;
11190   esac
11191   ;;
11192
11193 sysv4*MP*)
11194   if test -d /usr/nec ;then
11195     version_type=linux
11196     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11197     soname_spec='$libname${shared_ext}.$major'
11198     shlibpath_var=LD_LIBRARY_PATH
11199   fi
11200   ;;
11201
11202 uts4*)
11203   version_type=linux
11204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205   soname_spec='${libname}${release}${shared_ext}$major'
11206   shlibpath_var=LD_LIBRARY_PATH
11207   ;;
11208
11209 *)
11210   dynamic_linker=no
11211   ;;
11212 esac
11213 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11214 echo "${ECHO_T}$dynamic_linker" >&6
11215 test "$dynamic_linker" = no && can_build_shared=no
11216
11217 if test "x$enable_dlopen" != xyes; then
11218   enable_dlopen=unknown
11219   enable_dlopen_self=unknown
11220   enable_dlopen_self_static=unknown
11221 else
11222   lt_cv_dlopen=no
11223   lt_cv_dlopen_libs=
11224
11225   case $host_os in
11226   beos*)
11227     lt_cv_dlopen="load_add_on"
11228     lt_cv_dlopen_libs=
11229     lt_cv_dlopen_self=yes
11230     ;;
11231
11232   mingw* | pw32*)
11233     lt_cv_dlopen="LoadLibrary"
11234     lt_cv_dlopen_libs=
11235    ;;
11236
11237   cygwin*)
11238     lt_cv_dlopen="dlopen"
11239     lt_cv_dlopen_libs=
11240    ;;
11241
11242   darwin*)
11243   # if libdl is installed we need to link against it
11244     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11245 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11247   echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249   ac_check_lib_save_LIBS=$LIBS
11250 LIBS="-ldl  $LIBS"
11251 cat >conftest.$ac_ext <<_ACEOF
11252 #line $LINENO "configure"
11253 /* confdefs.h.  */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h.  */
11258
11259 /* Override any gcc2 internal prototype to avoid an error.  */
11260 #ifdef __cplusplus
11261 extern "C"
11262 #endif
11263 /* We use char because int might match the return type of a gcc2
11264    builtin and then its argument prototype would still apply.  */
11265 char dlopen ();
11266 int
11267 main ()
11268 {
11269 dlopen ();
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11276   (eval $ac_link) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); } &&
11280          { ac_try='test -s conftest$ac_exeext'
11281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282   (eval $ac_try) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_cv_lib_dl_dlopen=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_cv_lib_dl_dlopen=no
11292 fi
11293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11294 LIBS=$ac_check_lib_save_LIBS
11295 fi
11296 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11297 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11298 if test $ac_cv_lib_dl_dlopen = yes; then
11299   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11300 else
11301
11302     lt_cv_dlopen="dyld"
11303     lt_cv_dlopen_libs=
11304     lt_cv_dlopen_self=yes
11305
11306 fi
11307
11308    ;;
11309
11310   *)
11311     echo "$as_me:$LINENO: checking for shl_load" >&5
11312 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11313 if test "${ac_cv_func_shl_load+set}" = set; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11318 /* confdefs.h.  */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h.  */
11323 /* System header to define __stub macros and hopefully few prototypes,
11324     which can conflict with char shl_load (); below.
11325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11326     <limits.h> exists even on freestanding compilers.  */
11327 #ifdef __STDC__
11328 # include <limits.h>
11329 #else
11330 # include <assert.h>
11331 #endif
11332 /* Override any gcc2 internal prototype to avoid an error.  */
11333 #ifdef __cplusplus
11334 extern "C"
11335 {
11336 #endif
11337 /* We use char because int might match the return type of a gcc2
11338    builtin and then its argument prototype would still apply.  */
11339 char shl_load ();
11340 /* The GNU C library defines this for functions which it implements
11341     to always fail with ENOSYS.  Some functions are actually named
11342     something starting with __ and the normal name is an alias.  */
11343 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11344 choke me
11345 #else
11346 char (*f) () = shl_load;
11347 #endif
11348 #ifdef __cplusplus
11349 }
11350 #endif
11351
11352 int
11353 main ()
11354 {
11355 return f != shl_load;
11356   ;
11357   return 0;
11358 }
11359 _ACEOF
11360 rm -f conftest.$ac_objext conftest$ac_exeext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362   (eval $ac_link) 2>&5
11363   ac_status=$?
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); } &&
11366          { ac_try='test -s conftest$ac_exeext'
11367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368   (eval $ac_try) 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); }; }; then
11372   ac_cv_func_shl_load=yes
11373 else
11374   echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11376
11377 ac_cv_func_shl_load=no
11378 fi
11379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11380 fi
11381 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11382 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11383 if test $ac_cv_func_shl_load = yes; then
11384   lt_cv_dlopen="shl_load"
11385 else
11386   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11387 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11388 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391   ac_check_lib_save_LIBS=$LIBS
11392 LIBS="-ldld  $LIBS"
11393 cat >conftest.$ac_ext <<_ACEOF
11394 #line $LINENO "configure"
11395 /* confdefs.h.  */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h.  */
11400
11401 /* Override any gcc2 internal prototype to avoid an error.  */
11402 #ifdef __cplusplus
11403 extern "C"
11404 #endif
11405 /* We use char because int might match the return type of a gcc2
11406    builtin and then its argument prototype would still apply.  */
11407 char shl_load ();
11408 int
11409 main ()
11410 {
11411 shl_load ();
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 rm -f conftest.$ac_objext conftest$ac_exeext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418   (eval $ac_link) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); } &&
11422          { ac_try='test -s conftest$ac_exeext'
11423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424   (eval $ac_try) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); }; }; then
11428   ac_cv_lib_dld_shl_load=yes
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ac_cv_lib_dld_shl_load=no
11434 fi
11435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11436 LIBS=$ac_check_lib_save_LIBS
11437 fi
11438 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11439 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11440 if test $ac_cv_lib_dld_shl_load = yes; then
11441   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11442 else
11443   echo "$as_me:$LINENO: checking for dlopen" >&5
11444 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11445 if test "${ac_cv_func_dlopen+set}" = set; then
11446   echo $ECHO_N "(cached) $ECHO_C" >&6
11447 else
11448   cat >conftest.$ac_ext <<_ACEOF
11449 #line $LINENO "configure"
11450 /* confdefs.h.  */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h.  */
11455 /* System header to define __stub macros and hopefully few prototypes,
11456     which can conflict with char dlopen (); below.
11457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458     <limits.h> exists even on freestanding compilers.  */
11459 #ifdef __STDC__
11460 # include <limits.h>
11461 #else
11462 # include <assert.h>
11463 #endif
11464 /* Override any gcc2 internal prototype to avoid an error.  */
11465 #ifdef __cplusplus
11466 extern "C"
11467 {
11468 #endif
11469 /* We use char because int might match the return type of a gcc2
11470    builtin and then its argument prototype would still apply.  */
11471 char dlopen ();
11472 /* The GNU C library defines this for functions which it implements
11473     to always fail with ENOSYS.  Some functions are actually named
11474     something starting with __ and the normal name is an alias.  */
11475 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11476 choke me
11477 #else
11478 char (*f) () = dlopen;
11479 #endif
11480 #ifdef __cplusplus
11481 }
11482 #endif
11483
11484 int
11485 main ()
11486 {
11487 return f != dlopen;
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 rm -f conftest.$ac_objext conftest$ac_exeext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11494   (eval $ac_link) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } &&
11498          { ac_try='test -s conftest$ac_exeext'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   ac_cv_func_dlopen=yes
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_cv_func_dlopen=no
11510 fi
11511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11512 fi
11513 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11514 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11515 if test $ac_cv_func_dlopen = yes; then
11516   lt_cv_dlopen="dlopen"
11517 else
11518   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11519 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11520 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11521   echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523   ac_check_lib_save_LIBS=$LIBS
11524 LIBS="-ldl  $LIBS"
11525 cat >conftest.$ac_ext <<_ACEOF
11526 #line $LINENO "configure"
11527 /* confdefs.h.  */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h.  */
11532
11533 /* Override any gcc2 internal prototype to avoid an error.  */
11534 #ifdef __cplusplus
11535 extern "C"
11536 #endif
11537 /* We use char because int might match the return type of a gcc2
11538    builtin and then its argument prototype would still apply.  */
11539 char dlopen ();
11540 int
11541 main ()
11542 {
11543 dlopen ();
11544   ;
11545   return 0;
11546 }
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550   (eval $ac_link) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); } &&
11554          { ac_try='test -s conftest$ac_exeext'
11555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556   (eval $ac_try) 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); }; }; then
11560   ac_cv_lib_dl_dlopen=yes
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 ac_cv_lib_dl_dlopen=no
11566 fi
11567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11569 fi
11570 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11571 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11572 if test $ac_cv_lib_dl_dlopen = yes; then
11573   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11574 else
11575   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11576 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11577 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580   ac_check_lib_save_LIBS=$LIBS
11581 LIBS="-lsvld  $LIBS"
11582 cat >conftest.$ac_ext <<_ACEOF
11583 #line $LINENO "configure"
11584 /* confdefs.h.  */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h.  */
11589
11590 /* Override any gcc2 internal prototype to avoid an error.  */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 /* We use char because int might match the return type of a gcc2
11595    builtin and then its argument prototype would still apply.  */
11596 char dlopen ();
11597 int
11598 main ()
11599 {
11600 dlopen ();
11601   ;
11602   return 0;
11603 }
11604 _ACEOF
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607   (eval $ac_link) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } &&
11611          { ac_try='test -s conftest$ac_exeext'
11612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613   (eval $ac_try) 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; }; then
11617   ac_cv_lib_svld_dlopen=yes
11618 else
11619   echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 ac_cv_lib_svld_dlopen=no
11623 fi
11624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11626 fi
11627 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11628 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11629 if test $ac_cv_lib_svld_dlopen = yes; then
11630   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11631 else
11632   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11633 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11634 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11635   echo $ECHO_N "(cached) $ECHO_C" >&6
11636 else
11637   ac_check_lib_save_LIBS=$LIBS
11638 LIBS="-ldld  $LIBS"
11639 cat >conftest.$ac_ext <<_ACEOF
11640 #line $LINENO "configure"
11641 /* confdefs.h.  */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h.  */
11646
11647 /* Override any gcc2 internal prototype to avoid an error.  */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 /* We use char because int might match the return type of a gcc2
11652    builtin and then its argument prototype would still apply.  */
11653 char dld_link ();
11654 int
11655 main ()
11656 {
11657 dld_link ();
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664   (eval $ac_link) 2>&5
11665   ac_status=$?
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); } &&
11668          { ac_try='test -s conftest$ac_exeext'
11669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670   (eval $ac_try) 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; }; then
11674   ac_cv_lib_dld_dld_link=yes
11675 else
11676   echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11678
11679 ac_cv_lib_dld_dld_link=no
11680 fi
11681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11682 LIBS=$ac_check_lib_save_LIBS
11683 fi
11684 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11685 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11686 if test $ac_cv_lib_dld_dld_link = yes; then
11687   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11688 fi
11689
11690
11691 fi
11692
11693
11694 fi
11695
11696
11697 fi
11698
11699
11700 fi
11701
11702
11703 fi
11704
11705     ;;
11706   esac
11707
11708   if test "x$lt_cv_dlopen" != xno; then
11709     enable_dlopen=yes
11710   else
11711     enable_dlopen=no
11712   fi
11713
11714   case $lt_cv_dlopen in
11715   dlopen)
11716     save_CPPFLAGS="$CPPFLAGS"
11717     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11718
11719     save_LDFLAGS="$LDFLAGS"
11720     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11721
11722     save_LIBS="$LIBS"
11723     LIBS="$lt_cv_dlopen_libs $LIBS"
11724
11725     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11726 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11727 if test "${lt_cv_dlopen_self+set}" = set; then
11728   echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730           if test "$cross_compiling" = yes; then :
11731   lt_cv_dlopen_self=cross
11732 else
11733   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11734   lt_status=$lt_dlunknown
11735   cat > conftest.$ac_ext <<EOF
11736 #line 11736 "configure"
11737 #include "confdefs.h"
11738
11739 #if HAVE_DLFCN_H
11740 #include <dlfcn.h>
11741 #endif
11742
11743 #include <stdio.h>
11744
11745 #ifdef RTLD_GLOBAL
11746 #  define LT_DLGLOBAL           RTLD_GLOBAL
11747 #else
11748 #  ifdef DL_GLOBAL
11749 #    define LT_DLGLOBAL         DL_GLOBAL
11750 #  else
11751 #    define LT_DLGLOBAL         0
11752 #  endif
11753 #endif
11754
11755 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11756    find out it does not work in some platform. */
11757 #ifndef LT_DLLAZY_OR_NOW
11758 #  ifdef RTLD_LAZY
11759 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11760 #  else
11761 #    ifdef DL_LAZY
11762 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11763 #    else
11764 #      ifdef RTLD_NOW
11765 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11766 #      else
11767 #        ifdef DL_NOW
11768 #          define LT_DLLAZY_OR_NOW      DL_NOW
11769 #        else
11770 #          define LT_DLLAZY_OR_NOW      0
11771 #        endif
11772 #      endif
11773 #    endif
11774 #  endif
11775 #endif
11776
11777 #ifdef __cplusplus
11778 extern "C" void exit (int);
11779 #endif
11780
11781 void fnord() { int i=42;}
11782 int main ()
11783 {
11784   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11785   int status = $lt_dlunknown;
11786
11787   if (self)
11788     {
11789       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11790       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11791       /* dlclose (self); */
11792     }
11793
11794     exit (status);
11795 }
11796 EOF
11797   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798   (eval $ac_link) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11802     (./conftest; exit; ) 2>/dev/null
11803     lt_status=$?
11804     case x$lt_status in
11805       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11806       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11807       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11808     esac
11809   else :
11810     # compilation failed
11811     lt_cv_dlopen_self=no
11812   fi
11813 fi
11814 rm -fr conftest*
11815
11816
11817 fi
11818 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11819 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11820
11821     if test "x$lt_cv_dlopen_self" = xyes; then
11822       LDFLAGS="$LDFLAGS $link_static_flag"
11823       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11824 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11825 if test "${lt_cv_dlopen_self_static+set}" = set; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828           if test "$cross_compiling" = yes; then :
11829   lt_cv_dlopen_self_static=cross
11830 else
11831   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11832   lt_status=$lt_dlunknown
11833   cat > conftest.$ac_ext <<EOF
11834 #line 11834 "configure"
11835 #include "confdefs.h"
11836
11837 #if HAVE_DLFCN_H
11838 #include <dlfcn.h>
11839 #endif
11840
11841 #include <stdio.h>
11842
11843 #ifdef RTLD_GLOBAL
11844 #  define LT_DLGLOBAL           RTLD_GLOBAL
11845 #else
11846 #  ifdef DL_GLOBAL
11847 #    define LT_DLGLOBAL         DL_GLOBAL
11848 #  else
11849 #    define LT_DLGLOBAL         0
11850 #  endif
11851 #endif
11852
11853 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11854    find out it does not work in some platform. */
11855 #ifndef LT_DLLAZY_OR_NOW
11856 #  ifdef RTLD_LAZY
11857 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11858 #  else
11859 #    ifdef DL_LAZY
11860 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11861 #    else
11862 #      ifdef RTLD_NOW
11863 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11864 #      else
11865 #        ifdef DL_NOW
11866 #          define LT_DLLAZY_OR_NOW      DL_NOW
11867 #        else
11868 #          define LT_DLLAZY_OR_NOW      0
11869 #        endif
11870 #      endif
11871 #    endif
11872 #  endif
11873 #endif
11874
11875 #ifdef __cplusplus
11876 extern "C" void exit (int);
11877 #endif
11878
11879 void fnord() { int i=42;}
11880 int main ()
11881 {
11882   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11883   int status = $lt_dlunknown;
11884
11885   if (self)
11886     {
11887       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11888       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11889       /* dlclose (self); */
11890     }
11891
11892     exit (status);
11893 }
11894 EOF
11895   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896   (eval $ac_link) 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11900     (./conftest; exit; ) 2>/dev/null
11901     lt_status=$?
11902     case x$lt_status in
11903       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11904       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11905       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11906     esac
11907   else :
11908     # compilation failed
11909     lt_cv_dlopen_self_static=no
11910   fi
11911 fi
11912 rm -fr conftest*
11913
11914
11915 fi
11916 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11917 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11918     fi
11919
11920     CPPFLAGS="$save_CPPFLAGS"
11921     LDFLAGS="$save_LDFLAGS"
11922     LIBS="$save_LIBS"
11923     ;;
11924   esac
11925
11926   case $lt_cv_dlopen_self in
11927   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11928   *) enable_dlopen_self=unknown ;;
11929   esac
11930
11931   case $lt_cv_dlopen_self_static in
11932   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11933   *) enable_dlopen_self_static=unknown ;;
11934   esac
11935 fi
11936
11937
11938 # The else clause should only fire when bootstrapping the
11939 # libtool distribution, otherwise you forgot to ship ltmain.sh
11940 # with your package, and you will get complaints that there are
11941 # no rules to generate ltmain.sh.
11942 if test -f "$ltmain"; then
11943   # See if we are running on zsh, and set the options which allow our commands through
11944   # without removal of \ escapes.
11945   if test -n "${ZSH_VERSION+set}" ; then
11946     setopt NO_GLOB_SUBST
11947   fi
11948   # Now quote all the things that may contain metacharacters while being
11949   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11950   # variables and quote the copies for generation of the libtool script.
11951   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11952     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11953     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11954     deplibs_check_method reload_flag reload_cmds need_locks \
11955     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11956     lt_cv_sys_global_symbol_to_c_name_address \
11957     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11958     old_postinstall_cmds old_postuninstall_cmds \
11959     compiler_CXX \
11960     CC_CXX \
11961     LD_CXX \
11962     lt_prog_compiler_wl_CXX \
11963     lt_prog_compiler_pic_CXX \
11964     lt_prog_compiler_static_CXX \
11965     lt_prog_compiler_no_builtin_flag_CXX \
11966     export_dynamic_flag_spec_CXX \
11967     thread_safe_flag_spec_CXX \
11968     whole_archive_flag_spec_CXX \
11969     enable_shared_with_static_runtimes_CXX \
11970     old_archive_cmds_CXX \
11971     old_archive_from_new_cmds_CXX \
11972     predep_objects_CXX \
11973     postdep_objects_CXX \
11974     predeps_CXX \
11975     postdeps_CXX \
11976     compiler_lib_search_path_CXX \
11977     archive_cmds_CXX \
11978     archive_expsym_cmds_CXX \
11979     postinstall_cmds_CXX \
11980     postuninstall_cmds_CXX \
11981     old_archive_from_expsyms_cmds_CXX \
11982     allow_undefined_flag_CXX \
11983     no_undefined_flag_CXX \
11984     export_symbols_cmds_CXX \
11985     hardcode_libdir_flag_spec_CXX \
11986     hardcode_libdir_flag_spec_ld_CXX \
11987     hardcode_libdir_separator_CXX \
11988     hardcode_automatic_CXX \
11989     module_cmds_CXX \
11990     module_expsym_cmds_CXX \
11991     lt_cv_prog_compiler_c_o_CXX \
11992     exclude_expsyms_CXX \
11993     include_expsyms_CXX; do
11994
11995     case $var in
11996     old_archive_cmds_CXX | \
11997     old_archive_from_new_cmds_CXX | \
11998     archive_cmds_CXX | \
11999     archive_expsym_cmds_CXX | \
12000     module_cmds_CXX | \
12001     module_expsym_cmds_CXX | \
12002     old_archive_from_expsyms_cmds_CXX | \
12003     export_symbols_cmds_CXX | \
12004     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12005     postinstall_cmds | postuninstall_cmds | \
12006     old_postinstall_cmds | old_postuninstall_cmds | \
12007     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12008       # Double-quote double-evaled strings.
12009       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12010       ;;
12011     *)
12012       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12013       ;;
12014     esac
12015   done
12016
12017   case $lt_echo in
12018   *'\$0 --fallback-echo"')
12019     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12020     ;;
12021   esac
12022
12023 cfgfile="$ofile"
12024
12025   cat <<__EOF__ >> "$cfgfile"
12026 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12027
12028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12029
12030 # Shell to use when invoking shell scripts.
12031 SHELL=$lt_SHELL
12032
12033 # Whether or not to build shared libraries.
12034 build_libtool_libs=$enable_shared
12035
12036 # Whether or not to build static libraries.
12037 build_old_libs=$enable_static
12038
12039 # Whether or not to add -lc for building shared libraries.
12040 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12041
12042 # Whether or not to disallow shared libs when runtime libs are static
12043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12044
12045 # Whether or not to optimize for fast installation.
12046 fast_install=$enable_fast_install
12047
12048 # The host system.
12049 host_alias=$host_alias
12050 host=$host
12051
12052 # An echo program that does not interpret backslashes.
12053 echo=$lt_echo
12054
12055 # The archiver.
12056 AR=$lt_AR
12057 AR_FLAGS=$lt_AR_FLAGS
12058
12059 # A C compiler.
12060 LTCC=$lt_LTCC
12061
12062 # A language-specific compiler.
12063 CC=$lt_compiler_CXX
12064
12065 # Is the compiler the GNU C compiler?
12066 with_gcc=$GCC_CXX
12067
12068 # An ERE matcher.
12069 EGREP=$lt_EGREP
12070
12071 # The linker used to build libraries.
12072 LD=$lt_LD_CXX
12073
12074 # Whether we need hard or soft links.
12075 LN_S=$lt_LN_S
12076
12077 # A BSD-compatible nm program.
12078 NM=$lt_NM
12079
12080 # A symbol stripping program
12081 STRIP=$STRIP
12082
12083 # Used to examine libraries when file_magic_cmd begins "file"
12084 MAGIC_CMD=$MAGIC_CMD
12085
12086 # Used on cygwin: DLL creation program.
12087 DLLTOOL="$DLLTOOL"
12088
12089 # Used on cygwin: object dumper.
12090 OBJDUMP="$OBJDUMP"
12091
12092 # Used on cygwin: assembler.
12093 AS="$AS"
12094
12095 # The name of the directory that contains temporary libtool files.
12096 objdir=$objdir
12097
12098 # How to create reloadable object files.
12099 reload_flag=$lt_reload_flag
12100 reload_cmds=$lt_reload_cmds
12101
12102 # How to pass a linker flag through the compiler.
12103 wl=$lt_lt_prog_compiler_wl_CXX
12104
12105 # Object file suffix (normally "o").
12106 objext="$ac_objext"
12107
12108 # Old archive suffix (normally "a").
12109 libext="$libext"
12110
12111 # Shared library suffix (normally ".so").
12112 shrext='$shrext'
12113
12114 # Executable file suffix (normally "").
12115 exeext="$exeext"
12116
12117 # Additional compiler flags for building library objects.
12118 pic_flag=$lt_lt_prog_compiler_pic_CXX
12119 pic_mode=$pic_mode
12120
12121 # What is the maximum length of a command?
12122 max_cmd_len=$lt_cv_sys_max_cmd_len
12123
12124 # Does compiler simultaneously support -c and -o options?
12125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12126
12127 # Must we lock files when doing compilation ?
12128 need_locks=$lt_need_locks
12129
12130 # Do we need the lib prefix for modules?
12131 need_lib_prefix=$need_lib_prefix
12132
12133 # Do we need a version for libraries?
12134 need_version=$need_version
12135
12136 # Whether dlopen is supported.
12137 dlopen_support=$enable_dlopen
12138
12139 # Whether dlopen of programs is supported.
12140 dlopen_self=$enable_dlopen_self
12141
12142 # Whether dlopen of statically linked programs is supported.
12143 dlopen_self_static=$enable_dlopen_self_static
12144
12145 # Compiler flag to prevent dynamic linking.
12146 link_static_flag=$lt_lt_prog_compiler_static_CXX
12147
12148 # Compiler flag to turn off builtin functions.
12149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12150
12151 # Compiler flag to allow reflexive dlopens.
12152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12153
12154 # Compiler flag to generate shared objects directly from archives.
12155 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12156
12157 # Compiler flag to generate thread-safe objects.
12158 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12159
12160 # Library versioning type.
12161 version_type=$version_type
12162
12163 # Format of library name prefix.
12164 libname_spec=$lt_libname_spec
12165
12166 # List of archive names.  First name is the real one, the rest are links.
12167 # The last name is the one that the linker finds with -lNAME.
12168 library_names_spec=$lt_library_names_spec
12169
12170 # The coded name of the library, if different from the real name.
12171 soname_spec=$lt_soname_spec
12172
12173 # Commands used to build and install an old-style archive.
12174 RANLIB=$lt_RANLIB
12175 old_archive_cmds=$lt_old_archive_cmds_CXX
12176 old_postinstall_cmds=$lt_old_postinstall_cmds
12177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12178
12179 # Create an old-style archive from a shared archive.
12180 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12181
12182 # Create a temporary old-style archive to link instead of a shared archive.
12183 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12184
12185 # Commands used to build and install a shared archive.
12186 archive_cmds=$lt_archive_cmds_CXX
12187 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12188 postinstall_cmds=$lt_postinstall_cmds
12189 postuninstall_cmds=$lt_postuninstall_cmds
12190
12191 # Commands used to build a loadable module (assumed same as above if empty)
12192 module_cmds=$lt_module_cmds_CXX
12193 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12194
12195 # Commands to strip libraries.
12196 old_striplib=$lt_old_striplib
12197 striplib=$lt_striplib
12198
12199 # Dependencies to place before the objects being linked to create a
12200 # shared library.
12201 predep_objects=$lt_predep_objects_CXX
12202
12203 # Dependencies to place after the objects being linked to create a
12204 # shared library.
12205 postdep_objects=$lt_postdep_objects_CXX
12206
12207 # Dependencies to place before the objects being linked to create a
12208 # shared library.
12209 predeps=$lt_predeps_CXX
12210
12211 # Dependencies to place after the objects being linked to create a
12212 # shared library.
12213 postdeps=$lt_postdeps_CXX
12214
12215 # The library search path used internally by the compiler when linking
12216 # a shared library.
12217 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12218
12219 # Method to check whether dependent libraries are shared objects.
12220 deplibs_check_method=$lt_deplibs_check_method
12221
12222 # Command to use when deplibs_check_method == file_magic.
12223 file_magic_cmd=$lt_file_magic_cmd
12224
12225 # Flag that allows shared libraries with undefined symbols to be built.
12226 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12227
12228 # Flag that forces no undefined symbols.
12229 no_undefined_flag=$lt_no_undefined_flag_CXX
12230
12231 # Commands used to finish a libtool library installation in a directory.
12232 finish_cmds=$lt_finish_cmds
12233
12234 # Same as above, but a single script fragment to be evaled but not shown.
12235 finish_eval=$lt_finish_eval
12236
12237 # Take the output of nm and produce a listing of raw symbols and C names.
12238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12239
12240 # Transform the output of nm in a proper C declaration
12241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12242
12243 # Transform the output of nm in a C name address pair
12244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12245
12246 # This is the shared library runtime path variable.
12247 runpath_var=$runpath_var
12248
12249 # This is the shared library path variable.
12250 shlibpath_var=$shlibpath_var
12251
12252 # Is shlibpath searched before the hard-coded library search path?
12253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12254
12255 # How to hardcode a shared library path into an executable.
12256 hardcode_action=$hardcode_action_CXX
12257
12258 # Whether we should hardcode library paths into libraries.
12259 hardcode_into_libs=$hardcode_into_libs
12260
12261 # Flag to hardcode \$libdir into a binary during linking.
12262 # This must work even if \$libdir does not exist.
12263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12264
12265 # If ld is used when linking, flag to hardcode \$libdir into
12266 # a binary during linking. This must work even if \$libdir does
12267 # not exist.
12268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12269
12270 # Whether we need a single -rpath flag with a separated argument.
12271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12272
12273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12274 # resulting binary.
12275 hardcode_direct=$hardcode_direct_CXX
12276
12277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12278 # resulting binary.
12279 hardcode_minus_L=$hardcode_minus_L_CXX
12280
12281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12282 # the resulting binary.
12283 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12284
12285 # Set to yes if building a shared library automatically hardcodes DIR into the library
12286 # and all subsequent libraries and executables linked against it.
12287 hardcode_automatic=$hardcode_automatic_CXX
12288
12289 # Variables whose values should be saved in libtool wrapper scripts and
12290 # restored at relink time.
12291 variables_saved_for_relink="$variables_saved_for_relink"
12292
12293 # Whether libtool must link a program against all its dependency libraries.
12294 link_all_deplibs=$link_all_deplibs_CXX
12295
12296 # Compile-time system search path for libraries
12297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12298
12299 # Run-time system search path for libraries
12300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12301
12302 # Fix the shell variable \$srcfile for the compiler.
12303 fix_srcfile_path="$fix_srcfile_path_CXX"
12304
12305 # Set to yes if exported symbols are required.
12306 always_export_symbols=$always_export_symbols_CXX
12307
12308 # The commands to list exported symbols.
12309 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12310
12311 # The commands to extract the exported symbol list from a shared archive.
12312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12313
12314 # Symbols that should not be listed in the preloaded symbols.
12315 exclude_expsyms=$lt_exclude_expsyms_CXX
12316
12317 # Symbols that must always be exported.
12318 include_expsyms=$lt_include_expsyms_CXX
12319
12320 # ### END LIBTOOL TAG CONFIG: $tagname
12321
12322 __EOF__
12323
12324
12325 else
12326   # If there is no Makefile yet, we rely on a make rule to execute
12327   # `config.status --recheck' to rerun these tests and create the
12328   # libtool script then.
12329   test -f Makefile && make "$ltmain"
12330 fi
12331
12332
12333 ac_ext=c
12334 ac_cpp='$CPP $CPPFLAGS'
12335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338
12339 CC=$lt_save_CC
12340 LDCXX=$LD
12341 LD=$lt_save_LD
12342 GCC=$lt_save_GCC
12343 with_gnu_ldcxx=$with_gnu_ld
12344 with_gnu_ld=$lt_save_with_gnu_ld
12345 lt_cv_path_LDCXX=$lt_cv_path_LD
12346 lt_cv_path_LD=$lt_save_path_LD
12347 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12348 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12349
12350         else
12351           tagname=""
12352         fi
12353         ;;
12354
12355       F77)
12356         if test -n "$F77" && test "X$F77" != "Xno"; then
12357
12358 ac_ext=f
12359 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12360 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12362
12363
12364 archive_cmds_need_lc_F77=no
12365 allow_undefined_flag_F77=
12366 always_export_symbols_F77=no
12367 archive_expsym_cmds_F77=
12368 export_dynamic_flag_spec_F77=
12369 hardcode_direct_F77=no
12370 hardcode_libdir_flag_spec_F77=
12371 hardcode_libdir_flag_spec_ld_F77=
12372 hardcode_libdir_separator_F77=
12373 hardcode_minus_L_F77=no
12374 hardcode_automatic_F77=no
12375 module_cmds_F77=
12376 module_expsym_cmds_F77=
12377 link_all_deplibs_F77=unknown
12378 old_archive_cmds_F77=$old_archive_cmds
12379 no_undefined_flag_F77=
12380 whole_archive_flag_spec_F77=
12381 enable_shared_with_static_runtimes_F77=no
12382
12383 # Source file extension for f77 test sources.
12384 ac_ext=f
12385
12386 # Object file extension for compiled f77 test sources.
12387 objext=o
12388 objext_F77=$objext
12389
12390 # Code to be used in simple compile tests
12391 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12392
12393 # Code to be used in simple link tests
12394 lt_simple_link_test_code="      program t\n      end\n"
12395
12396 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12397
12398 # If no C compiler was specified, use CC.
12399 LTCC=${LTCC-"$CC"}
12400
12401 # Allow CC to be a program name with arguments.
12402 compiler=$CC
12403
12404
12405 # Allow CC to be a program name with arguments.
12406 lt_save_CC="$CC"
12407 CC=${F77-"f77"}
12408 compiler=$CC
12409 compiler_F77=$CC
12410 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12411
12412 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12413 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12414 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12415 echo "${ECHO_T}$can_build_shared" >&6
12416
12417 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12418 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12419 test "$can_build_shared" = "no" && enable_shared=no
12420
12421 # On AIX, shared libraries and static libraries use the same namespace, and
12422 # are all built from PIC.
12423 case "$host_os" in
12424 aix3*)
12425   test "$enable_shared" = yes && enable_static=no
12426   if test -n "$RANLIB"; then
12427     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12428     postinstall_cmds='$RANLIB $lib'
12429   fi
12430   ;;
12431 aix4*)
12432   test "$enable_shared" = yes && enable_static=no
12433   ;;
12434 esac
12435 echo "$as_me:$LINENO: result: $enable_shared" >&5
12436 echo "${ECHO_T}$enable_shared" >&6
12437
12438 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12439 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12440 # Make sure either enable_shared or enable_static is yes.
12441 test "$enable_shared" = yes || enable_static=yes
12442 echo "$as_me:$LINENO: result: $enable_static" >&5
12443 echo "${ECHO_T}$enable_static" >&6
12444
12445 test "$ld_shlibs_F77" = no && can_build_shared=no
12446
12447 GCC_F77="$G77"
12448 LD_F77="$LD"
12449
12450 lt_prog_compiler_wl_F77=
12451 lt_prog_compiler_pic_F77=
12452 lt_prog_compiler_static_F77=
12453
12454 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12456
12457   if test "$GCC" = yes; then
12458     lt_prog_compiler_wl_F77='-Wl,'
12459     lt_prog_compiler_static_F77='-static'
12460
12461     case $host_os in
12462       aix*)
12463       # All AIX code is PIC.
12464       if test "$host_cpu" = ia64; then
12465         # AIX 5 now supports IA64 processor
12466         lt_prog_compiler_static_F77='-Bstatic'
12467       fi
12468       ;;
12469
12470     amigaos*)
12471       # FIXME: we need at least 68020 code to build shared libraries, but
12472       # adding the `-m68020' flag to GCC prevents building anything better,
12473       # like `-m68040'.
12474       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12475       ;;
12476
12477     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12478       # PIC is the default for these OSes.
12479       ;;
12480
12481     mingw* | pw32* | os2*)
12482       # This hack is so that the source file can tell whether it is being
12483       # built for inclusion in a dll (and should export symbols for example).
12484       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12485       ;;
12486
12487     darwin* | rhapsody*)
12488       # PIC is the default on this platform
12489       # Common symbols not allowed in MH_DYLIB files
12490       lt_prog_compiler_pic_F77='-fno-common'
12491       ;;
12492
12493     msdosdjgpp*)
12494       # Just because we use GCC doesn't mean we suddenly get shared libraries
12495       # on systems that don't support them.
12496       lt_prog_compiler_can_build_shared_F77=no
12497       enable_shared=no
12498       ;;
12499
12500     sysv4*MP*)
12501       if test -d /usr/nec; then
12502         lt_prog_compiler_pic_F77=-Kconform_pic
12503       fi
12504       ;;
12505
12506     hpux*)
12507       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12508       # not for PA HP-UX.
12509       case "$host_cpu" in
12510       hppa*64*|ia64*)
12511         # +Z the default
12512         ;;
12513       *)
12514         lt_prog_compiler_pic_F77='-fPIC'
12515         ;;
12516       esac
12517       ;;
12518
12519     *)
12520       lt_prog_compiler_pic_F77='-fPIC'
12521       ;;
12522     esac
12523   else
12524     # PORTME Check for flag to pass linker flags through the system compiler.
12525     case $host_os in
12526     aix*)
12527       lt_prog_compiler_wl_F77='-Wl,'
12528       if test "$host_cpu" = ia64; then
12529         # AIX 5 now supports IA64 processor
12530         lt_prog_compiler_static_F77='-Bstatic'
12531       else
12532         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12533       fi
12534       ;;
12535
12536     mingw* | pw32* | os2*)
12537       # This hack is so that the source file can tell whether it is being
12538       # built for inclusion in a dll (and should export symbols for example).
12539       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12540       ;;
12541
12542     hpux9* | hpux10* | hpux11*)
12543       lt_prog_compiler_wl_F77='-Wl,'
12544       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12545       # not for PA HP-UX.
12546       case "$host_cpu" in
12547       hppa*64*|ia64*)
12548         # +Z the default
12549         ;;
12550       *)
12551         lt_prog_compiler_pic_F77='+Z'
12552         ;;
12553       esac
12554       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12555       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12556       ;;
12557
12558     irix5* | irix6* | nonstopux*)
12559       lt_prog_compiler_wl_F77='-Wl,'
12560       # PIC (with -KPIC) is the default.
12561       lt_prog_compiler_static_F77='-non_shared'
12562       ;;
12563
12564     newsos6)
12565       lt_prog_compiler_pic_F77='-KPIC'
12566       lt_prog_compiler_static_F77='-Bstatic'
12567       ;;
12568
12569     linux*)
12570       case $CC in
12571       icc|ecc)
12572         lt_prog_compiler_wl_F77='-Wl,'
12573         lt_prog_compiler_pic_F77='-KPIC'
12574         lt_prog_compiler_static_F77='-static'
12575         ;;
12576       ccc)
12577         lt_prog_compiler_wl_F77='-Wl,'
12578         # All Alpha code is PIC.
12579         lt_prog_compiler_static_F77='-non_shared'
12580         ;;
12581       esac
12582       ;;
12583
12584     osf3* | osf4* | osf5*)
12585       lt_prog_compiler_wl_F77='-Wl,'
12586       # All OSF/1 code is PIC.
12587       lt_prog_compiler_static_F77='-non_shared'
12588       ;;
12589
12590     sco3.2v5*)
12591       lt_prog_compiler_pic_F77='-Kpic'
12592       lt_prog_compiler_static_F77='-dn'
12593       ;;
12594
12595     solaris*)
12596       lt_prog_compiler_wl_F77='-Wl,'
12597       lt_prog_compiler_pic_F77='-KPIC'
12598       lt_prog_compiler_static_F77='-Bstatic'
12599       ;;
12600
12601     sunos4*)
12602       lt_prog_compiler_wl_F77='-Qoption ld '
12603       lt_prog_compiler_pic_F77='-PIC'
12604       lt_prog_compiler_static_F77='-Bstatic'
12605       ;;
12606
12607     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12608       lt_prog_compiler_wl_F77='-Wl,'
12609       lt_prog_compiler_pic_F77='-KPIC'
12610       lt_prog_compiler_static_F77='-Bstatic'
12611       ;;
12612
12613     sysv4*MP*)
12614       if test -d /usr/nec ;then
12615         lt_prog_compiler_pic_F77='-Kconform_pic'
12616         lt_prog_compiler_static_F77='-Bstatic'
12617       fi
12618       ;;
12619
12620     uts4*)
12621       lt_prog_compiler_pic_F77='-pic'
12622       lt_prog_compiler_static_F77='-Bstatic'
12623       ;;
12624
12625     *)
12626       lt_prog_compiler_can_build_shared_F77=no
12627       ;;
12628     esac
12629   fi
12630
12631 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12632 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12633
12634 #
12635 # Check to make sure the PIC flag actually works.
12636 #
12637 if test -n "$lt_prog_compiler_pic_F77"; then
12638   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12639 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12640 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12641   echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643   lt_prog_compiler_pic_works_F77=no
12644   ac_outfile=conftest.$ac_objext
12645    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12646    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12647    # Insert the option either (1) after the last *FLAGS variable, or
12648    # (2) before a word containing "conftest.", or (3) at the end.
12649    # Note that $ac_compile itself does not contain backslashes and begins
12650    # with a dollar sign (not a hyphen), so the echo should work correctly.
12651    # The option is referenced via a variable to avoid confusing sed.
12652    lt_compile=`echo "$ac_compile" | $SED \
12653    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12655    -e 's:$: $lt_compiler_flag:'`
12656    (eval echo "\"\$as_me:12656: $lt_compile\"" >&5)
12657    (eval "$lt_compile" 2>conftest.err)
12658    ac_status=$?
12659    cat conftest.err >&5
12660    echo "$as_me:12660: \$? = $ac_status" >&5
12661    if (exit $ac_status) && test -s "$ac_outfile"; then
12662      # The compiler can only warn and ignore the option if not recognized
12663      # So say no if there are warnings
12664      if test ! -s conftest.err; then
12665        lt_prog_compiler_pic_works_F77=yes
12666      fi
12667    fi
12668    $rm conftest*
12669
12670 fi
12671 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12672 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12673
12674 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12675     case $lt_prog_compiler_pic_F77 in
12676      "" | " "*) ;;
12677      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12678      esac
12679 else
12680     lt_prog_compiler_pic_F77=
12681      lt_prog_compiler_can_build_shared_F77=no
12682 fi
12683
12684 fi
12685 case "$host_os" in
12686   # For platforms which do not support PIC, -DPIC is meaningless:
12687   *djgpp*)
12688     lt_prog_compiler_pic_F77=
12689     ;;
12690   *)
12691     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12692     ;;
12693 esac
12694
12695 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12696 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12697 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12698   echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700   lt_cv_prog_compiler_c_o_F77=no
12701    $rm -r conftest 2>/dev/null
12702    mkdir conftest
12703    cd conftest
12704    mkdir out
12705    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12706
12707    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12708    # that will create temporary files in the current directory regardless of
12709    # the output directory.  Thus, making CWD read-only will cause this test
12710    # to fail, enabling locking or at least warning the user not to do parallel
12711    # builds.
12712    chmod -w .
12713
12714    lt_compiler_flag="-o out/conftest2.$ac_objext"
12715    # Insert the option either (1) after the last *FLAGS variable, or
12716    # (2) before a word containing "conftest.", or (3) at the end.
12717    # Note that $ac_compile itself does not contain backslashes and begins
12718    # with a dollar sign (not a hyphen), so the echo should work correctly.
12719    lt_compile=`echo "$ac_compile" | $SED \
12720    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12722    -e 's:$: $lt_compiler_flag:'`
12723    (eval echo "\"\$as_me:12723: $lt_compile\"" >&5)
12724    (eval "$lt_compile" 2>out/conftest.err)
12725    ac_status=$?
12726    cat out/conftest.err >&5
12727    echo "$as_me:12727: \$? = $ac_status" >&5
12728    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12729    then
12730      # The compiler can only warn and ignore the option if not recognized
12731      # So say no if there are warnings
12732      if test ! -s out/conftest.err; then
12733        lt_cv_prog_compiler_c_o_F77=yes
12734      fi
12735    fi
12736    chmod u+w .
12737    $rm conftest* out/*
12738    rmdir out
12739    cd ..
12740    rmdir conftest
12741    $rm conftest*
12742
12743 fi
12744 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12745 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12746
12747
12748 hard_links="nottested"
12749 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12750   # do not overwrite the value of need_locks provided by the user
12751   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12752 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12753   hard_links=yes
12754   $rm conftest*
12755   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12756   touch conftest.a
12757   ln conftest.a conftest.b 2>&5 || hard_links=no
12758   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12759   echo "$as_me:$LINENO: result: $hard_links" >&5
12760 echo "${ECHO_T}$hard_links" >&6
12761   if test "$hard_links" = no; then
12762     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12763 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12764     need_locks=warn
12765   fi
12766 else
12767   need_locks=no
12768 fi
12769
12770 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12771 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12772
12773   runpath_var=
12774   allow_undefined_flag_F77=
12775   enable_shared_with_static_runtimes_F77=no
12776   archive_cmds_F77=
12777   archive_expsym_cmds_F77=
12778   old_archive_From_new_cmds_F77=
12779   old_archive_from_expsyms_cmds_F77=
12780   export_dynamic_flag_spec_F77=
12781   whole_archive_flag_spec_F77=
12782   thread_safe_flag_spec_F77=
12783   hardcode_libdir_flag_spec_F77=
12784   hardcode_libdir_flag_spec_ld_F77=
12785   hardcode_libdir_separator_F77=
12786   hardcode_direct_F77=no
12787   hardcode_minus_L_F77=no
12788   hardcode_shlibpath_var_F77=unsupported
12789   link_all_deplibs_F77=unknown
12790   hardcode_automatic_F77=no
12791   module_cmds_F77=
12792   module_expsym_cmds_F77=
12793   always_export_symbols_F77=no
12794   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12795   # include_expsyms should be a list of space-separated symbols to be *always*
12796   # included in the symbol list
12797   include_expsyms_F77=
12798   # exclude_expsyms can be an extended regexp of symbols to exclude
12799   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12800   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12801   # as well as any symbol that contains `d'.
12802   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12803   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12804   # platforms (ab)use it in PIC code, but their linkers get confused if
12805   # the symbol is explicitly referenced.  Since portable code cannot
12806   # rely on this symbol name, it's probably fine to never include it in
12807   # preloaded symbol tables.
12808   extract_expsyms_cmds=
12809
12810   case $host_os in
12811   cygwin* | mingw* | pw32*)
12812     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12813     # When not using gcc, we currently assume that we are using
12814     # Microsoft Visual C++.
12815     if test "$GCC" != yes; then
12816       with_gnu_ld=no
12817     fi
12818     ;;
12819   openbsd*)
12820     with_gnu_ld=no
12821     ;;
12822   esac
12823
12824   ld_shlibs_F77=yes
12825   if test "$with_gnu_ld" = yes; then
12826     # If archive_cmds runs LD, not CC, wlarc should be empty
12827     wlarc='${wl}'
12828
12829     # See if GNU ld supports shared libraries.
12830     case $host_os in
12831     aix3* | aix4* | aix5*)
12832       # On AIX/PPC, the GNU linker is very broken
12833       if test "$host_cpu" != ia64; then
12834         ld_shlibs_F77=no
12835         cat <<EOF 1>&2
12836
12837 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12838 *** to be unable to reliably create shared libraries on AIX.
12839 *** Therefore, libtool is disabling shared libraries support.  If you
12840 *** really care for shared libraries, you may want to modify your PATH
12841 *** so that a non-GNU linker is found, and then restart.
12842
12843 EOF
12844       fi
12845       ;;
12846
12847     amigaos*)
12848       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)'
12849       hardcode_libdir_flag_spec_F77='-L$libdir'
12850       hardcode_minus_L_F77=yes
12851
12852       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12853       # that the semantics of dynamic libraries on AmigaOS, at least up
12854       # to version 4, is to share data among multiple programs linked
12855       # with the same dynamic library.  Since this doesn't match the
12856       # behavior of shared libraries on other platforms, we can't use
12857       # them.
12858       ld_shlibs_F77=no
12859       ;;
12860
12861     beos*)
12862       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12863         allow_undefined_flag_F77=unsupported
12864         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12865         # support --undefined.  This deserves some investigation.  FIXME
12866         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12867       else
12868         ld_shlibs_F77=no
12869       fi
12870       ;;
12871
12872     cygwin* | mingw* | pw32*)
12873       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12874       # as there is no search path for DLLs.
12875       hardcode_libdir_flag_spec_F77='-L$libdir'
12876       allow_undefined_flag_F77=unsupported
12877       always_export_symbols_F77=no
12878       enable_shared_with_static_runtimes_F77=yes
12879       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12880
12881       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12882         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12883         # If the export-symbols file already is a .def file (1st line
12884         # is EXPORTS), use it as is; otherwise, prepend...
12885         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12886           cp $export_symbols $output_objdir/$soname.def;
12887         else
12888           echo EXPORTS > $output_objdir/$soname.def;
12889           cat $export_symbols >> $output_objdir/$soname.def;
12890         fi~
12891         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12892       else
12893         ld_shlibs=no
12894       fi
12895       ;;
12896
12897     netbsd*)
12898       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12899         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12900         wlarc=
12901       else
12902         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12903         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12904       fi
12905       ;;
12906
12907     solaris* | sysv5*)
12908       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12909         ld_shlibs_F77=no
12910         cat <<EOF 1>&2
12911
12912 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12913 *** create shared libraries on Solaris systems.  Therefore, libtool
12914 *** is disabling shared libraries support.  We urge you to upgrade GNU
12915 *** binutils to release 2.9.1 or newer.  Another option is to modify
12916 *** your PATH or compiler configuration so that the native linker is
12917 *** used, and then restart.
12918
12919 EOF
12920       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12921         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12922         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12923       else
12924         ld_shlibs_F77=no
12925       fi
12926       ;;
12927
12928     sunos4*)
12929       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12930       wlarc=
12931       hardcode_direct_F77=yes
12932       hardcode_shlibpath_var_F77=no
12933       ;;
12934
12935     *)
12936       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12937         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12938         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12939       else
12940         ld_shlibs_F77=no
12941       fi
12942       ;;
12943     esac
12944
12945     if test "$ld_shlibs_F77" = yes; then
12946       runpath_var=LD_RUN_PATH
12947       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12948       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12949       # ancient GNU ld didn't support --whole-archive et. al.
12950       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12951         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12952       else
12953         whole_archive_flag_spec_F77=
12954       fi
12955     fi
12956   else
12957     # PORTME fill in a description of your system's linker (not GNU ld)
12958     case $host_os in
12959     aix3*)
12960       allow_undefined_flag_F77=unsupported
12961       always_export_symbols_F77=yes
12962       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'
12963       # Note: this linker hardcodes the directories in LIBPATH if there
12964       # are no directories specified by -L.
12965       hardcode_minus_L_F77=yes
12966       if test "$GCC" = yes && test -z "$link_static_flag"; then
12967         # Neither direct hardcoding nor static linking is supported with a
12968         # broken collect2.
12969         hardcode_direct_F77=unsupported
12970       fi
12971       ;;
12972
12973     aix4* | aix5*)
12974       if test "$host_cpu" = ia64; then
12975         # On IA64, the linker does run time linking by default, so we don't
12976         # have to do anything special.
12977         aix_use_runtimelinking=no
12978         exp_sym_flag='-Bexport'
12979         no_entry_flag=""
12980       else
12981         # If we're using GNU nm, then we don't want the "-C" option.
12982         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12983         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12984           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'
12985         else
12986           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'
12987         fi
12988         aix_use_runtimelinking=no
12989
12990         # Test if we are trying to use run time linking or normal
12991         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12992         # need to do runtime linking.
12993         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12994           for ld_flag in $LDFLAGS; do
12995           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12996             aix_use_runtimelinking=yes
12997             break
12998           fi
12999           done
13000         esac
13001
13002         exp_sym_flag='-bexport'
13003         no_entry_flag='-bnoentry'
13004       fi
13005
13006       # When large executables or shared objects are built, AIX ld can
13007       # have problems creating the table of contents.  If linking a library
13008       # or program results in "error TOC overflow" add -mminimal-toc to
13009       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13010       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13011
13012       archive_cmds_F77=''
13013       hardcode_direct_F77=yes
13014       hardcode_libdir_separator_F77=':'
13015       link_all_deplibs_F77=yes
13016
13017       if test "$GCC" = yes; then
13018         case $host_os in aix4.012|aix4.012.*)
13019         # We only want to do this on AIX 4.2 and lower, the check
13020         # below for broken collect2 doesn't work under 4.3+
13021           collect2name=`${CC} -print-prog-name=collect2`
13022           if test -f "$collect2name" && \
13023            strings "$collect2name" | grep resolve_lib_name >/dev/null
13024           then
13025           # We have reworked collect2
13026           hardcode_direct_F77=yes
13027           else
13028           # We have old collect2
13029           hardcode_direct_F77=unsupported
13030           # It fails to find uninstalled libraries when the uninstalled
13031           # path is not listed in the libpath.  Setting hardcode_minus_L
13032           # to unsupported forces relinking
13033           hardcode_minus_L_F77=yes
13034           hardcode_libdir_flag_spec_F77='-L$libdir'
13035           hardcode_libdir_separator_F77=
13036           fi
13037         esac
13038         shared_flag='-shared'
13039       else
13040         # not using gcc
13041         if test "$host_cpu" = ia64; then
13042         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13043         # chokes on -Wl,-G. The following line is correct:
13044           shared_flag='-G'
13045         else
13046         if test "$aix_use_runtimelinking" = yes; then
13047             shared_flag='${wl}-G'
13048           else
13049             shared_flag='${wl}-bM:SRE'
13050         fi
13051         fi
13052       fi
13053
13054       # It seems that -bexpall does not export symbols beginning with
13055       # underscore (_), so it is better to generate a list of symbols to export.
13056       always_export_symbols_F77=yes
13057       if test "$aix_use_runtimelinking" = yes; then
13058         # Warning - without using the other runtime loading flags (-brtl),
13059         # -berok will link without error, but may produce a broken library.
13060         allow_undefined_flag_F77='-berok'
13061        # Determine the default libpath from the value encoded in an empty executable.
13062        cat >conftest.$ac_ext <<_ACEOF
13063       program main
13064
13065       end
13066 _ACEOF
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13069   (eval $ac_link) 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } &&
13073          { ac_try='test -s conftest$ac_exeext'
13074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075   (eval $ac_try) 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); }; }; then
13079
13080 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13081 }'`
13082 # Check for a 64-bit object if we didn't find anything.
13083 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; }
13084 }'`; fi
13085 else
13086   echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 fi
13090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13092
13093        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13094         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"
13095        else
13096         if test "$host_cpu" = ia64; then
13097           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13098           allow_undefined_flag_F77="-z nodefs"
13099           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"
13100         else
13101          # Determine the default libpath from the value encoded in an empty executable.
13102          cat >conftest.$ac_ext <<_ACEOF
13103       program main
13104
13105       end
13106 _ACEOF
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13109   (eval $ac_link) 2>&5
13110   ac_status=$?
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); } &&
13113          { ac_try='test -s conftest$ac_exeext'
13114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115   (eval $ac_try) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119
13120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13121 }'`
13122 # Check for a 64-bit object if we didn't find anything.
13123 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; }
13124 }'`; fi
13125 else
13126   echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129 fi
13130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13132
13133          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13134           # Warning - without using the other run time loading flags,
13135           # -berok will link without error, but may produce a broken library.
13136           no_undefined_flag_F77=' ${wl}-bernotok'
13137           allow_undefined_flag_F77=' ${wl}-berok'
13138           # -bexpall does not export symbols beginning with underscore (_)
13139           always_export_symbols_F77=yes
13140           # Exported symbols can be pulled into shared objects from archives
13141           whole_archive_flag_spec_F77=' '
13142           archive_cmds_need_lc_F77=yes
13143           # This is similar to how AIX traditionally builds it's shared libraries.
13144           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'
13145         fi
13146       fi
13147       ;;
13148
13149     amigaos*)
13150       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)'
13151       hardcode_libdir_flag_spec_F77='-L$libdir'
13152       hardcode_minus_L_F77=yes
13153       # see comment about different semantics on the GNU ld section
13154       ld_shlibs_F77=no
13155       ;;
13156
13157     bsdi4*)
13158       export_dynamic_flag_spec_F77=-rdynamic
13159       ;;
13160
13161     cygwin* | mingw* | pw32*)
13162       # When not using gcc, we currently assume that we are using
13163       # Microsoft Visual C++.
13164       # hardcode_libdir_flag_spec is actually meaningless, as there is
13165       # no search path for DLLs.
13166       hardcode_libdir_flag_spec_F77=' '
13167       allow_undefined_flag_F77=unsupported
13168       # Tell ltmain to make .lib files, not .a files.
13169       libext=lib
13170       # Tell ltmain to make .dll files, not .so files.
13171       shrext=".dll"
13172       # FIXME: Setting linknames here is a bad hack.
13173       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13174       # The linker will automatically build a .lib file if we build a DLL.
13175       old_archive_From_new_cmds_F77='true'
13176       # FIXME: Should let the user specify the lib program.
13177       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13178       fix_srcfile_path='`cygpath -w "$srcfile"`'
13179       enable_shared_with_static_runtimes_F77=yes
13180       ;;
13181
13182     darwin* | rhapsody*)
13183     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13184       archive_cmds_need_lc_F77=no
13185       case "$host_os" in
13186       rhapsody* | darwin1.[012])
13187         allow_undefined_flag_F77='-undefined suppress'
13188         ;;
13189       *) # Darwin 1.3 on
13190         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13191         ;;
13192       esac
13193       # FIXME: Relying on posixy $() will cause problems for
13194       #        cross-compilation, but unfortunately the echo tests do not
13195       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13196       #        `"' quotes if we put them in here... so don't!
13197         lt_int_apple_cc_single_mod=no
13198         output_verbose_link_cmd='echo'
13199         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13200           lt_int_apple_cc_single_mod=yes
13201         fi
13202         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13203           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13204         else
13205         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'
13206       fi
13207       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13208       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13209         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13210           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}'
13211         else
13212           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}'
13213         fi
13214           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}'
13215       hardcode_direct_F77=no
13216       hardcode_automatic_F77=yes
13217       hardcode_shlibpath_var_F77=unsupported
13218       whole_archive_flag_spec_F77='-all_load $convenience'
13219       link_all_deplibs_F77=yes
13220     fi
13221       ;;
13222
13223     dgux*)
13224       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13225       hardcode_libdir_flag_spec_F77='-L$libdir'
13226       hardcode_shlibpath_var_F77=no
13227       ;;
13228
13229     freebsd1*)
13230       ld_shlibs_F77=no
13231       ;;
13232
13233     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13234     # support.  Future versions do this automatically, but an explicit c++rt0.o
13235     # does not break anything, and helps significantly (at the cost of a little
13236     # extra space).
13237     freebsd2.2*)
13238       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13239       hardcode_libdir_flag_spec_F77='-R$libdir'
13240       hardcode_direct_F77=yes
13241       hardcode_shlibpath_var_F77=no
13242       ;;
13243
13244     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13245     freebsd2*)
13246       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13247       hardcode_direct_F77=yes
13248       hardcode_minus_L_F77=yes
13249       hardcode_shlibpath_var_F77=no
13250       ;;
13251
13252     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13253     freebsd*)
13254       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13255       hardcode_libdir_flag_spec_F77='-R$libdir'
13256       hardcode_direct_F77=yes
13257       hardcode_shlibpath_var_F77=no
13258       ;;
13259
13260     hpux9*)
13261       if test "$GCC" = yes; then
13262         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'
13263       else
13264         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'
13265       fi
13266       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13267       hardcode_libdir_separator_F77=:
13268       hardcode_direct_F77=yes
13269
13270       # hardcode_minus_L: Not really in the search PATH,
13271       # but as the default location of the library.
13272       hardcode_minus_L_F77=yes
13273       export_dynamic_flag_spec_F77='${wl}-E'
13274       ;;
13275
13276     hpux10* | hpux11*)
13277       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13278         case "$host_cpu" in
13279         hppa*64*|ia64*)
13280           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13281           ;;
13282         *)
13283           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13284           ;;
13285         esac
13286       else
13287         case "$host_cpu" in
13288         hppa*64*|ia64*)
13289           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13290           ;;
13291         *)
13292           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13293           ;;
13294         esac
13295       fi
13296       if test "$with_gnu_ld" = no; then
13297         case "$host_cpu" in
13298         hppa*64*)
13299           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13300           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13301           hardcode_libdir_separator_F77=:
13302           hardcode_direct_F77=no
13303           hardcode_shlibpath_var_F77=no
13304           ;;
13305         ia64*)
13306           hardcode_libdir_flag_spec_F77='-L$libdir'
13307           hardcode_direct_F77=no
13308           hardcode_shlibpath_var_F77=no
13309
13310           # hardcode_minus_L: Not really in the search PATH,
13311           # but as the default location of the library.
13312           hardcode_minus_L_F77=yes
13313           ;;
13314         *)
13315           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13316           hardcode_libdir_separator_F77=:
13317           hardcode_direct_F77=yes
13318           export_dynamic_flag_spec_F77='${wl}-E'
13319
13320           # hardcode_minus_L: Not really in the search PATH,
13321           # but as the default location of the library.
13322           hardcode_minus_L_F77=yes
13323           ;;
13324         esac
13325       fi
13326       ;;
13327
13328     irix5* | irix6* | nonstopux*)
13329       if test "$GCC" = yes; then
13330         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'
13331       else
13332         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'
13333         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13334       fi
13335       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13336       hardcode_libdir_separator_F77=:
13337       link_all_deplibs_F77=yes
13338       ;;
13339
13340     netbsd*)
13341       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13342         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13343       else
13344         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13345       fi
13346       hardcode_libdir_flag_spec_F77='-R$libdir'
13347       hardcode_direct_F77=yes
13348       hardcode_shlibpath_var_F77=no
13349       ;;
13350
13351     newsos6)
13352       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13353       hardcode_direct_F77=yes
13354       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13355       hardcode_libdir_separator_F77=:
13356       hardcode_shlibpath_var_F77=no
13357       ;;
13358
13359     openbsd*)
13360       hardcode_direct_F77=yes
13361       hardcode_shlibpath_var_F77=no
13362       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13363         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13364         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13365         export_dynamic_flag_spec_F77='${wl}-E'
13366       else
13367        case $host_os in
13368          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13369            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13370            hardcode_libdir_flag_spec_F77='-R$libdir'
13371            ;;
13372          *)
13373            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13374            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13375            ;;
13376        esac
13377       fi
13378       ;;
13379
13380     os2*)
13381       hardcode_libdir_flag_spec_F77='-L$libdir'
13382       hardcode_minus_L_F77=yes
13383       allow_undefined_flag_F77=unsupported
13384       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'
13385       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13386       ;;
13387
13388     osf3*)
13389       if test "$GCC" = yes; then
13390         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13391         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'
13392       else
13393         allow_undefined_flag_F77=' -expect_unresolved \*'
13394         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'
13395       fi
13396       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13397       hardcode_libdir_separator_F77=:
13398       ;;
13399
13400     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13401       if test "$GCC" = yes; then
13402         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13403         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'
13404         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13405       else
13406         allow_undefined_flag_F77=' -expect_unresolved \*'
13407         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'
13408         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~
13409         $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'
13410
13411         # Both c and cxx compiler support -rpath directly
13412         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13413       fi
13414       hardcode_libdir_separator_F77=:
13415       ;;
13416
13417     sco3.2v5*)
13418       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13419       hardcode_shlibpath_var_F77=no
13420       export_dynamic_flag_spec_F77='${wl}-Bexport'
13421       runpath_var=LD_RUN_PATH
13422       hardcode_runpath_var=yes
13423       ;;
13424
13425     solaris*)
13426       no_undefined_flag_F77=' -z text'
13427       if test "$GCC" = yes; then
13428         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13429         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13430           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13431       else
13432         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13433         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13434         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13435       fi
13436       hardcode_libdir_flag_spec_F77='-R$libdir'
13437       hardcode_shlibpath_var_F77=no
13438       case $host_os in
13439       solaris2.[0-5] | solaris2.[0-5].*) ;;
13440       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13441         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13442       esac
13443       link_all_deplibs_F77=yes
13444       ;;
13445
13446     sunos4*)
13447       if test "x$host_vendor" = xsequent; then
13448         # Use $CC to link under sequent, because it throws in some extra .o
13449         # files that make .init and .fini sections work.
13450         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13451       else
13452         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13453       fi
13454       hardcode_libdir_flag_spec_F77='-L$libdir'
13455       hardcode_direct_F77=yes
13456       hardcode_minus_L_F77=yes
13457       hardcode_shlibpath_var_F77=no
13458       ;;
13459
13460     sysv4)
13461       case $host_vendor in
13462         sni)
13463           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13464           hardcode_direct_F77=yes # is this really true???
13465         ;;
13466         siemens)
13467           ## LD is ld it makes a PLAMLIB
13468           ## CC just makes a GrossModule.
13469           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13470           reload_cmds_F77='$CC -r -o $output$reload_objs'
13471           hardcode_direct_F77=no
13472         ;;
13473         motorola)
13474           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13476         ;;
13477       esac
13478       runpath_var='LD_RUN_PATH'
13479       hardcode_shlibpath_var_F77=no
13480       ;;
13481
13482     sysv4.3*)
13483       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484       hardcode_shlibpath_var_F77=no
13485       export_dynamic_flag_spec_F77='-Bexport'
13486       ;;
13487
13488     sysv4*MP*)
13489       if test -d /usr/nec; then
13490         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13491         hardcode_shlibpath_var_F77=no
13492         runpath_var=LD_RUN_PATH
13493         hardcode_runpath_var=yes
13494         ld_shlibs_F77=yes
13495       fi
13496       ;;
13497
13498     sysv4.2uw2*)
13499       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13500       hardcode_direct_F77=yes
13501       hardcode_minus_L_F77=no
13502       hardcode_shlibpath_var_F77=no
13503       hardcode_runpath_var=yes
13504       runpath_var=LD_RUN_PATH
13505       ;;
13506
13507    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13508       no_undefined_flag_F77='${wl}-z ${wl}text'
13509       if test "$GCC" = yes; then
13510         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13511       else
13512         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13513       fi
13514       runpath_var='LD_RUN_PATH'
13515       hardcode_shlibpath_var_F77=no
13516       ;;
13517
13518     sysv5*)
13519       no_undefined_flag_F77=' -z text'
13520       # $CC -shared without GNU ld will not create a library from C++
13521       # object files and a static libstdc++, better avoid it by now
13522       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13524                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13525       hardcode_libdir_flag_spec_F77=
13526       hardcode_shlibpath_var_F77=no
13527       runpath_var='LD_RUN_PATH'
13528       ;;
13529
13530     uts4*)
13531       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532       hardcode_libdir_flag_spec_F77='-L$libdir'
13533       hardcode_shlibpath_var_F77=no
13534       ;;
13535
13536     *)
13537       ld_shlibs_F77=no
13538       ;;
13539     esac
13540   fi
13541
13542 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13543 echo "${ECHO_T}$ld_shlibs_F77" >&6
13544 test "$ld_shlibs_F77" = no && can_build_shared=no
13545
13546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13547 if test "$GCC" = yes; then
13548   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13549 fi
13550
13551 #
13552 # Do we need to explicitly link libc?
13553 #
13554 case "x$archive_cmds_need_lc_F77" in
13555 x|xyes)
13556   # Assume -lc should be added
13557   archive_cmds_need_lc_F77=yes
13558
13559   if test "$enable_shared" = yes && test "$GCC" = yes; then
13560     case $archive_cmds_F77 in
13561     *'~'*)
13562       # FIXME: we may have to deal with multi-command sequences.
13563       ;;
13564     '$CC '*)
13565       # Test whether the compiler implicitly links with -lc since on some
13566       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13567       # to ld, don't add -lc before -lgcc.
13568       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13569 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13570       $rm conftest*
13571       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13572
13573       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574   (eval $ac_compile) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } 2>conftest.err; then
13578         soname=conftest
13579         lib=conftest
13580         libobjs=conftest.$ac_objext
13581         deplibs=
13582         wl=$lt_prog_compiler_wl_F77
13583         compiler_flags=-v
13584         linker_flags=-v
13585         verstring=
13586         output_objdir=.
13587         libname=conftest
13588         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13589         allow_undefined_flag_F77=
13590         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13591   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); }
13595         then
13596           archive_cmds_need_lc_F77=no
13597         else
13598           archive_cmds_need_lc_F77=yes
13599         fi
13600         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13601       else
13602         cat conftest.err 1>&5
13603       fi
13604       $rm conftest*
13605       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13606 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13607       ;;
13608     esac
13609   fi
13610   ;;
13611 esac
13612
13613 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13615 hardcode_action_F77=
13616 if test -n "$hardcode_libdir_flag_spec_F77" || \
13617    test -n "$runpath_var F77" || \
13618    test "X$hardcode_automatic_F77"="Xyes" ; then
13619
13620   # We can hardcode non-existant directories.
13621   if test "$hardcode_direct_F77" != no &&
13622      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13623      # have to relink, otherwise we might link with an installed library
13624      # when we should be linking with a yet-to-be-installed one
13625      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13626      test "$hardcode_minus_L_F77" != no; then
13627     # Linking always hardcodes the temporary library directory.
13628     hardcode_action_F77=relink
13629   else
13630     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13631     hardcode_action_F77=immediate
13632   fi
13633 else
13634   # We cannot hardcode anything, or else we can only hardcode existing
13635   # directories.
13636   hardcode_action_F77=unsupported
13637 fi
13638 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13639 echo "${ECHO_T}$hardcode_action_F77" >&6
13640
13641 if test "$hardcode_action_F77" = relink; then
13642   # Fast installation is not supported
13643   enable_fast_install=no
13644 elif test "$shlibpath_overrides_runpath" = yes ||
13645      test "$enable_shared" = no; then
13646   # Fast installation is not necessary
13647   enable_fast_install=needless
13648 fi
13649
13650 striplib=
13651 old_striplib=
13652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13654 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13655   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13656   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13657   echo "$as_me:$LINENO: result: yes" >&5
13658 echo "${ECHO_T}yes" >&6
13659 else
13660 # FIXME - insert some real tests, host_os isn't really good enough
13661   case $host_os in
13662    darwin*)
13663        if test -n "$STRIP" ; then
13664          striplib="$STRIP -x"
13665          echo "$as_me:$LINENO: result: yes" >&5
13666 echo "${ECHO_T}yes" >&6
13667        else
13668   echo "$as_me:$LINENO: result: no" >&5
13669 echo "${ECHO_T}no" >&6
13670 fi
13671        ;;
13672    *)
13673   echo "$as_me:$LINENO: result: no" >&5
13674 echo "${ECHO_T}no" >&6
13675     ;;
13676   esac
13677 fi
13678
13679 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13680 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13681 library_names_spec=
13682 libname_spec='lib$name'
13683 soname_spec=
13684 shrext=".so"
13685 postinstall_cmds=
13686 postuninstall_cmds=
13687 finish_cmds=
13688 finish_eval=
13689 shlibpath_var=
13690 shlibpath_overrides_runpath=unknown
13691 version_type=none
13692 dynamic_linker="$host_os ld.so"
13693 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13694 if test "$GCC" = yes; then
13695   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13696   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13697     # if the path contains ";" then we assume it to be the separator
13698     # otherwise default to the standard path separator (i.e. ":") - it is
13699     # assumed that no part of a normal pathname contains ";" but that should
13700     # okay in the real world where ";" in dirpaths is itself problematic.
13701     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13702   else
13703     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13704   fi
13705 else
13706   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13707 fi
13708 need_lib_prefix=unknown
13709 hardcode_into_libs=no
13710
13711 # when you set need_version to no, make sure it does not cause -set_version
13712 # flags to be left without arguments
13713 need_version=unknown
13714
13715 case $host_os in
13716 aix3*)
13717   version_type=linux
13718   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13719   shlibpath_var=LIBPATH
13720
13721   # AIX 3 has no versioning support, so we append a major version to the name.
13722   soname_spec='${libname}${release}${shared_ext}$major'
13723   ;;
13724
13725 aix4* | aix5*)
13726   version_type=linux
13727   need_lib_prefix=no
13728   need_version=no
13729   hardcode_into_libs=yes
13730   if test "$host_cpu" = ia64; then
13731     # AIX 5 supports IA64
13732     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13733     shlibpath_var=LD_LIBRARY_PATH
13734   else
13735     # With GCC up to 2.95.x, collect2 would create an import file
13736     # for dependence libraries.  The import file would start with
13737     # the line `#! .'.  This would cause the generated library to
13738     # depend on `.', always an invalid library.  This was fixed in
13739     # development snapshots of GCC prior to 3.0.
13740     case $host_os in
13741       aix4 | aix4.[01] | aix4.[01].*)
13742       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13743            echo ' yes '
13744            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13745         :
13746       else
13747         can_build_shared=no
13748       fi
13749       ;;
13750     esac
13751     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13752     # soname into executable. Probably we can add versioning support to
13753     # collect2, so additional links can be useful in future.
13754     if test "$aix_use_runtimelinking" = yes; then
13755       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13756       # instead of lib<name>.a to let people know that these are not
13757       # typical AIX shared libraries.
13758       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759     else
13760       # We preserve .a as extension for shared libraries through AIX4.2
13761       # and later when we are not doing run time linking.
13762       library_names_spec='${libname}${release}.a $libname.a'
13763       soname_spec='${libname}${release}${shared_ext}$major'
13764     fi
13765     shlibpath_var=LIBPATH
13766   fi
13767   ;;
13768
13769 amigaos*)
13770   library_names_spec='$libname.ixlibrary $libname.a'
13771   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13772   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'
13773   ;;
13774
13775 beos*)
13776   library_names_spec='${libname}${shared_ext}'
13777   dynamic_linker="$host_os ld.so"
13778   shlibpath_var=LIBRARY_PATH
13779   ;;
13780
13781 bsdi4*)
13782   version_type=linux
13783   need_version=no
13784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785   soname_spec='${libname}${release}${shared_ext}$major'
13786   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13787   shlibpath_var=LD_LIBRARY_PATH
13788   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13789   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13790   # the default ld.so.conf also contains /usr/contrib/lib and
13791   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13792   # libtool to hard-code these into programs
13793   ;;
13794
13795 cygwin* | mingw* | pw32*)
13796   version_type=windows
13797   shrext=".dll"
13798   need_version=no
13799   need_lib_prefix=no
13800
13801   case $GCC,$host_os in
13802   yes,cygwin* | yes,mingw* | yes,pw32*)
13803     library_names_spec='$libname.dll.a'
13804     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13805     postinstall_cmds='base_file=`basename \${file}`~
13806       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13807       dldir=$destdir/`dirname \$dlpath`~
13808       test -d \$dldir || mkdir -p \$dldir~
13809       $install_prog $dir/$dlname \$dldir/$dlname'
13810     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13811       dlpath=$dir/\$dldll~
13812        $rm \$dlpath'
13813     shlibpath_overrides_runpath=yes
13814
13815     case $host_os in
13816     cygwin*)
13817       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13818       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13819       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13820       ;;
13821     mingw*)
13822       # MinGW DLLs use traditional 'lib' prefix
13823       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13824       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13825       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13826         # It is most probably a Windows format PATH printed by
13827         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13828         # path with ; separators, and with drive letters. We can handle the
13829         # drive letters (cygwin fileutils understands them), so leave them,
13830         # especially as we might pass files found there to a mingw objdump,
13831         # which wouldn't understand a cygwinified path. Ahh.
13832         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13833       else
13834         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13835       fi
13836       ;;
13837     pw32*)
13838       # pw32 DLLs use 'pw' prefix rather than 'lib'
13839       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13840       ;;
13841     esac
13842     ;;
13843
13844   *)
13845     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13846     ;;
13847   esac
13848   dynamic_linker='Win32 ld.exe'
13849   # FIXME: first we should search . and the directory the executable is in
13850   shlibpath_var=PATH
13851   ;;
13852
13853 darwin* | rhapsody*)
13854   dynamic_linker="$host_os dyld"
13855   version_type=darwin
13856   need_lib_prefix=no
13857   need_version=no
13858   # FIXME: Relying on posixy $() will cause problems for
13859   #        cross-compilation, but unfortunately the echo tests do not
13860   #        yet detect zsh echo's removal of \ escapes.
13861   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13862   soname_spec='${libname}${release}${major}$shared_ext'
13863   shlibpath_overrides_runpath=yes
13864   shlibpath_var=DYLD_LIBRARY_PATH
13865   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13866   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13867   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13868   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"`
13869   fi
13870   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13871   ;;
13872
13873 dgux*)
13874   version_type=linux
13875   need_lib_prefix=no
13876   need_version=no
13877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13878   soname_spec='${libname}${release}${shared_ext}$major'
13879   shlibpath_var=LD_LIBRARY_PATH
13880   ;;
13881
13882 freebsd1*)
13883   dynamic_linker=no
13884   ;;
13885
13886 freebsd*)
13887   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13888   version_type=freebsd-$objformat
13889   case $version_type in
13890     freebsd-elf*)
13891       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13892       need_version=no
13893       need_lib_prefix=no
13894       ;;
13895     freebsd-*)
13896       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13897       need_version=yes
13898       ;;
13899   esac
13900   shlibpath_var=LD_LIBRARY_PATH
13901   case $host_os in
13902   freebsd2*)
13903     shlibpath_overrides_runpath=yes
13904     ;;
13905   freebsd3.01* | freebsdelf3.01*)
13906     shlibpath_overrides_runpath=yes
13907     hardcode_into_libs=yes
13908     ;;
13909   *) # from 3.2 on
13910     shlibpath_overrides_runpath=no
13911     hardcode_into_libs=yes
13912     ;;
13913   esac
13914   ;;
13915
13916 gnu*)
13917   version_type=linux
13918   need_lib_prefix=no
13919   need_version=no
13920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13921   soname_spec='${libname}${release}${shared_ext}$major'
13922   shlibpath_var=LD_LIBRARY_PATH
13923   hardcode_into_libs=yes
13924   ;;
13925
13926 hpux9* | hpux10* | hpux11*)
13927   # Give a soname corresponding to the major version so that dld.sl refuses to
13928   # link against other versions.
13929   version_type=sunos
13930   need_lib_prefix=no
13931   need_version=no
13932   case "$host_cpu" in
13933   ia64*)
13934     shrext='.so'
13935     hardcode_into_libs=yes
13936     dynamic_linker="$host_os dld.so"
13937     shlibpath_var=LD_LIBRARY_PATH
13938     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13940     soname_spec='${libname}${release}${shared_ext}$major'
13941     if test "X$HPUX_IA64_MODE" = X32; then
13942       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13943     else
13944       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13945     fi
13946     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13947     ;;
13948    hppa*64*)
13949      shrext='.sl'
13950      hardcode_into_libs=yes
13951      dynamic_linker="$host_os dld.sl"
13952      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13953      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13954      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13955      soname_spec='${libname}${release}${shared_ext}$major'
13956      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13957      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13958      ;;
13959    *)
13960     shrext='.sl'
13961     dynamic_linker="$host_os dld.sl"
13962     shlibpath_var=SHLIB_PATH
13963     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13965     soname_spec='${libname}${release}${shared_ext}$major'
13966     ;;
13967   esac
13968   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13969   postinstall_cmds='chmod 555 $lib'
13970   ;;
13971
13972 irix5* | irix6* | nonstopux*)
13973   case $host_os in
13974     nonstopux*) version_type=nonstopux ;;
13975     *)
13976         if test "$lt_cv_prog_gnu_ld" = yes; then
13977                 version_type=linux
13978         else
13979                 version_type=irix
13980         fi ;;
13981   esac
13982   need_lib_prefix=no
13983   need_version=no
13984   soname_spec='${libname}${release}${shared_ext}$major'
13985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13986   case $host_os in
13987   irix5* | nonstopux*)
13988     libsuff= shlibsuff=
13989     ;;
13990   *)
13991     case $LD in # libtool.m4 will add one of these switches to LD
13992     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13993       libsuff= shlibsuff= libmagic=32-bit;;
13994     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13995       libsuff=32 shlibsuff=N32 libmagic=N32;;
13996     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13997       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13998     *) libsuff= shlibsuff= libmagic=never-match;;
13999     esac
14000     ;;
14001   esac
14002   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14003   shlibpath_overrides_runpath=no
14004   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14005   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14006   hardcode_into_libs=yes
14007   ;;
14008
14009 # No shared lib support for Linux oldld, aout, or coff.
14010 linux*oldld* | linux*aout* | linux*coff*)
14011   dynamic_linker=no
14012   ;;
14013
14014 # This must be Linux ELF.
14015 linux*)
14016   version_type=linux
14017   need_lib_prefix=no
14018   need_version=no
14019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14020   soname_spec='${libname}${release}${shared_ext}$major'
14021   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14022   shlibpath_var=LD_LIBRARY_PATH
14023   shlibpath_overrides_runpath=no
14024   # This implies no fast_install, which is unacceptable.
14025   # Some rework will be needed to allow for fast_install
14026   # before this can be enabled.
14027   hardcode_into_libs=yes
14028
14029   # We used to test for /lib/ld.so.1 and disable shared libraries on
14030   # powerpc, because MkLinux only supported shared libraries with the
14031   # GNU dynamic linker.  Since this was broken with cross compilers,
14032   # most powerpc-linux boxes support dynamic linking these days and
14033   # people can always --disable-shared, the test was removed, and we
14034   # assume the GNU/Linux dynamic linker is in use.
14035   dynamic_linker='GNU/Linux ld.so'
14036   ;;
14037
14038 netbsd*)
14039   version_type=sunos
14040   need_lib_prefix=no
14041   need_version=no
14042   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14044     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14045     dynamic_linker='NetBSD (a.out) ld.so'
14046   else
14047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14048     soname_spec='${libname}${release}${shared_ext}$major'
14049     dynamic_linker='NetBSD ld.elf_so'
14050   fi
14051   shlibpath_var=LD_LIBRARY_PATH
14052   shlibpath_overrides_runpath=yes
14053   hardcode_into_libs=yes
14054   ;;
14055
14056 newsos6)
14057   version_type=linux
14058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059   shlibpath_var=LD_LIBRARY_PATH
14060   shlibpath_overrides_runpath=yes
14061   ;;
14062
14063 nto-qnx)
14064   version_type=linux
14065   need_lib_prefix=no
14066   need_version=no
14067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068   soname_spec='${libname}${release}${shared_ext}$major'
14069   shlibpath_var=LD_LIBRARY_PATH
14070   shlibpath_overrides_runpath=yes
14071   ;;
14072
14073 openbsd*)
14074   version_type=sunos
14075   need_lib_prefix=no
14076   need_version=no
14077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14078   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14079   shlibpath_var=LD_LIBRARY_PATH
14080   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14081     case $host_os in
14082       openbsd2.[89] | openbsd2.[89].*)
14083         shlibpath_overrides_runpath=no
14084         ;;
14085       *)
14086         shlibpath_overrides_runpath=yes
14087         ;;
14088       esac
14089   else
14090     shlibpath_overrides_runpath=yes
14091   fi
14092   ;;
14093
14094 os2*)
14095   libname_spec='$name'
14096   shrext=".dll"
14097   need_lib_prefix=no
14098   library_names_spec='$libname${shared_ext} $libname.a'
14099   dynamic_linker='OS/2 ld.exe'
14100   shlibpath_var=LIBPATH
14101   ;;
14102
14103 osf3* | osf4* | osf5*)
14104   version_type=osf
14105   need_lib_prefix=no
14106   need_version=no
14107   soname_spec='${libname}${release}${shared_ext}$major'
14108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14109   shlibpath_var=LD_LIBRARY_PATH
14110   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14111   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14112   ;;
14113
14114 sco3.2v5*)
14115   version_type=osf
14116   soname_spec='${libname}${release}${shared_ext}$major'
14117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118   shlibpath_var=LD_LIBRARY_PATH
14119   ;;
14120
14121 solaris*)
14122   version_type=linux
14123   need_lib_prefix=no
14124   need_version=no
14125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126   soname_spec='${libname}${release}${shared_ext}$major'
14127   shlibpath_var=LD_LIBRARY_PATH
14128   shlibpath_overrides_runpath=yes
14129   hardcode_into_libs=yes
14130   # ldd complains unless libraries are executable
14131   postinstall_cmds='chmod +x $lib'
14132   ;;
14133
14134 sunos4*)
14135   version_type=sunos
14136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14137   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14138   shlibpath_var=LD_LIBRARY_PATH
14139   shlibpath_overrides_runpath=yes
14140   if test "$with_gnu_ld" = yes; then
14141     need_lib_prefix=no
14142   fi
14143   need_version=yes
14144   ;;
14145
14146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14147   version_type=linux
14148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14149   soname_spec='${libname}${release}${shared_ext}$major'
14150   shlibpath_var=LD_LIBRARY_PATH
14151   case $host_vendor in
14152     sni)
14153       shlibpath_overrides_runpath=no
14154       need_lib_prefix=no
14155       export_dynamic_flag_spec='${wl}-Blargedynsym'
14156       runpath_var=LD_RUN_PATH
14157       ;;
14158     siemens)
14159       need_lib_prefix=no
14160       ;;
14161     motorola)
14162       need_lib_prefix=no
14163       need_version=no
14164       shlibpath_overrides_runpath=no
14165       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14166       ;;
14167   esac
14168   ;;
14169
14170 sysv4*MP*)
14171   if test -d /usr/nec ;then
14172     version_type=linux
14173     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14174     soname_spec='$libname${shared_ext}.$major'
14175     shlibpath_var=LD_LIBRARY_PATH
14176   fi
14177   ;;
14178
14179 uts4*)
14180   version_type=linux
14181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14182   soname_spec='${libname}${release}${shared_ext}$major'
14183   shlibpath_var=LD_LIBRARY_PATH
14184   ;;
14185
14186 *)
14187   dynamic_linker=no
14188   ;;
14189 esac
14190 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14191 echo "${ECHO_T}$dynamic_linker" >&6
14192 test "$dynamic_linker" = no && can_build_shared=no
14193
14194
14195 # The else clause should only fire when bootstrapping the
14196 # libtool distribution, otherwise you forgot to ship ltmain.sh
14197 # with your package, and you will get complaints that there are
14198 # no rules to generate ltmain.sh.
14199 if test -f "$ltmain"; then
14200   # See if we are running on zsh, and set the options which allow our commands through
14201   # without removal of \ escapes.
14202   if test -n "${ZSH_VERSION+set}" ; then
14203     setopt NO_GLOB_SUBST
14204   fi
14205   # Now quote all the things that may contain metacharacters while being
14206   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14207   # variables and quote the copies for generation of the libtool script.
14208   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14209     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14210     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14211     deplibs_check_method reload_flag reload_cmds need_locks \
14212     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14213     lt_cv_sys_global_symbol_to_c_name_address \
14214     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14215     old_postinstall_cmds old_postuninstall_cmds \
14216     compiler_F77 \
14217     CC_F77 \
14218     LD_F77 \
14219     lt_prog_compiler_wl_F77 \
14220     lt_prog_compiler_pic_F77 \
14221     lt_prog_compiler_static_F77 \
14222     lt_prog_compiler_no_builtin_flag_F77 \
14223     export_dynamic_flag_spec_F77 \
14224     thread_safe_flag_spec_F77 \
14225     whole_archive_flag_spec_F77 \
14226     enable_shared_with_static_runtimes_F77 \
14227     old_archive_cmds_F77 \
14228     old_archive_from_new_cmds_F77 \
14229     predep_objects_F77 \
14230     postdep_objects_F77 \
14231     predeps_F77 \
14232     postdeps_F77 \
14233     compiler_lib_search_path_F77 \
14234     archive_cmds_F77 \
14235     archive_expsym_cmds_F77 \
14236     postinstall_cmds_F77 \
14237     postuninstall_cmds_F77 \
14238     old_archive_from_expsyms_cmds_F77 \
14239     allow_undefined_flag_F77 \
14240     no_undefined_flag_F77 \
14241     export_symbols_cmds_F77 \
14242     hardcode_libdir_flag_spec_F77 \
14243     hardcode_libdir_flag_spec_ld_F77 \
14244     hardcode_libdir_separator_F77 \
14245     hardcode_automatic_F77 \
14246     module_cmds_F77 \
14247     module_expsym_cmds_F77 \
14248     lt_cv_prog_compiler_c_o_F77 \
14249     exclude_expsyms_F77 \
14250     include_expsyms_F77; do
14251
14252     case $var in
14253     old_archive_cmds_F77 | \
14254     old_archive_from_new_cmds_F77 | \
14255     archive_cmds_F77 | \
14256     archive_expsym_cmds_F77 | \
14257     module_cmds_F77 | \
14258     module_expsym_cmds_F77 | \
14259     old_archive_from_expsyms_cmds_F77 | \
14260     export_symbols_cmds_F77 | \
14261     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14262     postinstall_cmds | postuninstall_cmds | \
14263     old_postinstall_cmds | old_postuninstall_cmds | \
14264     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14265       # Double-quote double-evaled strings.
14266       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14267       ;;
14268     *)
14269       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14270       ;;
14271     esac
14272   done
14273
14274   case $lt_echo in
14275   *'\$0 --fallback-echo"')
14276     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14277     ;;
14278   esac
14279
14280 cfgfile="$ofile"
14281
14282   cat <<__EOF__ >> "$cfgfile"
14283 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14284
14285 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14286
14287 # Shell to use when invoking shell scripts.
14288 SHELL=$lt_SHELL
14289
14290 # Whether or not to build shared libraries.
14291 build_libtool_libs=$enable_shared
14292
14293 # Whether or not to build static libraries.
14294 build_old_libs=$enable_static
14295
14296 # Whether or not to add -lc for building shared libraries.
14297 build_libtool_need_lc=$archive_cmds_need_lc_F77
14298
14299 # Whether or not to disallow shared libs when runtime libs are static
14300 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14301
14302 # Whether or not to optimize for fast installation.
14303 fast_install=$enable_fast_install
14304
14305 # The host system.
14306 host_alias=$host_alias
14307 host=$host
14308
14309 # An echo program that does not interpret backslashes.
14310 echo=$lt_echo
14311
14312 # The archiver.
14313 AR=$lt_AR
14314 AR_FLAGS=$lt_AR_FLAGS
14315
14316 # A C compiler.
14317 LTCC=$lt_LTCC
14318
14319 # A language-specific compiler.
14320 CC=$lt_compiler_F77
14321
14322 # Is the compiler the GNU C compiler?
14323 with_gcc=$GCC_F77
14324
14325 # An ERE matcher.
14326 EGREP=$lt_EGREP
14327
14328 # The linker used to build libraries.
14329 LD=$lt_LD_F77
14330
14331 # Whether we need hard or soft links.
14332 LN_S=$lt_LN_S
14333
14334 # A BSD-compatible nm program.
14335 NM=$lt_NM
14336
14337 # A symbol stripping program
14338 STRIP=$STRIP
14339
14340 # Used to examine libraries when file_magic_cmd begins "file"
14341 MAGIC_CMD=$MAGIC_CMD
14342
14343 # Used on cygwin: DLL creation program.
14344 DLLTOOL="$DLLTOOL"
14345
14346 # Used on cygwin: object dumper.
14347 OBJDUMP="$OBJDUMP"
14348
14349 # Used on cygwin: assembler.
14350 AS="$AS"
14351
14352 # The name of the directory that contains temporary libtool files.
14353 objdir=$objdir
14354
14355 # How to create reloadable object files.
14356 reload_flag=$lt_reload_flag
14357 reload_cmds=$lt_reload_cmds
14358
14359 # How to pass a linker flag through the compiler.
14360 wl=$lt_lt_prog_compiler_wl_F77
14361
14362 # Object file suffix (normally "o").
14363 objext="$ac_objext"
14364
14365 # Old archive suffix (normally "a").
14366 libext="$libext"
14367
14368 # Shared library suffix (normally ".so").
14369 shrext='$shrext'
14370
14371 # Executable file suffix (normally "").
14372 exeext="$exeext"
14373
14374 # Additional compiler flags for building library objects.
14375 pic_flag=$lt_lt_prog_compiler_pic_F77
14376 pic_mode=$pic_mode
14377
14378 # What is the maximum length of a command?
14379 max_cmd_len=$lt_cv_sys_max_cmd_len
14380
14381 # Does compiler simultaneously support -c and -o options?
14382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14383
14384 # Must we lock files when doing compilation ?
14385 need_locks=$lt_need_locks
14386
14387 # Do we need the lib prefix for modules?
14388 need_lib_prefix=$need_lib_prefix
14389
14390 # Do we need a version for libraries?
14391 need_version=$need_version
14392
14393 # Whether dlopen is supported.
14394 dlopen_support=$enable_dlopen
14395
14396 # Whether dlopen of programs is supported.
14397 dlopen_self=$enable_dlopen_self
14398
14399 # Whether dlopen of statically linked programs is supported.
14400 dlopen_self_static=$enable_dlopen_self_static
14401
14402 # Compiler flag to prevent dynamic linking.
14403 link_static_flag=$lt_lt_prog_compiler_static_F77
14404
14405 # Compiler flag to turn off builtin functions.
14406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14407
14408 # Compiler flag to allow reflexive dlopens.
14409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14410
14411 # Compiler flag to generate shared objects directly from archives.
14412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14413
14414 # Compiler flag to generate thread-safe objects.
14415 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14416
14417 # Library versioning type.
14418 version_type=$version_type
14419
14420 # Format of library name prefix.
14421 libname_spec=$lt_libname_spec
14422
14423 # List of archive names.  First name is the real one, the rest are links.
14424 # The last name is the one that the linker finds with -lNAME.
14425 library_names_spec=$lt_library_names_spec
14426
14427 # The coded name of the library, if different from the real name.
14428 soname_spec=$lt_soname_spec
14429
14430 # Commands used to build and install an old-style archive.
14431 RANLIB=$lt_RANLIB
14432 old_archive_cmds=$lt_old_archive_cmds_F77
14433 old_postinstall_cmds=$lt_old_postinstall_cmds
14434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14435
14436 # Create an old-style archive from a shared archive.
14437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14438
14439 # Create a temporary old-style archive to link instead of a shared archive.
14440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14441
14442 # Commands used to build and install a shared archive.
14443 archive_cmds=$lt_archive_cmds_F77
14444 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14445 postinstall_cmds=$lt_postinstall_cmds
14446 postuninstall_cmds=$lt_postuninstall_cmds
14447
14448 # Commands used to build a loadable module (assumed same as above if empty)
14449 module_cmds=$lt_module_cmds_F77
14450 module_expsym_cmds=$lt_module_expsym_cmds_F77
14451
14452 # Commands to strip libraries.
14453 old_striplib=$lt_old_striplib
14454 striplib=$lt_striplib
14455
14456 # Dependencies to place before the objects being linked to create a
14457 # shared library.
14458 predep_objects=$lt_predep_objects_F77
14459
14460 # Dependencies to place after the objects being linked to create a
14461 # shared library.
14462 postdep_objects=$lt_postdep_objects_F77
14463
14464 # Dependencies to place before the objects being linked to create a
14465 # shared library.
14466 predeps=$lt_predeps_F77
14467
14468 # Dependencies to place after the objects being linked to create a
14469 # shared library.
14470 postdeps=$lt_postdeps_F77
14471
14472 # The library search path used internally by the compiler when linking
14473 # a shared library.
14474 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14475
14476 # Method to check whether dependent libraries are shared objects.
14477 deplibs_check_method=$lt_deplibs_check_method
14478
14479 # Command to use when deplibs_check_method == file_magic.
14480 file_magic_cmd=$lt_file_magic_cmd
14481
14482 # Flag that allows shared libraries with undefined symbols to be built.
14483 allow_undefined_flag=$lt_allow_undefined_flag_F77
14484
14485 # Flag that forces no undefined symbols.
14486 no_undefined_flag=$lt_no_undefined_flag_F77
14487
14488 # Commands used to finish a libtool library installation in a directory.
14489 finish_cmds=$lt_finish_cmds
14490
14491 # Same as above, but a single script fragment to be evaled but not shown.
14492 finish_eval=$lt_finish_eval
14493
14494 # Take the output of nm and produce a listing of raw symbols and C names.
14495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14496
14497 # Transform the output of nm in a proper C declaration
14498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14499
14500 # Transform the output of nm in a C name address pair
14501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14502
14503 # This is the shared library runtime path variable.
14504 runpath_var=$runpath_var
14505
14506 # This is the shared library path variable.
14507 shlibpath_var=$shlibpath_var
14508
14509 # Is shlibpath searched before the hard-coded library search path?
14510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14511
14512 # How to hardcode a shared library path into an executable.
14513 hardcode_action=$hardcode_action_F77
14514
14515 # Whether we should hardcode library paths into libraries.
14516 hardcode_into_libs=$hardcode_into_libs
14517
14518 # Flag to hardcode \$libdir into a binary during linking.
14519 # This must work even if \$libdir does not exist.
14520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14521
14522 # If ld is used when linking, flag to hardcode \$libdir into
14523 # a binary during linking. This must work even if \$libdir does
14524 # not exist.
14525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14526
14527 # Whether we need a single -rpath flag with a separated argument.
14528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14529
14530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14531 # resulting binary.
14532 hardcode_direct=$hardcode_direct_F77
14533
14534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14535 # resulting binary.
14536 hardcode_minus_L=$hardcode_minus_L_F77
14537
14538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14539 # the resulting binary.
14540 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14541
14542 # Set to yes if building a shared library automatically hardcodes DIR into the library
14543 # and all subsequent libraries and executables linked against it.
14544 hardcode_automatic=$hardcode_automatic_F77
14545
14546 # Variables whose values should be saved in libtool wrapper scripts and
14547 # restored at relink time.
14548 variables_saved_for_relink="$variables_saved_for_relink"
14549
14550 # Whether libtool must link a program against all its dependency libraries.
14551 link_all_deplibs=$link_all_deplibs_F77
14552
14553 # Compile-time system search path for libraries
14554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14555
14556 # Run-time system search path for libraries
14557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14558
14559 # Fix the shell variable \$srcfile for the compiler.
14560 fix_srcfile_path="$fix_srcfile_path_F77"
14561
14562 # Set to yes if exported symbols are required.
14563 always_export_symbols=$always_export_symbols_F77
14564
14565 # The commands to list exported symbols.
14566 export_symbols_cmds=$lt_export_symbols_cmds_F77
14567
14568 # The commands to extract the exported symbol list from a shared archive.
14569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14570
14571 # Symbols that should not be listed in the preloaded symbols.
14572 exclude_expsyms=$lt_exclude_expsyms_F77
14573
14574 # Symbols that must always be exported.
14575 include_expsyms=$lt_include_expsyms_F77
14576
14577 # ### END LIBTOOL TAG CONFIG: $tagname
14578
14579 __EOF__
14580
14581
14582 else
14583   # If there is no Makefile yet, we rely on a make rule to execute
14584   # `config.status --recheck' to rerun these tests and create the
14585   # libtool script then.
14586   test -f Makefile && make "$ltmain"
14587 fi
14588
14589
14590 ac_ext=c
14591 ac_cpp='$CPP $CPPFLAGS'
14592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14595
14596 CC="$lt_save_CC"
14597
14598         else
14599           tagname=""
14600         fi
14601         ;;
14602
14603       GCJ)
14604         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14605
14606
14607
14608 # Source file extension for Java test sources.
14609 ac_ext=java
14610
14611 # Object file extension for compiled Java test sources.
14612 objext=o
14613 objext_GCJ=$objext
14614
14615 # Code to be used in simple compile tests
14616 lt_simple_compile_test_code="class foo {}\n"
14617
14618 # Code to be used in simple link tests
14619 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14620
14621 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14622
14623 # If no C compiler was specified, use CC.
14624 LTCC=${LTCC-"$CC"}
14625
14626 # Allow CC to be a program name with arguments.
14627 compiler=$CC
14628
14629
14630 # Allow CC to be a program name with arguments.
14631 lt_save_CC="$CC"
14632 CC=${GCJ-"gcj"}
14633 compiler=$CC
14634 compiler_GCJ=$CC
14635
14636 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14637 archive_cmds_need_lc_GCJ=no
14638
14639
14640 lt_prog_compiler_no_builtin_flag_GCJ=
14641
14642 if test "$GCC" = yes; then
14643   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14644
14645   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14646 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14647 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14648   echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650   lt_cv_prog_compiler_rtti_exceptions=no
14651   ac_outfile=conftest.$ac_objext
14652    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14653    lt_compiler_flag="-fno-rtti -fno-exceptions"
14654    # Insert the option either (1) after the last *FLAGS variable, or
14655    # (2) before a word containing "conftest.", or (3) at the end.
14656    # Note that $ac_compile itself does not contain backslashes and begins
14657    # with a dollar sign (not a hyphen), so the echo should work correctly.
14658    # The option is referenced via a variable to avoid confusing sed.
14659    lt_compile=`echo "$ac_compile" | $SED \
14660    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14661    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14662    -e 's:$: $lt_compiler_flag:'`
14663    (eval echo "\"\$as_me:14663: $lt_compile\"" >&5)
14664    (eval "$lt_compile" 2>conftest.err)
14665    ac_status=$?
14666    cat conftest.err >&5
14667    echo "$as_me:14667: \$? = $ac_status" >&5
14668    if (exit $ac_status) && test -s "$ac_outfile"; then
14669      # The compiler can only warn and ignore the option if not recognized
14670      # So say no if there are warnings
14671      if test ! -s conftest.err; then
14672        lt_cv_prog_compiler_rtti_exceptions=yes
14673      fi
14674    fi
14675    $rm conftest*
14676
14677 fi
14678 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14679 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14680
14681 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14682     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14683 else
14684     :
14685 fi
14686
14687 fi
14688
14689 lt_prog_compiler_wl_GCJ=
14690 lt_prog_compiler_pic_GCJ=
14691 lt_prog_compiler_static_GCJ=
14692
14693 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14694 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14695
14696   if test "$GCC" = yes; then
14697     lt_prog_compiler_wl_GCJ='-Wl,'
14698     lt_prog_compiler_static_GCJ='-static'
14699
14700     case $host_os in
14701       aix*)
14702       # All AIX code is PIC.
14703       if test "$host_cpu" = ia64; then
14704         # AIX 5 now supports IA64 processor
14705         lt_prog_compiler_static_GCJ='-Bstatic'
14706       fi
14707       ;;
14708
14709     amigaos*)
14710       # FIXME: we need at least 68020 code to build shared libraries, but
14711       # adding the `-m68020' flag to GCC prevents building anything better,
14712       # like `-m68040'.
14713       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14714       ;;
14715
14716     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14717       # PIC is the default for these OSes.
14718       ;;
14719
14720     mingw* | pw32* | os2*)
14721       # This hack is so that the source file can tell whether it is being
14722       # built for inclusion in a dll (and should export symbols for example).
14723       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14724       ;;
14725
14726     darwin* | rhapsody*)
14727       # PIC is the default on this platform
14728       # Common symbols not allowed in MH_DYLIB files
14729       lt_prog_compiler_pic_GCJ='-fno-common'
14730       ;;
14731
14732     msdosdjgpp*)
14733       # Just because we use GCC doesn't mean we suddenly get shared libraries
14734       # on systems that don't support them.
14735       lt_prog_compiler_can_build_shared_GCJ=no
14736       enable_shared=no
14737       ;;
14738
14739     sysv4*MP*)
14740       if test -d /usr/nec; then
14741         lt_prog_compiler_pic_GCJ=-Kconform_pic
14742       fi
14743       ;;
14744
14745     hpux*)
14746       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14747       # not for PA HP-UX.
14748       case "$host_cpu" in
14749       hppa*64*|ia64*)
14750         # +Z the default
14751         ;;
14752       *)
14753         lt_prog_compiler_pic_GCJ='-fPIC'
14754         ;;
14755       esac
14756       ;;
14757
14758     *)
14759       lt_prog_compiler_pic_GCJ='-fPIC'
14760       ;;
14761     esac
14762   else
14763     # PORTME Check for flag to pass linker flags through the system compiler.
14764     case $host_os in
14765     aix*)
14766       lt_prog_compiler_wl_GCJ='-Wl,'
14767       if test "$host_cpu" = ia64; then
14768         # AIX 5 now supports IA64 processor
14769         lt_prog_compiler_static_GCJ='-Bstatic'
14770       else
14771         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14772       fi
14773       ;;
14774
14775     mingw* | pw32* | os2*)
14776       # This hack is so that the source file can tell whether it is being
14777       # built for inclusion in a dll (and should export symbols for example).
14778       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14779       ;;
14780
14781     hpux9* | hpux10* | hpux11*)
14782       lt_prog_compiler_wl_GCJ='-Wl,'
14783       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14784       # not for PA HP-UX.
14785       case "$host_cpu" in
14786       hppa*64*|ia64*)
14787         # +Z the default
14788         ;;
14789       *)
14790         lt_prog_compiler_pic_GCJ='+Z'
14791         ;;
14792       esac
14793       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14794       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14795       ;;
14796
14797     irix5* | irix6* | nonstopux*)
14798       lt_prog_compiler_wl_GCJ='-Wl,'
14799       # PIC (with -KPIC) is the default.
14800       lt_prog_compiler_static_GCJ='-non_shared'
14801       ;;
14802
14803     newsos6)
14804       lt_prog_compiler_pic_GCJ='-KPIC'
14805       lt_prog_compiler_static_GCJ='-Bstatic'
14806       ;;
14807
14808     linux*)
14809       case $CC in
14810       icc|ecc)
14811         lt_prog_compiler_wl_GCJ='-Wl,'
14812         lt_prog_compiler_pic_GCJ='-KPIC'
14813         lt_prog_compiler_static_GCJ='-static'
14814         ;;
14815       ccc)
14816         lt_prog_compiler_wl_GCJ='-Wl,'
14817         # All Alpha code is PIC.
14818         lt_prog_compiler_static_GCJ='-non_shared'
14819         ;;
14820       esac
14821       ;;
14822
14823     osf3* | osf4* | osf5*)
14824       lt_prog_compiler_wl_GCJ='-Wl,'
14825       # All OSF/1 code is PIC.
14826       lt_prog_compiler_static_GCJ='-non_shared'
14827       ;;
14828
14829     sco3.2v5*)
14830       lt_prog_compiler_pic_GCJ='-Kpic'
14831       lt_prog_compiler_static_GCJ='-dn'
14832       ;;
14833
14834     solaris*)
14835       lt_prog_compiler_wl_GCJ='-Wl,'
14836       lt_prog_compiler_pic_GCJ='-KPIC'
14837       lt_prog_compiler_static_GCJ='-Bstatic'
14838       ;;
14839
14840     sunos4*)
14841       lt_prog_compiler_wl_GCJ='-Qoption ld '
14842       lt_prog_compiler_pic_GCJ='-PIC'
14843       lt_prog_compiler_static_GCJ='-Bstatic'
14844       ;;
14845
14846     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14847       lt_prog_compiler_wl_GCJ='-Wl,'
14848       lt_prog_compiler_pic_GCJ='-KPIC'
14849       lt_prog_compiler_static_GCJ='-Bstatic'
14850       ;;
14851
14852     sysv4*MP*)
14853       if test -d /usr/nec ;then
14854         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14855         lt_prog_compiler_static_GCJ='-Bstatic'
14856       fi
14857       ;;
14858
14859     uts4*)
14860       lt_prog_compiler_pic_GCJ='-pic'
14861       lt_prog_compiler_static_GCJ='-Bstatic'
14862       ;;
14863
14864     *)
14865       lt_prog_compiler_can_build_shared_GCJ=no
14866       ;;
14867     esac
14868   fi
14869
14870 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14871 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14872
14873 #
14874 # Check to make sure the PIC flag actually works.
14875 #
14876 if test -n "$lt_prog_compiler_pic_GCJ"; then
14877   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14878 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14879 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   lt_prog_compiler_pic_works_GCJ=no
14883   ac_outfile=conftest.$ac_objext
14884    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14885    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14886    # Insert the option either (1) after the last *FLAGS variable, or
14887    # (2) before a word containing "conftest.", or (3) at the end.
14888    # Note that $ac_compile itself does not contain backslashes and begins
14889    # with a dollar sign (not a hyphen), so the echo should work correctly.
14890    # The option is referenced via a variable to avoid confusing sed.
14891    lt_compile=`echo "$ac_compile" | $SED \
14892    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894    -e 's:$: $lt_compiler_flag:'`
14895    (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14896    (eval "$lt_compile" 2>conftest.err)
14897    ac_status=$?
14898    cat conftest.err >&5
14899    echo "$as_me:14899: \$? = $ac_status" >&5
14900    if (exit $ac_status) && test -s "$ac_outfile"; then
14901      # The compiler can only warn and ignore the option if not recognized
14902      # So say no if there are warnings
14903      if test ! -s conftest.err; then
14904        lt_prog_compiler_pic_works_GCJ=yes
14905      fi
14906    fi
14907    $rm conftest*
14908
14909 fi
14910 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14911 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14912
14913 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14914     case $lt_prog_compiler_pic_GCJ in
14915      "" | " "*) ;;
14916      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14917      esac
14918 else
14919     lt_prog_compiler_pic_GCJ=
14920      lt_prog_compiler_can_build_shared_GCJ=no
14921 fi
14922
14923 fi
14924 case "$host_os" in
14925   # For platforms which do not support PIC, -DPIC is meaningless:
14926   *djgpp*)
14927     lt_prog_compiler_pic_GCJ=
14928     ;;
14929   *)
14930     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14931     ;;
14932 esac
14933
14934 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14935 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14936 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14937   echo $ECHO_N "(cached) $ECHO_C" >&6
14938 else
14939   lt_cv_prog_compiler_c_o_GCJ=no
14940    $rm -r conftest 2>/dev/null
14941    mkdir conftest
14942    cd conftest
14943    mkdir out
14944    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14945
14946    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14947    # that will create temporary files in the current directory regardless of
14948    # the output directory.  Thus, making CWD read-only will cause this test
14949    # to fail, enabling locking or at least warning the user not to do parallel
14950    # builds.
14951    chmod -w .
14952
14953    lt_compiler_flag="-o out/conftest2.$ac_objext"
14954    # Insert the option either (1) after the last *FLAGS variable, or
14955    # (2) before a word containing "conftest.", or (3) at the end.
14956    # Note that $ac_compile itself does not contain backslashes and begins
14957    # with a dollar sign (not a hyphen), so the echo should work correctly.
14958    lt_compile=`echo "$ac_compile" | $SED \
14959    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14960    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14961    -e 's:$: $lt_compiler_flag:'`
14962    (eval echo "\"\$as_me:14962: $lt_compile\"" >&5)
14963    (eval "$lt_compile" 2>out/conftest.err)
14964    ac_status=$?
14965    cat out/conftest.err >&5
14966    echo "$as_me:14966: \$? = $ac_status" >&5
14967    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14968    then
14969      # The compiler can only warn and ignore the option if not recognized
14970      # So say no if there are warnings
14971      if test ! -s out/conftest.err; then
14972        lt_cv_prog_compiler_c_o_GCJ=yes
14973      fi
14974    fi
14975    chmod u+w .
14976    $rm conftest* out/*
14977    rmdir out
14978    cd ..
14979    rmdir conftest
14980    $rm conftest*
14981
14982 fi
14983 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14984 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14985
14986
14987 hard_links="nottested"
14988 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14989   # do not overwrite the value of need_locks provided by the user
14990   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14991 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14992   hard_links=yes
14993   $rm conftest*
14994   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14995   touch conftest.a
14996   ln conftest.a conftest.b 2>&5 || hard_links=no
14997   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14998   echo "$as_me:$LINENO: result: $hard_links" >&5
14999 echo "${ECHO_T}$hard_links" >&6
15000   if test "$hard_links" = no; then
15001     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15002 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15003     need_locks=warn
15004   fi
15005 else
15006   need_locks=no
15007 fi
15008
15009 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15011
15012   runpath_var=
15013   allow_undefined_flag_GCJ=
15014   enable_shared_with_static_runtimes_GCJ=no
15015   archive_cmds_GCJ=
15016   archive_expsym_cmds_GCJ=
15017   old_archive_From_new_cmds_GCJ=
15018   old_archive_from_expsyms_cmds_GCJ=
15019   export_dynamic_flag_spec_GCJ=
15020   whole_archive_flag_spec_GCJ=
15021   thread_safe_flag_spec_GCJ=
15022   hardcode_libdir_flag_spec_GCJ=
15023   hardcode_libdir_flag_spec_ld_GCJ=
15024   hardcode_libdir_separator_GCJ=
15025   hardcode_direct_GCJ=no
15026   hardcode_minus_L_GCJ=no
15027   hardcode_shlibpath_var_GCJ=unsupported
15028   link_all_deplibs_GCJ=unknown
15029   hardcode_automatic_GCJ=no
15030   module_cmds_GCJ=
15031   module_expsym_cmds_GCJ=
15032   always_export_symbols_GCJ=no
15033   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15034   # include_expsyms should be a list of space-separated symbols to be *always*
15035   # included in the symbol list
15036   include_expsyms_GCJ=
15037   # exclude_expsyms can be an extended regexp of symbols to exclude
15038   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15039   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15040   # as well as any symbol that contains `d'.
15041   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15042   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15043   # platforms (ab)use it in PIC code, but their linkers get confused if
15044   # the symbol is explicitly referenced.  Since portable code cannot
15045   # rely on this symbol name, it's probably fine to never include it in
15046   # preloaded symbol tables.
15047   extract_expsyms_cmds=
15048
15049   case $host_os in
15050   cygwin* | mingw* | pw32*)
15051     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15052     # When not using gcc, we currently assume that we are using
15053     # Microsoft Visual C++.
15054     if test "$GCC" != yes; then
15055       with_gnu_ld=no
15056     fi
15057     ;;
15058   openbsd*)
15059     with_gnu_ld=no
15060     ;;
15061   esac
15062
15063   ld_shlibs_GCJ=yes
15064   if test "$with_gnu_ld" = yes; then
15065     # If archive_cmds runs LD, not CC, wlarc should be empty
15066     wlarc='${wl}'
15067
15068     # See if GNU ld supports shared libraries.
15069     case $host_os in
15070     aix3* | aix4* | aix5*)
15071       # On AIX/PPC, the GNU linker is very broken
15072       if test "$host_cpu" != ia64; then
15073         ld_shlibs_GCJ=no
15074         cat <<EOF 1>&2
15075
15076 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15077 *** to be unable to reliably create shared libraries on AIX.
15078 *** Therefore, libtool is disabling shared libraries support.  If you
15079 *** really care for shared libraries, you may want to modify your PATH
15080 *** so that a non-GNU linker is found, and then restart.
15081
15082 EOF
15083       fi
15084       ;;
15085
15086     amigaos*)
15087       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)'
15088       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15089       hardcode_minus_L_GCJ=yes
15090
15091       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15092       # that the semantics of dynamic libraries on AmigaOS, at least up
15093       # to version 4, is to share data among multiple programs linked
15094       # with the same dynamic library.  Since this doesn't match the
15095       # behavior of shared libraries on other platforms, we can't use
15096       # them.
15097       ld_shlibs_GCJ=no
15098       ;;
15099
15100     beos*)
15101       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15102         allow_undefined_flag_GCJ=unsupported
15103         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15104         # support --undefined.  This deserves some investigation.  FIXME
15105         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106       else
15107         ld_shlibs_GCJ=no
15108       fi
15109       ;;
15110
15111     cygwin* | mingw* | pw32*)
15112       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15113       # as there is no search path for DLLs.
15114       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15115       allow_undefined_flag_GCJ=unsupported
15116       always_export_symbols_GCJ=no
15117       enable_shared_with_static_runtimes_GCJ=yes
15118       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15119
15120       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15121         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15122         # If the export-symbols file already is a .def file (1st line
15123         # is EXPORTS), use it as is; otherwise, prepend...
15124         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15125           cp $export_symbols $output_objdir/$soname.def;
15126         else
15127           echo EXPORTS > $output_objdir/$soname.def;
15128           cat $export_symbols >> $output_objdir/$soname.def;
15129         fi~
15130         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15131       else
15132         ld_shlibs=no
15133       fi
15134       ;;
15135
15136     netbsd*)
15137       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15138         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15139         wlarc=
15140       else
15141         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15143       fi
15144       ;;
15145
15146     solaris* | sysv5*)
15147       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15148         ld_shlibs_GCJ=no
15149         cat <<EOF 1>&2
15150
15151 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15152 *** create shared libraries on Solaris systems.  Therefore, libtool
15153 *** is disabling shared libraries support.  We urge you to upgrade GNU
15154 *** binutils to release 2.9.1 or newer.  Another option is to modify
15155 *** your PATH or compiler configuration so that the native linker is
15156 *** used, and then restart.
15157
15158 EOF
15159       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15160         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15161         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15162       else
15163         ld_shlibs_GCJ=no
15164       fi
15165       ;;
15166
15167     sunos4*)
15168       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15169       wlarc=
15170       hardcode_direct_GCJ=yes
15171       hardcode_shlibpath_var_GCJ=no
15172       ;;
15173
15174     *)
15175       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15176         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15177         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15178       else
15179         ld_shlibs_GCJ=no
15180       fi
15181       ;;
15182     esac
15183
15184     if test "$ld_shlibs_GCJ" = yes; then
15185       runpath_var=LD_RUN_PATH
15186       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15187       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15188       # ancient GNU ld didn't support --whole-archive et. al.
15189       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15190         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15191       else
15192         whole_archive_flag_spec_GCJ=
15193       fi
15194     fi
15195   else
15196     # PORTME fill in a description of your system's linker (not GNU ld)
15197     case $host_os in
15198     aix3*)
15199       allow_undefined_flag_GCJ=unsupported
15200       always_export_symbols_GCJ=yes
15201       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'
15202       # Note: this linker hardcodes the directories in LIBPATH if there
15203       # are no directories specified by -L.
15204       hardcode_minus_L_GCJ=yes
15205       if test "$GCC" = yes && test -z "$link_static_flag"; then
15206         # Neither direct hardcoding nor static linking is supported with a
15207         # broken collect2.
15208         hardcode_direct_GCJ=unsupported
15209       fi
15210       ;;
15211
15212     aix4* | aix5*)
15213       if test "$host_cpu" = ia64; then
15214         # On IA64, the linker does run time linking by default, so we don't
15215         # have to do anything special.
15216         aix_use_runtimelinking=no
15217         exp_sym_flag='-Bexport'
15218         no_entry_flag=""
15219       else
15220         # If we're using GNU nm, then we don't want the "-C" option.
15221         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15222         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15223           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'
15224         else
15225           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'
15226         fi
15227         aix_use_runtimelinking=no
15228
15229         # Test if we are trying to use run time linking or normal
15230         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15231         # need to do runtime linking.
15232         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15233           for ld_flag in $LDFLAGS; do
15234           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15235             aix_use_runtimelinking=yes
15236             break
15237           fi
15238           done
15239         esac
15240
15241         exp_sym_flag='-bexport'
15242         no_entry_flag='-bnoentry'
15243       fi
15244
15245       # When large executables or shared objects are built, AIX ld can
15246       # have problems creating the table of contents.  If linking a library
15247       # or program results in "error TOC overflow" add -mminimal-toc to
15248       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15249       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15250
15251       archive_cmds_GCJ=''
15252       hardcode_direct_GCJ=yes
15253       hardcode_libdir_separator_GCJ=':'
15254       link_all_deplibs_GCJ=yes
15255
15256       if test "$GCC" = yes; then
15257         case $host_os in aix4.012|aix4.012.*)
15258         # We only want to do this on AIX 4.2 and lower, the check
15259         # below for broken collect2 doesn't work under 4.3+
15260           collect2name=`${CC} -print-prog-name=collect2`
15261           if test -f "$collect2name" && \
15262            strings "$collect2name" | grep resolve_lib_name >/dev/null
15263           then
15264           # We have reworked collect2
15265           hardcode_direct_GCJ=yes
15266           else
15267           # We have old collect2
15268           hardcode_direct_GCJ=unsupported
15269           # It fails to find uninstalled libraries when the uninstalled
15270           # path is not listed in the libpath.  Setting hardcode_minus_L
15271           # to unsupported forces relinking
15272           hardcode_minus_L_GCJ=yes
15273           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15274           hardcode_libdir_separator_GCJ=
15275           fi
15276         esac
15277         shared_flag='-shared'
15278       else
15279         # not using gcc
15280         if test "$host_cpu" = ia64; then
15281         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15282         # chokes on -Wl,-G. The following line is correct:
15283           shared_flag='-G'
15284         else
15285         if test "$aix_use_runtimelinking" = yes; then
15286             shared_flag='${wl}-G'
15287           else
15288             shared_flag='${wl}-bM:SRE'
15289         fi
15290         fi
15291       fi
15292
15293       # It seems that -bexpall does not export symbols beginning with
15294       # underscore (_), so it is better to generate a list of symbols to export.
15295       always_export_symbols_GCJ=yes
15296       if test "$aix_use_runtimelinking" = yes; then
15297         # Warning - without using the other runtime loading flags (-brtl),
15298         # -berok will link without error, but may produce a broken library.
15299         allow_undefined_flag_GCJ='-berok'
15300        # Determine the default libpath from the value encoded in an empty executable.
15301        cat >conftest.$ac_ext <<_ACEOF
15302 #line $LINENO "configure"
15303 /* confdefs.h.  */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h.  */
15308
15309 int
15310 main ()
15311 {
15312
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319   (eval $ac_link) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); } &&
15323          { ac_try='test -s conftest$ac_exeext'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329
15330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15331 }'`
15332 # Check for a 64-bit object if we didn't find anything.
15333 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; }
15334 }'`; fi
15335 else
15336   echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339 fi
15340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15342
15343        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15344         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"
15345        else
15346         if test "$host_cpu" = ia64; then
15347           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15348           allow_undefined_flag_GCJ="-z nodefs"
15349           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"
15350         else
15351          # Determine the default libpath from the value encoded in an empty executable.
15352          cat >conftest.$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15354 /* confdefs.h.  */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h.  */
15359
15360 int
15361 main ()
15362 {
15363
15364   ;
15365   return 0;
15366 }
15367 _ACEOF
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370   (eval $ac_link) 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } &&
15374          { ac_try='test -s conftest$ac_exeext'
15375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376   (eval $ac_try) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; }; then
15380
15381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15382 }'`
15383 # Check for a 64-bit object if we didn't find anything.
15384 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; }
15385 }'`; fi
15386 else
15387   echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390 fi
15391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15393
15394          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15395           # Warning - without using the other run time loading flags,
15396           # -berok will link without error, but may produce a broken library.
15397           no_undefined_flag_GCJ=' ${wl}-bernotok'
15398           allow_undefined_flag_GCJ=' ${wl}-berok'
15399           # -bexpall does not export symbols beginning with underscore (_)
15400           always_export_symbols_GCJ=yes
15401           # Exported symbols can be pulled into shared objects from archives
15402           whole_archive_flag_spec_GCJ=' '
15403           archive_cmds_need_lc_GCJ=yes
15404           # This is similar to how AIX traditionally builds it's shared libraries.
15405           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'
15406         fi
15407       fi
15408       ;;
15409
15410     amigaos*)
15411       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)'
15412       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15413       hardcode_minus_L_GCJ=yes
15414       # see comment about different semantics on the GNU ld section
15415       ld_shlibs_GCJ=no
15416       ;;
15417
15418     bsdi4*)
15419       export_dynamic_flag_spec_GCJ=-rdynamic
15420       ;;
15421
15422     cygwin* | mingw* | pw32*)
15423       # When not using gcc, we currently assume that we are using
15424       # Microsoft Visual C++.
15425       # hardcode_libdir_flag_spec is actually meaningless, as there is
15426       # no search path for DLLs.
15427       hardcode_libdir_flag_spec_GCJ=' '
15428       allow_undefined_flag_GCJ=unsupported
15429       # Tell ltmain to make .lib files, not .a files.
15430       libext=lib
15431       # Tell ltmain to make .dll files, not .so files.
15432       shrext=".dll"
15433       # FIXME: Setting linknames here is a bad hack.
15434       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15435       # The linker will automatically build a .lib file if we build a DLL.
15436       old_archive_From_new_cmds_GCJ='true'
15437       # FIXME: Should let the user specify the lib program.
15438       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15439       fix_srcfile_path='`cygpath -w "$srcfile"`'
15440       enable_shared_with_static_runtimes_GCJ=yes
15441       ;;
15442
15443     darwin* | rhapsody*)
15444     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15445       archive_cmds_need_lc_GCJ=no
15446       case "$host_os" in
15447       rhapsody* | darwin1.[012])
15448         allow_undefined_flag_GCJ='-undefined suppress'
15449         ;;
15450       *) # Darwin 1.3 on
15451         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15452         ;;
15453       esac
15454       # FIXME: Relying on posixy $() will cause problems for
15455       #        cross-compilation, but unfortunately the echo tests do not
15456       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15457       #        `"' quotes if we put them in here... so don't!
15458         lt_int_apple_cc_single_mod=no
15459         output_verbose_link_cmd='echo'
15460         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15461           lt_int_apple_cc_single_mod=yes
15462         fi
15463         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15464           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15465         else
15466         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'
15467       fi
15468       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15469       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15470         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15471           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}'
15472         else
15473           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}'
15474         fi
15475           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}'
15476       hardcode_direct_GCJ=no
15477       hardcode_automatic_GCJ=yes
15478       hardcode_shlibpath_var_GCJ=unsupported
15479       whole_archive_flag_spec_GCJ='-all_load $convenience'
15480       link_all_deplibs_GCJ=yes
15481     fi
15482       ;;
15483
15484     dgux*)
15485       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15487       hardcode_shlibpath_var_GCJ=no
15488       ;;
15489
15490     freebsd1*)
15491       ld_shlibs_GCJ=no
15492       ;;
15493
15494     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15495     # support.  Future versions do this automatically, but an explicit c++rt0.o
15496     # does not break anything, and helps significantly (at the cost of a little
15497     # extra space).
15498     freebsd2.2*)
15499       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15500       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15501       hardcode_direct_GCJ=yes
15502       hardcode_shlibpath_var_GCJ=no
15503       ;;
15504
15505     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15506     freebsd2*)
15507       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15508       hardcode_direct_GCJ=yes
15509       hardcode_minus_L_GCJ=yes
15510       hardcode_shlibpath_var_GCJ=no
15511       ;;
15512
15513     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15514     freebsd*)
15515       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15516       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15517       hardcode_direct_GCJ=yes
15518       hardcode_shlibpath_var_GCJ=no
15519       ;;
15520
15521     hpux9*)
15522       if test "$GCC" = yes; then
15523         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'
15524       else
15525         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'
15526       fi
15527       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15528       hardcode_libdir_separator_GCJ=:
15529       hardcode_direct_GCJ=yes
15530
15531       # hardcode_minus_L: Not really in the search PATH,
15532       # but as the default location of the library.
15533       hardcode_minus_L_GCJ=yes
15534       export_dynamic_flag_spec_GCJ='${wl}-E'
15535       ;;
15536
15537     hpux10* | hpux11*)
15538       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15539         case "$host_cpu" in
15540         hppa*64*|ia64*)
15541           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15542           ;;
15543         *)
15544           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15545           ;;
15546         esac
15547       else
15548         case "$host_cpu" in
15549         hppa*64*|ia64*)
15550           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15551           ;;
15552         *)
15553           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15554           ;;
15555         esac
15556       fi
15557       if test "$with_gnu_ld" = no; then
15558         case "$host_cpu" in
15559         hppa*64*)
15560           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15561           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15562           hardcode_libdir_separator_GCJ=:
15563           hardcode_direct_GCJ=no
15564           hardcode_shlibpath_var_GCJ=no
15565           ;;
15566         ia64*)
15567           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15568           hardcode_direct_GCJ=no
15569           hardcode_shlibpath_var_GCJ=no
15570
15571           # hardcode_minus_L: Not really in the search PATH,
15572           # but as the default location of the library.
15573           hardcode_minus_L_GCJ=yes
15574           ;;
15575         *)
15576           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15577           hardcode_libdir_separator_GCJ=:
15578           hardcode_direct_GCJ=yes
15579           export_dynamic_flag_spec_GCJ='${wl}-E'
15580
15581           # hardcode_minus_L: Not really in the search PATH,
15582           # but as the default location of the library.
15583           hardcode_minus_L_GCJ=yes
15584           ;;
15585         esac
15586       fi
15587       ;;
15588
15589     irix5* | irix6* | nonstopux*)
15590       if test "$GCC" = yes; then
15591         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'
15592       else
15593         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'
15594         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15595       fi
15596       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15597       hardcode_libdir_separator_GCJ=:
15598       link_all_deplibs_GCJ=yes
15599       ;;
15600
15601     netbsd*)
15602       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15603         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15604       else
15605         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15606       fi
15607       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15608       hardcode_direct_GCJ=yes
15609       hardcode_shlibpath_var_GCJ=no
15610       ;;
15611
15612     newsos6)
15613       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614       hardcode_direct_GCJ=yes
15615       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15616       hardcode_libdir_separator_GCJ=:
15617       hardcode_shlibpath_var_GCJ=no
15618       ;;
15619
15620     openbsd*)
15621       hardcode_direct_GCJ=yes
15622       hardcode_shlibpath_var_GCJ=no
15623       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15624         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15625         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15626         export_dynamic_flag_spec_GCJ='${wl}-E'
15627       else
15628        case $host_os in
15629          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15630            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15631            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15632            ;;
15633          *)
15634            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15635            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15636            ;;
15637        esac
15638       fi
15639       ;;
15640
15641     os2*)
15642       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15643       hardcode_minus_L_GCJ=yes
15644       allow_undefined_flag_GCJ=unsupported
15645       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'
15646       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15647       ;;
15648
15649     osf3*)
15650       if test "$GCC" = yes; then
15651         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15652         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'
15653       else
15654         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15655         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'
15656       fi
15657       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15658       hardcode_libdir_separator_GCJ=:
15659       ;;
15660
15661     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15662       if test "$GCC" = yes; then
15663         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15664         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'
15665         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15666       else
15667         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15668         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'
15669         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~
15670         $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'
15671
15672         # Both c and cxx compiler support -rpath directly
15673         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15674       fi
15675       hardcode_libdir_separator_GCJ=:
15676       ;;
15677
15678     sco3.2v5*)
15679       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680       hardcode_shlibpath_var_GCJ=no
15681       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15682       runpath_var=LD_RUN_PATH
15683       hardcode_runpath_var=yes
15684       ;;
15685
15686     solaris*)
15687       no_undefined_flag_GCJ=' -z text'
15688       if test "$GCC" = yes; then
15689         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15690         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15691           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15692       else
15693         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15694         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15695         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15696       fi
15697       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15698       hardcode_shlibpath_var_GCJ=no
15699       case $host_os in
15700       solaris2.[0-5] | solaris2.[0-5].*) ;;
15701       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15702         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15703       esac
15704       link_all_deplibs_GCJ=yes
15705       ;;
15706
15707     sunos4*)
15708       if test "x$host_vendor" = xsequent; then
15709         # Use $CC to link under sequent, because it throws in some extra .o
15710         # files that make .init and .fini sections work.
15711         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15712       else
15713         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15714       fi
15715       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15716       hardcode_direct_GCJ=yes
15717       hardcode_minus_L_GCJ=yes
15718       hardcode_shlibpath_var_GCJ=no
15719       ;;
15720
15721     sysv4)
15722       case $host_vendor in
15723         sni)
15724           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725           hardcode_direct_GCJ=yes # is this really true???
15726         ;;
15727         siemens)
15728           ## LD is ld it makes a PLAMLIB
15729           ## CC just makes a GrossModule.
15730           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15731           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15732           hardcode_direct_GCJ=no
15733         ;;
15734         motorola)
15735           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15736           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15737         ;;
15738       esac
15739       runpath_var='LD_RUN_PATH'
15740       hardcode_shlibpath_var_GCJ=no
15741       ;;
15742
15743     sysv4.3*)
15744       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15745       hardcode_shlibpath_var_GCJ=no
15746       export_dynamic_flag_spec_GCJ='-Bexport'
15747       ;;
15748
15749     sysv4*MP*)
15750       if test -d /usr/nec; then
15751         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752         hardcode_shlibpath_var_GCJ=no
15753         runpath_var=LD_RUN_PATH
15754         hardcode_runpath_var=yes
15755         ld_shlibs_GCJ=yes
15756       fi
15757       ;;
15758
15759     sysv4.2uw2*)
15760       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15761       hardcode_direct_GCJ=yes
15762       hardcode_minus_L_GCJ=no
15763       hardcode_shlibpath_var_GCJ=no
15764       hardcode_runpath_var=yes
15765       runpath_var=LD_RUN_PATH
15766       ;;
15767
15768    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15769       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15770       if test "$GCC" = yes; then
15771         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15772       else
15773         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15774       fi
15775       runpath_var='LD_RUN_PATH'
15776       hardcode_shlibpath_var_GCJ=no
15777       ;;
15778
15779     sysv5*)
15780       no_undefined_flag_GCJ=' -z text'
15781       # $CC -shared without GNU ld will not create a library from C++
15782       # object files and a static libstdc++, better avoid it by now
15783       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15785                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15786       hardcode_libdir_flag_spec_GCJ=
15787       hardcode_shlibpath_var_GCJ=no
15788       runpath_var='LD_RUN_PATH'
15789       ;;
15790
15791     uts4*)
15792       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15793       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15794       hardcode_shlibpath_var_GCJ=no
15795       ;;
15796
15797     *)
15798       ld_shlibs_GCJ=no
15799       ;;
15800     esac
15801   fi
15802
15803 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15804 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15805 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15806
15807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15808 if test "$GCC" = yes; then
15809   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15810 fi
15811
15812 #
15813 # Do we need to explicitly link libc?
15814 #
15815 case "x$archive_cmds_need_lc_GCJ" in
15816 x|xyes)
15817   # Assume -lc should be added
15818   archive_cmds_need_lc_GCJ=yes
15819
15820   if test "$enable_shared" = yes && test "$GCC" = yes; then
15821     case $archive_cmds_GCJ in
15822     *'~'*)
15823       # FIXME: we may have to deal with multi-command sequences.
15824       ;;
15825     '$CC '*)
15826       # Test whether the compiler implicitly links with -lc since on some
15827       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15828       # to ld, don't add -lc before -lgcc.
15829       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15830 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15831       $rm conftest*
15832       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15833
15834       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835   (eval $ac_compile) 2>&5
15836   ac_status=$?
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); } 2>conftest.err; then
15839         soname=conftest
15840         lib=conftest
15841         libobjs=conftest.$ac_objext
15842         deplibs=
15843         wl=$lt_prog_compiler_wl_GCJ
15844         compiler_flags=-v
15845         linker_flags=-v
15846         verstring=
15847         output_objdir=.
15848         libname=conftest
15849         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15850         allow_undefined_flag_GCJ=
15851         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15852   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15853   ac_status=$?
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); }
15856         then
15857           archive_cmds_need_lc_GCJ=no
15858         else
15859           archive_cmds_need_lc_GCJ=yes
15860         fi
15861         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15862       else
15863         cat conftest.err 1>&5
15864       fi
15865       $rm conftest*
15866       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15867 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15868       ;;
15869     esac
15870   fi
15871   ;;
15872 esac
15873
15874 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15876 hardcode_action_GCJ=
15877 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15878    test -n "$runpath_var GCJ" || \
15879    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15880
15881   # We can hardcode non-existant directories.
15882   if test "$hardcode_direct_GCJ" != no &&
15883      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15884      # have to relink, otherwise we might link with an installed library
15885      # when we should be linking with a yet-to-be-installed one
15886      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15887      test "$hardcode_minus_L_GCJ" != no; then
15888     # Linking always hardcodes the temporary library directory.
15889     hardcode_action_GCJ=relink
15890   else
15891     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15892     hardcode_action_GCJ=immediate
15893   fi
15894 else
15895   # We cannot hardcode anything, or else we can only hardcode existing
15896   # directories.
15897   hardcode_action_GCJ=unsupported
15898 fi
15899 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15900 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15901
15902 if test "$hardcode_action_GCJ" = relink; then
15903   # Fast installation is not supported
15904   enable_fast_install=no
15905 elif test "$shlibpath_overrides_runpath" = yes ||
15906      test "$enable_shared" = no; then
15907   # Fast installation is not necessary
15908   enable_fast_install=needless
15909 fi
15910
15911 striplib=
15912 old_striplib=
15913 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15914 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15915 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15916   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15917   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15918   echo "$as_me:$LINENO: result: yes" >&5
15919 echo "${ECHO_T}yes" >&6
15920 else
15921 # FIXME - insert some real tests, host_os isn't really good enough
15922   case $host_os in
15923    darwin*)
15924        if test -n "$STRIP" ; then
15925          striplib="$STRIP -x"
15926          echo "$as_me:$LINENO: result: yes" >&5
15927 echo "${ECHO_T}yes" >&6
15928        else
15929   echo "$as_me:$LINENO: result: no" >&5
15930 echo "${ECHO_T}no" >&6
15931 fi
15932        ;;
15933    *)
15934   echo "$as_me:$LINENO: result: no" >&5
15935 echo "${ECHO_T}no" >&6
15936     ;;
15937   esac
15938 fi
15939
15940 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15941 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15942 library_names_spec=
15943 libname_spec='lib$name'
15944 soname_spec=
15945 shrext=".so"
15946 postinstall_cmds=
15947 postuninstall_cmds=
15948 finish_cmds=
15949 finish_eval=
15950 shlibpath_var=
15951 shlibpath_overrides_runpath=unknown
15952 version_type=none
15953 dynamic_linker="$host_os ld.so"
15954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15955 if test "$GCC" = yes; then
15956   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15957   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15958     # if the path contains ";" then we assume it to be the separator
15959     # otherwise default to the standard path separator (i.e. ":") - it is
15960     # assumed that no part of a normal pathname contains ";" but that should
15961     # okay in the real world where ";" in dirpaths is itself problematic.
15962     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15963   else
15964     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15965   fi
15966 else
15967   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15968 fi
15969 need_lib_prefix=unknown
15970 hardcode_into_libs=no
15971
15972 # when you set need_version to no, make sure it does not cause -set_version
15973 # flags to be left without arguments
15974 need_version=unknown
15975
15976 case $host_os in
15977 aix3*)
15978   version_type=linux
15979   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15980   shlibpath_var=LIBPATH
15981
15982   # AIX 3 has no versioning support, so we append a major version to the name.
15983   soname_spec='${libname}${release}${shared_ext}$major'
15984   ;;
15985
15986 aix4* | aix5*)
15987   version_type=linux
15988   need_lib_prefix=no
15989   need_version=no
15990   hardcode_into_libs=yes
15991   if test "$host_cpu" = ia64; then
15992     # AIX 5 supports IA64
15993     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15994     shlibpath_var=LD_LIBRARY_PATH
15995   else
15996     # With GCC up to 2.95.x, collect2 would create an import file
15997     # for dependence libraries.  The import file would start with
15998     # the line `#! .'.  This would cause the generated library to
15999     # depend on `.', always an invalid library.  This was fixed in
16000     # development snapshots of GCC prior to 3.0.
16001     case $host_os in
16002       aix4 | aix4.[01] | aix4.[01].*)
16003       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16004            echo ' yes '
16005            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16006         :
16007       else
16008         can_build_shared=no
16009       fi
16010       ;;
16011     esac
16012     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16013     # soname into executable. Probably we can add versioning support to
16014     # collect2, so additional links can be useful in future.
16015     if test "$aix_use_runtimelinking" = yes; then
16016       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16017       # instead of lib<name>.a to let people know that these are not
16018       # typical AIX shared libraries.
16019       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020     else
16021       # We preserve .a as extension for shared libraries through AIX4.2
16022       # and later when we are not doing run time linking.
16023       library_names_spec='${libname}${release}.a $libname.a'
16024       soname_spec='${libname}${release}${shared_ext}$major'
16025     fi
16026     shlibpath_var=LIBPATH
16027   fi
16028   ;;
16029
16030 amigaos*)
16031   library_names_spec='$libname.ixlibrary $libname.a'
16032   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16033   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'
16034   ;;
16035
16036 beos*)
16037   library_names_spec='${libname}${shared_ext}'
16038   dynamic_linker="$host_os ld.so"
16039   shlibpath_var=LIBRARY_PATH
16040   ;;
16041
16042 bsdi4*)
16043   version_type=linux
16044   need_version=no
16045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046   soname_spec='${libname}${release}${shared_ext}$major'
16047   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16048   shlibpath_var=LD_LIBRARY_PATH
16049   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16050   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16051   # the default ld.so.conf also contains /usr/contrib/lib and
16052   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16053   # libtool to hard-code these into programs
16054   ;;
16055
16056 cygwin* | mingw* | pw32*)
16057   version_type=windows
16058   shrext=".dll"
16059   need_version=no
16060   need_lib_prefix=no
16061
16062   case $GCC,$host_os in
16063   yes,cygwin* | yes,mingw* | yes,pw32*)
16064     library_names_spec='$libname.dll.a'
16065     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16066     postinstall_cmds='base_file=`basename \${file}`~
16067       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16068       dldir=$destdir/`dirname \$dlpath`~
16069       test -d \$dldir || mkdir -p \$dldir~
16070       $install_prog $dir/$dlname \$dldir/$dlname'
16071     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16072       dlpath=$dir/\$dldll~
16073        $rm \$dlpath'
16074     shlibpath_overrides_runpath=yes
16075
16076     case $host_os in
16077     cygwin*)
16078       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16079       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16080       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16081       ;;
16082     mingw*)
16083       # MinGW DLLs use traditional 'lib' prefix
16084       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16086       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16087         # It is most probably a Windows format PATH printed by
16088         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16089         # path with ; separators, and with drive letters. We can handle the
16090         # drive letters (cygwin fileutils understands them), so leave them,
16091         # especially as we might pass files found there to a mingw objdump,
16092         # which wouldn't understand a cygwinified path. Ahh.
16093         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16094       else
16095         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16096       fi
16097       ;;
16098     pw32*)
16099       # pw32 DLLs use 'pw' prefix rather than 'lib'
16100       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16101       ;;
16102     esac
16103     ;;
16104
16105   *)
16106     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16107     ;;
16108   esac
16109   dynamic_linker='Win32 ld.exe'
16110   # FIXME: first we should search . and the directory the executable is in
16111   shlibpath_var=PATH
16112   ;;
16113
16114 darwin* | rhapsody*)
16115   dynamic_linker="$host_os dyld"
16116   version_type=darwin
16117   need_lib_prefix=no
16118   need_version=no
16119   # FIXME: Relying on posixy $() will cause problems for
16120   #        cross-compilation, but unfortunately the echo tests do not
16121   #        yet detect zsh echo's removal of \ escapes.
16122   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16123   soname_spec='${libname}${release}${major}$shared_ext'
16124   shlibpath_overrides_runpath=yes
16125   shlibpath_var=DYLD_LIBRARY_PATH
16126   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16127   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16128   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16129   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"`
16130   fi
16131   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16132   ;;
16133
16134 dgux*)
16135   version_type=linux
16136   need_lib_prefix=no
16137   need_version=no
16138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16139   soname_spec='${libname}${release}${shared_ext}$major'
16140   shlibpath_var=LD_LIBRARY_PATH
16141   ;;
16142
16143 freebsd1*)
16144   dynamic_linker=no
16145   ;;
16146
16147 freebsd*)
16148   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16149   version_type=freebsd-$objformat
16150   case $version_type in
16151     freebsd-elf*)
16152       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16153       need_version=no
16154       need_lib_prefix=no
16155       ;;
16156     freebsd-*)
16157       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16158       need_version=yes
16159       ;;
16160   esac
16161   shlibpath_var=LD_LIBRARY_PATH
16162   case $host_os in
16163   freebsd2*)
16164     shlibpath_overrides_runpath=yes
16165     ;;
16166   freebsd3.01* | freebsdelf3.01*)
16167     shlibpath_overrides_runpath=yes
16168     hardcode_into_libs=yes
16169     ;;
16170   *) # from 3.2 on
16171     shlibpath_overrides_runpath=no
16172     hardcode_into_libs=yes
16173     ;;
16174   esac
16175   ;;
16176
16177 gnu*)
16178   version_type=linux
16179   need_lib_prefix=no
16180   need_version=no
16181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16182   soname_spec='${libname}${release}${shared_ext}$major'
16183   shlibpath_var=LD_LIBRARY_PATH
16184   hardcode_into_libs=yes
16185   ;;
16186
16187 hpux9* | hpux10* | hpux11*)
16188   # Give a soname corresponding to the major version so that dld.sl refuses to
16189   # link against other versions.
16190   version_type=sunos
16191   need_lib_prefix=no
16192   need_version=no
16193   case "$host_cpu" in
16194   ia64*)
16195     shrext='.so'
16196     hardcode_into_libs=yes
16197     dynamic_linker="$host_os dld.so"
16198     shlibpath_var=LD_LIBRARY_PATH
16199     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16201     soname_spec='${libname}${release}${shared_ext}$major'
16202     if test "X$HPUX_IA64_MODE" = X32; then
16203       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16204     else
16205       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16206     fi
16207     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16208     ;;
16209    hppa*64*)
16210      shrext='.sl'
16211      hardcode_into_libs=yes
16212      dynamic_linker="$host_os dld.sl"
16213      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16214      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16215      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216      soname_spec='${libname}${release}${shared_ext}$major'
16217      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16218      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16219      ;;
16220    *)
16221     shrext='.sl'
16222     dynamic_linker="$host_os dld.sl"
16223     shlibpath_var=SHLIB_PATH
16224     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226     soname_spec='${libname}${release}${shared_ext}$major'
16227     ;;
16228   esac
16229   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16230   postinstall_cmds='chmod 555 $lib'
16231   ;;
16232
16233 irix5* | irix6* | nonstopux*)
16234   case $host_os in
16235     nonstopux*) version_type=nonstopux ;;
16236     *)
16237         if test "$lt_cv_prog_gnu_ld" = yes; then
16238                 version_type=linux
16239         else
16240                 version_type=irix
16241         fi ;;
16242   esac
16243   need_lib_prefix=no
16244   need_version=no
16245   soname_spec='${libname}${release}${shared_ext}$major'
16246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16247   case $host_os in
16248   irix5* | nonstopux*)
16249     libsuff= shlibsuff=
16250     ;;
16251   *)
16252     case $LD in # libtool.m4 will add one of these switches to LD
16253     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16254       libsuff= shlibsuff= libmagic=32-bit;;
16255     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16256       libsuff=32 shlibsuff=N32 libmagic=N32;;
16257     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16258       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16259     *) libsuff= shlibsuff= libmagic=never-match;;
16260     esac
16261     ;;
16262   esac
16263   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16264   shlibpath_overrides_runpath=no
16265   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16266   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16267   hardcode_into_libs=yes
16268   ;;
16269
16270 # No shared lib support for Linux oldld, aout, or coff.
16271 linux*oldld* | linux*aout* | linux*coff*)
16272   dynamic_linker=no
16273   ;;
16274
16275 # This must be Linux ELF.
16276 linux*)
16277   version_type=linux
16278   need_lib_prefix=no
16279   need_version=no
16280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281   soname_spec='${libname}${release}${shared_ext}$major'
16282   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16283   shlibpath_var=LD_LIBRARY_PATH
16284   shlibpath_overrides_runpath=no
16285   # This implies no fast_install, which is unacceptable.
16286   # Some rework will be needed to allow for fast_install
16287   # before this can be enabled.
16288   hardcode_into_libs=yes
16289
16290   # We used to test for /lib/ld.so.1 and disable shared libraries on
16291   # powerpc, because MkLinux only supported shared libraries with the
16292   # GNU dynamic linker.  Since this was broken with cross compilers,
16293   # most powerpc-linux boxes support dynamic linking these days and
16294   # people can always --disable-shared, the test was removed, and we
16295   # assume the GNU/Linux dynamic linker is in use.
16296   dynamic_linker='GNU/Linux ld.so'
16297   ;;
16298
16299 netbsd*)
16300   version_type=sunos
16301   need_lib_prefix=no
16302   need_version=no
16303   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16305     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16306     dynamic_linker='NetBSD (a.out) ld.so'
16307   else
16308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16309     soname_spec='${libname}${release}${shared_ext}$major'
16310     dynamic_linker='NetBSD ld.elf_so'
16311   fi
16312   shlibpath_var=LD_LIBRARY_PATH
16313   shlibpath_overrides_runpath=yes
16314   hardcode_into_libs=yes
16315   ;;
16316
16317 newsos6)
16318   version_type=linux
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320   shlibpath_var=LD_LIBRARY_PATH
16321   shlibpath_overrides_runpath=yes
16322   ;;
16323
16324 nto-qnx)
16325   version_type=linux
16326   need_lib_prefix=no
16327   need_version=no
16328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16329   soname_spec='${libname}${release}${shared_ext}$major'
16330   shlibpath_var=LD_LIBRARY_PATH
16331   shlibpath_overrides_runpath=yes
16332   ;;
16333
16334 openbsd*)
16335   version_type=sunos
16336   need_lib_prefix=no
16337   need_version=no
16338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16339   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16340   shlibpath_var=LD_LIBRARY_PATH
16341   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16342     case $host_os in
16343       openbsd2.[89] | openbsd2.[89].*)
16344         shlibpath_overrides_runpath=no
16345         ;;
16346       *)
16347         shlibpath_overrides_runpath=yes
16348         ;;
16349       esac
16350   else
16351     shlibpath_overrides_runpath=yes
16352   fi
16353   ;;
16354
16355 os2*)
16356   libname_spec='$name'
16357   shrext=".dll"
16358   need_lib_prefix=no
16359   library_names_spec='$libname${shared_ext} $libname.a'
16360   dynamic_linker='OS/2 ld.exe'
16361   shlibpath_var=LIBPATH
16362   ;;
16363
16364 osf3* | osf4* | osf5*)
16365   version_type=osf
16366   need_lib_prefix=no
16367   need_version=no
16368   soname_spec='${libname}${release}${shared_ext}$major'
16369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370   shlibpath_var=LD_LIBRARY_PATH
16371   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16372   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16373   ;;
16374
16375 sco3.2v5*)
16376   version_type=osf
16377   soname_spec='${libname}${release}${shared_ext}$major'
16378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379   shlibpath_var=LD_LIBRARY_PATH
16380   ;;
16381
16382 solaris*)
16383   version_type=linux
16384   need_lib_prefix=no
16385   need_version=no
16386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387   soname_spec='${libname}${release}${shared_ext}$major'
16388   shlibpath_var=LD_LIBRARY_PATH
16389   shlibpath_overrides_runpath=yes
16390   hardcode_into_libs=yes
16391   # ldd complains unless libraries are executable
16392   postinstall_cmds='chmod +x $lib'
16393   ;;
16394
16395 sunos4*)
16396   version_type=sunos
16397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16398   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16399   shlibpath_var=LD_LIBRARY_PATH
16400   shlibpath_overrides_runpath=yes
16401   if test "$with_gnu_ld" = yes; then
16402     need_lib_prefix=no
16403   fi
16404   need_version=yes
16405   ;;
16406
16407 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16408   version_type=linux
16409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410   soname_spec='${libname}${release}${shared_ext}$major'
16411   shlibpath_var=LD_LIBRARY_PATH
16412   case $host_vendor in
16413     sni)
16414       shlibpath_overrides_runpath=no
16415       need_lib_prefix=no
16416       export_dynamic_flag_spec='${wl}-Blargedynsym'
16417       runpath_var=LD_RUN_PATH
16418       ;;
16419     siemens)
16420       need_lib_prefix=no
16421       ;;
16422     motorola)
16423       need_lib_prefix=no
16424       need_version=no
16425       shlibpath_overrides_runpath=no
16426       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16427       ;;
16428   esac
16429   ;;
16430
16431 sysv4*MP*)
16432   if test -d /usr/nec ;then
16433     version_type=linux
16434     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16435     soname_spec='$libname${shared_ext}.$major'
16436     shlibpath_var=LD_LIBRARY_PATH
16437   fi
16438   ;;
16439
16440 uts4*)
16441   version_type=linux
16442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443   soname_spec='${libname}${release}${shared_ext}$major'
16444   shlibpath_var=LD_LIBRARY_PATH
16445   ;;
16446
16447 *)
16448   dynamic_linker=no
16449   ;;
16450 esac
16451 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16452 echo "${ECHO_T}$dynamic_linker" >&6
16453 test "$dynamic_linker" = no && can_build_shared=no
16454
16455 if test "x$enable_dlopen" != xyes; then
16456   enable_dlopen=unknown
16457   enable_dlopen_self=unknown
16458   enable_dlopen_self_static=unknown
16459 else
16460   lt_cv_dlopen=no
16461   lt_cv_dlopen_libs=
16462
16463   case $host_os in
16464   beos*)
16465     lt_cv_dlopen="load_add_on"
16466     lt_cv_dlopen_libs=
16467     lt_cv_dlopen_self=yes
16468     ;;
16469
16470   mingw* | pw32*)
16471     lt_cv_dlopen="LoadLibrary"
16472     lt_cv_dlopen_libs=
16473    ;;
16474
16475   cygwin*)
16476     lt_cv_dlopen="dlopen"
16477     lt_cv_dlopen_libs=
16478    ;;
16479
16480   darwin*)
16481   # if libdl is installed we need to link against it
16482     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16485   echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487   ac_check_lib_save_LIBS=$LIBS
16488 LIBS="-ldl  $LIBS"
16489 cat >conftest.$ac_ext <<_ACEOF
16490 #line $LINENO "configure"
16491 /* confdefs.h.  */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h.  */
16496
16497 /* Override any gcc2 internal prototype to avoid an error.  */
16498 #ifdef __cplusplus
16499 extern "C"
16500 #endif
16501 /* We use char because int might match the return type of a gcc2
16502    builtin and then its argument prototype would still apply.  */
16503 char dlopen ();
16504 int
16505 main ()
16506 {
16507 dlopen ();
16508   ;
16509   return 0;
16510 }
16511 _ACEOF
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16514   (eval $ac_link) 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } &&
16518          { ac_try='test -s conftest$ac_exeext'
16519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520   (eval $ac_try) 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; }; then
16524   ac_cv_lib_dl_dlopen=yes
16525 else
16526   echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16528
16529 ac_cv_lib_dl_dlopen=no
16530 fi
16531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16532 LIBS=$ac_check_lib_save_LIBS
16533 fi
16534 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16535 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16536 if test $ac_cv_lib_dl_dlopen = yes; then
16537   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16538 else
16539
16540     lt_cv_dlopen="dyld"
16541     lt_cv_dlopen_libs=
16542     lt_cv_dlopen_self=yes
16543
16544 fi
16545
16546    ;;
16547
16548   *)
16549     echo "$as_me:$LINENO: checking for shl_load" >&5
16550 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16551 if test "${ac_cv_func_shl_load+set}" = set; then
16552   echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554   cat >conftest.$ac_ext <<_ACEOF
16555 #line $LINENO "configure"
16556 /* confdefs.h.  */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h.  */
16561 /* System header to define __stub macros and hopefully few prototypes,
16562     which can conflict with char shl_load (); below.
16563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16564     <limits.h> exists even on freestanding compilers.  */
16565 #ifdef __STDC__
16566 # include <limits.h>
16567 #else
16568 # include <assert.h>
16569 #endif
16570 /* Override any gcc2 internal prototype to avoid an error.  */
16571 #ifdef __cplusplus
16572 extern "C"
16573 {
16574 #endif
16575 /* We use char because int might match the return type of a gcc2
16576    builtin and then its argument prototype would still apply.  */
16577 char shl_load ();
16578 /* The GNU C library defines this for functions which it implements
16579     to always fail with ENOSYS.  Some functions are actually named
16580     something starting with __ and the normal name is an alias.  */
16581 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16582 choke me
16583 #else
16584 char (*f) () = shl_load;
16585 #endif
16586 #ifdef __cplusplus
16587 }
16588 #endif
16589
16590 int
16591 main ()
16592 {
16593 return f != shl_load;
16594   ;
16595   return 0;
16596 }
16597 _ACEOF
16598 rm -f conftest.$ac_objext conftest$ac_exeext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600   (eval $ac_link) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); } &&
16604          { ac_try='test -s conftest$ac_exeext'
16605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606   (eval $ac_try) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   ac_cv_func_shl_load=yes
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 ac_cv_func_shl_load=no
16616 fi
16617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16618 fi
16619 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16620 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16621 if test $ac_cv_func_shl_load = yes; then
16622   lt_cv_dlopen="shl_load"
16623 else
16624   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16625 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16626 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16627   echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629   ac_check_lib_save_LIBS=$LIBS
16630 LIBS="-ldld  $LIBS"
16631 cat >conftest.$ac_ext <<_ACEOF
16632 #line $LINENO "configure"
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638
16639 /* Override any gcc2 internal prototype to avoid an error.  */
16640 #ifdef __cplusplus
16641 extern "C"
16642 #endif
16643 /* We use char because int might match the return type of a gcc2
16644    builtin and then its argument prototype would still apply.  */
16645 char shl_load ();
16646 int
16647 main ()
16648 {
16649 shl_load ();
16650   ;
16651   return 0;
16652 }
16653 _ACEOF
16654 rm -f conftest.$ac_objext conftest$ac_exeext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16656   (eval $ac_link) 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); } &&
16660          { ac_try='test -s conftest$ac_exeext'
16661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662   (eval $ac_try) 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); }; }; then
16666   ac_cv_lib_dld_shl_load=yes
16667 else
16668   echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16670
16671 ac_cv_lib_dld_shl_load=no
16672 fi
16673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16674 LIBS=$ac_check_lib_save_LIBS
16675 fi
16676 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16677 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16678 if test $ac_cv_lib_dld_shl_load = yes; then
16679   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16680 else
16681   echo "$as_me:$LINENO: checking for dlopen" >&5
16682 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16683 if test "${ac_cv_func_dlopen+set}" = set; then
16684   echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686   cat >conftest.$ac_ext <<_ACEOF
16687 #line $LINENO "configure"
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693 /* System header to define __stub macros and hopefully few prototypes,
16694     which can conflict with char dlopen (); below.
16695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16696     <limits.h> exists even on freestanding compilers.  */
16697 #ifdef __STDC__
16698 # include <limits.h>
16699 #else
16700 # include <assert.h>
16701 #endif
16702 /* Override any gcc2 internal prototype to avoid an error.  */
16703 #ifdef __cplusplus
16704 extern "C"
16705 {
16706 #endif
16707 /* We use char because int might match the return type of a gcc2
16708    builtin and then its argument prototype would still apply.  */
16709 char dlopen ();
16710 /* The GNU C library defines this for functions which it implements
16711     to always fail with ENOSYS.  Some functions are actually named
16712     something starting with __ and the normal name is an alias.  */
16713 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16714 choke me
16715 #else
16716 char (*f) () = dlopen;
16717 #endif
16718 #ifdef __cplusplus
16719 }
16720 #endif
16721
16722 int
16723 main ()
16724 {
16725 return f != dlopen;
16726   ;
16727   return 0;
16728 }
16729 _ACEOF
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16732   (eval $ac_link) 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } &&
16736          { ac_try='test -s conftest$ac_exeext'
16737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738   (eval $ac_try) 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); }; }; then
16742   ac_cv_func_dlopen=yes
16743 else
16744   echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747 ac_cv_func_dlopen=no
16748 fi
16749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16750 fi
16751 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16752 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16753 if test $ac_cv_func_dlopen = yes; then
16754   lt_cv_dlopen="dlopen"
16755 else
16756   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16757 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16758 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16759   echo $ECHO_N "(cached) $ECHO_C" >&6
16760 else
16761   ac_check_lib_save_LIBS=$LIBS
16762 LIBS="-ldl  $LIBS"
16763 cat >conftest.$ac_ext <<_ACEOF
16764 #line $LINENO "configure"
16765 /* confdefs.h.  */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h.  */
16770
16771 /* Override any gcc2 internal prototype to avoid an error.  */
16772 #ifdef __cplusplus
16773 extern "C"
16774 #endif
16775 /* We use char because int might match the return type of a gcc2
16776    builtin and then its argument prototype would still apply.  */
16777 char dlopen ();
16778 int
16779 main ()
16780 {
16781 dlopen ();
16782   ;
16783   return 0;
16784 }
16785 _ACEOF
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16788   (eval $ac_link) 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); } &&
16792          { ac_try='test -s conftest$ac_exeext'
16793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794   (eval $ac_try) 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); }; }; then
16798   ac_cv_lib_dl_dlopen=yes
16799 else
16800   echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ac_cv_lib_dl_dlopen=no
16804 fi
16805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16806 LIBS=$ac_check_lib_save_LIBS
16807 fi
16808 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16809 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16810 if test $ac_cv_lib_dl_dlopen = yes; then
16811   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16812 else
16813   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16814 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16815 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16816   echo $ECHO_N "(cached) $ECHO_C" >&6
16817 else
16818   ac_check_lib_save_LIBS=$LIBS
16819 LIBS="-lsvld  $LIBS"
16820 cat >conftest.$ac_ext <<_ACEOF
16821 #line $LINENO "configure"
16822 /* confdefs.h.  */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h.  */
16827
16828 /* Override any gcc2 internal prototype to avoid an error.  */
16829 #ifdef __cplusplus
16830 extern "C"
16831 #endif
16832 /* We use char because int might match the return type of a gcc2
16833    builtin and then its argument prototype would still apply.  */
16834 char dlopen ();
16835 int
16836 main ()
16837 {
16838 dlopen ();
16839   ;
16840   return 0;
16841 }
16842 _ACEOF
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845   (eval $ac_link) 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); } &&
16849          { ac_try='test -s conftest$ac_exeext'
16850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851   (eval $ac_try) 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); }; }; then
16855   ac_cv_lib_svld_dlopen=yes
16856 else
16857   echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 ac_cv_lib_svld_dlopen=no
16861 fi
16862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16863 LIBS=$ac_check_lib_save_LIBS
16864 fi
16865 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16866 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16867 if test $ac_cv_lib_svld_dlopen = yes; then
16868   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16869 else
16870   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16871 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16872 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16873   echo $ECHO_N "(cached) $ECHO_C" >&6
16874 else
16875   ac_check_lib_save_LIBS=$LIBS
16876 LIBS="-ldld  $LIBS"
16877 cat >conftest.$ac_ext <<_ACEOF
16878 #line $LINENO "configure"
16879 /* confdefs.h.  */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h.  */
16884
16885 /* Override any gcc2 internal prototype to avoid an error.  */
16886 #ifdef __cplusplus
16887 extern "C"
16888 #endif
16889 /* We use char because int might match the return type of a gcc2
16890    builtin and then its argument prototype would still apply.  */
16891 char dld_link ();
16892 int
16893 main ()
16894 {
16895 dld_link ();
16896   ;
16897   return 0;
16898 }
16899 _ACEOF
16900 rm -f conftest.$ac_objext conftest$ac_exeext
16901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16902   (eval $ac_link) 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } &&
16906          { ac_try='test -s conftest$ac_exeext'
16907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908   (eval $ac_try) 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); }; }; then
16912   ac_cv_lib_dld_dld_link=yes
16913 else
16914   echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16916
16917 ac_cv_lib_dld_dld_link=no
16918 fi
16919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16921 fi
16922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16923 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16924 if test $ac_cv_lib_dld_dld_link = yes; then
16925   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16926 fi
16927
16928
16929 fi
16930
16931
16932 fi
16933
16934
16935 fi
16936
16937
16938 fi
16939
16940
16941 fi
16942
16943     ;;
16944   esac
16945
16946   if test "x$lt_cv_dlopen" != xno; then
16947     enable_dlopen=yes
16948   else
16949     enable_dlopen=no
16950   fi
16951
16952   case $lt_cv_dlopen in
16953   dlopen)
16954     save_CPPFLAGS="$CPPFLAGS"
16955     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16956
16957     save_LDFLAGS="$LDFLAGS"
16958     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16959
16960     save_LIBS="$LIBS"
16961     LIBS="$lt_cv_dlopen_libs $LIBS"
16962
16963     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16964 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16965 if test "${lt_cv_dlopen_self+set}" = set; then
16966   echo $ECHO_N "(cached) $ECHO_C" >&6
16967 else
16968           if test "$cross_compiling" = yes; then :
16969   lt_cv_dlopen_self=cross
16970 else
16971   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16972   lt_status=$lt_dlunknown
16973   cat > conftest.$ac_ext <<EOF
16974 #line 16974 "configure"
16975 #include "confdefs.h"
16976
16977 #if HAVE_DLFCN_H
16978 #include <dlfcn.h>
16979 #endif
16980
16981 #include <stdio.h>
16982
16983 #ifdef RTLD_GLOBAL
16984 #  define LT_DLGLOBAL           RTLD_GLOBAL
16985 #else
16986 #  ifdef DL_GLOBAL
16987 #    define LT_DLGLOBAL         DL_GLOBAL
16988 #  else
16989 #    define LT_DLGLOBAL         0
16990 #  endif
16991 #endif
16992
16993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16994    find out it does not work in some platform. */
16995 #ifndef LT_DLLAZY_OR_NOW
16996 #  ifdef RTLD_LAZY
16997 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16998 #  else
16999 #    ifdef DL_LAZY
17000 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17001 #    else
17002 #      ifdef RTLD_NOW
17003 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17004 #      else
17005 #        ifdef DL_NOW
17006 #          define LT_DLLAZY_OR_NOW      DL_NOW
17007 #        else
17008 #          define LT_DLLAZY_OR_NOW      0
17009 #        endif
17010 #      endif
17011 #    endif
17012 #  endif
17013 #endif
17014
17015 #ifdef __cplusplus
17016 extern "C" void exit (int);
17017 #endif
17018
17019 void fnord() { int i=42;}
17020 int main ()
17021 {
17022   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17023   int status = $lt_dlunknown;
17024
17025   if (self)
17026     {
17027       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17028       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17029       /* dlclose (self); */
17030     }
17031
17032     exit (status);
17033 }
17034 EOF
17035   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17036   (eval $ac_link) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17040     (./conftest; exit; ) 2>/dev/null
17041     lt_status=$?
17042     case x$lt_status in
17043       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17044       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17045       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17046     esac
17047   else :
17048     # compilation failed
17049     lt_cv_dlopen_self=no
17050   fi
17051 fi
17052 rm -fr conftest*
17053
17054
17055 fi
17056 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17057 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17058
17059     if test "x$lt_cv_dlopen_self" = xyes; then
17060       LDFLAGS="$LDFLAGS $link_static_flag"
17061       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17062 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17063 if test "${lt_cv_dlopen_self_static+set}" = set; then
17064   echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066           if test "$cross_compiling" = yes; then :
17067   lt_cv_dlopen_self_static=cross
17068 else
17069   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17070   lt_status=$lt_dlunknown
17071   cat > conftest.$ac_ext <<EOF
17072 #line 17072 "configure"
17073 #include "confdefs.h"
17074
17075 #if HAVE_DLFCN_H
17076 #include <dlfcn.h>
17077 #endif
17078
17079 #include <stdio.h>
17080
17081 #ifdef RTLD_GLOBAL
17082 #  define LT_DLGLOBAL           RTLD_GLOBAL
17083 #else
17084 #  ifdef DL_GLOBAL
17085 #    define LT_DLGLOBAL         DL_GLOBAL
17086 #  else
17087 #    define LT_DLGLOBAL         0
17088 #  endif
17089 #endif
17090
17091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17092    find out it does not work in some platform. */
17093 #ifndef LT_DLLAZY_OR_NOW
17094 #  ifdef RTLD_LAZY
17095 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17096 #  else
17097 #    ifdef DL_LAZY
17098 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17099 #    else
17100 #      ifdef RTLD_NOW
17101 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17102 #      else
17103 #        ifdef DL_NOW
17104 #          define LT_DLLAZY_OR_NOW      DL_NOW
17105 #        else
17106 #          define LT_DLLAZY_OR_NOW      0
17107 #        endif
17108 #      endif
17109 #    endif
17110 #  endif
17111 #endif
17112
17113 #ifdef __cplusplus
17114 extern "C" void exit (int);
17115 #endif
17116
17117 void fnord() { int i=42;}
17118 int main ()
17119 {
17120   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17121   int status = $lt_dlunknown;
17122
17123   if (self)
17124     {
17125       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17126       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17127       /* dlclose (self); */
17128     }
17129
17130     exit (status);
17131 }
17132 EOF
17133   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134   (eval $ac_link) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17138     (./conftest; exit; ) 2>/dev/null
17139     lt_status=$?
17140     case x$lt_status in
17141       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17142       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17143       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17144     esac
17145   else :
17146     # compilation failed
17147     lt_cv_dlopen_self_static=no
17148   fi
17149 fi
17150 rm -fr conftest*
17151
17152
17153 fi
17154 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17155 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17156     fi
17157
17158     CPPFLAGS="$save_CPPFLAGS"
17159     LDFLAGS="$save_LDFLAGS"
17160     LIBS="$save_LIBS"
17161     ;;
17162   esac
17163
17164   case $lt_cv_dlopen_self in
17165   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17166   *) enable_dlopen_self=unknown ;;
17167   esac
17168
17169   case $lt_cv_dlopen_self_static in
17170   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17171   *) enable_dlopen_self_static=unknown ;;
17172   esac
17173 fi
17174
17175
17176 # The else clause should only fire when bootstrapping the
17177 # libtool distribution, otherwise you forgot to ship ltmain.sh
17178 # with your package, and you will get complaints that there are
17179 # no rules to generate ltmain.sh.
17180 if test -f "$ltmain"; then
17181   # See if we are running on zsh, and set the options which allow our commands through
17182   # without removal of \ escapes.
17183   if test -n "${ZSH_VERSION+set}" ; then
17184     setopt NO_GLOB_SUBST
17185   fi
17186   # Now quote all the things that may contain metacharacters while being
17187   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17188   # variables and quote the copies for generation of the libtool script.
17189   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17190     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17191     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17192     deplibs_check_method reload_flag reload_cmds need_locks \
17193     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17194     lt_cv_sys_global_symbol_to_c_name_address \
17195     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17196     old_postinstall_cmds old_postuninstall_cmds \
17197     compiler_GCJ \
17198     CC_GCJ \
17199     LD_GCJ \
17200     lt_prog_compiler_wl_GCJ \
17201     lt_prog_compiler_pic_GCJ \
17202     lt_prog_compiler_static_GCJ \
17203     lt_prog_compiler_no_builtin_flag_GCJ \
17204     export_dynamic_flag_spec_GCJ \
17205     thread_safe_flag_spec_GCJ \
17206     whole_archive_flag_spec_GCJ \
17207     enable_shared_with_static_runtimes_GCJ \
17208     old_archive_cmds_GCJ \
17209     old_archive_from_new_cmds_GCJ \
17210     predep_objects_GCJ \
17211     postdep_objects_GCJ \
17212     predeps_GCJ \
17213     postdeps_GCJ \
17214     compiler_lib_search_path_GCJ \
17215     archive_cmds_GCJ \
17216     archive_expsym_cmds_GCJ \
17217     postinstall_cmds_GCJ \
17218     postuninstall_cmds_GCJ \
17219     old_archive_from_expsyms_cmds_GCJ \
17220     allow_undefined_flag_GCJ \
17221     no_undefined_flag_GCJ \
17222     export_symbols_cmds_GCJ \
17223     hardcode_libdir_flag_spec_GCJ \
17224     hardcode_libdir_flag_spec_ld_GCJ \
17225     hardcode_libdir_separator_GCJ \
17226     hardcode_automatic_GCJ \
17227     module_cmds_GCJ \
17228     module_expsym_cmds_GCJ \
17229     lt_cv_prog_compiler_c_o_GCJ \
17230     exclude_expsyms_GCJ \
17231     include_expsyms_GCJ; do
17232
17233     case $var in
17234     old_archive_cmds_GCJ | \
17235     old_archive_from_new_cmds_GCJ | \
17236     archive_cmds_GCJ | \
17237     archive_expsym_cmds_GCJ | \
17238     module_cmds_GCJ | \
17239     module_expsym_cmds_GCJ | \
17240     old_archive_from_expsyms_cmds_GCJ | \
17241     export_symbols_cmds_GCJ | \
17242     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17243     postinstall_cmds | postuninstall_cmds | \
17244     old_postinstall_cmds | old_postuninstall_cmds | \
17245     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17246       # Double-quote double-evaled strings.
17247       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17248       ;;
17249     *)
17250       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17251       ;;
17252     esac
17253   done
17254
17255   case $lt_echo in
17256   *'\$0 --fallback-echo"')
17257     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17258     ;;
17259   esac
17260
17261 cfgfile="$ofile"
17262
17263   cat <<__EOF__ >> "$cfgfile"
17264 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17265
17266 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17267
17268 # Shell to use when invoking shell scripts.
17269 SHELL=$lt_SHELL
17270
17271 # Whether or not to build shared libraries.
17272 build_libtool_libs=$enable_shared
17273
17274 # Whether or not to build static libraries.
17275 build_old_libs=$enable_static
17276
17277 # Whether or not to add -lc for building shared libraries.
17278 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17279
17280 # Whether or not to disallow shared libs when runtime libs are static
17281 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17282
17283 # Whether or not to optimize for fast installation.
17284 fast_install=$enable_fast_install
17285
17286 # The host system.
17287 host_alias=$host_alias
17288 host=$host
17289
17290 # An echo program that does not interpret backslashes.
17291 echo=$lt_echo
17292
17293 # The archiver.
17294 AR=$lt_AR
17295 AR_FLAGS=$lt_AR_FLAGS
17296
17297 # A C compiler.
17298 LTCC=$lt_LTCC
17299
17300 # A language-specific compiler.
17301 CC=$lt_compiler_GCJ
17302
17303 # Is the compiler the GNU C compiler?
17304 with_gcc=$GCC_GCJ
17305
17306 # An ERE matcher.
17307 EGREP=$lt_EGREP
17308
17309 # The linker used to build libraries.
17310 LD=$lt_LD_GCJ
17311
17312 # Whether we need hard or soft links.
17313 LN_S=$lt_LN_S
17314
17315 # A BSD-compatible nm program.
17316 NM=$lt_NM
17317
17318 # A symbol stripping program
17319 STRIP=$STRIP
17320
17321 # Used to examine libraries when file_magic_cmd begins "file"
17322 MAGIC_CMD=$MAGIC_CMD
17323
17324 # Used on cygwin: DLL creation program.
17325 DLLTOOL="$DLLTOOL"
17326
17327 # Used on cygwin: object dumper.
17328 OBJDUMP="$OBJDUMP"
17329
17330 # Used on cygwin: assembler.
17331 AS="$AS"
17332
17333 # The name of the directory that contains temporary libtool files.
17334 objdir=$objdir
17335
17336 # How to create reloadable object files.
17337 reload_flag=$lt_reload_flag
17338 reload_cmds=$lt_reload_cmds
17339
17340 # How to pass a linker flag through the compiler.
17341 wl=$lt_lt_prog_compiler_wl_GCJ
17342
17343 # Object file suffix (normally "o").
17344 objext="$ac_objext"
17345
17346 # Old archive suffix (normally "a").
17347 libext="$libext"
17348
17349 # Shared library suffix (normally ".so").
17350 shrext='$shrext'
17351
17352 # Executable file suffix (normally "").
17353 exeext="$exeext"
17354
17355 # Additional compiler flags for building library objects.
17356 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17357 pic_mode=$pic_mode
17358
17359 # What is the maximum length of a command?
17360 max_cmd_len=$lt_cv_sys_max_cmd_len
17361
17362 # Does compiler simultaneously support -c and -o options?
17363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17364
17365 # Must we lock files when doing compilation ?
17366 need_locks=$lt_need_locks
17367
17368 # Do we need the lib prefix for modules?
17369 need_lib_prefix=$need_lib_prefix
17370
17371 # Do we need a version for libraries?
17372 need_version=$need_version
17373
17374 # Whether dlopen is supported.
17375 dlopen_support=$enable_dlopen
17376
17377 # Whether dlopen of programs is supported.
17378 dlopen_self=$enable_dlopen_self
17379
17380 # Whether dlopen of statically linked programs is supported.
17381 dlopen_self_static=$enable_dlopen_self_static
17382
17383 # Compiler flag to prevent dynamic linking.
17384 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17385
17386 # Compiler flag to turn off builtin functions.
17387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17388
17389 # Compiler flag to allow reflexive dlopens.
17390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17391
17392 # Compiler flag to generate shared objects directly from archives.
17393 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17394
17395 # Compiler flag to generate thread-safe objects.
17396 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17397
17398 # Library versioning type.
17399 version_type=$version_type
17400
17401 # Format of library name prefix.
17402 libname_spec=$lt_libname_spec
17403
17404 # List of archive names.  First name is the real one, the rest are links.
17405 # The last name is the one that the linker finds with -lNAME.
17406 library_names_spec=$lt_library_names_spec
17407
17408 # The coded name of the library, if different from the real name.
17409 soname_spec=$lt_soname_spec
17410
17411 # Commands used to build and install an old-style archive.
17412 RANLIB=$lt_RANLIB
17413 old_archive_cmds=$lt_old_archive_cmds_GCJ
17414 old_postinstall_cmds=$lt_old_postinstall_cmds
17415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17416
17417 # Create an old-style archive from a shared archive.
17418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17419
17420 # Create a temporary old-style archive to link instead of a shared archive.
17421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17422
17423 # Commands used to build and install a shared archive.
17424 archive_cmds=$lt_archive_cmds_GCJ
17425 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17426 postinstall_cmds=$lt_postinstall_cmds
17427 postuninstall_cmds=$lt_postuninstall_cmds
17428
17429 # Commands used to build a loadable module (assumed same as above if empty)
17430 module_cmds=$lt_module_cmds_GCJ
17431 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17432
17433 # Commands to strip libraries.
17434 old_striplib=$lt_old_striplib
17435 striplib=$lt_striplib
17436
17437 # Dependencies to place before the objects being linked to create a
17438 # shared library.
17439 predep_objects=$lt_predep_objects_GCJ
17440
17441 # Dependencies to place after the objects being linked to create a
17442 # shared library.
17443 postdep_objects=$lt_postdep_objects_GCJ
17444
17445 # Dependencies to place before the objects being linked to create a
17446 # shared library.
17447 predeps=$lt_predeps_GCJ
17448
17449 # Dependencies to place after the objects being linked to create a
17450 # shared library.
17451 postdeps=$lt_postdeps_GCJ
17452
17453 # The library search path used internally by the compiler when linking
17454 # a shared library.
17455 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17456
17457 # Method to check whether dependent libraries are shared objects.
17458 deplibs_check_method=$lt_deplibs_check_method
17459
17460 # Command to use when deplibs_check_method == file_magic.
17461 file_magic_cmd=$lt_file_magic_cmd
17462
17463 # Flag that allows shared libraries with undefined symbols to be built.
17464 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17465
17466 # Flag that forces no undefined symbols.
17467 no_undefined_flag=$lt_no_undefined_flag_GCJ
17468
17469 # Commands used to finish a libtool library installation in a directory.
17470 finish_cmds=$lt_finish_cmds
17471
17472 # Same as above, but a single script fragment to be evaled but not shown.
17473 finish_eval=$lt_finish_eval
17474
17475 # Take the output of nm and produce a listing of raw symbols and C names.
17476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17477
17478 # Transform the output of nm in a proper C declaration
17479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17480
17481 # Transform the output of nm in a C name address pair
17482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17483
17484 # This is the shared library runtime path variable.
17485 runpath_var=$runpath_var
17486
17487 # This is the shared library path variable.
17488 shlibpath_var=$shlibpath_var
17489
17490 # Is shlibpath searched before the hard-coded library search path?
17491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17492
17493 # How to hardcode a shared library path into an executable.
17494 hardcode_action=$hardcode_action_GCJ
17495
17496 # Whether we should hardcode library paths into libraries.
17497 hardcode_into_libs=$hardcode_into_libs
17498
17499 # Flag to hardcode \$libdir into a binary during linking.
17500 # This must work even if \$libdir does not exist.
17501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17502
17503 # If ld is used when linking, flag to hardcode \$libdir into
17504 # a binary during linking. This must work even if \$libdir does
17505 # not exist.
17506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17507
17508 # Whether we need a single -rpath flag with a separated argument.
17509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17510
17511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17512 # resulting binary.
17513 hardcode_direct=$hardcode_direct_GCJ
17514
17515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17516 # resulting binary.
17517 hardcode_minus_L=$hardcode_minus_L_GCJ
17518
17519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17520 # the resulting binary.
17521 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17522
17523 # Set to yes if building a shared library automatically hardcodes DIR into the library
17524 # and all subsequent libraries and executables linked against it.
17525 hardcode_automatic=$hardcode_automatic_GCJ
17526
17527 # Variables whose values should be saved in libtool wrapper scripts and
17528 # restored at relink time.
17529 variables_saved_for_relink="$variables_saved_for_relink"
17530
17531 # Whether libtool must link a program against all its dependency libraries.
17532 link_all_deplibs=$link_all_deplibs_GCJ
17533
17534 # Compile-time system search path for libraries
17535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17536
17537 # Run-time system search path for libraries
17538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17539
17540 # Fix the shell variable \$srcfile for the compiler.
17541 fix_srcfile_path="$fix_srcfile_path_GCJ"
17542
17543 # Set to yes if exported symbols are required.
17544 always_export_symbols=$always_export_symbols_GCJ
17545
17546 # The commands to list exported symbols.
17547 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17548
17549 # The commands to extract the exported symbol list from a shared archive.
17550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17551
17552 # Symbols that should not be listed in the preloaded symbols.
17553 exclude_expsyms=$lt_exclude_expsyms_GCJ
17554
17555 # Symbols that must always be exported.
17556 include_expsyms=$lt_include_expsyms_GCJ
17557
17558 # ### END LIBTOOL TAG CONFIG: $tagname
17559
17560 __EOF__
17561
17562
17563 else
17564   # If there is no Makefile yet, we rely on a make rule to execute
17565   # `config.status --recheck' to rerun these tests and create the
17566   # libtool script then.
17567   test -f Makefile && make "$ltmain"
17568 fi
17569
17570
17571 ac_ext=c
17572 ac_cpp='$CPP $CPPFLAGS'
17573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17576
17577 CC="$lt_save_CC"
17578
17579         else
17580           tagname=""
17581         fi
17582         ;;
17583
17584       RC)
17585
17586
17587
17588 # Source file extension for RC test sources.
17589 ac_ext=rc
17590
17591 # Object file extension for compiled RC test sources.
17592 objext=o
17593 objext_RC=$objext
17594
17595 # Code to be used in simple compile tests
17596 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17597
17598 # Code to be used in simple link tests
17599 lt_simple_link_test_code="$lt_simple_compile_test_code"
17600
17601 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17602
17603 # If no C compiler was specified, use CC.
17604 LTCC=${LTCC-"$CC"}
17605
17606 # Allow CC to be a program name with arguments.
17607 compiler=$CC
17608
17609
17610 # Allow CC to be a program name with arguments.
17611 lt_save_CC="$CC"
17612 CC=${RC-"windres"}
17613 compiler=$CC
17614 compiler_RC=$CC
17615 lt_cv_prog_compiler_c_o_RC=yes
17616
17617 # The else clause should only fire when bootstrapping the
17618 # libtool distribution, otherwise you forgot to ship ltmain.sh
17619 # with your package, and you will get complaints that there are
17620 # no rules to generate ltmain.sh.
17621 if test -f "$ltmain"; then
17622   # See if we are running on zsh, and set the options which allow our commands through
17623   # without removal of \ escapes.
17624   if test -n "${ZSH_VERSION+set}" ; then
17625     setopt NO_GLOB_SUBST
17626   fi
17627   # Now quote all the things that may contain metacharacters while being
17628   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17629   # variables and quote the copies for generation of the libtool script.
17630   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17631     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17632     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17633     deplibs_check_method reload_flag reload_cmds need_locks \
17634     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17635     lt_cv_sys_global_symbol_to_c_name_address \
17636     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17637     old_postinstall_cmds old_postuninstall_cmds \
17638     compiler_RC \
17639     CC_RC \
17640     LD_RC \
17641     lt_prog_compiler_wl_RC \
17642     lt_prog_compiler_pic_RC \
17643     lt_prog_compiler_static_RC \
17644     lt_prog_compiler_no_builtin_flag_RC \
17645     export_dynamic_flag_spec_RC \
17646     thread_safe_flag_spec_RC \
17647     whole_archive_flag_spec_RC \
17648     enable_shared_with_static_runtimes_RC \
17649     old_archive_cmds_RC \
17650     old_archive_from_new_cmds_RC \
17651     predep_objects_RC \
17652     postdep_objects_RC \
17653     predeps_RC \
17654     postdeps_RC \
17655     compiler_lib_search_path_RC \
17656     archive_cmds_RC \
17657     archive_expsym_cmds_RC \
17658     postinstall_cmds_RC \
17659     postuninstall_cmds_RC \
17660     old_archive_from_expsyms_cmds_RC \
17661     allow_undefined_flag_RC \
17662     no_undefined_flag_RC \
17663     export_symbols_cmds_RC \
17664     hardcode_libdir_flag_spec_RC \
17665     hardcode_libdir_flag_spec_ld_RC \
17666     hardcode_libdir_separator_RC \
17667     hardcode_automatic_RC \
17668     module_cmds_RC \
17669     module_expsym_cmds_RC \
17670     lt_cv_prog_compiler_c_o_RC \
17671     exclude_expsyms_RC \
17672     include_expsyms_RC; do
17673
17674     case $var in
17675     old_archive_cmds_RC | \
17676     old_archive_from_new_cmds_RC | \
17677     archive_cmds_RC | \
17678     archive_expsym_cmds_RC | \
17679     module_cmds_RC | \
17680     module_expsym_cmds_RC | \
17681     old_archive_from_expsyms_cmds_RC | \
17682     export_symbols_cmds_RC | \
17683     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17684     postinstall_cmds | postuninstall_cmds | \
17685     old_postinstall_cmds | old_postuninstall_cmds | \
17686     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17687       # Double-quote double-evaled strings.
17688       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17689       ;;
17690     *)
17691       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17692       ;;
17693     esac
17694   done
17695
17696   case $lt_echo in
17697   *'\$0 --fallback-echo"')
17698     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17699     ;;
17700   esac
17701
17702 cfgfile="$ofile"
17703
17704   cat <<__EOF__ >> "$cfgfile"
17705 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17706
17707 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17708
17709 # Shell to use when invoking shell scripts.
17710 SHELL=$lt_SHELL
17711
17712 # Whether or not to build shared libraries.
17713 build_libtool_libs=$enable_shared
17714
17715 # Whether or not to build static libraries.
17716 build_old_libs=$enable_static
17717
17718 # Whether or not to add -lc for building shared libraries.
17719 build_libtool_need_lc=$archive_cmds_need_lc_RC
17720
17721 # Whether or not to disallow shared libs when runtime libs are static
17722 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17723
17724 # Whether or not to optimize for fast installation.
17725 fast_install=$enable_fast_install
17726
17727 # The host system.
17728 host_alias=$host_alias
17729 host=$host
17730
17731 # An echo program that does not interpret backslashes.
17732 echo=$lt_echo
17733
17734 # The archiver.
17735 AR=$lt_AR
17736 AR_FLAGS=$lt_AR_FLAGS
17737
17738 # A C compiler.
17739 LTCC=$lt_LTCC
17740
17741 # A language-specific compiler.
17742 CC=$lt_compiler_RC
17743
17744 # Is the compiler the GNU C compiler?
17745 with_gcc=$GCC_RC
17746
17747 # An ERE matcher.
17748 EGREP=$lt_EGREP
17749
17750 # The linker used to build libraries.
17751 LD=$lt_LD_RC
17752
17753 # Whether we need hard or soft links.
17754 LN_S=$lt_LN_S
17755
17756 # A BSD-compatible nm program.
17757 NM=$lt_NM
17758
17759 # A symbol stripping program
17760 STRIP=$STRIP
17761
17762 # Used to examine libraries when file_magic_cmd begins "file"
17763 MAGIC_CMD=$MAGIC_CMD
17764
17765 # Used on cygwin: DLL creation program.
17766 DLLTOOL="$DLLTOOL"
17767
17768 # Used on cygwin: object dumper.
17769 OBJDUMP="$OBJDUMP"
17770
17771 # Used on cygwin: assembler.
17772 AS="$AS"
17773
17774 # The name of the directory that contains temporary libtool files.
17775 objdir=$objdir
17776
17777 # How to create reloadable object files.
17778 reload_flag=$lt_reload_flag
17779 reload_cmds=$lt_reload_cmds
17780
17781 # How to pass a linker flag through the compiler.
17782 wl=$lt_lt_prog_compiler_wl_RC
17783
17784 # Object file suffix (normally "o").
17785 objext="$ac_objext"
17786
17787 # Old archive suffix (normally "a").
17788 libext="$libext"
17789
17790 # Shared library suffix (normally ".so").
17791 shrext='$shrext'
17792
17793 # Executable file suffix (normally "").
17794 exeext="$exeext"
17795
17796 # Additional compiler flags for building library objects.
17797 pic_flag=$lt_lt_prog_compiler_pic_RC
17798 pic_mode=$pic_mode
17799
17800 # What is the maximum length of a command?
17801 max_cmd_len=$lt_cv_sys_max_cmd_len
17802
17803 # Does compiler simultaneously support -c and -o options?
17804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17805
17806 # Must we lock files when doing compilation ?
17807 need_locks=$lt_need_locks
17808
17809 # Do we need the lib prefix for modules?
17810 need_lib_prefix=$need_lib_prefix
17811
17812 # Do we need a version for libraries?
17813 need_version=$need_version
17814
17815 # Whether dlopen is supported.
17816 dlopen_support=$enable_dlopen
17817
17818 # Whether dlopen of programs is supported.
17819 dlopen_self=$enable_dlopen_self
17820
17821 # Whether dlopen of statically linked programs is supported.
17822 dlopen_self_static=$enable_dlopen_self_static
17823
17824 # Compiler flag to prevent dynamic linking.
17825 link_static_flag=$lt_lt_prog_compiler_static_RC
17826
17827 # Compiler flag to turn off builtin functions.
17828 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17829
17830 # Compiler flag to allow reflexive dlopens.
17831 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17832
17833 # Compiler flag to generate shared objects directly from archives.
17834 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17835
17836 # Compiler flag to generate thread-safe objects.
17837 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17838
17839 # Library versioning type.
17840 version_type=$version_type
17841
17842 # Format of library name prefix.
17843 libname_spec=$lt_libname_spec
17844
17845 # List of archive names.  First name is the real one, the rest are links.
17846 # The last name is the one that the linker finds with -lNAME.
17847 library_names_spec=$lt_library_names_spec
17848
17849 # The coded name of the library, if different from the real name.
17850 soname_spec=$lt_soname_spec
17851
17852 # Commands used to build and install an old-style archive.
17853 RANLIB=$lt_RANLIB
17854 old_archive_cmds=$lt_old_archive_cmds_RC
17855 old_postinstall_cmds=$lt_old_postinstall_cmds
17856 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17857
17858 # Create an old-style archive from a shared archive.
17859 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17860
17861 # Create a temporary old-style archive to link instead of a shared archive.
17862 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17863
17864 # Commands used to build and install a shared archive.
17865 archive_cmds=$lt_archive_cmds_RC
17866 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17867 postinstall_cmds=$lt_postinstall_cmds
17868 postuninstall_cmds=$lt_postuninstall_cmds
17869
17870 # Commands used to build a loadable module (assumed same as above if empty)
17871 module_cmds=$lt_module_cmds_RC
17872 module_expsym_cmds=$lt_module_expsym_cmds_RC
17873
17874 # Commands to strip libraries.
17875 old_striplib=$lt_old_striplib
17876 striplib=$lt_striplib
17877
17878 # Dependencies to place before the objects being linked to create a
17879 # shared library.
17880 predep_objects=$lt_predep_objects_RC
17881
17882 # Dependencies to place after the objects being linked to create a
17883 # shared library.
17884 postdep_objects=$lt_postdep_objects_RC
17885
17886 # Dependencies to place before the objects being linked to create a
17887 # shared library.
17888 predeps=$lt_predeps_RC
17889
17890 # Dependencies to place after the objects being linked to create a
17891 # shared library.
17892 postdeps=$lt_postdeps_RC
17893
17894 # The library search path used internally by the compiler when linking
17895 # a shared library.
17896 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17897
17898 # Method to check whether dependent libraries are shared objects.
17899 deplibs_check_method=$lt_deplibs_check_method
17900
17901 # Command to use when deplibs_check_method == file_magic.
17902 file_magic_cmd=$lt_file_magic_cmd
17903
17904 # Flag that allows shared libraries with undefined symbols to be built.
17905 allow_undefined_flag=$lt_allow_undefined_flag_RC
17906
17907 # Flag that forces no undefined symbols.
17908 no_undefined_flag=$lt_no_undefined_flag_RC
17909
17910 # Commands used to finish a libtool library installation in a directory.
17911 finish_cmds=$lt_finish_cmds
17912
17913 # Same as above, but a single script fragment to be evaled but not shown.
17914 finish_eval=$lt_finish_eval
17915
17916 # Take the output of nm and produce a listing of raw symbols and C names.
17917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17918
17919 # Transform the output of nm in a proper C declaration
17920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17921
17922 # Transform the output of nm in a C name address pair
17923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17924
17925 # This is the shared library runtime path variable.
17926 runpath_var=$runpath_var
17927
17928 # This is the shared library path variable.
17929 shlibpath_var=$shlibpath_var
17930
17931 # Is shlibpath searched before the hard-coded library search path?
17932 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17933
17934 # How to hardcode a shared library path into an executable.
17935 hardcode_action=$hardcode_action_RC
17936
17937 # Whether we should hardcode library paths into libraries.
17938 hardcode_into_libs=$hardcode_into_libs
17939
17940 # Flag to hardcode \$libdir into a binary during linking.
17941 # This must work even if \$libdir does not exist.
17942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17943
17944 # If ld is used when linking, flag to hardcode \$libdir into
17945 # a binary during linking. This must work even if \$libdir does
17946 # not exist.
17947 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17948
17949 # Whether we need a single -rpath flag with a separated argument.
17950 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17951
17952 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17953 # resulting binary.
17954 hardcode_direct=$hardcode_direct_RC
17955
17956 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17957 # resulting binary.
17958 hardcode_minus_L=$hardcode_minus_L_RC
17959
17960 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17961 # the resulting binary.
17962 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17963
17964 # Set to yes if building a shared library automatically hardcodes DIR into the library
17965 # and all subsequent libraries and executables linked against it.
17966 hardcode_automatic=$hardcode_automatic_RC
17967
17968 # Variables whose values should be saved in libtool wrapper scripts and
17969 # restored at relink time.
17970 variables_saved_for_relink="$variables_saved_for_relink"
17971
17972 # Whether libtool must link a program against all its dependency libraries.
17973 link_all_deplibs=$link_all_deplibs_RC
17974
17975 # Compile-time system search path for libraries
17976 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17977
17978 # Run-time system search path for libraries
17979 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17980
17981 # Fix the shell variable \$srcfile for the compiler.
17982 fix_srcfile_path="$fix_srcfile_path_RC"
17983
17984 # Set to yes if exported symbols are required.
17985 always_export_symbols=$always_export_symbols_RC
17986
17987 # The commands to list exported symbols.
17988 export_symbols_cmds=$lt_export_symbols_cmds_RC
17989
17990 # The commands to extract the exported symbol list from a shared archive.
17991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17992
17993 # Symbols that should not be listed in the preloaded symbols.
17994 exclude_expsyms=$lt_exclude_expsyms_RC
17995
17996 # Symbols that must always be exported.
17997 include_expsyms=$lt_include_expsyms_RC
17998
17999 # ### END LIBTOOL TAG CONFIG: $tagname
18000
18001 __EOF__
18002
18003
18004 else
18005   # If there is no Makefile yet, we rely on a make rule to execute
18006   # `config.status --recheck' to rerun these tests and create the
18007   # libtool script then.
18008   test -f Makefile && make "$ltmain"
18009 fi
18010
18011
18012 ac_ext=c
18013 ac_cpp='$CPP $CPPFLAGS'
18014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18017
18018 CC="$lt_save_CC"
18019
18020         ;;
18021
18022       *)
18023         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18024 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18025    { (exit 1); exit 1; }; }
18026         ;;
18027       esac
18028
18029       # Append the new tag name to the list of available tags.
18030       if test -n "$tagname" ; then
18031       available_tags="$available_tags $tagname"
18032     fi
18033     fi
18034   done
18035   IFS="$lt_save_ifs"
18036
18037   # Now substitute the updated list of available tags.
18038   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18039     mv "${ofile}T" "$ofile"
18040     chmod +x "$ofile"
18041   else
18042     rm -f "${ofile}T"
18043     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18044 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18045    { (exit 1); exit 1; }; }
18046   fi
18047 fi
18048
18049
18050
18051 # This can be used to rebuild libtool when needed
18052 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18053
18054 # Always use our own libtool.
18055 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18056
18057 # Prevent multiple expansion
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079 # Extract the first word of "dot", so it can be a program name with args.
18080 set dummy dot; ac_word=$2
18081 echo "$as_me:$LINENO: checking for $ac_word" >&5
18082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18083 if test "${ac_cv_path_DOT+set}" = set; then
18084   echo $ECHO_N "(cached) $ECHO_C" >&6
18085 else
18086   case $DOT in
18087   [\\/]* | ?:[\\/]*)
18088   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18089   ;;
18090   *)
18091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18092 for as_dir in $PATH
18093 do
18094   IFS=$as_save_IFS
18095   test -z "$as_dir" && as_dir=.
18096   for ac_exec_ext in '' $ac_executable_extensions; do
18097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18098     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18100     break 2
18101   fi
18102 done
18103 done
18104
18105   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18106   ;;
18107 esac
18108 fi
18109 DOT=$ac_cv_path_DOT
18110
18111 if test -n "$DOT"; then
18112   echo "$as_me:$LINENO: result: $DOT" >&5
18113 echo "${ECHO_T}$DOT" >&6
18114 else
18115   echo "$as_me:$LINENO: result: no" >&5
18116 echo "${ECHO_T}no" >&6
18117 fi
18118
18119 # Extract the first word of "etags", so it can be a program name with args.
18120 set dummy etags; ac_word=$2
18121 echo "$as_me:$LINENO: checking for $ac_word" >&5
18122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18123 if test "${ac_cv_path_ETAGS+set}" = set; then
18124   echo $ECHO_N "(cached) $ECHO_C" >&6
18125 else
18126   case $ETAGS in
18127   [\\/]* | ?:[\\/]*)
18128   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18129   ;;
18130   *)
18131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18132 for as_dir in $PATH
18133 do
18134   IFS=$as_save_IFS
18135   test -z "$as_dir" && as_dir=.
18136   for ac_exec_ext in '' $ac_executable_extensions; do
18137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18138     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18140     break 2
18141   fi
18142 done
18143 done
18144
18145   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18146   ;;
18147 esac
18148 fi
18149 ETAGS=$ac_cv_path_ETAGS
18150
18151 if test -n "$ETAGS"; then
18152   echo "$as_me:$LINENO: result: $ETAGS" >&5
18153 echo "${ECHO_T}$ETAGS" >&6
18154 else
18155   echo "$as_me:$LINENO: result: no" >&5
18156 echo "${ECHO_T}no" >&6
18157 fi
18158
18159 # Extract the first word of "python", so it can be a program name with args.
18160 set dummy python; ac_word=$2
18161 echo "$as_me:$LINENO: checking for $ac_word" >&5
18162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18163 if test "${ac_cv_path_PYTHON+set}" = set; then
18164   echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18166   case $PYTHON in
18167   [\\/]* | ?:[\\/]*)
18168   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18169   ;;
18170   *)
18171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18172 for as_dir in $PATH
18173 do
18174   IFS=$as_save_IFS
18175   test -z "$as_dir" && as_dir=.
18176   for ac_exec_ext in '' $ac_executable_extensions; do
18177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18178     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18180     break 2
18181   fi
18182 done
18183 done
18184
18185   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18186   ;;
18187 esac
18188 fi
18189 PYTHON=$ac_cv_path_PYTHON
18190
18191 if test -n "$PYTHON"; then
18192   echo "$as_me:$LINENO: result: $PYTHON" >&5
18193 echo "${ECHO_T}$PYTHON" >&6
18194 else
18195   echo "$as_me:$LINENO: result: no" >&5
18196 echo "${ECHO_T}no" >&6
18197 fi
18198
18199 if test "$PYTHON" = "false"
18200 then
18201         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18202 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18203 fi
18204 # Extract the first word of "qmtest", so it can be a program name with args.
18205 set dummy qmtest; ac_word=$2
18206 echo "$as_me:$LINENO: checking for $ac_word" >&5
18207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18208 if test "${ac_cv_path_QMTEST+set}" = set; then
18209   echo $ECHO_N "(cached) $ECHO_C" >&6
18210 else
18211   case $QMTEST in
18212   [\\/]* | ?:[\\/]*)
18213   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18214   ;;
18215   *)
18216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18217 for as_dir in $PATH
18218 do
18219   IFS=$as_save_IFS
18220   test -z "$as_dir" && as_dir=.
18221   for ac_exec_ext in '' $ac_executable_extensions; do
18222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18223     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18225     break 2
18226   fi
18227 done
18228 done
18229
18230   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18231   ;;
18232 esac
18233 fi
18234 QMTEST=$ac_cv_path_QMTEST
18235
18236 if test -n "$QMTEST"; then
18237   echo "$as_me:$LINENO: result: $QMTEST" >&5
18238 echo "${ECHO_T}$QMTEST" >&6
18239 else
18240   echo "$as_me:$LINENO: result: no" >&5
18241 echo "${ECHO_T}no" >&6
18242 fi
18243
18244 if test "$QMTEST" = "false"
18245 then
18246         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18247 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18248 fi
18249
18250 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18251 pymajor=`echo $pyversion | cut -d. -f1`
18252 pyminor=`echo $pyversion | cut -d. -f2`
18253
18254 if test "$pymajor" -ge "2"
18255 then
18256         if test "$pymajor" -eq "2"
18257         then
18258                 if test "$pyminor" -lt "2"
18259                 then
18260                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18261 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18262                 fi
18263         fi
18264 else
18265         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18266 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18267 fi
18268
18269
18270
18271
18272 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18273 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18274 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18275   echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277   ac_check_lib_save_LIBS=$LIBS
18278 LIBS="-lelf  $LIBS"
18279 cat >conftest.$ac_ext <<_ACEOF
18280 #line $LINENO "configure"
18281 /* confdefs.h.  */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h.  */
18286
18287 /* Override any gcc2 internal prototype to avoid an error.  */
18288 #ifdef __cplusplus
18289 extern "C"
18290 #endif
18291 /* We use char because int might match the return type of a gcc2
18292    builtin and then its argument prototype would still apply.  */
18293 char elf_begin ();
18294 int
18295 main ()
18296 {
18297 elf_begin ();
18298   ;
18299   return 0;
18300 }
18301 _ACEOF
18302 rm -f conftest.$ac_objext conftest$ac_exeext
18303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304   (eval $ac_link) 2>&5
18305   ac_status=$?
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); } &&
18308          { ac_try='test -s conftest$ac_exeext'
18309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310   (eval $ac_try) 2>&5
18311   ac_status=$?
18312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313   (exit $ac_status); }; }; then
18314   ac_cv_lib_elf_elf_begin=yes
18315 else
18316   echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18318
18319 ac_cv_lib_elf_elf_begin=no
18320 fi
18321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18322 LIBS=$ac_check_lib_save_LIBS
18323 fi
18324 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18325 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18326 if test $ac_cv_lib_elf_elf_begin = yes; then
18327   cat >>confdefs.h <<_ACEOF
18328 #define HAVE_LIBELF 1
18329 _ACEOF
18330
18331   LIBS="-lelf $LIBS"
18332
18333 fi
18334
18335
18336 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18337 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18338 if test "${ac_cv_search_dlopen+set}" = set; then
18339   echo $ECHO_N "(cached) $ECHO_C" >&6
18340 else
18341   ac_func_search_save_LIBS=$LIBS
18342 ac_cv_search_dlopen=no
18343 cat >conftest.$ac_ext <<_ACEOF
18344 #line $LINENO "configure"
18345 /* confdefs.h.  */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h.  */
18350
18351 /* Override any gcc2 internal prototype to avoid an error.  */
18352 #ifdef __cplusplus
18353 extern "C"
18354 #endif
18355 /* We use char because int might match the return type of a gcc2
18356    builtin and then its argument prototype would still apply.  */
18357 char dlopen ();
18358 int
18359 main ()
18360 {
18361 dlopen ();
18362   ;
18363   return 0;
18364 }
18365 _ACEOF
18366 rm -f conftest.$ac_objext conftest$ac_exeext
18367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368   (eval $ac_link) 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); } &&
18372          { ac_try='test -s conftest$ac_exeext'
18373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374   (eval $ac_try) 2>&5
18375   ac_status=$?
18376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377   (exit $ac_status); }; }; then
18378   ac_cv_search_dlopen="none required"
18379 else
18380   echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18382
18383 fi
18384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18385 if test "$ac_cv_search_dlopen" = no; then
18386   for ac_lib in dl; do
18387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18388     cat >conftest.$ac_ext <<_ACEOF
18389 #line $LINENO "configure"
18390 /* confdefs.h.  */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h.  */
18395
18396 /* Override any gcc2 internal prototype to avoid an error.  */
18397 #ifdef __cplusplus
18398 extern "C"
18399 #endif
18400 /* We use char because int might match the return type of a gcc2
18401    builtin and then its argument prototype would still apply.  */
18402 char dlopen ();
18403 int
18404 main ()
18405 {
18406 dlopen ();
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 rm -f conftest.$ac_objext conftest$ac_exeext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18413   (eval $ac_link) 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } &&
18417          { ac_try='test -s conftest$ac_exeext'
18418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419   (eval $ac_try) 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); }; }; then
18423   ac_cv_search_dlopen="-l$ac_lib"
18424 break
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429 fi
18430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18431   done
18432 fi
18433 LIBS=$ac_func_search_save_LIBS
18434 fi
18435 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18436 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18437 if test "$ac_cv_search_dlopen" != no; then
18438   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18439
18440 cat >>confdefs.h <<\_ACEOF
18441 #define HAVE_DLOPEN 1
18442 _ACEOF
18443
18444 else
18445   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18446 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18447 fi
18448
18449
18450 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18451 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18452 if test "${ac_cv_search_mallinfo+set}" = set; then
18453   echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455   ac_func_search_save_LIBS=$LIBS
18456 ac_cv_search_mallinfo=no
18457 cat >conftest.$ac_ext <<_ACEOF
18458 #line $LINENO "configure"
18459 /* confdefs.h.  */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h.  */
18464
18465 /* Override any gcc2 internal prototype to avoid an error.  */
18466 #ifdef __cplusplus
18467 extern "C"
18468 #endif
18469 /* We use char because int might match the return type of a gcc2
18470    builtin and then its argument prototype would still apply.  */
18471 char mallinfo ();
18472 int
18473 main ()
18474 {
18475 mallinfo ();
18476   ;
18477   return 0;
18478 }
18479 _ACEOF
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482   (eval $ac_link) 2>&5
18483   ac_status=$?
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); } &&
18486          { ac_try='test -s conftest$ac_exeext'
18487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488   (eval $ac_try) 2>&5
18489   ac_status=$?
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); }; }; then
18492   ac_cv_search_mallinfo="none required"
18493 else
18494   echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18496
18497 fi
18498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18499 if test "$ac_cv_search_mallinfo" = no; then
18500   for ac_lib in malloc; do
18501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18502     cat >conftest.$ac_ext <<_ACEOF
18503 #line $LINENO "configure"
18504 /* confdefs.h.  */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h.  */
18509
18510 /* Override any gcc2 internal prototype to avoid an error.  */
18511 #ifdef __cplusplus
18512 extern "C"
18513 #endif
18514 /* We use char because int might match the return type of a gcc2
18515    builtin and then its argument prototype would still apply.  */
18516 char mallinfo ();
18517 int
18518 main ()
18519 {
18520 mallinfo ();
18521   ;
18522   return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18527   (eval $ac_link) 2>&5
18528   ac_status=$?
18529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530   (exit $ac_status); } &&
18531          { ac_try='test -s conftest$ac_exeext'
18532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533   (eval $ac_try) 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); }; }; then
18537   ac_cv_search_mallinfo="-l$ac_lib"
18538 break
18539 else
18540   echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543 fi
18544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18545   done
18546 fi
18547 LIBS=$ac_func_search_save_LIBS
18548 fi
18549 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18550 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18551 if test "$ac_cv_search_mallinfo" != no; then
18552   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18553
18554 cat >>confdefs.h <<\_ACEOF
18555 #define HAVE_MALLINFO 1
18556 _ACEOF
18557
18558 fi
18559
18560
18561 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18562 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18563 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18564   echo $ECHO_N "(cached) $ECHO_C" >&6
18565 else
18566   ac_func_search_save_LIBS=$LIBS
18567 ac_cv_search_pthread_mutex_lock=no
18568 cat >conftest.$ac_ext <<_ACEOF
18569 #line $LINENO "configure"
18570 /* confdefs.h.  */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h.  */
18575
18576 /* Override any gcc2 internal prototype to avoid an error.  */
18577 #ifdef __cplusplus
18578 extern "C"
18579 #endif
18580 /* We use char because int might match the return type of a gcc2
18581    builtin and then its argument prototype would still apply.  */
18582 char pthread_mutex_lock ();
18583 int
18584 main ()
18585 {
18586 pthread_mutex_lock ();
18587   ;
18588   return 0;
18589 }
18590 _ACEOF
18591 rm -f conftest.$ac_objext conftest$ac_exeext
18592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18593   (eval $ac_link) 2>&5
18594   ac_status=$?
18595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596   (exit $ac_status); } &&
18597          { ac_try='test -s conftest$ac_exeext'
18598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599   (eval $ac_try) 2>&5
18600   ac_status=$?
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); }; }; then
18603   ac_cv_search_pthread_mutex_lock="none required"
18604 else
18605   echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18607
18608 fi
18609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18610 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18611   for ac_lib in pthread; do
18612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18613     cat >conftest.$ac_ext <<_ACEOF
18614 #line $LINENO "configure"
18615 /* confdefs.h.  */
18616 _ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h.  */
18620
18621 /* Override any gcc2 internal prototype to avoid an error.  */
18622 #ifdef __cplusplus
18623 extern "C"
18624 #endif
18625 /* We use char because int might match the return type of a gcc2
18626    builtin and then its argument prototype would still apply.  */
18627 char pthread_mutex_lock ();
18628 int
18629 main ()
18630 {
18631 pthread_mutex_lock ();
18632   ;
18633   return 0;
18634 }
18635 _ACEOF
18636 rm -f conftest.$ac_objext conftest$ac_exeext
18637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18638   (eval $ac_link) 2>&5
18639   ac_status=$?
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); } &&
18642          { ac_try='test -s conftest$ac_exeext'
18643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644   (eval $ac_try) 2>&5
18645   ac_status=$?
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); }; }; then
18648   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18649 break
18650 else
18651   echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654 fi
18655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18656   done
18657 fi
18658 LIBS=$ac_func_search_save_LIBS
18659 fi
18660 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18661 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18662 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18663   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18664
18665 cat >>confdefs.h <<\_ACEOF
18666 #define HAVE_PTHREAD_MUTEX_LOCK 1
18667 _ACEOF
18668
18669 fi
18670
18671
18672 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18673 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18674 if test "${ac_cv_header_stdc+set}" = set; then
18675   echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677   cat >conftest.$ac_ext <<_ACEOF
18678 #line $LINENO "configure"
18679 /* confdefs.h.  */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h.  */
18684 #include <stdlib.h>
18685 #include <stdarg.h>
18686 #include <string.h>
18687 #include <float.h>
18688
18689 int
18690 main ()
18691 {
18692
18693   ;
18694   return 0;
18695 }
18696 _ACEOF
18697 rm -f conftest.$ac_objext
18698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18699   (eval $ac_compile) 2>&5
18700   ac_status=$?
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); } &&
18703          { ac_try='test -s conftest.$ac_objext'
18704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705   (eval $ac_try) 2>&5
18706   ac_status=$?
18707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708   (exit $ac_status); }; }; then
18709   ac_cv_header_stdc=yes
18710 else
18711   echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18713
18714 ac_cv_header_stdc=no
18715 fi
18716 rm -f conftest.$ac_objext conftest.$ac_ext
18717
18718 if test $ac_cv_header_stdc = yes; then
18719   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18720   cat >conftest.$ac_ext <<_ACEOF
18721 #line $LINENO "configure"
18722 /* confdefs.h.  */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h.  */
18727 #include <string.h>
18728
18729 _ACEOF
18730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18731   $EGREP "memchr" >/dev/null 2>&1; then
18732   :
18733 else
18734   ac_cv_header_stdc=no
18735 fi
18736 rm -f conftest*
18737
18738 fi
18739
18740 if test $ac_cv_header_stdc = yes; then
18741   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18742   cat >conftest.$ac_ext <<_ACEOF
18743 #line $LINENO "configure"
18744 /* confdefs.h.  */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h.  */
18749 #include <stdlib.h>
18750
18751 _ACEOF
18752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18753   $EGREP "free" >/dev/null 2>&1; then
18754   :
18755 else
18756   ac_cv_header_stdc=no
18757 fi
18758 rm -f conftest*
18759
18760 fi
18761
18762 if test $ac_cv_header_stdc = yes; then
18763   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18764   if test "$cross_compiling" = yes; then
18765   :
18766 else
18767   cat >conftest.$ac_ext <<_ACEOF
18768 #line $LINENO "configure"
18769 /* confdefs.h.  */
18770 _ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h.  */
18774 #include <ctype.h>
18775 #if ((' ' & 0x0FF) == 0x020)
18776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18778 #else
18779 # define ISLOWER(c) \
18780                    (('a' <= (c) && (c) <= 'i') \
18781                      || ('j' <= (c) && (c) <= 'r') \
18782                      || ('s' <= (c) && (c) <= 'z'))
18783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18784 #endif
18785
18786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18787 int
18788 main ()
18789 {
18790   int i;
18791   for (i = 0; i < 256; i++)
18792     if (XOR (islower (i), ISLOWER (i))
18793         || toupper (i) != TOUPPER (i))
18794       exit(2);
18795   exit (0);
18796 }
18797 _ACEOF
18798 rm -f conftest$ac_exeext
18799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18800   (eval $ac_link) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; }; then
18809   :
18810 else
18811   echo "$as_me: program exited with status $ac_status" >&5
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 ( exit $ac_status )
18816 ac_cv_header_stdc=no
18817 fi
18818 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18819 fi
18820 fi
18821 fi
18822 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18823 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18824 if test $ac_cv_header_stdc = yes; then
18825
18826 cat >>confdefs.h <<\_ACEOF
18827 #define STDC_HEADERS 1
18828 _ACEOF
18829
18830 fi
18831
18832 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18833 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18834 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18835   echo $ECHO_N "(cached) $ECHO_C" >&6
18836 else
18837   cat >conftest.$ac_ext <<_ACEOF
18838 #line $LINENO "configure"
18839 /* confdefs.h.  */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h.  */
18844 #include <sys/types.h>
18845 #include <sys/wait.h>
18846 #ifndef WEXITSTATUS
18847 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18848 #endif
18849 #ifndef WIFEXITED
18850 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18851 #endif
18852
18853 int
18854 main ()
18855 {
18856   int s;
18857   wait (&s);
18858   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18859   ;
18860   return 0;
18861 }
18862 _ACEOF
18863 rm -f conftest.$ac_objext
18864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18865   (eval $ac_compile) 2>&5
18866   ac_status=$?
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); } &&
18869          { ac_try='test -s conftest.$ac_objext'
18870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871   (eval $ac_try) 2>&5
18872   ac_status=$?
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); }; }; then
18875   ac_cv_header_sys_wait_h=yes
18876 else
18877   echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18879
18880 ac_cv_header_sys_wait_h=no
18881 fi
18882 rm -f conftest.$ac_objext conftest.$ac_ext
18883 fi
18884 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18885 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18886 if test $ac_cv_header_sys_wait_h = yes; then
18887
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE_SYS_WAIT_H 1
18890 _ACEOF
18891
18892 fi
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h
18905 do
18906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18908   echo "$as_me:$LINENO: checking for $ac_header" >&5
18909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18911   echo $ECHO_N "(cached) $ECHO_C" >&6
18912 fi
18913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18915 else
18916   # Is the header compilable?
18917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18919 cat >conftest.$ac_ext <<_ACEOF
18920 #line $LINENO "configure"
18921 /* confdefs.h.  */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h.  */
18926 $ac_includes_default
18927 #include <$ac_header>
18928 _ACEOF
18929 rm -f conftest.$ac_objext
18930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18931   (eval $ac_compile) 2>&5
18932   ac_status=$?
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); } &&
18935          { ac_try='test -s conftest.$ac_objext'
18936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937   (eval $ac_try) 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); }; }; then
18941   ac_header_compiler=yes
18942 else
18943   echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 ac_header_compiler=no
18947 fi
18948 rm -f conftest.$ac_objext conftest.$ac_ext
18949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18950 echo "${ECHO_T}$ac_header_compiler" >&6
18951
18952 # Is the header present?
18953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18955 cat >conftest.$ac_ext <<_ACEOF
18956 #line $LINENO "configure"
18957 /* confdefs.h.  */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h.  */
18962 #include <$ac_header>
18963 _ACEOF
18964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18965   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18966   ac_status=$?
18967   grep -v '^ *+' conftest.er1 >conftest.err
18968   rm -f conftest.er1
18969   cat conftest.err >&5
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); } >/dev/null; then
18972   if test -s conftest.err; then
18973     ac_cpp_err=$ac_c_preproc_warn_flag
18974   else
18975     ac_cpp_err=
18976   fi
18977 else
18978   ac_cpp_err=yes
18979 fi
18980 if test -z "$ac_cpp_err"; then
18981   ac_header_preproc=yes
18982 else
18983   echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18985
18986   ac_header_preproc=no
18987 fi
18988 rm -f conftest.err conftest.$ac_ext
18989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18990 echo "${ECHO_T}$ac_header_preproc" >&6
18991
18992 # So?  What about this header?
18993 case $ac_header_compiler:$ac_header_preproc in
18994   yes:no )
18995     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18999     (
19000       cat <<\_ASBOX
19001 ## ------------------------------------ ##
19002 ## Report this to bug-autoconf@gnu.org. ##
19003 ## ------------------------------------ ##
19004 _ASBOX
19005     ) |
19006       sed "s/^/$as_me: WARNING:     /" >&2
19007     ;;
19008   no:yes )
19009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19011     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19015     (
19016       cat <<\_ASBOX
19017 ## ------------------------------------ ##
19018 ## Report this to bug-autoconf@gnu.org. ##
19019 ## ------------------------------------ ##
19020 _ASBOX
19021     ) |
19022       sed "s/^/$as_me: WARNING:     /" >&2
19023     ;;
19024 esac
19025 echo "$as_me:$LINENO: checking for $ac_header" >&5
19026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19028   echo $ECHO_N "(cached) $ECHO_C" >&6
19029 else
19030   eval "$as_ac_Header=$ac_header_preproc"
19031 fi
19032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19034
19035 fi
19036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19037   cat >>confdefs.h <<_ACEOF
19038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19039 _ACEOF
19040
19041 fi
19042
19043 done
19044
19045
19046 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19047 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19048 if test "${ac_cv_c_bigendian+set}" = set; then
19049   echo $ECHO_N "(cached) $ECHO_C" >&6
19050 else
19051   # See if sys/param.h defines the BYTE_ORDER macro.
19052 cat >conftest.$ac_ext <<_ACEOF
19053 #line $LINENO "configure"
19054 /* confdefs.h.  */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h.  */
19059 #include <sys/types.h>
19060 #include <sys/param.h>
19061
19062 int
19063 main ()
19064 {
19065 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19066  bogus endian macros
19067 #endif
19068
19069   ;
19070   return 0;
19071 }
19072 _ACEOF
19073 rm -f conftest.$ac_objext
19074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19075   (eval $ac_compile) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); } &&
19079          { ac_try='test -s conftest.$ac_objext'
19080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081   (eval $ac_try) 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; }; then
19085   # It does; now see whether it defined to BIG_ENDIAN or not.
19086 cat >conftest.$ac_ext <<_ACEOF
19087 #line $LINENO "configure"
19088 /* confdefs.h.  */
19089 _ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h.  */
19093 #include <sys/types.h>
19094 #include <sys/param.h>
19095
19096 int
19097 main ()
19098 {
19099 #if BYTE_ORDER != BIG_ENDIAN
19100  not big endian
19101 #endif
19102
19103   ;
19104   return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19109   (eval $ac_compile) 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); } &&
19113          { ac_try='test -s conftest.$ac_objext'
19114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115   (eval $ac_try) 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); }; }; then
19119   ac_cv_c_bigendian=yes
19120 else
19121   echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19123
19124 ac_cv_c_bigendian=no
19125 fi
19126 rm -f conftest.$ac_objext conftest.$ac_ext
19127 else
19128   echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19130
19131 # It does not; compile a test program.
19132 if test "$cross_compiling" = yes; then
19133   # try to guess the endianness by grepping values into an object file
19134   ac_cv_c_bigendian=unknown
19135   cat >conftest.$ac_ext <<_ACEOF
19136 #line $LINENO "configure"
19137 /* confdefs.h.  */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h.  */
19142 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19143 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19144 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19145 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19146 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19147 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19148 int
19149 main ()
19150 {
19151  _ascii (); _ebcdic ();
19152   ;
19153   return 0;
19154 }
19155 _ACEOF
19156 rm -f conftest.$ac_objext
19157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19158   (eval $ac_compile) 2>&5
19159   ac_status=$?
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); } &&
19162          { ac_try='test -s conftest.$ac_objext'
19163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164   (eval $ac_try) 2>&5
19165   ac_status=$?
19166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167   (exit $ac_status); }; }; then
19168   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19169   ac_cv_c_bigendian=yes
19170 fi
19171 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19172   if test "$ac_cv_c_bigendian" = unknown; then
19173     ac_cv_c_bigendian=no
19174   else
19175     # finding both strings is unlikely to happen, but who knows?
19176     ac_cv_c_bigendian=unknown
19177   fi
19178 fi
19179 else
19180   echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183 fi
19184 rm -f conftest.$ac_objext conftest.$ac_ext
19185 else
19186   cat >conftest.$ac_ext <<_ACEOF
19187 #line $LINENO "configure"
19188 /* confdefs.h.  */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h.  */
19193 int
19194 main ()
19195 {
19196   /* Are we little or big endian?  From Harbison&Steele.  */
19197   union
19198   {
19199     long l;
19200     char c[sizeof (long)];
19201   } u;
19202   u.l = 1;
19203   exit (u.c[sizeof (long) - 1] == 1);
19204 }
19205 _ACEOF
19206 rm -f conftest$ac_exeext
19207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19208   (eval $ac_link) 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213   (eval $ac_try) 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; }; then
19217   ac_cv_c_bigendian=no
19218 else
19219   echo "$as_me: program exited with status $ac_status" >&5
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19222
19223 ( exit $ac_status )
19224 ac_cv_c_bigendian=yes
19225 fi
19226 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19227 fi
19228 fi
19229 rm -f conftest.$ac_objext conftest.$ac_ext
19230 fi
19231 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19232 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19233 case $ac_cv_c_bigendian in
19234   yes)
19235
19236 cat >>confdefs.h <<\_ACEOF
19237 #define ENDIAN_BIG
19238 _ACEOF
19239  ;;
19240   no)
19241
19242 cat >>confdefs.h <<\_ACEOF
19243 #define ENDIAN_LITTLE
19244 _ACEOF
19245  ;;
19246   *)
19247     { { echo "$as_me:$LINENO: error: unknown endianness
19248 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19249 echo "$as_me: error: unknown endianness
19250 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19251    { (exit 1); exit 1; }; } ;;
19252 esac
19253
19254
19255 echo "$as_me:$LINENO: checking for pid_t" >&5
19256 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19257 if test "${ac_cv_type_pid_t+set}" = set; then
19258   echo $ECHO_N "(cached) $ECHO_C" >&6
19259 else
19260   cat >conftest.$ac_ext <<_ACEOF
19261 #line $LINENO "configure"
19262 /* confdefs.h.  */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h.  */
19267 $ac_includes_default
19268 int
19269 main ()
19270 {
19271 if ((pid_t *) 0)
19272   return 0;
19273 if (sizeof (pid_t))
19274   return 0;
19275   ;
19276   return 0;
19277 }
19278 _ACEOF
19279 rm -f conftest.$ac_objext
19280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19281   (eval $ac_compile) 2>&5
19282   ac_status=$?
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); } &&
19285          { ac_try='test -s conftest.$ac_objext'
19286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287   (eval $ac_try) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; }; then
19291   ac_cv_type_pid_t=yes
19292 else
19293   echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19295
19296 ac_cv_type_pid_t=no
19297 fi
19298 rm -f conftest.$ac_objext conftest.$ac_ext
19299 fi
19300 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19301 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19302 if test $ac_cv_type_pid_t = yes; then
19303   :
19304 else
19305
19306 cat >>confdefs.h <<_ACEOF
19307 #define pid_t int
19308 _ACEOF
19309
19310 fi
19311
19312 echo "$as_me:$LINENO: checking for size_t" >&5
19313 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19314 if test "${ac_cv_type_size_t+set}" = set; then
19315   echo $ECHO_N "(cached) $ECHO_C" >&6
19316 else
19317   cat >conftest.$ac_ext <<_ACEOF
19318 #line $LINENO "configure"
19319 /* confdefs.h.  */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h.  */
19324 $ac_includes_default
19325 int
19326 main ()
19327 {
19328 if ((size_t *) 0)
19329   return 0;
19330 if (sizeof (size_t))
19331   return 0;
19332   ;
19333   return 0;
19334 }
19335 _ACEOF
19336 rm -f conftest.$ac_objext
19337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19338   (eval $ac_compile) 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); } &&
19342          { ac_try='test -s conftest.$ac_objext'
19343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344   (eval $ac_try) 2>&5
19345   ac_status=$?
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); }; }; then
19348   ac_cv_type_size_t=yes
19349 else
19350   echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19352
19353 ac_cv_type_size_t=no
19354 fi
19355 rm -f conftest.$ac_objext conftest.$ac_ext
19356 fi
19357 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19358 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19359 if test $ac_cv_type_size_t = yes; then
19360   :
19361 else
19362
19363 cat >>confdefs.h <<_ACEOF
19364 #define size_t unsigned
19365 _ACEOF
19366
19367 fi
19368
19369 echo "$as_me:$LINENO: checking for int64_t" >&5
19370 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19371 if test "${ac_cv_type_int64_t+set}" = set; then
19372   echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374   cat >conftest.$ac_ext <<_ACEOF
19375 #line $LINENO "configure"
19376 /* confdefs.h.  */
19377 _ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h.  */
19381 $ac_includes_default
19382 int
19383 main ()
19384 {
19385 if ((int64_t *) 0)
19386   return 0;
19387 if (sizeof (int64_t))
19388   return 0;
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 rm -f conftest.$ac_objext
19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19395   (eval $ac_compile) 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } &&
19399          { ac_try='test -s conftest.$ac_objext'
19400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401   (eval $ac_try) 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }; }; then
19405   ac_cv_type_int64_t=yes
19406 else
19407   echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19409
19410 ac_cv_type_int64_t=no
19411 fi
19412 rm -f conftest.$ac_objext conftest.$ac_ext
19413 fi
19414 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19415 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19416 if test $ac_cv_type_int64_t = yes; then
19417
19418 cat >>confdefs.h <<_ACEOF
19419 #define HAVE_INT64_T 1
19420 _ACEOF
19421
19422
19423 else
19424   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19425 echo "$as_me: error: Type int64_t required but not found" >&2;}
19426    { (exit 1); exit 1; }; }
19427 fi
19428
19429 echo "$as_me:$LINENO: checking for uint64_t" >&5
19430 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19431 if test "${ac_cv_type_uint64_t+set}" = set; then
19432   echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434   cat >conftest.$ac_ext <<_ACEOF
19435 #line $LINENO "configure"
19436 /* confdefs.h.  */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h.  */
19441 $ac_includes_default
19442 int
19443 main ()
19444 {
19445 if ((uint64_t *) 0)
19446   return 0;
19447 if (sizeof (uint64_t))
19448   return 0;
19449   ;
19450   return 0;
19451 }
19452 _ACEOF
19453 rm -f conftest.$ac_objext
19454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19455   (eval $ac_compile) 2>&5
19456   ac_status=$?
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } &&
19459          { ac_try='test -s conftest.$ac_objext'
19460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461   (eval $ac_try) 2>&5
19462   ac_status=$?
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); }; }; then
19465   ac_cv_type_uint64_t=yes
19466 else
19467   echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19469
19470 ac_cv_type_uint64_t=no
19471 fi
19472 rm -f conftest.$ac_objext conftest.$ac_ext
19473 fi
19474 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19475 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19476 if test $ac_cv_type_uint64_t = yes; then
19477
19478 cat >>confdefs.h <<_ACEOF
19479 #define HAVE_UINT64_T 1
19480 _ACEOF
19481
19482
19483 else
19484   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19485 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19486    { (exit 1); exit 1; }; }
19487 fi
19488
19489 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19490 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19491 if test "${ac_cv_header_time+set}" = set; then
19492   echo $ECHO_N "(cached) $ECHO_C" >&6
19493 else
19494   cat >conftest.$ac_ext <<_ACEOF
19495 #line $LINENO "configure"
19496 /* confdefs.h.  */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h.  */
19501 #include <sys/types.h>
19502 #include <sys/time.h>
19503 #include <time.h>
19504
19505 int
19506 main ()
19507 {
19508 if ((struct tm *) 0)
19509 return 0;
19510   ;
19511   return 0;
19512 }
19513 _ACEOF
19514 rm -f conftest.$ac_objext
19515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19516   (eval $ac_compile) 2>&5
19517   ac_status=$?
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); } &&
19520          { ac_try='test -s conftest.$ac_objext'
19521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522   (eval $ac_try) 2>&5
19523   ac_status=$?
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); }; }; then
19526   ac_cv_header_time=yes
19527 else
19528   echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19530
19531 ac_cv_header_time=no
19532 fi
19533 rm -f conftest.$ac_objext conftest.$ac_ext
19534 fi
19535 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19536 echo "${ECHO_T}$ac_cv_header_time" >&6
19537 if test $ac_cv_header_time = yes; then
19538
19539 cat >>confdefs.h <<\_ACEOF
19540 #define TIME_WITH_SYS_TIME 1
19541 _ACEOF
19542
19543 fi
19544
19545 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19546 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19547 if test "${ac_cv_struct_tm+set}" = set; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550   cat >conftest.$ac_ext <<_ACEOF
19551 #line $LINENO "configure"
19552 /* confdefs.h.  */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h.  */
19557 #include <sys/types.h>
19558 #include <time.h>
19559
19560 int
19561 main ()
19562 {
19563 struct tm *tp; tp->tm_sec;
19564   ;
19565   return 0;
19566 }
19567 _ACEOF
19568 rm -f conftest.$ac_objext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19570   (eval $ac_compile) 2>&5
19571   ac_status=$?
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); } &&
19574          { ac_try='test -s conftest.$ac_objext'
19575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576   (eval $ac_try) 2>&5
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); }; }; then
19580   ac_cv_struct_tm=time.h
19581 else
19582   echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585 ac_cv_struct_tm=sys/time.h
19586 fi
19587 rm -f conftest.$ac_objext conftest.$ac_ext
19588 fi
19589 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19590 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19591 if test $ac_cv_struct_tm = sys/time.h; then
19592
19593 cat >>confdefs.h <<\_ACEOF
19594 #define TM_IN_SYS_TIME 1
19595 _ACEOF
19596
19597 fi
19598
19599
19600
19601
19602
19603         ac_ext=c
19604 ac_cpp='$CPP $CPPFLAGS'
19605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19608
19609         if test "$cross_compiling" = yes; then
19610   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19611 See \`config.log' for more details." >&5
19612 echo "$as_me: error: cannot run test program while cross compiling
19613 See \`config.log' for more details." >&2;}
19614    { (exit 1); exit 1; }; }
19615 else
19616   cat >conftest.$ac_ext <<_ACEOF
19617 #line $LINENO "configure"
19618 /* confdefs.h.  */
19619 _ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h.  */
19623 #include <stdio.h>
19624                                  #include <stdlib.h>
19625 int
19626 main ()
19627 {
19628
19629                                  volatile double A, B;
19630                                  char Buffer[100];
19631                                  A = 1;
19632                                  A /= 10.0;
19633                                  sprintf(Buffer, "%a", A);
19634                                  B = atof(Buffer);
19635                                  if (A != B)
19636                                                          return (1);
19637                                  if (A != 0x1.999999999999ap-4)
19638                                                          return (1);
19639                                  return (0);
19640   ;
19641   return 0;
19642 }
19643 _ACEOF
19644 rm -f conftest$ac_exeext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19646   (eval $ac_link) 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651   (eval $ac_try) 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }; }; then
19655   ac_c_printf_a=yes
19656 else
19657   echo "$as_me: program exited with status $ac_status" >&5
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661 ( exit $ac_status )
19662 ac_c_printf_a=no
19663 fi
19664 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19665 fi
19666         ac_ext=c
19667 ac_cpp='$CPP $CPPFLAGS'
19668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19671
19672         if test "$ac_c_printf_a" = "yes"; then
19673
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE_PRINTF_A 1
19676 _ACEOF
19677
19678         fi
19679
19680
19681 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19682 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19683 if test "${ac_cv_cxx_namespaces+set}" = set; then
19684   echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686
19687
19688  ac_ext=cc
19689 ac_cpp='$CXXCPP $CPPFLAGS'
19690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19693
19694  cat >conftest.$ac_ext <<_ACEOF
19695 #line $LINENO "configure"
19696 /* confdefs.h.  */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h.  */
19701 namespace Outer { namespace Inner { int i = 0; }}
19702 int
19703 main ()
19704 {
19705 using namespace Outer::Inner; return i;
19706   ;
19707   return 0;
19708 }
19709 _ACEOF
19710 rm -f conftest.$ac_objext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19712   (eval $ac_compile) 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); } &&
19716          { ac_try='test -s conftest.$ac_objext'
19717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718   (eval $ac_try) 2>&5
19719   ac_status=$?
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); }; }; then
19722   ac_cv_cxx_namespaces=yes
19723 else
19724   echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19726
19727 ac_cv_cxx_namespaces=no
19728 fi
19729 rm -f conftest.$ac_objext conftest.$ac_ext
19730  ac_ext=c
19731 ac_cpp='$CPP $CPPFLAGS'
19732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19735
19736
19737 fi
19738 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19739 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19740 if test "$ac_cv_cxx_namespaces" = yes; then
19741
19742 cat >>confdefs.h <<\_ACEOF
19743 #define HAVE_NAMESPACES
19744 _ACEOF
19745
19746 fi
19747
19748 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
19749 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
19750 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753
19754
19755
19756   ac_ext=cc
19757 ac_cpp='$CXXCPP $CPPFLAGS'
19758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19761
19762   cat >conftest.$ac_ext <<_ACEOF
19763 #line $LINENO "configure"
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769 #include <ext/hash_map>
19770 #ifdef HAVE_NAMESPACES
19771 using namespace std;
19772 #endif
19773 int
19774 main ()
19775 {
19776 hash_map<int, int> t;
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19783   (eval $ac_compile) 2>&5
19784   ac_status=$?
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); } &&
19787          { ac_try='test -s conftest.$ac_objext'
19788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789   (eval $ac_try) 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; }; then
19793   ac_cv_cxx_have_std_ext_hash_map=yes
19794 else
19795   echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19797
19798 ac_cv_cxx_have_std_ext_hash_map=no
19799 fi
19800 rm -f conftest.$ac_objext conftest.$ac_ext
19801   ac_ext=c
19802 ac_cpp='$CPP $CPPFLAGS'
19803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19806
19807 fi
19808 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
19809 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
19810  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
19811
19812 cat >>confdefs.h <<\_ACEOF
19813 #define HAVE_STD_EXT_HASH_MAP
19814 _ACEOF
19815
19816  fi
19817  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
19818 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
19819 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822
19823
19824
19825   ac_ext=cc
19826 ac_cpp='$CXXCPP $CPPFLAGS'
19827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19830
19831   cat >conftest.$ac_ext <<_ACEOF
19832 #line $LINENO "configure"
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838 #include <ext/hash_map>
19839 #ifdef HAVE_NAMESPACES
19840 using namespace __gnu_cxx;
19841 #endif
19842 int
19843 main ()
19844 {
19845 hash_map<int,int> t;
19846   ;
19847   return 0;
19848 }
19849 _ACEOF
19850 rm -f conftest.$ac_objext
19851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19852   (eval $ac_compile) 2>&5
19853   ac_status=$?
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); } &&
19856          { ac_try='test -s conftest.$ac_objext'
19857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858   (eval $ac_try) 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); }; }; then
19862   ac_cv_cxx_have_gnu_ext_hash_map=yes
19863 else
19864   echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867 ac_cv_cxx_have_gnu_ext_hash_map=no
19868 fi
19869 rm -f conftest.$ac_objext conftest.$ac_ext
19870   ac_ext=c
19871 ac_cpp='$CPP $CPPFLAGS'
19872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19875
19876 fi
19877 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
19878 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
19879  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
19880
19881 cat >>confdefs.h <<\_ACEOF
19882 #define HAVE_GNU_EXT_HASH_MAP
19883 _ACEOF
19884
19885  fi
19886  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
19887 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
19888 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
19889   echo $ECHO_N "(cached) $ECHO_C" >&6
19890 else
19891
19892
19893
19894   ac_ext=cc
19895 ac_cpp='$CXXCPP $CPPFLAGS'
19896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19899
19900   cat >conftest.$ac_ext <<_ACEOF
19901 #line $LINENO "configure"
19902 /* confdefs.h.  */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h.  */
19907 #include <hash_map>
19908 int
19909 main ()
19910 {
19911 hash_map<int,int> t;
19912   ;
19913   return 0;
19914 }
19915 _ACEOF
19916 rm -f conftest.$ac_objext
19917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19918   (eval $ac_compile) 2>&5
19919   ac_status=$?
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); } &&
19922          { ac_try='test -s conftest.$ac_objext'
19923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924   (eval $ac_try) 2>&5
19925   ac_status=$?
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); }; }; then
19928   ac_cv_cxx_have_global_hash_map=yes
19929 else
19930   echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19932
19933 ac_cv_cxx_have_global_hash_map=no
19934 fi
19935 rm -f conftest.$ac_objext conftest.$ac_ext
19936   ac_ext=c
19937 ac_cpp='$CPP $CPPFLAGS'
19938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19941
19942 fi
19943 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
19944 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
19945  if test "$ac_cv_cxx_have_global_hash_map" = yes; then
19946
19947 cat >>confdefs.h <<\_ACEOF
19948 #define HAVE_GLOBAL_HASH_MAP
19949 _ACEOF
19950
19951  fi
19952 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
19953 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
19954 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
19955   echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957
19958
19959
19960   ac_ext=cc
19961 ac_cpp='$CXXCPP $CPPFLAGS'
19962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19965
19966   cat >conftest.$ac_ext <<_ACEOF
19967 #line $LINENO "configure"
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973 #include <ext/hash_set>
19974 #ifdef HAVE_NAMESPACES
19975 using namespace std;
19976 #endif
19977 int
19978 main ()
19979 {
19980 hash_set<int> t;
19981   ;
19982   return 0;
19983 }
19984 _ACEOF
19985 rm -f conftest.$ac_objext
19986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19987   (eval $ac_compile) 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); } &&
19991          { ac_try='test -s conftest.$ac_objext'
19992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993   (eval $ac_try) 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; }; then
19997   ac_cv_cxx_have_std_ext_hash_set=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002 ac_cv_cxx_have_std_ext_hash_set=no
20003 fi
20004 rm -f conftest.$ac_objext conftest.$ac_ext
20005   ac_ext=c
20006 ac_cpp='$CPP $CPPFLAGS'
20007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20010
20011 fi
20012 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20013 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20014  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20015
20016 cat >>confdefs.h <<\_ACEOF
20017 #define HAVE_STD_EXT_HASH_SET
20018 _ACEOF
20019
20020  fi
20021  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20022 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20023 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20024   echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026
20027
20028
20029   ac_ext=cc
20030 ac_cpp='$CXXCPP $CPPFLAGS'
20031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20034
20035   cat >conftest.$ac_ext <<_ACEOF
20036 #line $LINENO "configure"
20037 /* confdefs.h.  */
20038 _ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h.  */
20042 #include <ext/hash_set>
20043 #ifdef HAVE_NAMESPACES
20044 using namespace __gnu_cxx;
20045 #endif
20046 int
20047 main ()
20048 {
20049 hash_set<int> t;
20050   ;
20051   return 0;
20052 }
20053 _ACEOF
20054 rm -f conftest.$ac_objext
20055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20056   (eval $ac_compile) 2>&5
20057   ac_status=$?
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); } &&
20060          { ac_try='test -s conftest.$ac_objext'
20061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062   (eval $ac_try) 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); }; }; then
20066   ac_cv_cxx_have_gnu_ext_hash_set=yes
20067 else
20068   echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20070
20071 ac_cv_cxx_have_gnu_ext_hash_set=no
20072 fi
20073 rm -f conftest.$ac_objext conftest.$ac_ext
20074   ac_ext=c
20075 ac_cpp='$CPP $CPPFLAGS'
20076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20079
20080 fi
20081 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20082 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20083  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20084
20085 cat >>confdefs.h <<\_ACEOF
20086 #define HAVE_GNU_EXT_HASH_SET
20087 _ACEOF
20088
20089  fi
20090  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20091 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20092 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20093   echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095
20096
20097
20098   ac_ext=cc
20099 ac_cpp='$CXXCPP $CPPFLAGS'
20100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20103
20104   cat >conftest.$ac_ext <<_ACEOF
20105 #line $LINENO "configure"
20106 /* confdefs.h.  */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h.  */
20111 #include <hash_set>
20112 int
20113 main ()
20114 {
20115 hash_set<int> t; return 0;
20116   ;
20117   return 0;
20118 }
20119 _ACEOF
20120 rm -f conftest.$ac_objext
20121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20122   (eval $ac_compile) 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); } &&
20126          { ac_try='test -s conftest.$ac_objext'
20127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128   (eval $ac_try) 2>&5
20129   ac_status=$?
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); }; }; then
20132   ac_cv_cxx_have_global_hash_set=yes
20133 else
20134   echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20136
20137 ac_cv_cxx_have_global_hash_set=no
20138 fi
20139 rm -f conftest.$ac_objext conftest.$ac_ext
20140   ac_ext=c
20141 ac_cpp='$CPP $CPPFLAGS'
20142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20145
20146 fi
20147 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20148 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20149  if test "$ac_cv_cxx_have_global_hash_set" = yes; then
20150
20151 cat >>confdefs.h <<\_ACEOF
20152 #define HAVE_GLOBAL_HASH_SET
20153 _ACEOF
20154
20155  fi
20156 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20157 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20158 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20159   echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161
20162
20163
20164   ac_ext=cc
20165 ac_cpp='$CXXCPP $CPPFLAGS'
20166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20169
20170   cat >conftest.$ac_ext <<_ACEOF
20171 #line $LINENO "configure"
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177 #include <ext/slist>
20178 #ifdef HAVE_NAMESPACES
20179 using namespace std;
20180 #endif
20181 int
20182 main ()
20183 {
20184 slist<int> s; return 0;
20185   ;
20186   return 0;
20187 }
20188 _ACEOF
20189 rm -f conftest.$ac_objext
20190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20191   (eval $ac_compile) 2>&5
20192   ac_status=$?
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); } &&
20195          { ac_try='test -s conftest.$ac_objext'
20196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197   (eval $ac_try) 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); }; }; then
20201   ac_cv_cxx_have_ext_slist=std
20202 else
20203   echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20205
20206 ac_cv_cxx_have_ext_slist=no
20207 fi
20208 rm -f conftest.$ac_objext conftest.$ac_ext
20209   cat >conftest.$ac_ext <<_ACEOF
20210 #line $LINENO "configure"
20211 /* confdefs.h.  */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h.  */
20216 #include <ext/slist>
20217 #ifdef HAVE_NAMESPACES
20218 using namespace __gnu_cxx;
20219 #endif
20220 int
20221 main ()
20222 {
20223 slist<int> s; return 0;
20224   ;
20225   return 0;
20226 }
20227 _ACEOF
20228 rm -f conftest.$ac_objext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20230   (eval $ac_compile) 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); } &&
20234          { ac_try='test -s conftest.$ac_objext'
20235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236   (eval $ac_try) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; }; then
20240   ac_cv_cxx_have_ext_slist=gnu
20241 else
20242   echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245 ac_cv_cxx_have_ext_slist=no
20246 fi
20247 rm -f conftest.$ac_objext conftest.$ac_ext
20248
20249   ac_ext=c
20250 ac_cpp='$CPP $CPPFLAGS'
20251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20254
20255
20256 fi
20257 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20258 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20259 if test "$ac_cv_cxx_have_ext_slist" = std; then
20260
20261 cat >>confdefs.h <<\_ACEOF
20262 #define HAVE_EXT_SLIST std
20263 _ACEOF
20264
20265 fi
20266 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20267
20268 cat >>confdefs.h <<\_ACEOF
20269 #define HAVE_EXT_SLIST gnu
20270 _ACEOF
20271
20272 fi
20273
20274 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20275 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20276 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279
20280
20281
20282   ac_ext=cc
20283 ac_cpp='$CXXCPP $CPPFLAGS'
20284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20287
20288   cat >conftest.$ac_ext <<_ACEOF
20289 #line $LINENO "configure"
20290 /* confdefs.h.  */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h.  */
20295 #include <iterator>
20296 #ifdef HAVE_NAMESPACES
20297 using namespace std;
20298 #endif
20299 int
20300 main ()
20301 {
20302 iterator<int,int,int> t; return 0;
20303   ;
20304   return 0;
20305 }
20306 _ACEOF
20307 rm -f conftest.$ac_objext
20308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20309   (eval $ac_compile) 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } &&
20313          { ac_try='test -s conftest.$ac_objext'
20314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315   (eval $ac_try) 2>&5
20316   ac_status=$?
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); }; }; then
20319   ac_cv_cxx_have_std_iterator=yes
20320 else
20321   echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20323
20324 ac_cv_cxx_have_std_iterator=no
20325 fi
20326 rm -f conftest.$ac_objext conftest.$ac_ext
20327   ac_ext=c
20328 ac_cpp='$CPP $CPPFLAGS'
20329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20332
20333
20334 fi
20335 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20336 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20337 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20338
20339 cat >>confdefs.h <<\_ACEOF
20340 #define HAVE_STD_ITERATOR
20341 _ACEOF
20342
20343 fi
20344
20345 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20346 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20347 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20348   echo $ECHO_N "(cached) $ECHO_C" >&6
20349 else
20350
20351
20352
20353   ac_ext=cc
20354 ac_cpp='$CXXCPP $CPPFLAGS'
20355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20358
20359   cat >conftest.$ac_ext <<_ACEOF
20360 #line $LINENO "configure"
20361 /* confdefs.h.  */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h.  */
20366 #include <iterator>
20367 #ifdef HAVE_NAMESPACES
20368 using namespace std;
20369 #endif
20370 int
20371 main ()
20372 {
20373 bidirectional_iterator<int,int> t; return 0;
20374   ;
20375   return 0;
20376 }
20377 _ACEOF
20378 rm -f conftest.$ac_objext
20379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20380   (eval $ac_compile) 2>&5
20381   ac_status=$?
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); } &&
20384          { ac_try='test -s conftest.$ac_objext'
20385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386   (eval $ac_try) 2>&5
20387   ac_status=$?
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); }; }; then
20390   ac_cv_cxx_have_bi_iterator=yes
20391 else
20392   echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20394
20395 ac_cv_cxx_have_bi_iterator=no
20396 fi
20397 rm -f conftest.$ac_objext conftest.$ac_ext
20398   ac_ext=c
20399 ac_cpp='$CPP $CPPFLAGS'
20400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20403
20404
20405 fi
20406 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20407 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20408 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20409
20410 cat >>confdefs.h <<\_ACEOF
20411 #define HAVE_BI_ITERATOR
20412 _ACEOF
20413
20414 fi
20415
20416 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20417 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20418 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20419   echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421
20422
20423
20424   ac_ext=cc
20425 ac_cpp='$CXXCPP $CPPFLAGS'
20426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20429
20430   cat >conftest.$ac_ext <<_ACEOF
20431 #line $LINENO "configure"
20432 /* confdefs.h.  */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h.  */
20437 #include <iterator>
20438 #ifdef HAVE_NAMESPACES
20439 using namespace std;
20440 #endif
20441 int
20442 main ()
20443 {
20444 forward_iterator<int,int> t; return 0;
20445   ;
20446   return 0;
20447 }
20448 _ACEOF
20449 rm -f conftest.$ac_objext
20450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451   (eval $ac_compile) 2>&5
20452   ac_status=$?
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } &&
20455          { ac_try='test -s conftest.$ac_objext'
20456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457   (eval $ac_try) 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; }; then
20461   ac_cv_cxx_have_fwd_iterator=yes
20462 else
20463   echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20465
20466 ac_cv_cxx_have_fwd_iterator=no
20467 fi
20468 rm -f conftest.$ac_objext conftest.$ac_ext
20469   ac_ext=c
20470 ac_cpp='$CPP $CPPFLAGS'
20471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20474
20475
20476 fi
20477 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20478 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20479 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20480
20481 cat >>confdefs.h <<\_ACEOF
20482 #define HAVE_FWD_ITERATOR
20483 _ACEOF
20484
20485 fi
20486
20487
20488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20489 # for constant arguments.  Useless!
20490 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20491 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20492 if test "${ac_cv_working_alloca_h+set}" = set; then
20493   echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495   cat >conftest.$ac_ext <<_ACEOF
20496 #line $LINENO "configure"
20497 /* confdefs.h.  */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h.  */
20502 #include <alloca.h>
20503 int
20504 main ()
20505 {
20506 char *p = (char *) alloca (2 * sizeof (int));
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext conftest$ac_exeext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20513   (eval $ac_link) 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); } &&
20517          { ac_try='test -s conftest$ac_exeext'
20518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519   (eval $ac_try) 2>&5
20520   ac_status=$?
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); }; }; then
20523   ac_cv_working_alloca_h=yes
20524 else
20525   echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528 ac_cv_working_alloca_h=no
20529 fi
20530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20531 fi
20532 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20533 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20534 if test $ac_cv_working_alloca_h = yes; then
20535
20536 cat >>confdefs.h <<\_ACEOF
20537 #define HAVE_ALLOCA_H 1
20538 _ACEOF
20539
20540 fi
20541
20542 echo "$as_me:$LINENO: checking for alloca" >&5
20543 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20544 if test "${ac_cv_func_alloca_works+set}" = set; then
20545   echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547   cat >conftest.$ac_ext <<_ACEOF
20548 #line $LINENO "configure"
20549 /* confdefs.h.  */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h.  */
20554 #ifdef __GNUC__
20555 # define alloca __builtin_alloca
20556 #else
20557 # ifdef _MSC_VER
20558 #  include <malloc.h>
20559 #  define alloca _alloca
20560 # else
20561 #  if HAVE_ALLOCA_H
20562 #   include <alloca.h>
20563 #  else
20564 #   ifdef _AIX
20565  #pragma alloca
20566 #   else
20567 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20568 char *alloca ();
20569 #    endif
20570 #   endif
20571 #  endif
20572 # endif
20573 #endif
20574
20575 int
20576 main ()
20577 {
20578 char *p = (char *) alloca (1);
20579   ;
20580   return 0;
20581 }
20582 _ACEOF
20583 rm -f conftest.$ac_objext conftest$ac_exeext
20584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20585   (eval $ac_link) 2>&5
20586   ac_status=$?
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); } &&
20589          { ac_try='test -s conftest$ac_exeext'
20590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591   (eval $ac_try) 2>&5
20592   ac_status=$?
20593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594   (exit $ac_status); }; }; then
20595   ac_cv_func_alloca_works=yes
20596 else
20597   echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20599
20600 ac_cv_func_alloca_works=no
20601 fi
20602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20603 fi
20604 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20605 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20606
20607 if test $ac_cv_func_alloca_works = yes; then
20608
20609 cat >>confdefs.h <<\_ACEOF
20610 #define HAVE_ALLOCA 1
20611 _ACEOF
20612
20613 else
20614   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20615 # that cause trouble.  Some versions do not even contain alloca or
20616 # contain a buggy version.  If you still want to use their alloca,
20617 # use ar to extract alloca.o from them instead of compiling alloca.c.
20618
20619 ALLOCA=alloca.$ac_objext
20620
20621 cat >>confdefs.h <<\_ACEOF
20622 #define C_ALLOCA 1
20623 _ACEOF
20624
20625
20626 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20627 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20628 if test "${ac_cv_os_cray+set}" = set; then
20629   echo $ECHO_N "(cached) $ECHO_C" >&6
20630 else
20631   cat >conftest.$ac_ext <<_ACEOF
20632 #line $LINENO "configure"
20633 /* confdefs.h.  */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h.  */
20638 #if defined(CRAY) && ! defined(CRAY2)
20639 webecray
20640 #else
20641 wenotbecray
20642 #endif
20643
20644 _ACEOF
20645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20646   $EGREP "webecray" >/dev/null 2>&1; then
20647   ac_cv_os_cray=yes
20648 else
20649   ac_cv_os_cray=no
20650 fi
20651 rm -f conftest*
20652
20653 fi
20654 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20655 echo "${ECHO_T}$ac_cv_os_cray" >&6
20656 if test $ac_cv_os_cray = yes; then
20657   for ac_func in _getb67 GETB67 getb67; do
20658     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20659 echo "$as_me:$LINENO: checking for $ac_func" >&5
20660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20661 if eval "test \"\${$as_ac_var+set}\" = set"; then
20662   echo $ECHO_N "(cached) $ECHO_C" >&6
20663 else
20664   cat >conftest.$ac_ext <<_ACEOF
20665 #line $LINENO "configure"
20666 /* confdefs.h.  */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h.  */
20671 /* System header to define __stub macros and hopefully few prototypes,
20672     which can conflict with char $ac_func (); below.
20673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20674     <limits.h> exists even on freestanding compilers.  */
20675 #ifdef __STDC__
20676 # include <limits.h>
20677 #else
20678 # include <assert.h>
20679 #endif
20680 /* Override any gcc2 internal prototype to avoid an error.  */
20681 #ifdef __cplusplus
20682 extern "C"
20683 {
20684 #endif
20685 /* We use char because int might match the return type of a gcc2
20686    builtin and then its argument prototype would still apply.  */
20687 char $ac_func ();
20688 /* The GNU C library defines this for functions which it implements
20689     to always fail with ENOSYS.  Some functions are actually named
20690     something starting with __ and the normal name is an alias.  */
20691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20692 choke me
20693 #else
20694 char (*f) () = $ac_func;
20695 #endif
20696 #ifdef __cplusplus
20697 }
20698 #endif
20699
20700 int
20701 main ()
20702 {
20703 return f != $ac_func;
20704   ;
20705   return 0;
20706 }
20707 _ACEOF
20708 rm -f conftest.$ac_objext conftest$ac_exeext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20710   (eval $ac_link) 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); } &&
20714          { ac_try='test -s conftest$ac_exeext'
20715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716   (eval $ac_try) 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; }; then
20720   eval "$as_ac_var=yes"
20721 else
20722   echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725 eval "$as_ac_var=no"
20726 fi
20727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20728 fi
20729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20731 if test `eval echo '${'$as_ac_var'}'` = yes; then
20732
20733 cat >>confdefs.h <<_ACEOF
20734 #define CRAY_STACKSEG_END $ac_func
20735 _ACEOF
20736
20737     break
20738 fi
20739
20740   done
20741 fi
20742
20743 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20744 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20745 if test "${ac_cv_c_stack_direction+set}" = set; then
20746   echo $ECHO_N "(cached) $ECHO_C" >&6
20747 else
20748   if test "$cross_compiling" = yes; then
20749   ac_cv_c_stack_direction=0
20750 else
20751   cat >conftest.$ac_ext <<_ACEOF
20752 #line $LINENO "configure"
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758 int
20759 find_stack_direction ()
20760 {
20761   static char *addr = 0;
20762   auto char dummy;
20763   if (addr == 0)
20764     {
20765       addr = &dummy;
20766       return find_stack_direction ();
20767     }
20768   else
20769     return (&dummy > addr) ? 1 : -1;
20770 }
20771
20772 int
20773 main ()
20774 {
20775   exit (find_stack_direction () < 0);
20776 }
20777 _ACEOF
20778 rm -f conftest$ac_exeext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20780   (eval $ac_link) 2>&5
20781   ac_status=$?
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785   (eval $ac_try) 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); }; }; then
20789   ac_cv_c_stack_direction=1
20790 else
20791   echo "$as_me: program exited with status $ac_status" >&5
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20794
20795 ( exit $ac_status )
20796 ac_cv_c_stack_direction=-1
20797 fi
20798 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20799 fi
20800 fi
20801 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20802 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20803
20804 cat >>confdefs.h <<_ACEOF
20805 #define STACK_DIRECTION $ac_cv_c_stack_direction
20806 _ACEOF
20807
20808
20809 fi
20810
20811
20812
20813 for ac_header in stdlib.h unistd.h
20814 do
20815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20817   echo "$as_me:$LINENO: checking for $ac_header" >&5
20818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20820   echo $ECHO_N "(cached) $ECHO_C" >&6
20821 fi
20822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20824 else
20825   # Is the header compilable?
20826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20828 cat >conftest.$ac_ext <<_ACEOF
20829 #line $LINENO "configure"
20830 /* confdefs.h.  */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h.  */
20835 $ac_includes_default
20836 #include <$ac_header>
20837 _ACEOF
20838 rm -f conftest.$ac_objext
20839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840   (eval $ac_compile) 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); } &&
20844          { ac_try='test -s conftest.$ac_objext'
20845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846   (eval $ac_try) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; }; then
20850   ac_header_compiler=yes
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 ac_header_compiler=no
20856 fi
20857 rm -f conftest.$ac_objext conftest.$ac_ext
20858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20859 echo "${ECHO_T}$ac_header_compiler" >&6
20860
20861 # Is the header present?
20862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20864 cat >conftest.$ac_ext <<_ACEOF
20865 #line $LINENO "configure"
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871 #include <$ac_header>
20872 _ACEOF
20873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20874   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20875   ac_status=$?
20876   grep -v '^ *+' conftest.er1 >conftest.err
20877   rm -f conftest.er1
20878   cat conftest.err >&5
20879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); } >/dev/null; then
20881   if test -s conftest.err; then
20882     ac_cpp_err=$ac_c_preproc_warn_flag
20883   else
20884     ac_cpp_err=
20885   fi
20886 else
20887   ac_cpp_err=yes
20888 fi
20889 if test -z "$ac_cpp_err"; then
20890   ac_header_preproc=yes
20891 else
20892   echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895   ac_header_preproc=no
20896 fi
20897 rm -f conftest.err conftest.$ac_ext
20898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20899 echo "${ECHO_T}$ac_header_preproc" >&6
20900
20901 # So?  What about this header?
20902 case $ac_header_compiler:$ac_header_preproc in
20903   yes:no )
20904     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20908     (
20909       cat <<\_ASBOX
20910 ## ------------------------------------ ##
20911 ## Report this to bug-autoconf@gnu.org. ##
20912 ## ------------------------------------ ##
20913 _ASBOX
20914     ) |
20915       sed "s/^/$as_me: WARNING:     /" >&2
20916     ;;
20917   no:yes )
20918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20920     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20924     (
20925       cat <<\_ASBOX
20926 ## ------------------------------------ ##
20927 ## Report this to bug-autoconf@gnu.org. ##
20928 ## ------------------------------------ ##
20929 _ASBOX
20930     ) |
20931       sed "s/^/$as_me: WARNING:     /" >&2
20932     ;;
20933 esac
20934 echo "$as_me:$LINENO: checking for $ac_header" >&5
20935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20937   echo $ECHO_N "(cached) $ECHO_C" >&6
20938 else
20939   eval "$as_ac_Header=$ac_header_preproc"
20940 fi
20941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20943
20944 fi
20945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20946   cat >>confdefs.h <<_ACEOF
20947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20948 _ACEOF
20949
20950 fi
20951
20952 done
20953
20954
20955 for ac_func in getpagesize
20956 do
20957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20958 echo "$as_me:$LINENO: checking for $ac_func" >&5
20959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20960 if eval "test \"\${$as_ac_var+set}\" = set"; then
20961   echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963   cat >conftest.$ac_ext <<_ACEOF
20964 #line $LINENO "configure"
20965 /* confdefs.h.  */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h.  */
20970 /* System header to define __stub macros and hopefully few prototypes,
20971     which can conflict with char $ac_func (); below.
20972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20973     <limits.h> exists even on freestanding compilers.  */
20974 #ifdef __STDC__
20975 # include <limits.h>
20976 #else
20977 # include <assert.h>
20978 #endif
20979 /* Override any gcc2 internal prototype to avoid an error.  */
20980 #ifdef __cplusplus
20981 extern "C"
20982 {
20983 #endif
20984 /* We use char because int might match the return type of a gcc2
20985    builtin and then its argument prototype would still apply.  */
20986 char $ac_func ();
20987 /* The GNU C library defines this for functions which it implements
20988     to always fail with ENOSYS.  Some functions are actually named
20989     something starting with __ and the normal name is an alias.  */
20990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20991 choke me
20992 #else
20993 char (*f) () = $ac_func;
20994 #endif
20995 #ifdef __cplusplus
20996 }
20997 #endif
20998
20999 int
21000 main ()
21001 {
21002 return f != $ac_func;
21003   ;
21004   return 0;
21005 }
21006 _ACEOF
21007 rm -f conftest.$ac_objext conftest$ac_exeext
21008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21009   (eval $ac_link) 2>&5
21010   ac_status=$?
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); } &&
21013          { ac_try='test -s conftest$ac_exeext'
21014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015   (eval $ac_try) 2>&5
21016   ac_status=$?
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); }; }; then
21019   eval "$as_ac_var=yes"
21020 else
21021   echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024 eval "$as_ac_var=no"
21025 fi
21026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21027 fi
21028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21030 if test `eval echo '${'$as_ac_var'}'` = yes; then
21031   cat >>confdefs.h <<_ACEOF
21032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21033 _ACEOF
21034
21035 fi
21036 done
21037
21038 echo "$as_me:$LINENO: checking for working mmap" >&5
21039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21041   echo $ECHO_N "(cached) $ECHO_C" >&6
21042 else
21043   if test "$cross_compiling" = yes; then
21044   ac_cv_func_mmap_fixed_mapped=no
21045 else
21046   cat >conftest.$ac_ext <<_ACEOF
21047 #line $LINENO "configure"
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 $ac_includes_default
21054 /* malloc might have been renamed as rpl_malloc. */
21055 #undef malloc
21056
21057 /* Thanks to Mike Haertel and Jim Avera for this test.
21058    Here is a matrix of mmap possibilities:
21059         mmap private not fixed
21060         mmap private fixed at somewhere currently unmapped
21061         mmap private fixed at somewhere already mapped
21062         mmap shared not fixed
21063         mmap shared fixed at somewhere currently unmapped
21064         mmap shared fixed at somewhere already mapped
21065    For private mappings, we should verify that changes cannot be read()
21066    back from the file, nor mmap's back from the file at a different
21067    address.  (There have been systems where private was not correctly
21068    implemented like the infamous i386 svr4.0, and systems where the
21069    VM page cache was not coherent with the file system buffer cache
21070    like early versions of FreeBSD and possibly contemporary NetBSD.)
21071    For shared mappings, we should conversely verify that changes get
21072    propagated back to all the places they're supposed to be.
21073
21074    Grep wants private fixed already mapped.
21075    The main things grep needs to know about mmap are:
21076    * does it exist and is it safe to write into the mmap'd area
21077    * how to use it (BSD variants)  */
21078
21079 #include <fcntl.h>
21080 #include <sys/mman.h>
21081
21082 #if !STDC_HEADERS && !HAVE_STDLIB_H
21083 char *malloc ();
21084 #endif
21085
21086 /* This mess was copied from the GNU getpagesize.h.  */
21087 #if !HAVE_GETPAGESIZE
21088 /* Assume that all systems that can run configure have sys/param.h.  */
21089 # if !HAVE_SYS_PARAM_H
21090 #  define HAVE_SYS_PARAM_H 1
21091 # endif
21092
21093 # ifdef _SC_PAGESIZE
21094 #  define getpagesize() sysconf(_SC_PAGESIZE)
21095 # else /* no _SC_PAGESIZE */
21096 #  if HAVE_SYS_PARAM_H
21097 #   include <sys/param.h>
21098 #   ifdef EXEC_PAGESIZE
21099 #    define getpagesize() EXEC_PAGESIZE
21100 #   else /* no EXEC_PAGESIZE */
21101 #    ifdef NBPG
21102 #     define getpagesize() NBPG * CLSIZE
21103 #     ifndef CLSIZE
21104 #      define CLSIZE 1
21105 #     endif /* no CLSIZE */
21106 #    else /* no NBPG */
21107 #     ifdef NBPC
21108 #      define getpagesize() NBPC
21109 #     else /* no NBPC */
21110 #      ifdef PAGESIZE
21111 #       define getpagesize() PAGESIZE
21112 #      endif /* PAGESIZE */
21113 #     endif /* no NBPC */
21114 #    endif /* no NBPG */
21115 #   endif /* no EXEC_PAGESIZE */
21116 #  else /* no HAVE_SYS_PARAM_H */
21117 #   define getpagesize() 8192   /* punt totally */
21118 #  endif /* no HAVE_SYS_PARAM_H */
21119 # endif /* no _SC_PAGESIZE */
21120
21121 #endif /* no HAVE_GETPAGESIZE */
21122
21123 int
21124 main ()
21125 {
21126   char *data, *data2, *data3;
21127   int i, pagesize;
21128   int fd;
21129
21130   pagesize = getpagesize ();
21131
21132   /* First, make a file with some known garbage in it. */
21133   data = (char *) malloc (pagesize);
21134   if (!data)
21135     exit (1);
21136   for (i = 0; i < pagesize; ++i)
21137     *(data + i) = rand ();
21138   umask (0);
21139   fd = creat ("conftest.mmap", 0600);
21140   if (fd < 0)
21141     exit (1);
21142   if (write (fd, data, pagesize) != pagesize)
21143     exit (1);
21144   close (fd);
21145
21146   /* Next, try to mmap the file at a fixed address which already has
21147      something else allocated at it.  If we can, also make sure that
21148      we see the same garbage.  */
21149   fd = open ("conftest.mmap", O_RDWR);
21150   if (fd < 0)
21151     exit (1);
21152   data2 = (char *) malloc (2 * pagesize);
21153   if (!data2)
21154     exit (1);
21155   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21156   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21157                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21158     exit (1);
21159   for (i = 0; i < pagesize; ++i)
21160     if (*(data + i) != *(data2 + i))
21161       exit (1);
21162
21163   /* Finally, make sure that changes to the mapped area do not
21164      percolate back to the file as seen by read().  (This is a bug on
21165      some variants of i386 svr4.0.)  */
21166   for (i = 0; i < pagesize; ++i)
21167     *(data2 + i) = *(data2 + i) + 1;
21168   data3 = (char *) malloc (pagesize);
21169   if (!data3)
21170     exit (1);
21171   if (read (fd, data3, pagesize) != pagesize)
21172     exit (1);
21173   for (i = 0; i < pagesize; ++i)
21174     if (*(data + i) != *(data3 + i))
21175       exit (1);
21176   close (fd);
21177   exit (0);
21178 }
21179 _ACEOF
21180 rm -f conftest$ac_exeext
21181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21182   (eval $ac_link) 2>&5
21183   ac_status=$?
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187   (eval $ac_try) 2>&5
21188   ac_status=$?
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); }; }; then
21191   ac_cv_func_mmap_fixed_mapped=yes
21192 else
21193   echo "$as_me: program exited with status $ac_status" >&5
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197 ( exit $ac_status )
21198 ac_cv_func_mmap_fixed_mapped=no
21199 fi
21200 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21201 fi
21202 fi
21203 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21204 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21205 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21206
21207 cat >>confdefs.h <<\_ACEOF
21208 #define HAVE_MMAP 1
21209 _ACEOF
21210
21211 fi
21212 rm -f conftest.mmap
21213
21214 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21215 then
21216         { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21217 echo "$as_me: error: mmap() required but not found" >&2;}
21218    { (exit 1); exit 1; }; }
21219 fi
21220 echo "$as_me:$LINENO: checking for mmap of files" >&5
21221 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21222 if test "${ac_cv_func_mmap_file+set}" = set; then
21223   echo $ECHO_N "(cached) $ECHO_C" >&6
21224 else
21225
21226
21227   ac_ext=c
21228 ac_cpp='$CPP $CPPFLAGS'
21229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21232
21233   if test "$cross_compiling" = yes; then
21234   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21235 See \`config.log' for more details." >&5
21236 echo "$as_me: error: cannot run test program while cross compiling
21237 See \`config.log' for more details." >&2;}
21238    { (exit 1); exit 1; }; }
21239 else
21240   cat >conftest.$ac_ext <<_ACEOF
21241 #line $LINENO "configure"
21242 /* confdefs.h.  */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h.  */
21247
21248 #ifdef HAVE_SYS_TYPES_H
21249 #include <sys/types.h>
21250 #endif
21251
21252 #ifdef HAVE_SYS_MMAN_H
21253 #include <sys/mman.h>
21254 #endif
21255
21256 #ifdef HAVE_FCNTL_H
21257 #include <fcntl.h>
21258 #endif
21259
21260   int fd;
21261   int main () {
21262   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21263 _ACEOF
21264 rm -f conftest$ac_exeext
21265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21266   (eval $ac_link) 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271   (eval $ac_try) 2>&5
21272   ac_status=$?
21273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); }; }; then
21275   ac_cv_func_mmap_file=yes
21276 else
21277   echo "$as_me: program exited with status $ac_status" >&5
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21280
21281 ( exit $ac_status )
21282 ac_cv_func_mmap_file=no
21283 fi
21284 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21285 fi
21286   ac_ext=c
21287 ac_cpp='$CPP $CPPFLAGS'
21288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21291
21292
21293 fi
21294 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21295 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21296 if test "$ac_cv_func_mmap_file" = yes; then
21297
21298 cat >>confdefs.h <<\_ACEOF
21299 #define HAVE_MMAP_FILE
21300 _ACEOF
21301
21302    MMAP_FILE=yes
21303
21304 fi
21305
21306 if test "$ac_cv_func_mmap_file" = "no"
21307 then
21308         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21309 echo "$as_me: error: mmap() of files required but not found" >&2;}
21310    { (exit 1); exit 1; }; }
21311 fi
21312 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21313 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21314 if test "${ac_cv_header_mmap_anon+set}" = set; then
21315   echo $ECHO_N "(cached) $ECHO_C" >&6
21316 else
21317
21318
21319   ac_ext=c
21320 ac_cpp='$CPP $CPPFLAGS'
21321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21324
21325   cat >conftest.$ac_ext <<_ACEOF
21326 #line $LINENO "configure"
21327 /* confdefs.h.  */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h.  */
21332 #include <sys/mman.h>
21333   #include <unistd.h>
21334   #include <fcntl.h>
21335 int
21336 main ()
21337 {
21338 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21339   ;
21340   return 0;
21341 }
21342 _ACEOF
21343 rm -f conftest.$ac_objext
21344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21345   (eval $ac_compile) 2>&5
21346   ac_status=$?
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); } &&
21349          { ac_try='test -s conftest.$ac_objext'
21350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351   (eval $ac_try) 2>&5
21352   ac_status=$?
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); }; }; then
21355   ac_cv_header_mmap_anon=yes
21356 else
21357   echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21359
21360 ac_cv_header_mmap_anon=no
21361 fi
21362 rm -f conftest.$ac_objext conftest.$ac_ext
21363   ac_ext=c
21364 ac_cpp='$CPP $CPPFLAGS'
21365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21368
21369
21370 fi
21371 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21372 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21373 if test "$ac_cv_header_mmap_anon" = yes; then
21374
21375 cat >>confdefs.h <<\_ACEOF
21376 #define HAVE_MMAP_ANONYMOUS
21377 _ACEOF
21378
21379 fi
21380
21381 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21382 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21383 if test "${ac_cv_type_signal+set}" = set; then
21384   echo $ECHO_N "(cached) $ECHO_C" >&6
21385 else
21386   cat >conftest.$ac_ext <<_ACEOF
21387 #line $LINENO "configure"
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393 #include <sys/types.h>
21394 #include <signal.h>
21395 #ifdef signal
21396 # undef signal
21397 #endif
21398 #ifdef __cplusplus
21399 extern "C" void (*signal (int, void (*)(int)))(int);
21400 #else
21401 void (*signal ()) ();
21402 #endif
21403
21404 int
21405 main ()
21406 {
21407 int i;
21408   ;
21409   return 0;
21410 }
21411 _ACEOF
21412 rm -f conftest.$ac_objext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21414   (eval $ac_compile) 2>&5
21415   ac_status=$?
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } &&
21418          { ac_try='test -s conftest.$ac_objext'
21419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420   (eval $ac_try) 2>&5
21421   ac_status=$?
21422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); }; }; then
21424   ac_cv_type_signal=void
21425 else
21426   echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429 ac_cv_type_signal=int
21430 fi
21431 rm -f conftest.$ac_objext conftest.$ac_ext
21432 fi
21433 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21434 echo "${ECHO_T}$ac_cv_type_signal" >&6
21435
21436 cat >>confdefs.h <<_ACEOF
21437 #define RETSIGTYPE $ac_cv_type_signal
21438 _ACEOF
21439
21440
21441
21442
21443
21444
21445
21446 for ac_func in getcwd gettimeofday strdup strtoq strtoll
21447 do
21448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21449 echo "$as_me:$LINENO: checking for $ac_func" >&5
21450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21451 if eval "test \"\${$as_ac_var+set}\" = set"; then
21452   echo $ECHO_N "(cached) $ECHO_C" >&6
21453 else
21454   cat >conftest.$ac_ext <<_ACEOF
21455 #line $LINENO "configure"
21456 /* confdefs.h.  */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h.  */
21461 /* System header to define __stub macros and hopefully few prototypes,
21462     which can conflict with char $ac_func (); below.
21463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21464     <limits.h> exists even on freestanding compilers.  */
21465 #ifdef __STDC__
21466 # include <limits.h>
21467 #else
21468 # include <assert.h>
21469 #endif
21470 /* Override any gcc2 internal prototype to avoid an error.  */
21471 #ifdef __cplusplus
21472 extern "C"
21473 {
21474 #endif
21475 /* We use char because int might match the return type of a gcc2
21476    builtin and then its argument prototype would still apply.  */
21477 char $ac_func ();
21478 /* The GNU C library defines this for functions which it implements
21479     to always fail with ENOSYS.  Some functions are actually named
21480     something starting with __ and the normal name is an alias.  */
21481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21482 choke me
21483 #else
21484 char (*f) () = $ac_func;
21485 #endif
21486 #ifdef __cplusplus
21487 }
21488 #endif
21489
21490 int
21491 main ()
21492 {
21493 return f != $ac_func;
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 rm -f conftest.$ac_objext conftest$ac_exeext
21499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21500   (eval $ac_link) 2>&5
21501   ac_status=$?
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); } &&
21504          { ac_try='test -s conftest$ac_exeext'
21505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506   (eval $ac_try) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); }; }; then
21510   eval "$as_ac_var=yes"
21511 else
21512   echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515 eval "$as_ac_var=no"
21516 fi
21517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21518 fi
21519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21521 if test `eval echo '${'$as_ac_var'}'` = yes; then
21522   cat >>confdefs.h <<_ACEOF
21523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21524 _ACEOF
21525
21526 fi
21527 done
21528
21529 echo "$as_me:$LINENO: checking for mprotect" >&5
21530 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21531 if test "${ac_cv_func_mprotect+set}" = set; then
21532   echo $ECHO_N "(cached) $ECHO_C" >&6
21533 else
21534   cat >conftest.$ac_ext <<_ACEOF
21535 #line $LINENO "configure"
21536 /* confdefs.h.  */
21537 _ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h.  */
21541 /* System header to define __stub macros and hopefully few prototypes,
21542     which can conflict with char mprotect (); below.
21543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21544     <limits.h> exists even on freestanding compilers.  */
21545 #ifdef __STDC__
21546 # include <limits.h>
21547 #else
21548 # include <assert.h>
21549 #endif
21550 /* Override any gcc2 internal prototype to avoid an error.  */
21551 #ifdef __cplusplus
21552 extern "C"
21553 {
21554 #endif
21555 /* We use char because int might match the return type of a gcc2
21556    builtin and then its argument prototype would still apply.  */
21557 char mprotect ();
21558 /* The GNU C library defines this for functions which it implements
21559     to always fail with ENOSYS.  Some functions are actually named
21560     something starting with __ and the normal name is an alias.  */
21561 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21562 choke me
21563 #else
21564 char (*f) () = mprotect;
21565 #endif
21566 #ifdef __cplusplus
21567 }
21568 #endif
21569
21570 int
21571 main ()
21572 {
21573 return f != mprotect;
21574   ;
21575   return 0;
21576 }
21577 _ACEOF
21578 rm -f conftest.$ac_objext conftest$ac_exeext
21579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21580   (eval $ac_link) 2>&5
21581   ac_status=$?
21582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583   (exit $ac_status); } &&
21584          { ac_try='test -s conftest$ac_exeext'
21585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586   (eval $ac_try) 2>&5
21587   ac_status=$?
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); }; }; then
21590   ac_cv_func_mprotect=yes
21591 else
21592   echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21594
21595 ac_cv_func_mprotect=no
21596 fi
21597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21598 fi
21599 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21600 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21601 if test $ac_cv_func_mprotect = yes; then
21602   :
21603 else
21604   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21605 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21606    { (exit 1); exit 1; }; }
21607 fi
21608
21609
21610
21611
21612
21613   ac_ext=c
21614 ac_cpp='$CPP $CPPFLAGS'
21615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21618
21619   oldcflags="$CFLAGS"
21620   CFLAGS="$CFLAGS -Wl,-R."
21621   cat >conftest.$ac_ext <<_ACEOF
21622 int main() { return 0; }
21623 _ACEOF
21624 rm -f conftest.$ac_objext conftest$ac_exeext
21625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21626   (eval $ac_link) 2>&5
21627   ac_status=$?
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); } &&
21630          { ac_try='test -s conftest$ac_exeext'
21631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632   (eval $ac_try) 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); }; }; then
21636   ac_cv_link_use_r=yes
21637 else
21638   echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641 ac_cv_link_use_r=no
21642 fi
21643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21644   CFLAGS="$oldcflags"
21645   ac_ext=c
21646 ac_cpp='$CPP $CPPFLAGS'
21647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21650
21651   if test "$ac_cv_link_use_r" = yes
21652   then
21653
21654 cat >>confdefs.h <<\_ACEOF
21655 #define HAVE_LINK_R 1
21656 _ACEOF
21657
21658   fi
21659
21660
21661 # Check whether --enable-optimized or --disable-optimized was given.
21662 if test "${enable_optimized+set}" = set; then
21663   enableval="$enable_optimized"
21664
21665 else
21666   enableval=no
21667 fi;
21668 if test ${enableval} = "no"
21669 then
21670         ENABLE_OPTIMIZED=
21671
21672 else
21673         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21674
21675 fi
21676
21677 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21678 if test "${enable_spec2000+set}" = set; then
21679   enableval="$enable_spec2000"
21680
21681 else
21682   enableval=no
21683 fi;
21684 if test ${enableval} = "no"
21685 then
21686         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21687         then
21688                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21689
21690                 USE_SPEC=USE_SPEC=1
21691
21692         else
21693                 USE_SPEC=
21694
21695
21696         fi
21697 else
21698         if test ${enableval} = ""
21699         then
21700                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21701
21702         else
21703                 SPEC_ROOT=${enableval}
21704
21705         fi
21706         USE_SPEC=USE_SPEC=1
21707
21708 fi
21709
21710 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21711 if test "${enable_precompiled_bytecode+set}" = set; then
21712   enableval="$enable_precompiled_bytecode"
21713
21714 else
21715   enableval=no
21716 fi;
21717 if test ${enableval} = "no"
21718 then
21719         UPB=
21720
21721 else
21722         UPB=USE_PRECOMPILED_BYTECODE=1
21723
21724 fi
21725
21726 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21727 if test "${enable_llc_diffs+set}" = set; then
21728   enableval="$enable_llc_diffs"
21729
21730 else
21731   enableval=yes
21732 fi;
21733 if test ${enableval} = "no"
21734 then
21735         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
21736
21737 else
21738         DISABLE_LLC_DIFFS=
21739
21740 fi
21741
21742 # Check whether --enable-jit or --disable-jit was given.
21743 if test "${enable_jit+set}" = set; then
21744   enableval="$enable_jit"
21745
21746 else
21747   enableval=default
21748 fi;
21749 if test ${enableval} = "no"
21750 then
21751         JIT=
21752
21753 else
21754         case $target in
21755                 *i*86*)
21756                         JIT=TARGET_HAS_JIT=1
21757
21758                         ;;
21759                 *sparc*)
21760                         JIT=TARGET_HAS_JIT=1
21761
21762                         ;;
21763                 *)
21764                         JIT=
21765
21766                         ;;
21767         esac
21768 fi
21769
21770
21771 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21772 if test "${with_llvmgccdir+set}" = set; then
21773   withval="$with_llvmgccdir"
21774   LLVMGCCDIR=$withval
21775
21776 fi;
21777 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21778 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21779 LLVM_GCC_CHECK=no
21780 if test -d "$LLVMGCCDIR"
21781 then
21782         if test -x "$LLVMGCCDIR/bin/gcc"
21783         then
21784                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21785         fi
21786 fi
21787 llvmgccwarn=no
21788 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21789 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21790 if test "$LLVM_GCC_CHECK" = "no"
21791 then
21792     llvmgccwarn=yes
21793 fi
21794 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21795 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21796 LLVM_GCC_SANE=no
21797 if test -x "$LLVM_GCC_CHECK"
21798 then
21799         cp /dev/null conftest.c
21800     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21801         if test $? -eq 0
21802         then
21803                 LLVM_GCC_SANE=yes
21804         fi
21805         rm conftest.c
21806 fi
21807 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21808 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21809 if test "$LLVM_GCC_SANE" = "no"
21810 then
21811         llvmgccwarn=yes
21812 fi
21813
21814
21815 # Check whether --with-bcrepos or --without-bcrepos was given.
21816 if test "${with_bcrepos+set}" = set; then
21817   withval="$with_bcrepos"
21818   BCR=$withval
21819
21820 else
21821   BCR=/home/vadve/lattner/LLVMPrograms
21822
21823 fi;
21824
21825
21826 # Check whether --with-papi or --without-papi was given.
21827 if test "${with_papi+set}" = set; then
21828   withval="$with_papi"
21829   PAPIDIR=$withval
21830
21831 else
21832   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
21833
21834 fi;
21835
21836           ac_config_files="$ac_config_files Makefile.config"
21837 cat >confcache <<\_ACEOF
21838 # This file is a shell script that caches the results of configure
21839 # tests run on this system so they can be shared between configure
21840 # scripts and configure runs, see configure's option --config-cache.
21841 # It is not useful on other systems.  If it contains results you don't
21842 # want to keep, you may remove or edit it.
21843 #
21844 # config.status only pays attention to the cache file if you give it
21845 # the --recheck option to rerun configure.
21846 #
21847 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21848 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21849 # following values.
21850
21851 _ACEOF
21852
21853 # The following way of writing the cache mishandles newlines in values,
21854 # but we know of no workaround that is simple, portable, and efficient.
21855 # So, don't put newlines in cache variables' values.
21856 # Ultrix sh set writes to stderr and can't be redirected directly,
21857 # and sets the high bit in the cache file unless we assign to the vars.
21858 {
21859   (set) 2>&1 |
21860     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21861     *ac_space=\ *)
21862       # `set' does not quote correctly, so add quotes (double-quote
21863       # substitution turns \\\\ into \\, and sed turns \\ into \).
21864       sed -n \
21865         "s/'/'\\\\''/g;
21866           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21867       ;;
21868     *)
21869       # `set' quotes correctly as required by POSIX, so do not add quotes.
21870       sed -n \
21871         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21872       ;;
21873     esac;
21874 } |
21875   sed '
21876      t clear
21877      : clear
21878      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21879      t end
21880      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21881      : end' >>confcache
21882 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21883   if test -w $cache_file; then
21884     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21885     cat confcache >$cache_file
21886   else
21887     echo "not updating unwritable cache $cache_file"
21888   fi
21889 fi
21890 rm -f confcache
21891
21892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21893 # Let make expand exec_prefix.
21894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21895
21896 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21897 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21898 # trailing colons and then remove the whole line if VPATH becomes empty
21899 # (actually we leave an empty line to preserve line numbers).
21900 if test "x$srcdir" = x.; then
21901   ac_vpsub='/^[         ]*VPATH[        ]*=/{
21902 s/:*\$(srcdir):*/:/;
21903 s/:*\${srcdir}:*/:/;
21904 s/:*@srcdir@:*/:/;
21905 s/^\([^=]*=[    ]*\):*/\1/;
21906 s/:*$//;
21907 s/^[^=]*=[      ]*$//;
21908 }'
21909 fi
21910
21911 DEFS=-DHAVE_CONFIG_H
21912
21913 ac_libobjs=
21914 ac_ltlibobjs=
21915 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21916   # 1. Remove the extension, and $U if already installed.
21917   ac_i=`echo "$ac_i" |
21918          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21919   # 2. Add them.
21920   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21921   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21922 done
21923 LIBOBJS=$ac_libobjs
21924
21925 LTLIBOBJS=$ac_ltlibobjs
21926
21927
21928
21929 : ${CONFIG_STATUS=./config.status}
21930 ac_clean_files_save=$ac_clean_files
21931 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21932 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21933 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21934 cat >$CONFIG_STATUS <<_ACEOF
21935 #! $SHELL
21936 # Generated by $as_me.
21937 # Run this file to recreate the current configuration.
21938 # Compiler output produced by configure, useful for debugging
21939 # configure, is in config.log if it exists.
21940
21941 debug=false
21942 ac_cs_recheck=false
21943 ac_cs_silent=false
21944 SHELL=\${CONFIG_SHELL-$SHELL}
21945 _ACEOF
21946
21947 cat >>$CONFIG_STATUS <<\_ACEOF
21948 ## --------------------- ##
21949 ## M4sh Initialization.  ##
21950 ## --------------------- ##
21951
21952 # Be Bourne compatible
21953 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21954   emulate sh
21955   NULLCMD=:
21956   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21957   # is contrary to our usage.  Disable this feature.
21958   alias -g '${1+"$@"}'='"$@"'
21959 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21960   set -o posix
21961 fi
21962
21963 # Support unset when possible.
21964 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21965   as_unset=unset
21966 else
21967   as_unset=false
21968 fi
21969
21970
21971 # Work around bugs in pre-3.0 UWIN ksh.
21972 $as_unset ENV MAIL MAILPATH
21973 PS1='$ '
21974 PS2='> '
21975 PS4='+ '
21976
21977 # NLS nuisances.
21978 for as_var in \
21979   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21980   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21981   LC_TELEPHONE LC_TIME
21982 do
21983   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
21984     eval $as_var=C; export $as_var
21985   else
21986     $as_unset $as_var
21987   fi
21988 done
21989
21990 # Required to use basename.
21991 if expr a : '\(a\)' >/dev/null 2>&1; then
21992   as_expr=expr
21993 else
21994   as_expr=false
21995 fi
21996
21997 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21998   as_basename=basename
21999 else
22000   as_basename=false
22001 fi
22002
22003
22004 # Name of the executable.
22005 as_me=`$as_basename "$0" ||
22006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22007          X"$0" : 'X\(//\)$' \| \
22008          X"$0" : 'X\(/\)$' \| \
22009          .     : '\(.\)' 2>/dev/null ||
22010 echo X/"$0" |
22011     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22012           /^X\/\(\/\/\)$/{ s//\1/; q; }
22013           /^X\/\(\/\).*/{ s//\1/; q; }
22014           s/.*/./; q'`
22015
22016
22017 # PATH needs CR, and LINENO needs CR and PATH.
22018 # Avoid depending upon Character Ranges.
22019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22022 as_cr_digits='0123456789'
22023 as_cr_alnum=$as_cr_Letters$as_cr_digits
22024
22025 # The user is always right.
22026 if test "${PATH_SEPARATOR+set}" != set; then
22027   echo "#! /bin/sh" >conf$$.sh
22028   echo  "exit 0"   >>conf$$.sh
22029   chmod +x conf$$.sh
22030   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22031     PATH_SEPARATOR=';'
22032   else
22033     PATH_SEPARATOR=:
22034   fi
22035   rm -f conf$$.sh
22036 fi
22037
22038
22039   as_lineno_1=$LINENO
22040   as_lineno_2=$LINENO
22041   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22042   test "x$as_lineno_1" != "x$as_lineno_2" &&
22043   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22044   # Find who we are.  Look in the path if we contain no path at all
22045   # relative or not.
22046   case $0 in
22047     *[\\/]* ) as_myself=$0 ;;
22048     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22049 for as_dir in $PATH
22050 do
22051   IFS=$as_save_IFS
22052   test -z "$as_dir" && as_dir=.
22053   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22054 done
22055
22056        ;;
22057   esac
22058   # We did not find ourselves, most probably we were run as `sh COMMAND'
22059   # in which case we are not to be found in the path.
22060   if test "x$as_myself" = x; then
22061     as_myself=$0
22062   fi
22063   if test ! -f "$as_myself"; then
22064     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22065 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22066    { (exit 1); exit 1; }; }
22067   fi
22068   case $CONFIG_SHELL in
22069   '')
22070     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22071 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22072 do
22073   IFS=$as_save_IFS
22074   test -z "$as_dir" && as_dir=.
22075   for as_base in sh bash ksh sh5; do
22076          case $as_dir in
22077          /*)
22078            if ("$as_dir/$as_base" -c '
22079   as_lineno_1=$LINENO
22080   as_lineno_2=$LINENO
22081   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22082   test "x$as_lineno_1" != "x$as_lineno_2" &&
22083   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22084              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22085              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22086              CONFIG_SHELL=$as_dir/$as_base
22087              export CONFIG_SHELL
22088              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22089            fi;;
22090          esac
22091        done
22092 done
22093 ;;
22094   esac
22095
22096   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22097   # uniformly replaced by the line number.  The first 'sed' inserts a
22098   # line-number line before each line; the second 'sed' does the real
22099   # work.  The second script uses 'N' to pair each line-number line
22100   # with the numbered line, and appends trailing '-' during
22101   # substitution so that $LINENO is not a special case at line end.
22102   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22103   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22104   sed '=' <$as_myself |
22105     sed '
22106       N
22107       s,$,-,
22108       : loop
22109       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22110       t loop
22111       s,-$,,
22112       s,^['$as_cr_digits']*\n,,
22113     ' >$as_me.lineno &&
22114   chmod +x $as_me.lineno ||
22115     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22116 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22117    { (exit 1); exit 1; }; }
22118
22119   # Don't try to exec as it changes $[0], causing all sort of problems
22120   # (the dirname of $[0] is not the place where we might find the
22121   # original and so on.  Autoconf is especially sensible to this).
22122   . ./$as_me.lineno
22123   # Exit status is that of the last command.
22124   exit
22125 }
22126
22127
22128 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22129   *c*,-n*) ECHO_N= ECHO_C='
22130 ' ECHO_T='      ' ;;
22131   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22132   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22133 esac
22134
22135 if expr a : '\(a\)' >/dev/null 2>&1; then
22136   as_expr=expr
22137 else
22138   as_expr=false
22139 fi
22140
22141 rm -f conf$$ conf$$.exe conf$$.file
22142 echo >conf$$.file
22143 if ln -s conf$$.file conf$$ 2>/dev/null; then
22144   # We could just check for DJGPP; but this test a) works b) is more generic
22145   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22146   if test -f conf$$.exe; then
22147     # Don't use ln at all; we don't have any links
22148     as_ln_s='cp -p'
22149   else
22150     as_ln_s='ln -s'
22151   fi
22152 elif ln conf$$.file conf$$ 2>/dev/null; then
22153   as_ln_s=ln
22154 else
22155   as_ln_s='cp -p'
22156 fi
22157 rm -f conf$$ conf$$.exe conf$$.file
22158
22159 if mkdir -p . 2>/dev/null; then
22160   as_mkdir_p=:
22161 else
22162   as_mkdir_p=false
22163 fi
22164
22165 as_executable_p="test -f"
22166
22167 # Sed expression to map a string onto a valid CPP name.
22168 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22169
22170 # Sed expression to map a string onto a valid variable name.
22171 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22172
22173
22174 # IFS
22175 # We need space, tab and new line, in precisely that order.
22176 as_nl='
22177 '
22178 IFS="   $as_nl"
22179
22180 # CDPATH.
22181 $as_unset CDPATH
22182
22183 exec 6>&1
22184
22185 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22186 # report actual input values of CONFIG_FILES etc. instead of their
22187 # values after options handling.  Logging --version etc. is OK.
22188 exec 5>>config.log
22189 {
22190   echo
22191   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22192 ## Running $as_me. ##
22193 _ASBOX
22194 } >&5
22195 cat >&5 <<_CSEOF
22196
22197 This file was extended by [LLVM] $as_me [1.1], which was
22198 generated by GNU Autoconf 2.57.  Invocation command line was
22199
22200   CONFIG_FILES    = $CONFIG_FILES
22201   CONFIG_HEADERS  = $CONFIG_HEADERS
22202   CONFIG_LINKS    = $CONFIG_LINKS
22203   CONFIG_COMMANDS = $CONFIG_COMMANDS
22204   $ $0 $@
22205
22206 _CSEOF
22207 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22208 echo >&5
22209 _ACEOF
22210
22211 # Files that config.status was made for.
22212 if test -n "$ac_config_files"; then
22213   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22214 fi
22215
22216 if test -n "$ac_config_headers"; then
22217   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22218 fi
22219
22220 if test -n "$ac_config_links"; then
22221   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22222 fi
22223
22224 if test -n "$ac_config_commands"; then
22225   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22226 fi
22227
22228 cat >>$CONFIG_STATUS <<\_ACEOF
22229
22230 ac_cs_usage="\
22231 \`$as_me' instantiates files from templates according to the
22232 current configuration.
22233
22234 Usage: $0 [OPTIONS] [FILE]...
22235
22236   -h, --help       print this help, then exit
22237   -V, --version    print version number, then exit
22238   -q, --quiet      do not print progress messages
22239   -d, --debug      don't remove temporary files
22240       --recheck    update $as_me by reconfiguring in the same conditions
22241   --file=FILE[:TEMPLATE]
22242                    instantiate the configuration file FILE
22243   --header=FILE[:TEMPLATE]
22244                    instantiate the configuration header FILE
22245
22246 Configuration files:
22247 $config_files
22248
22249 Configuration headers:
22250 $config_headers
22251
22252 Configuration commands:
22253 $config_commands
22254
22255 Report bugs to <bug-autoconf@gnu.org>."
22256 _ACEOF
22257
22258 cat >>$CONFIG_STATUS <<_ACEOF
22259 ac_cs_version="\\
22260 [LLVM] config.status [1.1]
22261 configured by $0, generated by GNU Autoconf 2.57,
22262   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22263
22264 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22265 Free Software Foundation, Inc.
22266 This config.status script is free software; the Free Software Foundation
22267 gives unlimited permission to copy, distribute and modify it."
22268 srcdir=$srcdir
22269 INSTALL="$INSTALL"
22270 _ACEOF
22271
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22273 # If no file are specified by the user, then we need to provide default
22274 # value.  By we need to know if files were specified by the user.
22275 ac_need_defaults=:
22276 while test $# != 0
22277 do
22278   case $1 in
22279   --*=*)
22280     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22281     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22282     ac_shift=:
22283     ;;
22284   -*)
22285     ac_option=$1
22286     ac_optarg=$2
22287     ac_shift=shift
22288     ;;
22289   *) # This is not an option, so the user has probably given explicit
22290      # arguments.
22291      ac_option=$1
22292      ac_need_defaults=false;;
22293   esac
22294
22295   case $ac_option in
22296   # Handling of the options.
22297 _ACEOF
22298 cat >>$CONFIG_STATUS <<\_ACEOF
22299   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22300     ac_cs_recheck=: ;;
22301   --version | --vers* | -V )
22302     echo "$ac_cs_version"; exit 0 ;;
22303   --he | --h)
22304     # Conflict between --help and --header
22305     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22306 Try \`$0 --help' for more information." >&5
22307 echo "$as_me: error: ambiguous option: $1
22308 Try \`$0 --help' for more information." >&2;}
22309    { (exit 1); exit 1; }; };;
22310   --help | --hel | -h )
22311     echo "$ac_cs_usage"; exit 0 ;;
22312   --debug | --d* | -d )
22313     debug=: ;;
22314   --file | --fil | --fi | --f )
22315     $ac_shift
22316     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22317     ac_need_defaults=false;;
22318   --header | --heade | --head | --hea )
22319     $ac_shift
22320     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22321     ac_need_defaults=false;;
22322   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22323   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22324     ac_cs_silent=: ;;
22325
22326   # This is an error.
22327   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22328 Try \`$0 --help' for more information." >&5
22329 echo "$as_me: error: unrecognized option: $1
22330 Try \`$0 --help' for more information." >&2;}
22331    { (exit 1); exit 1; }; } ;;
22332
22333   *) ac_config_targets="$ac_config_targets $1" ;;
22334
22335   esac
22336   shift
22337 done
22338
22339 ac_configure_extra_args=
22340
22341 if $ac_cs_silent; then
22342   exec 6>/dev/null
22343   ac_configure_extra_args="$ac_configure_extra_args --silent"
22344 fi
22345
22346 _ACEOF
22347 cat >>$CONFIG_STATUS <<_ACEOF
22348 if \$ac_cs_recheck; then
22349   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22350   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22351 fi
22352
22353 _ACEOF
22354
22355 cat >>$CONFIG_STATUS <<_ACEOF
22356 #
22357 # INIT-COMMANDS section.
22358 #
22359
22360 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22361 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22362 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22363 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22366 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22367 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22388 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22389 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22404 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22405 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22406 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22407
22408 _ACEOF
22409
22410
22411
22412 cat >>$CONFIG_STATUS <<\_ACEOF
22413 for ac_config_target in $ac_config_targets
22414 do
22415   case "$ac_config_target" in
22416   # Handling of arguments.
22417   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22418   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22419   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22420   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22421   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22422   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22423   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22424   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22425   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22426   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22427   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22428   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22429   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22430   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22431   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22432   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22433   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22434   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22435   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22436   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22437   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22438   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22439   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22440   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22441   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
22442   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22443   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22444   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22445   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22446   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22447   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22448   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22449   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22450   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22451   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22452   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22453   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22454   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22455   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22456   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22457   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22458   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22459   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22460   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22461   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22462   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22463   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22464   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22465   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22466   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22467 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22468    { (exit 1); exit 1; }; };;
22469   esac
22470 done
22471
22472 # If the user did not use the arguments to specify the items to instantiate,
22473 # then the envvar interface is used.  Set only those that are not.
22474 # We use the long form for the default assignment because of an extremely
22475 # bizarre bug on SunOS 4.1.3.
22476 if $ac_need_defaults; then
22477   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22478   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22479   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22480 fi
22481
22482 # Have a temporary directory for convenience.  Make it in the build tree
22483 # simply because there is no reason to put it here, and in addition,
22484 # creating and moving files from /tmp can sometimes cause problems.
22485 # Create a temporary directory, and hook for its removal unless debugging.
22486 $debug ||
22487 {
22488   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22489   trap '{ (exit 1); exit 1; }' 1 2 13 15
22490 }
22491
22492 # Create a (secure) tmp directory for tmp files.
22493
22494 {
22495   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22496   test -n "$tmp" && test -d "$tmp"
22497 }  ||
22498 {
22499   tmp=./confstat$$-$RANDOM
22500   (umask 077 && mkdir $tmp)
22501 } ||
22502 {
22503    echo "$me: cannot create a temporary directory in ." >&2
22504    { (exit 1); exit 1; }
22505 }
22506
22507 _ACEOF
22508
22509 cat >>$CONFIG_STATUS <<_ACEOF
22510
22511 #
22512 # CONFIG_FILES section.
22513 #
22514
22515 # No need to generate the scripts if there are no CONFIG_FILES.
22516 # This happens for instance when ./config.status config.h
22517 if test -n "\$CONFIG_FILES"; then
22518   # Protect against being on the right side of a sed subst in config.status.
22519   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22520    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22521 s,@SHELL@,$SHELL,;t t
22522 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22523 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22524 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22525 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22526 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22527 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22528 s,@exec_prefix@,$exec_prefix,;t t
22529 s,@prefix@,$prefix,;t t
22530 s,@program_transform_name@,$program_transform_name,;t t
22531 s,@bindir@,$bindir,;t t
22532 s,@sbindir@,$sbindir,;t t
22533 s,@libexecdir@,$libexecdir,;t t
22534 s,@datadir@,$datadir,;t t
22535 s,@sysconfdir@,$sysconfdir,;t t
22536 s,@sharedstatedir@,$sharedstatedir,;t t
22537 s,@localstatedir@,$localstatedir,;t t
22538 s,@libdir@,$libdir,;t t
22539 s,@includedir@,$includedir,;t t
22540 s,@oldincludedir@,$oldincludedir,;t t
22541 s,@infodir@,$infodir,;t t
22542 s,@mandir@,$mandir,;t t
22543 s,@build_alias@,$build_alias,;t t
22544 s,@host_alias@,$host_alias,;t t
22545 s,@target_alias@,$target_alias,;t t
22546 s,@DEFS@,$DEFS,;t t
22547 s,@ECHO_C@,$ECHO_C,;t t
22548 s,@ECHO_N@,$ECHO_N,;t t
22549 s,@ECHO_T@,$ECHO_T,;t t
22550 s,@LIBS@,$LIBS,;t t
22551 s,@subdirs@,$subdirs,;t t
22552 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22553 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22554 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22555 s,@build@,$build,;t t
22556 s,@build_cpu@,$build_cpu,;t t
22557 s,@build_vendor@,$build_vendor,;t t
22558 s,@build_os@,$build_os,;t t
22559 s,@host@,$host,;t t
22560 s,@host_cpu@,$host_cpu,;t t
22561 s,@host_vendor@,$host_vendor,;t t
22562 s,@host_os@,$host_os,;t t
22563 s,@target@,$target,;t t
22564 s,@target_cpu@,$target_cpu,;t t
22565 s,@target_vendor@,$target_vendor,;t t
22566 s,@target_os@,$target_os,;t t
22567 s,@OS@,$OS,;t t
22568 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22569 s,@ARCH@,$ARCH,;t t
22570 s,@CXX@,$CXX,;t t
22571 s,@CXXFLAGS@,$CXXFLAGS,;t t
22572 s,@LDFLAGS@,$LDFLAGS,;t t
22573 s,@CPPFLAGS@,$CPPFLAGS,;t t
22574 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22575 s,@EXEEXT@,$EXEEXT,;t t
22576 s,@OBJEXT@,$OBJEXT,;t t
22577 s,@CC@,$CC,;t t
22578 s,@CFLAGS@,$CFLAGS,;t t
22579 s,@ac_ct_CC@,$ac_ct_CC,;t t
22580 s,@CPP@,$CPP,;t t
22581 s,@ifGNUmake@,$ifGNUmake,;t t
22582 s,@LEX@,$LEX,;t t
22583 s,@LEXLIB@,$LEXLIB,;t t
22584 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22585 s,@YACC@,$YACC,;t t
22586 s,@BISON@,$BISON,;t t
22587 s,@EGREP@,$EGREP,;t t
22588 s,@LN_S@,$LN_S,;t t
22589 s,@ECHO@,$ECHO,;t t
22590 s,@AR@,$AR,;t t
22591 s,@ac_ct_AR@,$ac_ct_AR,;t t
22592 s,@RANLIB@,$RANLIB,;t t
22593 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22594 s,@STRIP@,$STRIP,;t t
22595 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22596 s,@CXXCPP@,$CXXCPP,;t t
22597 s,@F77@,$F77,;t t
22598 s,@FFLAGS@,$FFLAGS,;t t
22599 s,@ac_ct_F77@,$ac_ct_F77,;t t
22600 s,@LIBTOOL@,$LIBTOOL,;t t
22601 s,@DOT@,$DOT,;t t
22602 s,@ETAGS@,$ETAGS,;t t
22603 s,@PYTHON@,$PYTHON,;t t
22604 s,@QMTEST@,$QMTEST,;t t
22605 s,@ALLOCA@,$ALLOCA,;t t
22606 s,@MMAP_FILE@,$MMAP_FILE,;t t
22607 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22608 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22609 s,@USE_SPEC@,$USE_SPEC,;t t
22610 s,@UPB@,$UPB,;t t
22611 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22612 s,@JIT@,$JIT,;t t
22613 s,@BCR@,$BCR,;t t
22614 s,@PAPIDIR@,$PAPIDIR,;t t
22615 s,@LIBOBJS@,$LIBOBJS,;t t
22616 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22617 CEOF
22618
22619 _ACEOF
22620
22621   cat >>$CONFIG_STATUS <<\_ACEOF
22622   # Split the substitutions into bite-sized pieces for seds with
22623   # small command number limits, like on Digital OSF/1 and HP-UX.
22624   ac_max_sed_lines=48
22625   ac_sed_frag=1 # Number of current file.
22626   ac_beg=1 # First line for current file.
22627   ac_end=$ac_max_sed_lines # Line after last line for current file.
22628   ac_more_lines=:
22629   ac_sed_cmds=
22630   while $ac_more_lines; do
22631     if test $ac_beg -gt 1; then
22632       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22633     else
22634       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22635     fi
22636     if test ! -s $tmp/subs.frag; then
22637       ac_more_lines=false
22638     else
22639       # The purpose of the label and of the branching condition is to
22640       # speed up the sed processing (if there are no `@' at all, there
22641       # is no need to browse any of the substitutions).
22642       # These are the two extra sed commands mentioned above.
22643       (echo ':t
22644   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22645       if test -z "$ac_sed_cmds"; then
22646         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22647       else
22648         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22649       fi
22650       ac_sed_frag=`expr $ac_sed_frag + 1`
22651       ac_beg=$ac_end
22652       ac_end=`expr $ac_end + $ac_max_sed_lines`
22653     fi
22654   done
22655   if test -z "$ac_sed_cmds"; then
22656     ac_sed_cmds=cat
22657   fi
22658 fi # test -n "$CONFIG_FILES"
22659
22660 _ACEOF
22661 cat >>$CONFIG_STATUS <<\_ACEOF
22662 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22663   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22664   case $ac_file in
22665   - | *:- | *:-:* ) # input from stdin
22666         cat >$tmp/stdin
22667         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22668         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22669   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22670         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22671   * )   ac_file_in=$ac_file.in ;;
22672   esac
22673
22674   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22675   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22677          X"$ac_file" : 'X\(//\)[^/]' \| \
22678          X"$ac_file" : 'X\(//\)$' \| \
22679          X"$ac_file" : 'X\(/\)' \| \
22680          .     : '\(.\)' 2>/dev/null ||
22681 echo X"$ac_file" |
22682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22683           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22684           /^X\(\/\/\)$/{ s//\1/; q; }
22685           /^X\(\/\).*/{ s//\1/; q; }
22686           s/.*/./; q'`
22687   { if $as_mkdir_p; then
22688     mkdir -p "$ac_dir"
22689   else
22690     as_dir="$ac_dir"
22691     as_dirs=
22692     while test ! -d "$as_dir"; do
22693       as_dirs="$as_dir $as_dirs"
22694       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22696          X"$as_dir" : 'X\(//\)[^/]' \| \
22697          X"$as_dir" : 'X\(//\)$' \| \
22698          X"$as_dir" : 'X\(/\)' \| \
22699          .     : '\(.\)' 2>/dev/null ||
22700 echo X"$as_dir" |
22701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22703           /^X\(\/\/\)$/{ s//\1/; q; }
22704           /^X\(\/\).*/{ s//\1/; q; }
22705           s/.*/./; q'`
22706     done
22707     test ! -n "$as_dirs" || mkdir $as_dirs
22708   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22709 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22710    { (exit 1); exit 1; }; }; }
22711
22712   ac_builddir=.
22713
22714 if test "$ac_dir" != .; then
22715   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22716   # A "../" for each directory in $ac_dir_suffix.
22717   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22718 else
22719   ac_dir_suffix= ac_top_builddir=
22720 fi
22721
22722 case $srcdir in
22723   .)  # No --srcdir option.  We are building in place.
22724     ac_srcdir=.
22725     if test -z "$ac_top_builddir"; then
22726        ac_top_srcdir=.
22727     else
22728        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22729     fi ;;
22730   [\\/]* | ?:[\\/]* )  # Absolute path.
22731     ac_srcdir=$srcdir$ac_dir_suffix;
22732     ac_top_srcdir=$srcdir ;;
22733   *) # Relative path.
22734     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22735     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22736 esac
22737 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22738 # absolute.
22739 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22740 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22741 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22742 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22743
22744
22745   case $INSTALL in
22746   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22747   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22748   esac
22749
22750   if test x"$ac_file" != x-; then
22751     { echo "$as_me:$LINENO: creating $ac_file" >&5
22752 echo "$as_me: creating $ac_file" >&6;}
22753     rm -f "$ac_file"
22754   fi
22755   # Let's still pretend it is `configure' which instantiates (i.e., don't
22756   # use $as_me), people would be surprised to read:
22757   #    /* config.h.  Generated by config.status.  */
22758   if test x"$ac_file" = x-; then
22759     configure_input=
22760   else
22761     configure_input="$ac_file.  "
22762   fi
22763   configure_input=$configure_input"Generated from `echo $ac_file_in |
22764                                      sed 's,.*/,,'` by configure."
22765
22766   # First look for the input files in the build tree, otherwise in the
22767   # src tree.
22768   ac_file_inputs=`IFS=:
22769     for f in $ac_file_in; do
22770       case $f in
22771       -) echo $tmp/stdin ;;
22772       [\\/$]*)
22773          # Absolute (can't be DOS-style, as IFS=:)
22774          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22775 echo "$as_me: error: cannot find input file: $f" >&2;}
22776    { (exit 1); exit 1; }; }
22777          echo $f;;
22778       *) # Relative
22779          if test -f "$f"; then
22780            # Build tree
22781            echo $f
22782          elif test -f "$srcdir/$f"; then
22783            # Source tree
22784            echo $srcdir/$f
22785          else
22786            # /dev/null tree
22787            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22788 echo "$as_me: error: cannot find input file: $f" >&2;}
22789    { (exit 1); exit 1; }; }
22790          fi;;
22791       esac
22792     done` || { (exit 1); exit 1; }
22793 _ACEOF
22794 cat >>$CONFIG_STATUS <<_ACEOF
22795   sed "$ac_vpsub
22796 $extrasub
22797 _ACEOF
22798 cat >>$CONFIG_STATUS <<\_ACEOF
22799 :t
22800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22801 s,@configure_input@,$configure_input,;t t
22802 s,@srcdir@,$ac_srcdir,;t t
22803 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22804 s,@top_srcdir@,$ac_top_srcdir,;t t
22805 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22806 s,@builddir@,$ac_builddir,;t t
22807 s,@abs_builddir@,$ac_abs_builddir,;t t
22808 s,@top_builddir@,$ac_top_builddir,;t t
22809 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22810 s,@INSTALL@,$ac_INSTALL,;t t
22811 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22812   rm -f $tmp/stdin
22813   if test x"$ac_file" != x-; then
22814     mv $tmp/out $ac_file
22815   else
22816     cat $tmp/out
22817     rm -f $tmp/out
22818   fi
22819
22820 done
22821 _ACEOF
22822 cat >>$CONFIG_STATUS <<\_ACEOF
22823
22824 #
22825 # CONFIG_HEADER section.
22826 #
22827
22828 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22829 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22830 #
22831 # ac_d sets the value in "#define NAME VALUE" lines.
22832 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22833 ac_dB='[        ].*$,\1#\2'
22834 ac_dC=' '
22835 ac_dD=',;t'
22836 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22837 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22838 ac_uB='$,\1#\2define\3'
22839 ac_uC=' '
22840 ac_uD=',;t'
22841
22842 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22843   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22844   case $ac_file in
22845   - | *:- | *:-:* ) # input from stdin
22846         cat >$tmp/stdin
22847         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22848         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22849   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22850         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22851   * )   ac_file_in=$ac_file.in ;;
22852   esac
22853
22854   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22855 echo "$as_me: creating $ac_file" >&6;}
22856
22857   # First look for the input files in the build tree, otherwise in the
22858   # src tree.
22859   ac_file_inputs=`IFS=:
22860     for f in $ac_file_in; do
22861       case $f in
22862       -) echo $tmp/stdin ;;
22863       [\\/$]*)
22864          # Absolute (can't be DOS-style, as IFS=:)
22865          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22866 echo "$as_me: error: cannot find input file: $f" >&2;}
22867    { (exit 1); exit 1; }; }
22868          echo $f;;
22869       *) # Relative
22870          if test -f "$f"; then
22871            # Build tree
22872            echo $f
22873          elif test -f "$srcdir/$f"; then
22874            # Source tree
22875            echo $srcdir/$f
22876          else
22877            # /dev/null tree
22878            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22879 echo "$as_me: error: cannot find input file: $f" >&2;}
22880    { (exit 1); exit 1; }; }
22881          fi;;
22882       esac
22883     done` || { (exit 1); exit 1; }
22884   # Remove the trailing spaces.
22885   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
22886
22887 _ACEOF
22888
22889 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22890 # `conftest.undefs', that substitutes the proper values into
22891 # config.h.in to produce config.h.  The first handles `#define'
22892 # templates, and the second `#undef' templates.
22893 # And first: Protect against being on the right side of a sed subst in
22894 # config.status.  Protect against being in an unquoted here document
22895 # in config.status.
22896 rm -f conftest.defines conftest.undefs
22897 # Using a here document instead of a string reduces the quoting nightmare.
22898 # Putting comments in sed scripts is not portable.
22899 #
22900 # `end' is used to avoid that the second main sed command (meant for
22901 # 0-ary CPP macros) applies to n-ary macro definitions.
22902 # See the Autoconf documentation for `clear'.
22903 cat >confdef2sed.sed <<\_ACEOF
22904 s/[\\&,]/\\&/g
22905 s,[\\$`],\\&,g
22906 t clear
22907 : clear
22908 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22909 t end
22910 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22911 : end
22912 _ACEOF
22913 # If some macros were called several times there might be several times
22914 # the same #defines, which is useless.  Nevertheless, we may not want to
22915 # sort them, since we want the *last* AC-DEFINE to be honored.
22916 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22917 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22918 rm -f confdef2sed.sed
22919
22920 # This sed command replaces #undef with comments.  This is necessary, for
22921 # example, in the case of _POSIX_SOURCE, which is predefined and required
22922 # on some systems where configure will not decide to define it.
22923 cat >>conftest.undefs <<\_ACEOF
22924 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22925 _ACEOF
22926
22927 # Break up conftest.defines because some shells have a limit on the size
22928 # of here documents, and old seds have small limits too (100 cmds).
22929 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22930 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22931 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22932 echo '  :' >>$CONFIG_STATUS
22933 rm -f conftest.tail
22934 while grep . conftest.defines >/dev/null
22935 do
22936   # Write a limited-size here document to $tmp/defines.sed.
22937   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22938   # Speed up: don't consider the non `#define' lines.
22939   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
22940   # Work around the forget-to-reset-the-flag bug.
22941   echo 't clr' >>$CONFIG_STATUS
22942   echo ': clr' >>$CONFIG_STATUS
22943   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22944   echo 'CEOF
22945   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22946   rm -f $tmp/in
22947   mv $tmp/out $tmp/in
22948 ' >>$CONFIG_STATUS
22949   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22950   rm -f conftest.defines
22951   mv conftest.tail conftest.defines
22952 done
22953 rm -f conftest.defines
22954 echo '  fi # grep' >>$CONFIG_STATUS
22955 echo >>$CONFIG_STATUS
22956
22957 # Break up conftest.undefs because some shells have a limit on the size
22958 # of here documents, and old seds have small limits too (100 cmds).
22959 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22960 rm -f conftest.tail
22961 while grep . conftest.undefs >/dev/null
22962 do
22963   # Write a limited-size here document to $tmp/undefs.sed.
22964   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22965   # Speed up: don't consider the non `#undef'
22966   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22967   # Work around the forget-to-reset-the-flag bug.
22968   echo 't clr' >>$CONFIG_STATUS
22969   echo ': clr' >>$CONFIG_STATUS
22970   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22971   echo 'CEOF
22972   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22973   rm -f $tmp/in
22974   mv $tmp/out $tmp/in
22975 ' >>$CONFIG_STATUS
22976   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22977   rm -f conftest.undefs
22978   mv conftest.tail conftest.undefs
22979 done
22980 rm -f conftest.undefs
22981
22982 cat >>$CONFIG_STATUS <<\_ACEOF
22983   # Let's still pretend it is `configure' which instantiates (i.e., don't
22984   # use $as_me), people would be surprised to read:
22985   #    /* config.h.  Generated by config.status.  */
22986   if test x"$ac_file" = x-; then
22987     echo "/* Generated by configure.  */" >$tmp/config.h
22988   else
22989     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22990   fi
22991   cat $tmp/in >>$tmp/config.h
22992   rm -f $tmp/in
22993   if test x"$ac_file" != x-; then
22994     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22995       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22996 echo "$as_me: $ac_file is unchanged" >&6;}
22997     else
22998       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23000          X"$ac_file" : 'X\(//\)[^/]' \| \
23001          X"$ac_file" : 'X\(//\)$' \| \
23002          X"$ac_file" : 'X\(/\)' \| \
23003          .     : '\(.\)' 2>/dev/null ||
23004 echo X"$ac_file" |
23005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23006           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23007           /^X\(\/\/\)$/{ s//\1/; q; }
23008           /^X\(\/\).*/{ s//\1/; q; }
23009           s/.*/./; q'`
23010       { if $as_mkdir_p; then
23011     mkdir -p "$ac_dir"
23012   else
23013     as_dir="$ac_dir"
23014     as_dirs=
23015     while test ! -d "$as_dir"; do
23016       as_dirs="$as_dir $as_dirs"
23017       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23019          X"$as_dir" : 'X\(//\)[^/]' \| \
23020          X"$as_dir" : 'X\(//\)$' \| \
23021          X"$as_dir" : 'X\(/\)' \| \
23022          .     : '\(.\)' 2>/dev/null ||
23023 echo X"$as_dir" |
23024     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23025           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23026           /^X\(\/\/\)$/{ s//\1/; q; }
23027           /^X\(\/\).*/{ s//\1/; q; }
23028           s/.*/./; q'`
23029     done
23030     test ! -n "$as_dirs" || mkdir $as_dirs
23031   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23032 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23033    { (exit 1); exit 1; }; }; }
23034
23035       rm -f $ac_file
23036       mv $tmp/config.h $ac_file
23037     fi
23038   else
23039     cat $tmp/config.h
23040     rm -f $tmp/config.h
23041   fi
23042 done
23043 _ACEOF
23044 cat >>$CONFIG_STATUS <<\_ACEOF
23045
23046 #
23047 # CONFIG_COMMANDS section.
23048 #
23049 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23050   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23051   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23052   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23053 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23054          X"$ac_dest" : 'X\(//\)[^/]' \| \
23055          X"$ac_dest" : 'X\(//\)$' \| \
23056          X"$ac_dest" : 'X\(/\)' \| \
23057          .     : '\(.\)' 2>/dev/null ||
23058 echo X"$ac_dest" |
23059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23061           /^X\(\/\/\)$/{ s//\1/; q; }
23062           /^X\(\/\).*/{ s//\1/; q; }
23063           s/.*/./; q'`
23064   ac_builddir=.
23065
23066 if test "$ac_dir" != .; then
23067   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23068   # A "../" for each directory in $ac_dir_suffix.
23069   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23070 else
23071   ac_dir_suffix= ac_top_builddir=
23072 fi
23073
23074 case $srcdir in
23075   .)  # No --srcdir option.  We are building in place.
23076     ac_srcdir=.
23077     if test -z "$ac_top_builddir"; then
23078        ac_top_srcdir=.
23079     else
23080        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23081     fi ;;
23082   [\\/]* | ?:[\\/]* )  # Absolute path.
23083     ac_srcdir=$srcdir$ac_dir_suffix;
23084     ac_top_srcdir=$srcdir ;;
23085   *) # Relative path.
23086     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23087     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23088 esac
23089 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23090 # absolute.
23091 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23092 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23093 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23094 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23095
23096
23097   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23098 echo "$as_me: executing $ac_dest commands" >&6;}
23099   case $ac_dest in
23100     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23101     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23102     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23103     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23104     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23105     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23106     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23107     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23108     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23109     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23110     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23111     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23112     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
23113     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23114     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23115     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23116     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23117     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23118     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23119     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23120     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23121     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23122     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23123     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
23124     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23125     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23126     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
23127     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23128     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23129     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
23130     test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
23131     test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
23132     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
23133     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
23134     test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
23135     test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
23136     test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
23137     test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
23138     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
23139     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
23140     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
23141     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
23142     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23143     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23144     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23145     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23146     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23147   esac
23148 done
23149 _ACEOF
23150
23151 cat >>$CONFIG_STATUS <<\_ACEOF
23152
23153 { (exit 0); exit 0; }
23154 _ACEOF
23155 chmod +x $CONFIG_STATUS
23156 ac_clean_files=$ac_clean_files_save
23157
23158
23159 # configure is writing to config.log, and then calls config.status.
23160 # config.status does its own redirection, appending to config.log.
23161 # Unfortunately, on DOS this fails, as config.log is still kept open
23162 # by configure, so config.status won't be able to write to it; its
23163 # output is simply discarded.  So we exec the FD to /dev/null,
23164 # effectively closing config.log, so it can be properly (re)opened and
23165 # appended to by config.status.  When coming back to configure, we
23166 # need to make the FD available again.
23167 if test "$no_create" != yes; then
23168   ac_cs_success=:
23169   ac_config_status_args=
23170   test "$silent" = yes &&
23171     ac_config_status_args="$ac_config_status_args --quiet"
23172   exec 5>/dev/null
23173   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23174   exec 5>>config.log
23175   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23176   # would make configure fail if this is the last instruction.
23177   $ac_cs_success || { (exit 1); exit 1; }
23178 fi
23179
23180 #
23181 # CONFIG_SUBDIRS section.
23182 #
23183 if test "$no_recursion" != yes; then
23184
23185   # Remove --cache-file and --srcdir arguments so they do not pile up.
23186   ac_sub_configure_args=
23187   ac_prev=
23188   for ac_arg in $ac_configure_args; do
23189     if test -n "$ac_prev"; then
23190       ac_prev=
23191       continue
23192     fi
23193     case $ac_arg in
23194     -cache-file | --cache-file | --cache-fil | --cache-fi \
23195     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23196       ac_prev=cache_file ;;
23197     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23198     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23199     | --c=*)
23200       ;;
23201     --config-cache | -C)
23202       ;;
23203     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23204       ac_prev=srcdir ;;
23205     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23206       ;;
23207     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23208       ac_prev=prefix ;;
23209     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23210       ;;
23211     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23212     esac
23213   done
23214
23215   # Always prepend --prefix to ensure using the same prefix
23216   # in subdir configurations.
23217   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23218
23219   ac_popdir=`pwd`
23220   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23221
23222     # Do not complain, so a configure script can configure whichever
23223     # parts of a large source tree are present.
23224     test -d $srcdir/$ac_dir || continue
23225
23226     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23227 echo "$as_me: configuring in $ac_dir" >&6;}
23228     { if $as_mkdir_p; then
23229     mkdir -p "$ac_dir"
23230   else
23231     as_dir="$ac_dir"
23232     as_dirs=
23233     while test ! -d "$as_dir"; do
23234       as_dirs="$as_dir $as_dirs"
23235       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23237          X"$as_dir" : 'X\(//\)[^/]' \| \
23238          X"$as_dir" : 'X\(//\)$' \| \
23239          X"$as_dir" : 'X\(/\)' \| \
23240          .     : '\(.\)' 2>/dev/null ||
23241 echo X"$as_dir" |
23242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23243           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23244           /^X\(\/\/\)$/{ s//\1/; q; }
23245           /^X\(\/\).*/{ s//\1/; q; }
23246           s/.*/./; q'`
23247     done
23248     test ! -n "$as_dirs" || mkdir $as_dirs
23249   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23250 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23251    { (exit 1); exit 1; }; }; }
23252
23253     ac_builddir=.
23254
23255 if test "$ac_dir" != .; then
23256   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23257   # A "../" for each directory in $ac_dir_suffix.
23258   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23259 else
23260   ac_dir_suffix= ac_top_builddir=
23261 fi
23262
23263 case $srcdir in
23264   .)  # No --srcdir option.  We are building in place.
23265     ac_srcdir=.
23266     if test -z "$ac_top_builddir"; then
23267        ac_top_srcdir=.
23268     else
23269        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23270     fi ;;
23271   [\\/]* | ?:[\\/]* )  # Absolute path.
23272     ac_srcdir=$srcdir$ac_dir_suffix;
23273     ac_top_srcdir=$srcdir ;;
23274   *) # Relative path.
23275     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23276     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23277 esac
23278 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23279 # absolute.
23280 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23281 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23282 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23283 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23284
23285
23286     cd $ac_dir
23287
23288     # Check for guested configure; otherwise get Cygnus style configure.
23289     if test -f $ac_srcdir/configure.gnu; then
23290       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23291     elif test -f $ac_srcdir/configure; then
23292       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23293     elif test -f $ac_srcdir/configure.in; then
23294       ac_sub_configure=$ac_configure
23295     else
23296       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23297 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23298       ac_sub_configure=
23299     fi
23300
23301     # The recursion is here.
23302     if test -n "$ac_sub_configure"; then
23303       # Make the cache file name correct relative to the subdirectory.
23304       case $cache_file in
23305       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23306       *) # Relative path.
23307         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23308       esac
23309
23310       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23311 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23312       # The eval makes quoting arguments work.
23313       eval $ac_sub_configure $ac_sub_configure_args \
23314            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23315         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23316 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23317    { (exit 1); exit 1; }; }
23318     fi
23319
23320     cd $ac_popdir
23321   done
23322 fi
23323
23324
23325 if test $llvmgccwarn = yes
23326 then
23327         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23328 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23329         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23330 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23331         { echo "$as_me:$LINENO: WARNING: ***** " >&5
23332 echo "$as_me: WARNING: ***** " >&2;}
23333         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23334 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23335         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23336 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23337         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23338 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23339 fi