Removed information about compiling the GCC front end. This will be in a
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/reopt"
430 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_unique_file=""Makefile.config.in""
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CC_set=${CC+set}
927 ac_env_CC_value=$CC
928 ac_cv_env_CC_set=${CC+set}
929 ac_cv_env_CC_value=$CC
930 ac_env_CFLAGS_set=${CFLAGS+set}
931 ac_env_CFLAGS_value=$CFLAGS
932 ac_cv_env_CFLAGS_set=${CFLAGS+set}
933 ac_cv_env_CFLAGS_value=$CFLAGS
934 ac_env_CPP_set=${CPP+set}
935 ac_env_CPP_value=$CPP
936 ac_cv_env_CPP_set=${CPP+set}
937 ac_cv_env_CPP_value=$CPP
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 System types:
1012   --build=BUILD     configure for building on BUILD [guessed]
1013   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014   --target=TARGET   configure for building compilers for TARGET [HOST]
1015 _ACEOF
1016 fi
1017
1018 if test -n "$ac_init_help"; then
1019   case $ac_init_help in
1020      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1021    esac
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --enable-shared[=PKGS]
1028                           build shared libraries [default=yes]
1029   --enable-static[=PKGS]
1030                           build static libraries [default=yes]
1031   --enable-fast-install[=PKGS]
1032                           optimize for fast installation [default=yes]
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034   --enable-purify         Compile with purify (default is NO)
1035   --enable-optimized      Compile with optimizations enabled (default is NO)
1036   --enable-spec           Compile SPEC 2000 benchmarks (default is NO)
1037   --enable-precompiled_bytecode
1038                           Use pre-compiled bytecode (default is NO)
1039   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-llvmgccdir       Location of LLVM GCC front-end
1051   --with-bcrepos          Location of Bytecode Repository
1052   --with-papi             Location of PAPI
1053   --with-purify           Location of purify program
1054
1055 Some influential environment variables:
1056   CXX         C++ compiler command
1057   CXXFLAGS    C++ compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   CPP         C preprocessor
1065   CXXCPP      C++ preprocessor
1066   F77         Fortran 77 compiler command
1067   FFLAGS      Fortran 77 compiler flags
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 # absolute.
1108 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1109 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1110 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112
1113     cd $ac_dir
1114     # Check for guested configure; otherwise get Cygnus style configure.
1115     if test -f $ac_srcdir/configure.gnu; then
1116       echo
1117       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1118     elif test -f $ac_srcdir/configure; then
1119       echo
1120       $SHELL $ac_srcdir/configure  --help=recursive
1121     elif test -f $ac_srcdir/configure.ac ||
1122            test -f $ac_srcdir/configure.in; then
1123       echo
1124       $ac_configure --help
1125     else
1126       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127     fi
1128     cd $ac_popdir
1129   done
1130 fi
1131
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134   cat <<\_ACEOF
1135 [LLVM] configure [1.0]
1136 generated by GNU Autoconf 2.57
1137
1138 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143   exit 0
1144 fi
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1149
1150 It was created by [LLVM] $as_me [1.0], which was
1151 generated by GNU Autoconf 2.57.  Invocation command line was
1152
1153   $ $0 $@
1154
1155 _ACEOF
1156 {
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1161
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1170
1171 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1172 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1175 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1176 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1177 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1178
1179 _ASUNAME
1180
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1183 do
1184   IFS=$as_save_IFS
1185   test -z "$as_dir" && as_dir=.
1186   echo "PATH: $as_dir"
1187 done
1188
1189 } >&5
1190
1191 cat >&5 <<_ACEOF
1192
1193
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1197
1198 _ACEOF
1199
1200
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1212 do
1213   for ac_arg
1214   do
1215     case $ac_arg in
1216     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218     | -silent | --silent | --silen | --sile | --sil)
1219       continue ;;
1220     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222     esac
1223     case $ac_pass in
1224     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225     2)
1226       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227       if test $ac_must_keep_next = true; then
1228         ac_must_keep_next=false # Got value, back to normal.
1229       else
1230         case $ac_arg in
1231           *=* | --config-cache | -C | -disable-* | --disable-* \
1232           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234           | -with-* | --with-* | -without-* | --without-* | --x)
1235             case "$ac_configure_args0 " in
1236               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237             esac
1238             ;;
1239           -* ) ac_must_keep_next=true ;;
1240         esac
1241       fi
1242       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243       # Get rid of the leading space.
1244       ac_sep=" "
1245       ;;
1246     esac
1247   done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log.  We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258   # Save into config.log some information that might help in debugging.
1259   {
1260     echo
1261
1262     cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267     echo
1268     # The following way of writing the cache mishandles newlines in values,
1269 {
1270   (set) 2>&1 |
1271     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272     *ac_space=\ *)
1273       sed -n \
1274         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276       ;;
1277     *)
1278       sed -n \
1279         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280       ;;
1281     esac;
1282 }
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290     echo
1291     for ac_var in $ac_subst_vars
1292     do
1293       eval ac_val=$`echo $ac_var`
1294       echo "$ac_var='"'"'$ac_val'"'"'"
1295     done | sort
1296     echo
1297
1298     if test -n "$ac_subst_files"; then
1299       cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304       echo
1305       for ac_var in $ac_subst_files
1306       do
1307         eval ac_val=$`echo $ac_var`
1308         echo "$ac_var='"'"'$ac_val'"'"'"
1309       done | sort
1310       echo
1311     fi
1312
1313     if test -s confdefs.h; then
1314       cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319       echo
1320       sed "/^$/d" confdefs.h | sort
1321       echo
1322     fi
1323     test "$ac_signal" != 0 &&
1324       echo "$as_me: caught signal $ac_signal"
1325     echo "$as_me: exit $exit_status"
1326   } >&5
1327   rm -f core core.* *.core &&
1328   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329     exit $exit_status
1330      ' 0
1331 for ac_signal in 1 2 13 15; do
1332   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1335
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1340
1341 # Predefined preprocessor variables.
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1366
1367
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371   if test "x$prefix" != xNONE; then
1372     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373   else
1374     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375   fi
1376 fi
1377 for ac_site_file in $CONFIG_SITE; do
1378   if test -r "$ac_site_file"; then
1379     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381     sed 's/^/| /' "$ac_site_file" >&5
1382     . "$ac_site_file"
1383   fi
1384 done
1385
1386 if test -r "$cache_file"; then
1387   # Some versions of bash will fail to source /dev/null (special
1388   # files actually), so we avoid doing that.
1389   if test -f "$cache_file"; then
1390     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392     case $cache_file in
1393       [\\/]* | ?:[\\/]* ) . $cache_file;;
1394       *)                      . ./$cache_file;;
1395     esac
1396   fi
1397 else
1398   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400   >$cache_file
1401 fi
1402
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409   eval ac_new_set=\$ac_env_${ac_var}_set
1410   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411   eval ac_new_val="\$ac_env_${ac_var}_value"
1412   case $ac_old_set,$ac_new_set in
1413     set,)
1414       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416       ac_cache_corrupted=: ;;
1417     ,set)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,);;
1422     *)
1423       if test "x$ac_old_val" != "x$ac_new_val"; then
1424         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1427 echo "$as_me:   former value:  $ac_old_val" >&2;}
1428         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1429 echo "$as_me:   current value: $ac_new_val" >&2;}
1430         ac_cache_corrupted=:
1431       fi;;
1432   esac
1433   # Pass precious variables to config.status.
1434   if test "$ac_new_set" = set; then
1435     case $ac_new_val in
1436     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438     *) ac_arg=$ac_var=$ac_new_val ;;
1439     esac
1440     case " $ac_configure_args " in
1441       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1442       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443     esac
1444   fi
1445 done
1446 if $ac_cache_corrupted; then
1447   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451    { (exit 1); exit 1; }; }
1452 fi
1453
1454 ac_ext=c
1455 ac_cpp='$CPP $CPPFLAGS'
1456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 ac_aux_dir=
1488 for ac_dir in autoconf $srcdir/autoconf; do
1489   if test -f $ac_dir/install-sh; then
1490     ac_aux_dir=$ac_dir
1491     ac_install_sh="$ac_aux_dir/install-sh -c"
1492     break
1493   elif test -f $ac_dir/install.sh; then
1494     ac_aux_dir=$ac_dir
1495     ac_install_sh="$ac_aux_dir/install.sh -c"
1496     break
1497   elif test -f $ac_dir/shtool; then
1498     ac_aux_dir=$ac_dir
1499     ac_install_sh="$ac_aux_dir/shtool install -c"
1500     break
1501   fi
1502 done
1503 if test -z "$ac_aux_dir"; then
1504   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
1512
1513 if test ${srcdir} != "."
1514 then
1515         if test -f ${srcdir}/include/Config/config.h
1516         then
1517                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1518 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1519    { (exit 1); exit 1; }; }
1520         fi
1521 fi
1522
1523 if test -d ${srcdir}/projects/reopt
1524 then
1525
1526
1527 subdirs="$subdirs projects/reopt"
1528
1529 fi
1530
1531 if test -d ${srcdir}/projects/poolalloc
1532 then
1533
1534
1535 subdirs="$subdirs projects/poolalloc"
1536
1537 fi
1538
1539           ac_config_headers="$ac_config_headers include/Config/config.h"
1540
1541           ac_config_commands="$ac_config_commands Makefile"
1542
1543
1544           ac_config_commands="$ac_config_commands Makefile.common"
1545
1546
1547           ac_config_commands="$ac_config_commands Makefile.rules"
1548
1549
1550           ac_config_commands="$ac_config_commands lib/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1554
1555
1556           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands runtime/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1686
1687
1688           ac_config_commands="$ac_config_commands test/Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands test/Makefile.tests"
1692
1693
1694           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1695
1696
1697           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1704
1705
1706           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1707
1708
1709           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands tools/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2013
2014
2015           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands utils/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands projects/Makefile"
2031
2032
2033           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2034
2035
2036           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2037
2038
2039           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2040
2041
2042           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2043
2044
2045           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2046
2047
2048           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2049
2050
2051           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2052
2053
2054           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2055
2056
2057           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2058
2059
2060           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2061
2062
2063           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2064
2065
2066
2067
2068 # Find a good install program.  We prefer a C program (faster),
2069 # so one script is as good as another.  But avoid the broken or
2070 # incompatible versions:
2071 # SysV /etc/install, /usr/sbin/install
2072 # SunOS /usr/etc/install
2073 # IRIX /sbin/install
2074 # AIX /bin/install
2075 # AmigaOS /C/install, which installs bootblocks on floppy discs
2076 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2077 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2078 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2079 # ./install, which can be erroneously created by make from ./install.sh.
2080 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2081 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2082 if test -z "$INSTALL"; then
2083 if test "${ac_cv_path_install+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091   # Account for people who put trailing slashes in PATH elements.
2092 case $as_dir/ in
2093   ./ | .// | /cC/* | \
2094   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2095   /usr/ucb/* ) ;;
2096   *)
2097     # OSF1 and SCO ODT 3.0 have their own names for install.
2098     # Don't use installbsd from OSF since it installs stuff as root
2099     # by default.
2100     for ac_prog in ginstall scoinst install; do
2101       for ac_exec_ext in '' $ac_executable_extensions; do
2102         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2103           if test $ac_prog = install &&
2104             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2105             # AIX install.  It has an incompatible calling convention.
2106             :
2107           elif test $ac_prog = install &&
2108             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2109             # program-specific install script used by HP pwplus--don't use.
2110             :
2111           else
2112             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2113             break 3
2114           fi
2115         fi
2116       done
2117     done
2118     ;;
2119 esac
2120 done
2121
2122
2123 fi
2124   if test "${ac_cv_path_install+set}" = set; then
2125     INSTALL=$ac_cv_path_install
2126   else
2127     # As a last resort, use the slow shell script.  We don't cache a
2128     # path for INSTALL within a source directory, because that will
2129     # break other packages using the cache if that directory is
2130     # removed, or if the path is relative.
2131     INSTALL=$ac_install_sh
2132   fi
2133 fi
2134 echo "$as_me:$LINENO: result: $INSTALL" >&5
2135 echo "${ECHO_T}$INSTALL" >&6
2136
2137 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2138 # It thinks the first close brace ends the variable substitution.
2139 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2140
2141 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2142
2143 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2144
2145
2146 # Make sure we can run config.sub.
2147 $ac_config_sub sun4 >/dev/null 2>&1 ||
2148   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2149 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2150    { (exit 1); exit 1; }; }
2151
2152 echo "$as_me:$LINENO: checking build system type" >&5
2153 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2154 if test "${ac_cv_build+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   ac_cv_build_alias=$build_alias
2158 test -z "$ac_cv_build_alias" &&
2159   ac_cv_build_alias=`$ac_config_guess`
2160 test -z "$ac_cv_build_alias" &&
2161   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2162 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2163    { (exit 1); exit 1; }; }
2164 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2165   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2166 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2167    { (exit 1); exit 1; }; }
2168
2169 fi
2170 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2171 echo "${ECHO_T}$ac_cv_build" >&6
2172 build=$ac_cv_build
2173 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2174 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2175 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2176
2177
2178 echo "$as_me:$LINENO: checking host system type" >&5
2179 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2180 if test "${ac_cv_host+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   ac_cv_host_alias=$host_alias
2184 test -z "$ac_cv_host_alias" &&
2185   ac_cv_host_alias=$ac_cv_build_alias
2186 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2187   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2188 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2189    { (exit 1); exit 1; }; }
2190
2191 fi
2192 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2193 echo "${ECHO_T}$ac_cv_host" >&6
2194 host=$ac_cv_host
2195 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2196 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2197 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2198
2199
2200 echo "$as_me:$LINENO: checking target system type" >&5
2201 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2202 if test "${ac_cv_target+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   ac_cv_target_alias=$target_alias
2206 test "x$ac_cv_target_alias" = "x" &&
2207   ac_cv_target_alias=$ac_cv_host_alias
2208 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2209   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2210 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2211    { (exit 1); exit 1; }; }
2212
2213 fi
2214 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215 echo "${ECHO_T}$ac_cv_target" >&6
2216 target=$ac_cv_target
2217 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2218 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2219 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2220
2221
2222 # The aliases save the names the user supplied, while $host etc.
2223 # will get canonicalized.
2224 test -n "$target_alias" &&
2225   test "$program_prefix$program_suffix$program_transform_name" = \
2226     NONENONEs,x,x, &&
2227   program_prefix=${target_alias}-
2228
2229 case $build in
2230         *i*86*)  OS=Linux
2231
2232                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2233
2234                  ;;
2235
2236         *sparc*) OS=SunOS
2237
2238                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2239
2240                  ;;
2241
2242         *)       OS=Unknown
2243
2244                  ;;
2245 esac
2246
2247 case $target in
2248         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2249
2250                           ;;
2251 esac
2252
2253 case $target in
2254         *i*86*)           ARCH=x86
2255
2256                           ;;
2257         *sparc*solaris*)  ARCH=Sparc
2258
2259                           ;;
2260 esac
2261
2262
2263 ac_ext=cc
2264 ac_cpp='$CXXCPP $CPPFLAGS'
2265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2268 if test -n "$ac_tool_prefix"; then
2269   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2270   do
2271     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_CXX+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   if test -n "$CXX"; then
2279   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284   IFS=$as_save_IFS
2285   test -z "$as_dir" && as_dir=.
2286   for ac_exec_ext in '' $ac_executable_extensions; do
2287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290     break 2
2291   fi
2292 done
2293 done
2294
2295 fi
2296 fi
2297 CXX=$ac_cv_prog_CXX
2298 if test -n "$CXX"; then
2299   echo "$as_me:$LINENO: result: $CXX" >&5
2300 echo "${ECHO_T}$CXX" >&6
2301 else
2302   echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2304 fi
2305
2306     test -n "$CXX" && break
2307   done
2308 fi
2309 if test -z "$CXX"; then
2310   ac_ct_CXX=$CXX
2311   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2312 do
2313   # Extract the first word of "$ac_prog", so it can be a program name with args.
2314 set dummy $ac_prog; ac_word=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320   if test -n "$ac_ct_CXX"; then
2321   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326   IFS=$as_save_IFS
2327   test -z "$as_dir" && as_dir=.
2328   for ac_exec_ext in '' $ac_executable_extensions; do
2329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330     ac_cv_prog_ac_ct_CXX="$ac_prog"
2331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332     break 2
2333   fi
2334 done
2335 done
2336
2337 fi
2338 fi
2339 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2340 if test -n "$ac_ct_CXX"; then
2341   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2342 echo "${ECHO_T}$ac_ct_CXX" >&6
2343 else
2344   echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2346 fi
2347
2348   test -n "$ac_ct_CXX" && break
2349 done
2350 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2351
2352   CXX=$ac_ct_CXX
2353 fi
2354
2355
2356 # Provide some information about the compiler.
2357 echo "$as_me:$LINENO:" \
2358      "checking for C++ compiler version" >&5
2359 ac_compiler=`set X $ac_compile; echo $2`
2360 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2361   (eval $ac_compiler --version </dev/null >&5) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); }
2365 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2366   (eval $ac_compiler -v </dev/null >&5) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }
2370 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2371   (eval $ac_compiler -V </dev/null >&5) 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }
2375
2376 cat >conftest.$ac_ext <<_ACEOF
2377 #line $LINENO "configure"
2378 /* confdefs.h.  */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h.  */
2383
2384 int
2385 main ()
2386 {
2387
2388   ;
2389   return 0;
2390 }
2391 _ACEOF
2392 ac_clean_files_save=$ac_clean_files
2393 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2394 # Try to create an executable without -o first, disregard a.out.
2395 # It will help us diagnose broken compilers, and finding out an intuition
2396 # of exeext.
2397 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2398 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2399 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2400 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2401   (eval $ac_link_default) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; then
2405   # Find the output, starting from the most likely.  This scheme is
2406 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2407 # resort.
2408
2409 # Be careful to initialize this variable, since it used to be cached.
2410 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2411 ac_cv_exeext=
2412 # b.out is created by i960 compilers.
2413 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2414 do
2415   test -f "$ac_file" || continue
2416   case $ac_file in
2417     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2418         ;;
2419     conftest.$ac_ext )
2420         # This is the source file.
2421         ;;
2422     [ab].out )
2423         # We found the default executable, but exeext='' is most
2424         # certainly right.
2425         break;;
2426     *.* )
2427         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2428         # FIXME: I believe we export ac_cv_exeext for Libtool,
2429         # but it would be cool to find out if it's true.  Does anybody
2430         # maintain Libtool? --akim.
2431         export ac_cv_exeext
2432         break;;
2433     * )
2434         break;;
2435   esac
2436 done
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: C++ compiler cannot create executables
2444 See \`config.log' for more details." >&2;}
2445    { (exit 77); exit 77; }; }
2446 fi
2447
2448 ac_exeext=$ac_cv_exeext
2449 echo "$as_me:$LINENO: result: $ac_file" >&5
2450 echo "${ECHO_T}$ac_file" >&6
2451
2452 # Check the compiler produces executables we can run.  If not, either
2453 # the compiler is broken, or we cross compile.
2454 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2455 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2456 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2457 # If not cross compiling, check that we can run a simple program.
2458 if test "$cross_compiling" != yes; then
2459   if { ac_try='./$ac_file'
2460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461   (eval $ac_try) 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; }; then
2465     cross_compiling=no
2466   else
2467     if test "$cross_compiling" = maybe; then
2468         cross_compiling=yes
2469     else
2470         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2471 If you meant to cross compile, use \`--host'.
2472 See \`config.log' for more details." >&5
2473 echo "$as_me: error: cannot run C++ compiled programs.
2474 If you meant to cross compile, use \`--host'.
2475 See \`config.log' for more details." >&2;}
2476    { (exit 1); exit 1; }; }
2477     fi
2478   fi
2479 fi
2480 echo "$as_me:$LINENO: result: yes" >&5
2481 echo "${ECHO_T}yes" >&6
2482
2483 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2484 ac_clean_files=$ac_clean_files_save
2485 # Check the compiler produces executables we can run.  If not, either
2486 # the compiler is broken, or we cross compile.
2487 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2488 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2489 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2490 echo "${ECHO_T}$cross_compiling" >&6
2491
2492 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2493 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2495   (eval $ac_link) 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }; then
2499   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2500 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2501 # work properly (i.e., refer to `conftest.exe'), while it won't with
2502 # `rm'.
2503 for ac_file in conftest.exe conftest conftest.*; do
2504   test -f "$ac_file" || continue
2505   case $ac_file in
2506     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2507     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508           export ac_cv_exeext
2509           break;;
2510     * ) break;;
2511   esac
2512 done
2513 else
2514   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2515 See \`config.log' for more details." >&5
2516 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2517 See \`config.log' for more details." >&2;}
2518    { (exit 1); exit 1; }; }
2519 fi
2520
2521 rm -f conftest$ac_cv_exeext
2522 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2523 echo "${ECHO_T}$ac_cv_exeext" >&6
2524
2525 rm -f conftest.$ac_ext
2526 EXEEXT=$ac_cv_exeext
2527 ac_exeext=$EXEEXT
2528 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2529 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2530 if test "${ac_cv_objext+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   cat >conftest.$ac_ext <<_ACEOF
2534 #line $LINENO "configure"
2535 /* confdefs.h.  */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h.  */
2540
2541 int
2542 main ()
2543 {
2544
2545   ;
2546   return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.o conftest.obj
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; then
2555   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2556   case $ac_file in
2557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2558     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2559        break;;
2560   esac
2561 done
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570    { (exit 1); exit 1; }; }
2571 fi
2572
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2574 fi
2575 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6
2577 OBJEXT=$ac_cv_objext
2578 ac_objext=$OBJEXT
2579 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2581 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2586 /* confdefs.h.  */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h.  */
2591
2592 int
2593 main ()
2594 {
2595 #ifndef __GNUC__
2596        choke me
2597 #endif
2598
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 rm -f conftest.$ac_objext
2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605   (eval $ac_compile) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -s conftest.$ac_objext'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; }; then
2615   ac_compiler_gnu=yes
2616 else
2617   echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2619
2620 ac_compiler_gnu=no
2621 fi
2622 rm -f conftest.$ac_objext conftest.$ac_ext
2623 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2624
2625 fi
2626 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2627 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2628 GXX=`test $ac_compiler_gnu = yes && echo yes`
2629 ac_test_CXXFLAGS=${CXXFLAGS+set}
2630 ac_save_CXXFLAGS=$CXXFLAGS
2631 CXXFLAGS="-g"
2632 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2633 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2634 if test "${ac_cv_prog_cxx_g+set}" = set; then
2635   echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637   cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2639 /* confdefs.h.  */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h.  */
2644
2645 int
2646 main ()
2647 {
2648
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655   (eval $ac_compile) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } &&
2659          { ac_try='test -s conftest.$ac_objext'
2660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661   (eval $ac_try) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; }; then
2665   ac_cv_prog_cxx_g=yes
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 ac_cv_prog_cxx_g=no
2671 fi
2672 rm -f conftest.$ac_objext conftest.$ac_ext
2673 fi
2674 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2675 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2676 if test "$ac_test_CXXFLAGS" = set; then
2677   CXXFLAGS=$ac_save_CXXFLAGS
2678 elif test $ac_cv_prog_cxx_g = yes; then
2679   if test "$GXX" = yes; then
2680     CXXFLAGS="-g -O2"
2681   else
2682     CXXFLAGS="-g"
2683   fi
2684 else
2685   if test "$GXX" = yes; then
2686     CXXFLAGS="-O2"
2687   else
2688     CXXFLAGS=
2689   fi
2690 fi
2691 for ac_declaration in \
2692    ''\
2693    '#include <stdlib.h>' \
2694    'extern "C" void std::exit (int) throw (); using std::exit;' \
2695    'extern "C" void std::exit (int); using std::exit;' \
2696    'extern "C" void exit (int) throw ();' \
2697    'extern "C" void exit (int);' \
2698    'void exit (int);'
2699 do
2700   cat >conftest.$ac_ext <<_ACEOF
2701 #line $LINENO "configure"
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707 #include <stdlib.h>
2708 $ac_declaration
2709 int
2710 main ()
2711 {
2712 exit (42);
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719   (eval $ac_compile) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); } &&
2723          { ac_try='test -s conftest.$ac_objext'
2724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725   (eval $ac_try) 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; }; then
2729   :
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 continue
2735 fi
2736 rm -f conftest.$ac_objext conftest.$ac_ext
2737   cat >conftest.$ac_ext <<_ACEOF
2738 #line $LINENO "configure"
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744 $ac_declaration
2745 int
2746 main ()
2747 {
2748 exit (42);
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755   (eval $ac_compile) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); } &&
2759          { ac_try='test -s conftest.$ac_objext'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   break
2766 else
2767   echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770 fi
2771 rm -f conftest.$ac_objext conftest.$ac_ext
2772 done
2773 rm -f conftest*
2774 if test -n "$ac_declaration"; then
2775   echo '#ifdef __cplusplus' >>confdefs.h
2776   echo $ac_declaration      >>confdefs.h
2777   echo '#endif'             >>confdefs.h
2778 fi
2779
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785
2786 ac_ext=c
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791 if test -n "$ac_tool_prefix"; then
2792   for ac_prog in gcc
2793   do
2794     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2796 echo "$as_me:$LINENO: checking for $ac_word" >&5
2797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798 if test "${ac_cv_prog_CC+set}" = set; then
2799   echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801   if test -n "$CC"; then
2802   ac_cv_prog_CC="$CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807   IFS=$as_save_IFS
2808   test -z "$as_dir" && as_dir=.
2809   for ac_exec_ext in '' $ac_executable_extensions; do
2810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813     break 2
2814   fi
2815 done
2816 done
2817
2818 fi
2819 fi
2820 CC=$ac_cv_prog_CC
2821 if test -n "$CC"; then
2822   echo "$as_me:$LINENO: result: $CC" >&5
2823 echo "${ECHO_T}$CC" >&6
2824 else
2825   echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6
2827 fi
2828
2829     test -n "$CC" && break
2830   done
2831 fi
2832 if test -z "$CC"; then
2833   ac_ct_CC=$CC
2834   for ac_prog in gcc
2835 do
2836   # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   if test -n "$ac_ct_CC"; then
2844   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853     ac_cv_prog_ac_ct_CC="$ac_prog"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859
2860 fi
2861 fi
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2865 echo "${ECHO_T}$ac_ct_CC" >&6
2866 else
2867   echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2869 fi
2870
2871   test -n "$ac_ct_CC" && break
2872 done
2873
2874   CC=$ac_ct_CC
2875 fi
2876
2877
2878 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2879 See \`config.log' for more details." >&5
2880 echo "$as_me: error: no acceptable C compiler found in \$PATH
2881 See \`config.log' for more details." >&2;}
2882    { (exit 1); exit 1; }; }
2883
2884 # Provide some information about the compiler.
2885 echo "$as_me:$LINENO:" \
2886      "checking for C compiler version" >&5
2887 ac_compiler=`set X $ac_compile; echo $2`
2888 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2889   (eval $ac_compiler --version </dev/null >&5) 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }
2893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2894   (eval $ac_compiler -v </dev/null >&5) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }
2898 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2899   (eval $ac_compiler -V </dev/null >&5) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }
2903
2904 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2905 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2906 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909   cat >conftest.$ac_ext <<_ACEOF
2910 #line $LINENO "configure"
2911 /* confdefs.h.  */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h.  */
2916
2917 int
2918 main ()
2919 {
2920 #ifndef __GNUC__
2921        choke me
2922 #endif
2923
2924   ;
2925   return 0;
2926 }
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930   (eval $ac_compile) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   ac_compiler_gnu=yes
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 ac_compiler_gnu=no
2946 fi
2947 rm -f conftest.$ac_objext conftest.$ac_ext
2948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2949
2950 fi
2951 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2952 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2953 GCC=`test $ac_compiler_gnu = yes && echo yes`
2954 ac_test_CFLAGS=${CFLAGS+set}
2955 ac_save_CFLAGS=$CFLAGS
2956 CFLAGS="-g"
2957 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2958 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2959 if test "${ac_cv_prog_cc_g+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962   cat >conftest.$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969
2970 int
2971 main ()
2972 {
2973
2974   ;
2975   return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980   (eval $ac_compile) 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } &&
2984          { ac_try='test -s conftest.$ac_objext'
2985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986   (eval $ac_try) 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; }; then
2990   ac_cv_prog_cc_g=yes
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 ac_cv_prog_cc_g=no
2996 fi
2997 rm -f conftest.$ac_objext conftest.$ac_ext
2998 fi
2999 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3000 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3001 if test "$ac_test_CFLAGS" = set; then
3002   CFLAGS=$ac_save_CFLAGS
3003 elif test $ac_cv_prog_cc_g = yes; then
3004   if test "$GCC" = yes; then
3005     CFLAGS="-g -O2"
3006   else
3007     CFLAGS="-g"
3008   fi
3009 else
3010   if test "$GCC" = yes; then
3011     CFLAGS="-O2"
3012   else
3013     CFLAGS=
3014   fi
3015 fi
3016 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3017 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3018 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021   ac_cv_prog_cc_stdc=no
3022 ac_save_CC=$CC
3023 cat >conftest.$ac_ext <<_ACEOF
3024 #line $LINENO "configure"
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 #include <stdarg.h>
3031 #include <stdio.h>
3032 #include <sys/types.h>
3033 #include <sys/stat.h>
3034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3035 struct buf { int x; };
3036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3037 static char *e (p, i)
3038      char **p;
3039      int i;
3040 {
3041   return p[i];
3042 }
3043 static char *f (char * (*g) (char **, int), char **p, ...)
3044 {
3045   char *s;
3046   va_list v;
3047   va_start (v,p);
3048   s = g (p, va_arg (v,int));
3049   va_end (v);
3050   return s;
3051 }
3052 int test (int i, double x);
3053 struct s1 {int (*f) (int a);};
3054 struct s2 {int (*f) (double a);};
3055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3056 int argc;
3057 char **argv;
3058 int
3059 main ()
3060 {
3061 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 # Don't try gcc -ansi; that turns off useful extensions and
3067 # breaks some systems' header files.
3068 # AIX                   -qlanglvl=ansi
3069 # Ultrix and OSF/1      -std1
3070 # HP-UX 10.20 and later -Ae
3071 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3072 # SVR4                  -Xc -D__EXTENSIONS__
3073 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3074 do
3075   CC="$ac_save_CC $ac_arg"
3076   rm -f conftest.$ac_objext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078   (eval $ac_compile) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } &&
3082          { ac_try='test -s conftest.$ac_objext'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   ac_cv_prog_cc_stdc=$ac_arg
3089 break
3090 else
3091   echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 fi
3095 rm -f conftest.$ac_objext
3096 done
3097 rm -f conftest.$ac_ext conftest.$ac_objext
3098 CC=$ac_save_CC
3099
3100 fi
3101
3102 case "x$ac_cv_prog_cc_stdc" in
3103   x|xno)
3104     echo "$as_me:$LINENO: result: none needed" >&5
3105 echo "${ECHO_T}none needed" >&6 ;;
3106   *)
3107     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3108 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3109     CC="$CC $ac_cv_prog_cc_stdc" ;;
3110 esac
3111
3112 # Some people use a C++ compiler to compile C.  Since we use `exit',
3113 # in C++ we need to declare it.  In case someone uses the same compiler
3114 # for both compiling C and C++ we need to have the C++ compiler decide
3115 # the declaration of exit, since it's the most demanding environment.
3116 cat >conftest.$ac_ext <<_ACEOF
3117 #ifndef __cplusplus
3118   choke me
3119 #endif
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123   (eval $ac_compile) 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } &&
3127          { ac_try='test -s conftest.$ac_objext'
3128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129   (eval $ac_try) 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   for ac_declaration in \
3134    ''\
3135    '#include <stdlib.h>' \
3136    'extern "C" void std::exit (int) throw (); using std::exit;' \
3137    'extern "C" void std::exit (int); using std::exit;' \
3138    'extern "C" void exit (int) throw ();' \
3139    'extern "C" void exit (int);' \
3140    'void exit (int);'
3141 do
3142   cat >conftest.$ac_ext <<_ACEOF
3143 #line $LINENO "configure"
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149 #include <stdlib.h>
3150 $ac_declaration
3151 int
3152 main ()
3153 {
3154 exit (42);
3155   ;
3156   return 0;
3157 }
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161   (eval $ac_compile) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } &&
3165          { ac_try='test -s conftest.$ac_objext'
3166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167   (eval $ac_try) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; }; then
3171   :
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 continue
3177 fi
3178 rm -f conftest.$ac_objext conftest.$ac_ext
3179   cat >conftest.$ac_ext <<_ACEOF
3180 #line $LINENO "configure"
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186 $ac_declaration
3187 int
3188 main ()
3189 {
3190 exit (42);
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197   (eval $ac_compile) 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } &&
3201          { ac_try='test -s conftest.$ac_objext'
3202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203   (eval $ac_try) 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }; }; then
3207   break
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 fi
3213 rm -f conftest.$ac_objext conftest.$ac_ext
3214 done
3215 rm -f conftest*
3216 if test -n "$ac_declaration"; then
3217   echo '#ifdef __cplusplus' >>confdefs.h
3218   echo $ac_declaration      >>confdefs.h
3219   echo '#endif'             >>confdefs.h
3220 fi
3221
3222 else
3223   echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226 fi
3227 rm -f conftest.$ac_objext conftest.$ac_ext
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3241 # On Suns, sometimes $CPP names a directory.
3242 if test -n "$CPP" && test -d "$CPP"; then
3243   CPP=
3244 fi
3245 if test -z "$CPP"; then
3246   if test "${ac_cv_prog_CPP+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249       # Double quotes because CPP needs to be expanded
3250     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251     do
3252       ac_preproc_ok=false
3253 for ac_c_preproc_warn_flag in '' yes
3254 do
3255   # Use a header file that comes with gcc, so configuring glibc
3256   # with a fresh cross-compiler works.
3257   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258   # <limits.h> exists even on freestanding compilers.
3259   # On the NeXT, cc -E runs the code through the compiler's parser,
3260   # not just through cpp. "Syntax error" is here to catch this case.
3261   cat >conftest.$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268 #ifdef __STDC__
3269 # include <limits.h>
3270 #else
3271 # include <assert.h>
3272 #endif
3273                      Syntax error
3274 _ACEOF
3275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
3280   cat conftest.err >&5
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); } >/dev/null; then
3283   if test -s conftest.err; then
3284     ac_cpp_err=$ac_c_preproc_warn_flag
3285   else
3286     ac_cpp_err=
3287   fi
3288 else
3289   ac_cpp_err=yes
3290 fi
3291 if test -z "$ac_cpp_err"; then
3292   :
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297   # Broken: fails on valid input.
3298 continue
3299 fi
3300 rm -f conftest.err conftest.$ac_ext
3301
3302   # OK, works on sane cases.  Now check whether non-existent headers
3303   # can be detected and how.
3304   cat >conftest.$ac_ext <<_ACEOF
3305 #line $LINENO "configure"
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ac_nonexistent.h>
3312 _ACEOF
3313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } >/dev/null; then
3321   if test -s conftest.err; then
3322     ac_cpp_err=$ac_c_preproc_warn_flag
3323   else
3324     ac_cpp_err=
3325   fi
3326 else
3327   ac_cpp_err=yes
3328 fi
3329 if test -z "$ac_cpp_err"; then
3330   # Broken: success on invalid input.
3331 continue
3332 else
3333   echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336   # Passes both tests.
3337 ac_preproc_ok=:
3338 break
3339 fi
3340 rm -f conftest.err conftest.$ac_ext
3341
3342 done
3343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344 rm -f conftest.err conftest.$ac_ext
3345 if $ac_preproc_ok; then
3346   break
3347 fi
3348
3349     done
3350     ac_cv_prog_CPP=$CPP
3351
3352 fi
3353   CPP=$ac_cv_prog_CPP
3354 else
3355   ac_cv_prog_CPP=$CPP
3356 fi
3357 echo "$as_me:$LINENO: result: $CPP" >&5
3358 echo "${ECHO_T}$CPP" >&6
3359 ac_preproc_ok=false
3360 for ac_c_preproc_warn_flag in '' yes
3361 do
3362   # Use a header file that comes with gcc, so configuring glibc
3363   # with a fresh cross-compiler works.
3364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3365   # <limits.h> exists even on freestanding compilers.
3366   # On the NeXT, cc -E runs the code through the compiler's parser,
3367   # not just through cpp. "Syntax error" is here to catch this case.
3368   cat >conftest.$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #ifdef __STDC__
3376 # include <limits.h>
3377 #else
3378 # include <assert.h>
3379 #endif
3380                      Syntax error
3381 _ACEOF
3382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } >/dev/null; then
3390   if test -s conftest.err; then
3391     ac_cpp_err=$ac_c_preproc_warn_flag
3392   else
3393     ac_cpp_err=
3394   fi
3395 else
3396   ac_cpp_err=yes
3397 fi
3398 if test -z "$ac_cpp_err"; then
3399   :
3400 else
3401   echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3403
3404   # Broken: fails on valid input.
3405 continue
3406 fi
3407 rm -f conftest.err conftest.$ac_ext
3408
3409   # OK, works on sane cases.  Now check whether non-existent headers
3410   # can be detected and how.
3411   cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #include <ac_nonexistent.h>
3419 _ACEOF
3420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } >/dev/null; then
3428   if test -s conftest.err; then
3429     ac_cpp_err=$ac_c_preproc_warn_flag
3430   else
3431     ac_cpp_err=
3432   fi
3433 else
3434   ac_cpp_err=yes
3435 fi
3436 if test -z "$ac_cpp_err"; then
3437   # Broken: success on invalid input.
3438 continue
3439 else
3440   echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443   # Passes both tests.
3444 ac_preproc_ok=:
3445 break
3446 fi
3447 rm -f conftest.err conftest.$ac_ext
3448
3449 done
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3453   :
3454 else
3455   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&5
3457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&2;}
3459    { (exit 1); exit 1; }; }
3460 fi
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468
3469 if test "$GCC" != "yes"
3470 then
3471         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3472 echo "$as_me: error: gcc required but not found" >&2;}
3473    { (exit 1); exit 1; }; }
3474 fi
3475
3476 if test "$GXX" != "yes"
3477 then
3478         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3479 echo "$as_me: error: g++ required but not found" >&2;}
3480    { (exit 1); exit 1; }; }
3481 fi
3482
3483 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3484 if test "$gccmajor" -lt "3"
3485 then
3486         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3487 echo "$as_me: error: gcc 3.x required" >&2;}
3488    { (exit 1); exit 1; }; }
3489 fi
3490
3491  echo "$as_me:$LINENO: checking for GNU make" >&5
3492 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3493 if test "${_cv_gnu_make_command+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   _cv_gnu_make_command='' ;
3497                 for a in "$MAKE" make gmake gnumake ; do
3498                         if test -z "$a" ; then continue ; fi ;
3499                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3500                                 _cv_gnu_make_command=$a ;
3501                                 break;
3502                         fi
3503                 done ;
3504
3505 fi
3506 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3507 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3508         if test  "x$_cv_gnu_make_command" != "x"  ; then
3509                 ifGNUmake='' ;
3510         else
3511                 ifGNUmake='#' ;
3512                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3513 echo "${ECHO_T}\"Not found\"" >&6;
3514         fi
3515
3516
3517 if test -z "$_cv_gnu_make_command"
3518 then
3519         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3520 echo "$as_me: error: GNU Make required but not found" >&2;}
3521    { (exit 1); exit 1; }; }
3522 fi
3523
3524
3525 echo "$as_me:$LINENO: checking " >&5
3526 echo $ECHO_N "checking ... $ECHO_C" >&6
3527 if test "${ac_cv_has_flex+set}" = set; then
3528   echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530   for ac_prog in flex lex
3531 do
3532   # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3536 if test "${ac_cv_prog_LEX+set}" = set; then
3537   echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539   if test -n "$LEX"; then
3540   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545   IFS=$as_save_IFS
3546   test -z "$as_dir" && as_dir=.
3547   for ac_exec_ext in '' $ac_executable_extensions; do
3548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549     ac_cv_prog_LEX="$ac_prog"
3550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551     break 2
3552   fi
3553 done
3554 done
3555
3556 fi
3557 fi
3558 LEX=$ac_cv_prog_LEX
3559 if test -n "$LEX"; then
3560   echo "$as_me:$LINENO: result: $LEX" >&5
3561 echo "${ECHO_T}$LEX" >&6
3562 else
3563   echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6
3565 fi
3566
3567   test -n "$LEX" && break
3568 done
3569 test -n "$LEX" || LEX=":"
3570
3571 if test -z "$LEXLIB"
3572 then
3573   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3574 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3575 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   ac_check_lib_save_LIBS=$LIBS
3579 LIBS="-lfl  $LIBS"
3580 cat >conftest.$ac_ext <<_ACEOF
3581 #line $LINENO "configure"
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587
3588 /* Override any gcc2 internal prototype to avoid an error.  */
3589 #ifdef __cplusplus
3590 extern "C"
3591 #endif
3592 /* We use char because int might match the return type of a gcc2
3593    builtin and then its argument prototype would still apply.  */
3594 char yywrap ();
3595 int
3596 main ()
3597 {
3598 yywrap ();
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.$ac_objext conftest$ac_exeext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3605   (eval $ac_link) 2>&5
3606   ac_status=$?
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } &&
3609          { ac_try='test -s conftest$ac_exeext'
3610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611   (eval $ac_try) 2>&5
3612   ac_status=$?
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); }; }; then
3615   ac_cv_lib_fl_yywrap=yes
3616 else
3617   echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 ac_cv_lib_fl_yywrap=no
3621 fi
3622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3623 LIBS=$ac_check_lib_save_LIBS
3624 fi
3625 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3626 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3627 if test $ac_cv_lib_fl_yywrap = yes; then
3628   LEXLIB="-lfl"
3629 else
3630   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3631 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3632 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   ac_check_lib_save_LIBS=$LIBS
3636 LIBS="-ll  $LIBS"
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line $LINENO "configure"
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644
3645 /* Override any gcc2 internal prototype to avoid an error.  */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 /* We use char because int might match the return type of a gcc2
3650    builtin and then its argument prototype would still apply.  */
3651 char yywrap ();
3652 int
3653 main ()
3654 {
3655 yywrap ();
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662   (eval $ac_link) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); } &&
3666          { ac_try='test -s conftest$ac_exeext'
3667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668   (eval $ac_try) 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }; }; then
3672   ac_cv_lib_l_yywrap=yes
3673 else
3674   echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 ac_cv_lib_l_yywrap=no
3678 fi
3679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3680 LIBS=$ac_check_lib_save_LIBS
3681 fi
3682 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3683 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3684 if test $ac_cv_lib_l_yywrap = yes; then
3685   LEXLIB="-ll"
3686 fi
3687
3688 fi
3689
3690 fi
3691
3692 if test "x$LEX" != "x:"; then
3693   echo "$as_me:$LINENO: checking lex output file root" >&5
3694 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3695 if test "${ac_cv_prog_lex_root+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   # The minimal lex program is just a single line: %%.  But some broken lexes
3699 # (Solaris, I think it was) want two %% lines, so accommodate them.
3700 cat >conftest.l <<_ACEOF
3701 %%
3702 %%
3703 _ACEOF
3704 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3705   (eval $LEX conftest.l) 2>&5
3706   ac_status=$?
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); }
3709 if test -f lex.yy.c; then
3710   ac_cv_prog_lex_root=lex.yy
3711 elif test -f lexyy.c; then
3712   ac_cv_prog_lex_root=lexyy
3713 else
3714   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3715 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3716    { (exit 1); exit 1; }; }
3717 fi
3718 fi
3719 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3720 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3721 rm -f conftest.l
3722 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3723
3724 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3725 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3726 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   # POSIX says lex can declare yytext either as a pointer or an array; the
3730 # default is implementation-dependent. Figure out which it is, since
3731 # not all implementations provide the %pointer and %array declarations.
3732 ac_cv_prog_lex_yytext_pointer=no
3733 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3734 ac_save_LIBS=$LIBS
3735 LIBS="$LIBS $LEXLIB"
3736 cat >conftest.$ac_ext <<_ACEOF
3737 `cat $LEX_OUTPUT_ROOT.c`
3738 _ACEOF
3739 rm -f conftest.$ac_objext conftest$ac_exeext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3741   (eval $ac_link) 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } &&
3745          { ac_try='test -s conftest$ac_exeext'
3746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; }; then
3751   ac_cv_prog_lex_yytext_pointer=yes
3752 else
3753   echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756 fi
3757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3758 LIBS=$ac_save_LIBS
3759 rm -f "${LEX_OUTPUT_ROOT}.c"
3760
3761 fi
3762 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3763 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3764 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3765
3766 cat >>confdefs.h <<\_ACEOF
3767 #define YYTEXT_POINTER 1
3768 _ACEOF
3769
3770 fi
3771
3772 fi
3773
3774 fi
3775 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3776 echo "${ECHO_T}$ac_cv_has_flex" >&6
3777 if test "$LEX" != "flex"; then
3778   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3779 echo "$as_me: error: flex not found but required" >&2;}
3780    { (exit 1); exit 1; }; }
3781 fi
3782
3783 echo "$as_me:$LINENO: checking " >&5
3784 echo $ECHO_N "checking ... $ECHO_C" >&6
3785 if test "${ac_cv_has_bison+set}" = set; then
3786   echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788   for ac_prog in 'bison -y' byacc
3789 do
3790   # Extract the first word of "$ac_prog", so it can be a program name with args.
3791 set dummy $ac_prog; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_prog_YACC+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   if test -n "$YACC"; then
3798   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805   for ac_exec_ext in '' $ac_executable_extensions; do
3806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807     ac_cv_prog_YACC="$ac_prog"
3808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812 done
3813
3814 fi
3815 fi
3816 YACC=$ac_cv_prog_YACC
3817 if test -n "$YACC"; then
3818   echo "$as_me:$LINENO: result: $YACC" >&5
3819 echo "${ECHO_T}$YACC" >&6
3820 else
3821   echo "$as_me:$LINENO: result: no" >&5
3822 echo "${ECHO_T}no" >&6
3823 fi
3824
3825   test -n "$YACC" && break
3826 done
3827 test -n "$YACC" || YACC="yacc"
3828
3829
3830 fi
3831 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3832 echo "${ECHO_T}$ac_cv_has_bison" >&6
3833 if test "$YACC" != "bison -y"; then
3834   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3835 echo "$as_me: error: bison not found but required" >&2;}
3836    { (exit 1); exit 1; }; }
3837 else
3838   YACC=bison
3839
3840 fi
3841
3842
3843 # Check whether --enable-shared or --disable-shared was given.
3844 if test "${enable_shared+set}" = set; then
3845   enableval="$enable_shared"
3846   p=${PACKAGE-default}
3847     case $enableval in
3848     yes) enable_shared=yes ;;
3849     no) enable_shared=no ;;
3850     *)
3851       enable_shared=no
3852       # Look at the argument we got.  We use all the common list separators.
3853       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3854       for pkg in $enableval; do
3855         IFS="$lt_save_ifs"
3856         if test "X$pkg" = "X$p"; then
3857           enable_shared=yes
3858         fi
3859       done
3860       IFS="$lt_save_ifs"
3861       ;;
3862     esac
3863 else
3864   enable_shared=yes
3865 fi;
3866
3867 # Check whether --enable-static or --disable-static was given.
3868 if test "${enable_static+set}" = set; then
3869   enableval="$enable_static"
3870   p=${PACKAGE-default}
3871     case $enableval in
3872     yes) enable_static=yes ;;
3873     no) enable_static=no ;;
3874     *)
3875      enable_static=no
3876       # Look at the argument we got.  We use all the common list separators.
3877       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3878       for pkg in $enableval; do
3879         IFS="$lt_save_ifs"
3880         if test "X$pkg" = "X$p"; then
3881           enable_static=yes
3882         fi
3883       done
3884       IFS="$lt_save_ifs"
3885       ;;
3886     esac
3887 else
3888   enable_static=yes
3889 fi;
3890
3891 # Check whether --enable-fast-install or --disable-fast-install was given.
3892 if test "${enable_fast_install+set}" = set; then
3893   enableval="$enable_fast_install"
3894   p=${PACKAGE-default}
3895     case $enableval in
3896     yes) enable_fast_install=yes ;;
3897     no) enable_fast_install=no ;;
3898     *)
3899       enable_fast_install=no
3900       # Look at the argument we got.  We use all the common list separators.
3901       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3902       for pkg in $enableval; do
3903         IFS="$lt_save_ifs"
3904         if test "X$pkg" = "X$p"; then
3905           enable_fast_install=yes
3906         fi
3907       done
3908       IFS="$lt_save_ifs"
3909       ;;
3910     esac
3911 else
3912   enable_fast_install=yes
3913 fi;
3914
3915 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3916 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3917 if test "${lt_cv_path_SED+set}" = set; then
3918   echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920   # Loop through the user's path and test for sed and gsed.
3921 # Then use that list of sed's as ones to test for truncation.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927   for lt_ac_prog in sed gsed; do
3928     for ac_exec_ext in '' $ac_executable_extensions; do
3929       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3930         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3931       fi
3932     done
3933   done
3934 done
3935 lt_ac_max=0
3936 lt_ac_count=0
3937 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3938 # along with /bin/sed that truncates output.
3939 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3940   test ! -f $lt_ac_sed && break
3941   cat /dev/null > conftest.in
3942   lt_ac_count=0
3943   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3944   # Check for GNU sed and select it if it is found.
3945   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3946     lt_cv_path_SED=$lt_ac_sed
3947     break
3948   fi
3949   while true; do
3950     cat conftest.in conftest.in >conftest.tmp
3951     mv conftest.tmp conftest.in
3952     cp conftest.in conftest.nl
3953     echo >>conftest.nl
3954     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3955     cmp -s conftest.out conftest.nl || break
3956     # 10000 chars as input seems more than enough
3957     test $lt_ac_count -gt 10 && break
3958     lt_ac_count=`expr $lt_ac_count + 1`
3959     if test $lt_ac_count -gt $lt_ac_max; then
3960       lt_ac_max=$lt_ac_count
3961       lt_cv_path_SED=$lt_ac_sed
3962     fi
3963   done
3964 done
3965 SED=$lt_cv_path_SED
3966
3967 fi
3968
3969 echo "$as_me:$LINENO: result: $SED" >&5
3970 echo "${ECHO_T}$SED" >&6
3971
3972 echo "$as_me:$LINENO: checking for egrep" >&5
3973 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3974 if test "${ac_cv_prog_egrep+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3978     then ac_cv_prog_egrep='grep -E'
3979     else ac_cv_prog_egrep='egrep'
3980     fi
3981 fi
3982 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3983 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3984  EGREP=$ac_cv_prog_egrep
3985
3986
3987
3988 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3989 if test "${with_gnu_ld+set}" = set; then
3990   withval="$with_gnu_ld"
3991   test "$withval" = no || with_gnu_ld=yes
3992 else
3993   with_gnu_ld=no
3994 fi;
3995 ac_prog=ld
3996 if test "$GCC" = yes; then
3997   # Check if gcc -print-prog-name=ld gives a path.
3998   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3999 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4000   case $host in
4001   *-*-mingw*)
4002     # gcc leaves a trailing carriage return which upsets mingw
4003     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4004   *)
4005     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4006   esac
4007   case $ac_prog in
4008     # Accept absolute paths.
4009     [\\/]* | ?:[\\/]*)
4010       re_direlt='/[^/][^/]*/\.\./'
4011       # Canonicalize the path of ld
4012       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4013       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4014         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4015       done
4016       test -z "$LD" && LD="$ac_prog"
4017       ;;
4018   "")
4019     # If it fails, then pretend we aren't using GCC.
4020     ac_prog=ld
4021     ;;
4022   *)
4023     # If it is relative, then search for the first ld in PATH.
4024     with_gnu_ld=unknown
4025     ;;
4026   esac
4027 elif test "$with_gnu_ld" = yes; then
4028   echo "$as_me:$LINENO: checking for GNU ld" >&5
4029 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4030 else
4031   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4032 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4033 fi
4034 if test "${lt_cv_path_LD+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   if test -z "$LD"; then
4038   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4039   for ac_dir in $PATH; do
4040     IFS="$lt_save_ifs"
4041     test -z "$ac_dir" && ac_dir=.
4042     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4043       lt_cv_path_LD="$ac_dir/$ac_prog"
4044       # Check to see if the program is GNU ld.  I'd rather use --version,
4045       # but apparently some GNU ld's only accept -v.
4046       # Break only if it was the GNU/non-GNU ld that we prefer.
4047       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4048       *GNU* | *'with BFD'*)
4049         test "$with_gnu_ld" != no && break
4050         ;;
4051       *)
4052         test "$with_gnu_ld" != yes && break
4053         ;;
4054       esac
4055     fi
4056   done
4057   IFS="$lt_save_ifs"
4058 else
4059   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4060 fi
4061 fi
4062
4063 LD="$lt_cv_path_LD"
4064 if test -n "$LD"; then
4065   echo "$as_me:$LINENO: result: $LD" >&5
4066 echo "${ECHO_T}$LD" >&6
4067 else
4068   echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4070 fi
4071 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4072 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4073    { (exit 1); exit 1; }; }
4074 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4075 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4076 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4080 case `"$LD" -v 2>&1 </dev/null` in
4081 *GNU* | *'with BFD'*)
4082   lt_cv_prog_gnu_ld=yes
4083   ;;
4084 *)
4085   lt_cv_prog_gnu_ld=no
4086   ;;
4087 esac
4088 fi
4089 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4090 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4091 with_gnu_ld=$lt_cv_prog_gnu_ld
4092
4093
4094 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4095 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4096 if test "${lt_cv_ld_reload_flag+set}" = set; then
4097   echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099   lt_cv_ld_reload_flag='-r'
4100 fi
4101 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4102 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4103 reload_flag=$lt_cv_ld_reload_flag
4104 case $reload_flag in
4105 "" | " "*) ;;
4106 *) reload_flag=" $reload_flag" ;;
4107 esac
4108 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4109
4110 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4111 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4112 if test "${lt_cv_path_NM+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   if test -n "$NM"; then
4116   # Let the user override the test.
4117   lt_cv_path_NM="$NM"
4118 else
4119   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4120   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4121     IFS="$lt_save_ifs"
4122     test -z "$ac_dir" && ac_dir=.
4123     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4124     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4125       # Check to see if the nm accepts a BSD-compat flag.
4126       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4127       #   nm: unknown option "B" ignored
4128       # Tru64's nm complains that /dev/null is an invalid object file
4129       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4130       */dev/null* | *'Invalid file or object type'*)
4131         lt_cv_path_NM="$tmp_nm -B"
4132         break
4133         ;;
4134       *)
4135         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4136         */dev/null*)
4137           lt_cv_path_NM="$tmp_nm -p"
4138           break
4139           ;;
4140         *)
4141           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4142           continue # so that we can try to find one that supports BSD flags
4143           ;;
4144         esac
4145       esac
4146     fi
4147   done
4148   IFS="$lt_save_ifs"
4149   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4150 fi
4151 fi
4152 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4153 echo "${ECHO_T}$lt_cv_path_NM" >&6
4154 NM="$lt_cv_path_NM"
4155
4156 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4157 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4158 LN_S=$as_ln_s
4159 if test "$LN_S" = "ln -s"; then
4160   echo "$as_me:$LINENO: result: yes" >&5
4161 echo "${ECHO_T}yes" >&6
4162 else
4163   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4164 echo "${ECHO_T}no, using $LN_S" >&6
4165 fi
4166
4167 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4168 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4169 if test "${lt_cv_deplibs_check_method+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   lt_cv_file_magic_cmd='$MAGIC_CMD'
4173 lt_cv_file_magic_test_file=
4174 lt_cv_deplibs_check_method='unknown'
4175 # Need to set the preceding variable on all platforms that support
4176 # interlibrary dependencies.
4177 # 'none' -- dependencies not supported.
4178 # `unknown' -- same as none, but documents that we really don't know.
4179 # 'pass_all' -- all dependencies passed with no checks.
4180 # 'test_compile' -- check by making test program.
4181 # 'file_magic [[regex]]' -- check by looking for files in library path
4182 # which responds to the $file_magic_cmd with a given extended regex.
4183 # If you have `file' or equivalent on your system and you're not sure
4184 # whether `pass_all' will *always* work, you probably want this one.
4185
4186 case $host_os in
4187 aix4* | aix5*)
4188   lt_cv_deplibs_check_method=pass_all
4189   ;;
4190
4191 beos*)
4192   lt_cv_deplibs_check_method=pass_all
4193   ;;
4194
4195 bsdi4*)
4196   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4197   lt_cv_file_magic_cmd='/usr/bin/file -L'
4198   lt_cv_file_magic_test_file=/shlib/libc.so
4199   ;;
4200
4201 cygwin* | mingw* | pw32*)
4202   # win32_libid is a shell function defined in ltmain.sh
4203   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4204   lt_cv_file_magic_cmd='win32_libid'
4205   ;;
4206
4207 darwin* | rhapsody*)
4208   # this will be overwritten by pass_all, but leave it in just in case
4209   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4210   lt_cv_file_magic_cmd='/usr/bin/file -L'
4211   case "$host_os" in
4212   rhapsody* | darwin1.[012])
4213     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4214     ;;
4215   *) # Darwin 1.3 on
4216     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4217     ;;
4218   esac
4219   lt_cv_deplibs_check_method=pass_all
4220   ;;
4221
4222 freebsd*)
4223   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4224     case $host_cpu in
4225     i*86 )
4226       # Not sure whether the presence of OpenBSD here was a mistake.
4227       # Let's accept both of them until this is cleared up.
4228       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4229       lt_cv_file_magic_cmd=/usr/bin/file
4230       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4231       ;;
4232     esac
4233   else
4234     lt_cv_deplibs_check_method=pass_all
4235   fi
4236   ;;
4237
4238 gnu*)
4239   lt_cv_deplibs_check_method=pass_all
4240   ;;
4241
4242 hpux10.20* | hpux11*)
4243   lt_cv_file_magic_cmd=/usr/bin/file
4244   case "$host_cpu" in
4245   ia64*)
4246     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4247     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4248     ;;
4249   hppa*64*)
4250     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]'
4251     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4252     ;;
4253   *)
4254     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4255     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4256     ;;
4257   esac
4258   ;;
4259
4260 irix5* | irix6* | nonstopux*)
4261   case $host_os in
4262   irix5* | nonstopux*)
4263     # this will be overridden with pass_all, but let us keep it just in case
4264     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4265     ;;
4266   *)
4267     case $LD in
4268     *-32|*"-32 ") libmagic=32-bit;;
4269     *-n32|*"-n32 ") libmagic=N32;;
4270     *-64|*"-64 ") libmagic=64-bit;;
4271     *) libmagic=never-match;;
4272     esac
4273     # this will be overridden with pass_all, but let us keep it just in case
4274     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4275     ;;
4276   esac
4277   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4278   lt_cv_deplibs_check_method=pass_all
4279   ;;
4280
4281 # This must be Linux ELF.
4282 linux*)
4283   case $host_cpu in
4284   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4285     lt_cv_deplibs_check_method=pass_all ;;
4286   *)
4287     # glibc up to 2.1.1 does not perform some relocations on ARM
4288     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4289   esac
4290   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4291   ;;
4292
4293 netbsd*)
4294   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4295     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4296   else
4297     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4298   fi
4299   ;;
4300
4301 newos6*)
4302   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4303   lt_cv_file_magic_cmd=/usr/bin/file
4304   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4305   ;;
4306
4307 nto-qnx)
4308   lt_cv_deplibs_check_method=unknown
4309   ;;
4310
4311 openbsd*)
4312   lt_cv_file_magic_cmd=/usr/bin/file
4313   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4314   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4315     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4316   else
4317     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4318   fi
4319   ;;
4320
4321 osf3* | osf4* | osf5*)
4322   # this will be overridden with pass_all, but let us keep it just in case
4323   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4324   lt_cv_file_magic_test_file=/shlib/libc.so
4325   lt_cv_deplibs_check_method=pass_all
4326   ;;
4327
4328 sco3.2v5*)
4329   lt_cv_deplibs_check_method=pass_all
4330   ;;
4331
4332 solaris*)
4333   lt_cv_deplibs_check_method=pass_all
4334   lt_cv_file_magic_test_file=/lib/libc.so
4335   ;;
4336
4337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4338   case $host_vendor in
4339   motorola)
4340     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]'
4341     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4342     ;;
4343   ncr)
4344     lt_cv_deplibs_check_method=pass_all
4345     ;;
4346   sequent)
4347     lt_cv_file_magic_cmd='/bin/file'
4348     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4349     ;;
4350   sni)
4351     lt_cv_file_magic_cmd='/bin/file'
4352     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4353     lt_cv_file_magic_test_file=/lib/libc.so
4354     ;;
4355   siemens)
4356     lt_cv_deplibs_check_method=pass_all
4357     ;;
4358   esac
4359   ;;
4360
4361 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4362   lt_cv_deplibs_check_method=pass_all
4363   ;;
4364 esac
4365
4366 fi
4367 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4368 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4369 file_magic_cmd=$lt_cv_file_magic_cmd
4370 deplibs_check_method=$lt_cv_deplibs_check_method
4371 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4372
4373
4374
4375
4376 # If no C compiler was specified, use CC.
4377 LTCC=${LTCC-"$CC"}
4378
4379 # Allow CC to be a program name with arguments.
4380 compiler=$CC
4381
4382 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4383 if test "${enable_libtool_lock+set}" = set; then
4384   enableval="$enable_libtool_lock"
4385
4386 fi;
4387 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4388
4389 # Some flags need to be propagated to the compiler or linker for good
4390 # libtool support.
4391 case $host in
4392 ia64-*-hpux*)
4393   # Find out which ABI we are using.
4394   echo 'int i;' > conftest.$ac_ext
4395   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; then
4400     case `/usr/bin/file conftest.$ac_objext` in
4401     *ELF-32*)
4402       HPUX_IA64_MODE="32"
4403       ;;
4404     *ELF-64*)
4405       HPUX_IA64_MODE="64"
4406       ;;
4407     esac
4408   fi
4409   rm -rf conftest*
4410   ;;
4411 *-*-irix6*)
4412   # Find out which ABI we are using.
4413   echo '#line 4413 "configure"' > conftest.$ac_ext
4414   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415   (eval $ac_compile) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; then
4419    if test "$lt_cv_prog_gnu_ld" = yes; then
4420     case `/usr/bin/file conftest.$ac_objext` in
4421     *32-bit*)
4422       LD="${LD-ld} -melf32bsmip"
4423       ;;
4424     *N32*)
4425       LD="${LD-ld} -melf32bmipn32"
4426       ;;
4427     *64-bit*)
4428       LD="${LD-ld} -melf64bmip"
4429       ;;
4430     esac
4431    else
4432     case `/usr/bin/file conftest.$ac_objext` in
4433     *32-bit*)
4434       LD="${LD-ld} -32"
4435       ;;
4436     *N32*)
4437       LD="${LD-ld} -n32"
4438       ;;
4439     *64-bit*)
4440       LD="${LD-ld} -64"
4441       ;;
4442     esac
4443    fi
4444   fi
4445   rm -rf conftest*
4446   ;;
4447
4448 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4449   # Find out which ABI we are using.
4450   echo 'int i;' > conftest.$ac_ext
4451   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452   (eval $ac_compile) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; then
4456     case "`/usr/bin/file conftest.o`" in
4457     *32-bit*)
4458       case $host in
4459         x86_64-*linux*)
4460           LD="${LD-ld} -m elf_i386"
4461           ;;
4462         ppc64-*linux*)
4463           LD="${LD-ld} -m elf32ppclinux"
4464           ;;
4465         s390x-*linux*)
4466           LD="${LD-ld} -m elf_s390"
4467           ;;
4468         sparc64-*linux*)
4469           LD="${LD-ld} -m elf32_sparc"
4470           ;;
4471       esac
4472       ;;
4473     *64-bit*)
4474       case $host in
4475         x86_64-*linux*)
4476           LD="${LD-ld} -m elf_x86_64"
4477           ;;
4478         ppc*-*linux*|powerpc*-*linux*)
4479           LD="${LD-ld} -m elf64ppc"
4480           ;;
4481         s390*-*linux*)
4482           LD="${LD-ld} -m elf64_s390"
4483           ;;
4484         sparc*-*linux*)
4485           LD="${LD-ld} -m elf64_sparc"
4486           ;;
4487       esac
4488       ;;
4489     esac
4490   fi
4491   rm -rf conftest*
4492   ;;
4493
4494 *-*-sco3.2v5*)
4495   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4496   SAVE_CFLAGS="$CFLAGS"
4497   CFLAGS="$CFLAGS -belf"
4498   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4499 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4500 if test "${lt_cv_cc_needs_belf+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508
4509      cat >conftest.$ac_ext <<_ACEOF
4510 #line $LINENO "configure"
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516
4517 int
4518 main ()
4519 {
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext conftest$ac_exeext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527   (eval $ac_link) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } &&
4531          { ac_try='test -s conftest$ac_exeext'
4532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533   (eval $ac_try) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; }; then
4537   lt_cv_cc_needs_belf=yes
4538 else
4539   echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 lt_cv_cc_needs_belf=no
4543 fi
4544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4545      ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
4551 fi
4552 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4553 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4554   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4555     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4556     CFLAGS="$SAVE_CFLAGS"
4557   fi
4558   ;;
4559
4560 esac
4561
4562 need_locks="$enable_libtool_lock"
4563
4564
4565
4566 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4568 if test "${ac_cv_header_stdc+set}" = set; then
4569   echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571   cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 #include <stdlib.h>
4579 #include <stdarg.h>
4580 #include <string.h>
4581 #include <float.h>
4582
4583 int
4584 main ()
4585 {
4586
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593   (eval $ac_compile) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); } &&
4597          { ac_try='test -s conftest.$ac_objext'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   ac_cv_header_stdc=yes
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 ac_cv_header_stdc=no
4609 fi
4610 rm -f conftest.$ac_objext conftest.$ac_ext
4611
4612 if test $ac_cv_header_stdc = yes; then
4613   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4614   cat >conftest.$ac_ext <<_ACEOF
4615 #line $LINENO "configure"
4616 /* confdefs.h.  */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h.  */
4621 #include <string.h>
4622
4623 _ACEOF
4624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4625   $EGREP "memchr" >/dev/null 2>&1; then
4626   :
4627 else
4628   ac_cv_header_stdc=no
4629 fi
4630 rm -f conftest*
4631
4632 fi
4633
4634 if test $ac_cv_header_stdc = yes; then
4635   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4636   cat >conftest.$ac_ext <<_ACEOF
4637 #line $LINENO "configure"
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 #include <stdlib.h>
4644
4645 _ACEOF
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647   $EGREP "free" >/dev/null 2>&1; then
4648   :
4649 else
4650   ac_cv_header_stdc=no
4651 fi
4652 rm -f conftest*
4653
4654 fi
4655
4656 if test $ac_cv_header_stdc = yes; then
4657   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4658   if test "$cross_compiling" = yes; then
4659   :
4660 else
4661   cat >conftest.$ac_ext <<_ACEOF
4662 #line $LINENO "configure"
4663 /* confdefs.h.  */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h.  */
4668 #include <ctype.h>
4669 #if ((' ' & 0x0FF) == 0x020)
4670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4672 #else
4673 # define ISLOWER(c) \
4674                    (('a' <= (c) && (c) <= 'i') \
4675                      || ('j' <= (c) && (c) <= 'r') \
4676                      || ('s' <= (c) && (c) <= 'z'))
4677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4678 #endif
4679
4680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4681 int
4682 main ()
4683 {
4684   int i;
4685   for (i = 0; i < 256; i++)
4686     if (XOR (islower (i), ISLOWER (i))
4687         || toupper (i) != TOUPPER (i))
4688       exit(2);
4689   exit (0);
4690 }
4691 _ACEOF
4692 rm -f conftest$ac_exeext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4694   (eval $ac_link) 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699   (eval $ac_try) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; }; then
4703   :
4704 else
4705   echo "$as_me: program exited with status $ac_status" >&5
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709 ( exit $ac_status )
4710 ac_cv_header_stdc=no
4711 fi
4712 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4713 fi
4714 fi
4715 fi
4716 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4717 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4718 if test $ac_cv_header_stdc = yes; then
4719
4720 cat >>confdefs.h <<\_ACEOF
4721 #define STDC_HEADERS 1
4722 _ACEOF
4723
4724 fi
4725
4726 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4737                   inttypes.h stdint.h unistd.h
4738 do
4739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4740 echo "$as_me:$LINENO: checking for $ac_header" >&5
4741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   cat >conftest.$ac_ext <<_ACEOF
4746 #line $LINENO "configure"
4747 /* confdefs.h.  */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h.  */
4752 $ac_includes_default
4753
4754 #include <$ac_header>
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758   (eval $ac_compile) 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); } &&
4762          { ac_try='test -s conftest.$ac_objext'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; }; then
4768   eval "$as_ac_Header=yes"
4769 else
4770   echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 eval "$as_ac_Header=no"
4774 fi
4775 rm -f conftest.$ac_objext conftest.$ac_ext
4776 fi
4777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4780   cat >>confdefs.h <<_ACEOF
4781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4782 _ACEOF
4783
4784 fi
4785
4786 done
4787
4788
4789
4790 for ac_header in dlfcn.h
4791 do
4792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794   echo "$as_me:$LINENO: checking for $ac_header" >&5
4795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4797   echo $ECHO_N "(cached) $ECHO_C" >&6
4798 fi
4799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4801 else
4802   # Is the header compilable?
4803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4805 cat >conftest.$ac_ext <<_ACEOF
4806 #line $LINENO "configure"
4807 /* confdefs.h.  */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h.  */
4812 $ac_includes_default
4813 #include <$ac_header>
4814 _ACEOF
4815 rm -f conftest.$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817   (eval $ac_compile) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } &&
4821          { ac_try='test -s conftest.$ac_objext'
4822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823   (eval $ac_try) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; }; then
4827   ac_header_compiler=yes
4828 else
4829   echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832 ac_header_compiler=no
4833 fi
4834 rm -f conftest.$ac_objext conftest.$ac_ext
4835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4836 echo "${ECHO_T}$ac_header_compiler" >&6
4837
4838 # Is the header present?
4839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848 #include <$ac_header>
4849 _ACEOF
4850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4852   ac_status=$?
4853   grep -v '^ *+' conftest.er1 >conftest.err
4854   rm -f conftest.er1
4855   cat conftest.err >&5
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); } >/dev/null; then
4858   if test -s conftest.err; then
4859     ac_cpp_err=$ac_c_preproc_warn_flag
4860   else
4861     ac_cpp_err=
4862   fi
4863 else
4864   ac_cpp_err=yes
4865 fi
4866 if test -z "$ac_cpp_err"; then
4867   ac_header_preproc=yes
4868 else
4869   echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872   ac_header_preproc=no
4873 fi
4874 rm -f conftest.err conftest.$ac_ext
4875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4876 echo "${ECHO_T}$ac_header_preproc" >&6
4877
4878 # So?  What about this header?
4879 case $ac_header_compiler:$ac_header_preproc in
4880   yes:no )
4881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4885     (
4886       cat <<\_ASBOX
4887 ## ------------------------------------ ##
4888 ## Report this to bug-autoconf@gnu.org. ##
4889 ## ------------------------------------ ##
4890 _ASBOX
4891     ) |
4892       sed "s/^/$as_me: WARNING:     /" >&2
4893     ;;
4894   no:yes )
4895     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4897     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4901     (
4902       cat <<\_ASBOX
4903 ## ------------------------------------ ##
4904 ## Report this to bug-autoconf@gnu.org. ##
4905 ## ------------------------------------ ##
4906 _ASBOX
4907     ) |
4908       sed "s/^/$as_me: WARNING:     /" >&2
4909     ;;
4910 esac
4911 echo "$as_me:$LINENO: checking for $ac_header" >&5
4912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   eval "$as_ac_Header=$ac_header_preproc"
4917 fi
4918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4920
4921 fi
4922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4923   cat >>confdefs.h <<_ACEOF
4924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4925 _ACEOF
4926
4927 fi
4928
4929 done
4930
4931 ac_ext=cc
4932 ac_cpp='$CXXCPP $CPPFLAGS'
4933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4936 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4937 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4938 if test -z "$CXXCPP"; then
4939   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942       # Double quotes because CXXCPP needs to be expanded
4943     for CXXCPP in "$CXX -E" "/lib/cpp"
4944     do
4945       ac_preproc_ok=false
4946 for ac_cxx_preproc_warn_flag in '' yes
4947 do
4948   # Use a header file that comes with gcc, so configuring glibc
4949   # with a fresh cross-compiler works.
4950   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4951   # <limits.h> exists even on freestanding compilers.
4952   # On the NeXT, cc -E runs the code through the compiler's parser,
4953   # not just through cpp. "Syntax error" is here to catch this case.
4954   cat >conftest.$ac_ext <<_ACEOF
4955 #line $LINENO "configure"
4956 /* confdefs.h.  */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h.  */
4961 #ifdef __STDC__
4962 # include <limits.h>
4963 #else
4964 # include <assert.h>
4965 #endif
4966                      Syntax error
4967 _ACEOF
4968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4970   ac_status=$?
4971   grep -v '^ *+' conftest.er1 >conftest.err
4972   rm -f conftest.er1
4973   cat conftest.err >&5
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } >/dev/null; then
4976   if test -s conftest.err; then
4977     ac_cpp_err=$ac_cxx_preproc_warn_flag
4978   else
4979     ac_cpp_err=
4980   fi
4981 else
4982   ac_cpp_err=yes
4983 fi
4984 if test -z "$ac_cpp_err"; then
4985   :
4986 else
4987   echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990   # Broken: fails on valid input.
4991 continue
4992 fi
4993 rm -f conftest.err conftest.$ac_ext
4994
4995   # OK, works on sane cases.  Now check whether non-existent headers
4996   # can be detected and how.
4997   cat >conftest.$ac_ext <<_ACEOF
4998 #line $LINENO "configure"
4999 /* confdefs.h.  */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h.  */
5004 #include <ac_nonexistent.h>
5005 _ACEOF
5006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5008   ac_status=$?
5009   grep -v '^ *+' conftest.er1 >conftest.err
5010   rm -f conftest.er1
5011   cat conftest.err >&5
5012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013   (exit $ac_status); } >/dev/null; then
5014   if test -s conftest.err; then
5015     ac_cpp_err=$ac_cxx_preproc_warn_flag
5016   else
5017     ac_cpp_err=
5018   fi
5019 else
5020   ac_cpp_err=yes
5021 fi
5022 if test -z "$ac_cpp_err"; then
5023   # Broken: success on invalid input.
5024 continue
5025 else
5026   echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029   # Passes both tests.
5030 ac_preproc_ok=:
5031 break
5032 fi
5033 rm -f conftest.err conftest.$ac_ext
5034
5035 done
5036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5037 rm -f conftest.err conftest.$ac_ext
5038 if $ac_preproc_ok; then
5039   break
5040 fi
5041
5042     done
5043     ac_cv_prog_CXXCPP=$CXXCPP
5044
5045 fi
5046   CXXCPP=$ac_cv_prog_CXXCPP
5047 else
5048   ac_cv_prog_CXXCPP=$CXXCPP
5049 fi
5050 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5051 echo "${ECHO_T}$CXXCPP" >&6
5052 ac_preproc_ok=false
5053 for ac_cxx_preproc_warn_flag in '' yes
5054 do
5055   # Use a header file that comes with gcc, so configuring glibc
5056   # with a fresh cross-compiler works.
5057   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5058   # <limits.h> exists even on freestanding compilers.
5059   # On the NeXT, cc -E runs the code through the compiler's parser,
5060   # not just through cpp. "Syntax error" is here to catch this case.
5061   cat >conftest.$ac_ext <<_ACEOF
5062 #line $LINENO "configure"
5063 /* confdefs.h.  */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h.  */
5068 #ifdef __STDC__
5069 # include <limits.h>
5070 #else
5071 # include <assert.h>
5072 #endif
5073                      Syntax error
5074 _ACEOF
5075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5077   ac_status=$?
5078   grep -v '^ *+' conftest.er1 >conftest.err
5079   rm -f conftest.er1
5080   cat conftest.err >&5
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); } >/dev/null; then
5083   if test -s conftest.err; then
5084     ac_cpp_err=$ac_cxx_preproc_warn_flag
5085   else
5086     ac_cpp_err=
5087   fi
5088 else
5089   ac_cpp_err=yes
5090 fi
5091 if test -z "$ac_cpp_err"; then
5092   :
5093 else
5094   echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097   # Broken: fails on valid input.
5098 continue
5099 fi
5100 rm -f conftest.err conftest.$ac_ext
5101
5102   # OK, works on sane cases.  Now check whether non-existent headers
5103   # can be detected and how.
5104   cat >conftest.$ac_ext <<_ACEOF
5105 #line $LINENO "configure"
5106 /* confdefs.h.  */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h.  */
5111 #include <ac_nonexistent.h>
5112 _ACEOF
5113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5115   ac_status=$?
5116   grep -v '^ *+' conftest.er1 >conftest.err
5117   rm -f conftest.er1
5118   cat conftest.err >&5
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); } >/dev/null; then
5121   if test -s conftest.err; then
5122     ac_cpp_err=$ac_cxx_preproc_warn_flag
5123   else
5124     ac_cpp_err=
5125   fi
5126 else
5127   ac_cpp_err=yes
5128 fi
5129 if test -z "$ac_cpp_err"; then
5130   # Broken: success on invalid input.
5131 continue
5132 else
5133   echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136   # Passes both tests.
5137 ac_preproc_ok=:
5138 break
5139 fi
5140 rm -f conftest.err conftest.$ac_ext
5141
5142 done
5143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5144 rm -f conftest.err conftest.$ac_ext
5145 if $ac_preproc_ok; then
5146   :
5147 else
5148   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5149 See \`config.log' for more details." >&5
5150 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5151 See \`config.log' for more details." >&2;}
5152    { (exit 1); exit 1; }; }
5153 fi
5154
5155 ac_ext=cc
5156 ac_cpp='$CXXCPP $CPPFLAGS'
5157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160
5161
5162 ac_ext=f
5163 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5164 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5166 if test -n "$ac_tool_prefix"; then
5167   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5168   do
5169     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5171 echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173 if test "${ac_cv_prog_F77+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   if test -n "$F77"; then
5177   ac_cv_prog_F77="$F77" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184   for ac_exec_ext in '' $ac_executable_extensions; do
5185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191 done
5192
5193 fi
5194 fi
5195 F77=$ac_cv_prog_F77
5196 if test -n "$F77"; then
5197   echo "$as_me:$LINENO: result: $F77" >&5
5198 echo "${ECHO_T}$F77" >&6
5199 else
5200   echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5202 fi
5203
5204     test -n "$F77" && break
5205   done
5206 fi
5207 if test -z "$F77"; then
5208   ac_ct_F77=$F77
5209   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5210 do
5211   # Extract the first word of "$ac_prog", so it can be a program name with args.
5212 set dummy $ac_prog; ac_word=$2
5213 echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   if test -n "$ac_ct_F77"; then
5219   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226   for ac_exec_ext in '' $ac_executable_extensions; do
5227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228     ac_cv_prog_ac_ct_F77="$ac_prog"
5229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233 done
5234
5235 fi
5236 fi
5237 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5238 if test -n "$ac_ct_F77"; then
5239   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5240 echo "${ECHO_T}$ac_ct_F77" >&6
5241 else
5242   echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5244 fi
5245
5246   test -n "$ac_ct_F77" && break
5247 done
5248
5249   F77=$ac_ct_F77
5250 fi
5251
5252
5253 # Provide some information about the compiler.
5254 echo "$as_me:5254:" \
5255      "checking for Fortran 77 compiler version" >&5
5256 ac_compiler=`set X $ac_compile; echo $2`
5257 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5258   (eval $ac_compiler --version </dev/null >&5) 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); }
5262 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5263   (eval $ac_compiler -v </dev/null >&5) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); }
5267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5268   (eval $ac_compiler -V </dev/null >&5) 2>&5
5269   ac_status=$?
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); }
5272
5273 # If we don't use `.F' as extension, the preprocessor is not run on the
5274 # input file.
5275 ac_save_ext=$ac_ext
5276 ac_ext=F
5277 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5278 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5279 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   cat >conftest.$ac_ext <<_ACEOF
5283       program main
5284 #ifndef __GNUC__
5285        choke me
5286 #endif
5287
5288       end
5289 _ACEOF
5290 rm -f conftest.$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292   (eval $ac_compile) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); } &&
5296          { ac_try='test -s conftest.$ac_objext'
5297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298   (eval $ac_try) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }; }; then
5302   ac_compiler_gnu=yes
5303 else
5304   echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307 ac_compiler_gnu=no
5308 fi
5309 rm -f conftest.$ac_objext conftest.$ac_ext
5310 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5311
5312 fi
5313 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5314 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5315 ac_ext=$ac_save_ext
5316 G77=`test $ac_compiler_gnu = yes && echo yes`
5317 ac_test_FFLAGS=${FFLAGS+set}
5318 ac_save_FFLAGS=$FFLAGS
5319 FFLAGS=
5320 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5321 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5322 if test "${ac_cv_prog_f77_g+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   FFLAGS=-g
5326 cat >conftest.$ac_ext <<_ACEOF
5327       program main
5328
5329       end
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333   (eval $ac_compile) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } &&
5337          { ac_try='test -s conftest.$ac_objext'
5338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339   (eval $ac_try) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }; }; then
5343   ac_cv_prog_f77_g=yes
5344 else
5345   echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 ac_cv_prog_f77_g=no
5349 fi
5350 rm -f conftest.$ac_objext conftest.$ac_ext
5351
5352 fi
5353 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5354 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5355 if test "$ac_test_FFLAGS" = set; then
5356   FFLAGS=$ac_save_FFLAGS
5357 elif test $ac_cv_prog_f77_g = yes; then
5358   if test "$G77" = yes; then
5359     FFLAGS="-g -O2"
5360   else
5361     FFLAGS="-g"
5362   fi
5363 else
5364   if test "$G77" = yes; then
5365     FFLAGS="-O2"
5366   else
5367     FFLAGS=
5368   fi
5369 fi
5370 ac_ext=c
5371 ac_cpp='$CPP $CPPFLAGS'
5372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375
5376
5377
5378 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5379
5380 # find the maximum length of command line arguments
5381 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5382 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5383 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386     i=0
5387   testring="ABCD"
5388
5389   case $build_os in
5390   msdosdjgpp*)
5391     # On DJGPP, this test can blow up pretty badly due to problems in libc
5392     # (any single argument exceeding 2000 bytes causes a buffer overrun
5393     # during glob expansion).  Even if it were fixed, the result of this
5394     # check would be larger than it should be.
5395     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5396     ;;
5397
5398   gnu*)
5399     # Under GNU Hurd, this test is not required because there is
5400     # no limit to the length of command line arguments.
5401     # Libtool will interpret -1 as no limit whatsoever
5402     lt_cv_sys_max_cmd_len=-1;
5403     ;;
5404
5405   cygwin* | mingw*)
5406     # On Win9x/ME, this test blows up -- it succeeds, but takes
5407     # about 5 minutes as the teststring grows exponentially.
5408     # Worse, since 9x/ME are not pre-emptively multitasking,
5409     # you end up with a "frozen" computer, even though with patience
5410     # the test eventually succeeds (with a max line length of 256k).
5411     # Instead, let's just punt: use the minimum linelength reported by
5412     # all of the supported platforms: 8192 (on NT/2K/XP).
5413     lt_cv_sys_max_cmd_len=8192;
5414     ;;
5415
5416  *)
5417     # If test is not a shell built-in, we'll probably end up computing a
5418     # maximum length that is only half of the actual maximum length, but
5419     # we can't tell.
5420     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5421                = "XX$testring") >/dev/null 2>&1 &&
5422             new_result=`expr "X$testring" : ".*" 2>&1` &&
5423             lt_cv_sys_max_cmd_len=$new_result &&
5424             test $i != 17 # 1/2 MB should be enough
5425     do
5426       i=`expr $i + 1`
5427       testring=$testring$testring
5428     done
5429     testring=
5430     # Add a significant safety factor because C++ compilers can tack on massive
5431     # amounts of additional arguments before passing them to the linker.
5432     # It appears as though 1/2 is a usable value.
5433     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5434     ;;
5435   esac
5436
5437 fi
5438
5439 if test -n $lt_cv_sys_max_cmd_len ; then
5440   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5441 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5442 else
5443   echo "$as_me:$LINENO: result: none" >&5
5444 echo "${ECHO_T}none" >&6
5445 fi
5446
5447
5448
5449
5450 # Check for command to grab the raw symbol name followed by C symbol from nm.
5451 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5452 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5453 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5454   echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456
5457 # These are sane defaults that work on at least a few old systems.
5458 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5459
5460 # Character class describing NM global symbol codes.
5461 symcode='[BCDEGRST]'
5462
5463 # Regexp to match symbols that can be accessed directly from C.
5464 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5465
5466 # Transform the above into a raw symbol and a C symbol.
5467 symxfrm='\1 \2\3 \3'
5468
5469 # Transform an extracted symbol line into a proper C declaration
5470 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5471
5472 # Transform an extracted symbol line into symbol name and symbol address
5473 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'"
5474
5475 # Define system-specific variables.
5476 case $host_os in
5477 aix*)
5478   symcode='[BCDT]'
5479   ;;
5480 cygwin* | mingw* | pw32*)
5481   symcode='[ABCDGISTW]'
5482   ;;
5483 hpux*) # Its linker distinguishes data from code symbols
5484   if test "$host_cpu" = ia64; then
5485     symcode='[ABCDEGRST]'
5486   fi
5487   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5488   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'"
5489   ;;
5490 irix* | nonstopux*)
5491   symcode='[BCDEGRST]'
5492   ;;
5493 osf*)
5494   symcode='[BCDEGQRST]'
5495   ;;
5496 solaris* | sysv5*)
5497   symcode='[BDT]'
5498   ;;
5499 sysv4)
5500   symcode='[DFNSTU]'
5501   ;;
5502 esac
5503
5504 # Handle CRLF in mingw tool chain
5505 opt_cr=
5506 case $build_os in
5507 mingw*)
5508   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5509   ;;
5510 esac
5511
5512 # If we're using GNU nm, then use its standard symbol codes.
5513 case `$NM -V 2>&1` in
5514 *GNU* | *'with BFD'*)
5515   symcode='[ABCDGISTW]' ;;
5516 esac
5517
5518 # Try without a prefix undercore, then with it.
5519 for ac_symprfx in "" "_"; do
5520
5521   # Write the raw and C identifiers.
5522   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5523
5524   # Check to see that the pipe works correctly.
5525   pipe_works=no
5526
5527   rm -f conftest*
5528   cat > conftest.$ac_ext <<EOF
5529 #ifdef __cplusplus
5530 extern "C" {
5531 #endif
5532 char nm_test_var;
5533 void nm_test_func(){}
5534 #ifdef __cplusplus
5535 }
5536 #endif
5537 int main(){nm_test_var='a';nm_test_func();return(0);}
5538 EOF
5539
5540   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541   (eval $ac_compile) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; then
5545     # Now try to grab the symbols.
5546     nlist=conftest.nm
5547     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5548   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); } && test -s "$nlist"; then
5552       # Try sorting and uniquifying the output.
5553       if sort "$nlist" | uniq > "$nlist"T; then
5554         mv -f "$nlist"T "$nlist"
5555       else
5556         rm -f "$nlist"T
5557       fi
5558
5559       # Make sure that we snagged all the symbols we need.
5560       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5561         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5562           cat <<EOF > conftest.$ac_ext
5563 #ifdef __cplusplus
5564 extern "C" {
5565 #endif
5566
5567 EOF
5568           # Now generate the symbol file.
5569           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5570
5571           cat <<EOF >> conftest.$ac_ext
5572 #if defined (__STDC__) && __STDC__
5573 # define lt_ptr_t void *
5574 #else
5575 # define lt_ptr_t char *
5576 # define const
5577 #endif
5578
5579 /* The mapping between symbol names and symbols. */
5580 const struct {
5581   const char *name;
5582   lt_ptr_t address;
5583 }
5584 lt_preloaded_symbols[] =
5585 {
5586 EOF
5587           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5588           cat <<\EOF >> conftest.$ac_ext
5589   {0, (lt_ptr_t) 0}
5590 };
5591
5592 #ifdef __cplusplus
5593 }
5594 #endif
5595 EOF
5596           # Now try linking the two files.
5597           mv conftest.$ac_objext conftstm.$ac_objext
5598           lt_save_LIBS="$LIBS"
5599           lt_save_CFLAGS="$CFLAGS"
5600           LIBS="conftstm.$ac_objext"
5601           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5602           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603   (eval $ac_link) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5607             pipe_works=yes
5608           fi
5609           LIBS="$lt_save_LIBS"
5610           CFLAGS="$lt_save_CFLAGS"
5611         else
5612           echo "cannot find nm_test_func in $nlist" >&5
5613         fi
5614       else
5615         echo "cannot find nm_test_var in $nlist" >&5
5616       fi
5617     else
5618       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5619     fi
5620   else
5621     echo "$progname: failed program was:" >&5
5622     cat conftest.$ac_ext >&5
5623   fi
5624   rm -f conftest* conftst*
5625
5626   # Do not use the global_symbol_pipe unless it works.
5627   if test "$pipe_works" = yes; then
5628     break
5629   else
5630     lt_cv_sys_global_symbol_pipe=
5631   fi
5632 done
5633
5634 fi
5635
5636 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5637   lt_cv_sys_global_symbol_to_cdecl=
5638 fi
5639 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5640   echo "$as_me:$LINENO: result: failed" >&5
5641 echo "${ECHO_T}failed" >&6
5642 else
5643   echo "$as_me:$LINENO: result: ok" >&5
5644 echo "${ECHO_T}ok" >&6
5645 fi
5646
5647 echo "$as_me:$LINENO: checking for objdir" >&5
5648 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5649 if test "${lt_cv_objdir+set}" = set; then
5650   echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652   rm -f .libs 2>/dev/null
5653 mkdir .libs 2>/dev/null
5654 if test -d .libs; then
5655   lt_cv_objdir=.libs
5656 else
5657   # MS-DOS does not allow filenames that begin with a dot.
5658   lt_cv_objdir=_libs
5659 fi
5660 rmdir .libs 2>/dev/null
5661 fi
5662 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5663 echo "${ECHO_T}$lt_cv_objdir" >&6
5664 objdir=$lt_cv_objdir
5665
5666
5667
5668
5669
5670 case $host_os in
5671 aix3*)
5672   # AIX sometimes has problems with the GCC collect2 program.  For some
5673   # reason, if we set the COLLECT_NAMES environment variable, the problems
5674   # vanish in a puff of smoke.
5675   if test "X${COLLECT_NAMES+set}" != Xset; then
5676     COLLECT_NAMES=
5677     export COLLECT_NAMES
5678   fi
5679   ;;
5680 esac
5681
5682 # Sed substitution that helps us do robust quoting.  It backslashifies
5683 # metacharacters that are still active within double-quoted strings.
5684 Xsed='sed -e s/^X//'
5685 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5686
5687 # Same as above, but do not quote variable references.
5688 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5689
5690 # Sed substitution to delay expansion of an escaped shell variable in a
5691 # double_quote_subst'ed string.
5692 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5693
5694 # Sed substitution to avoid accidental globbing in evaled expressions
5695 no_glob_subst='s/\*/\\\*/g'
5696
5697 # Constants:
5698 rm="rm -f"
5699
5700 # Global variables:
5701 default_ofile=mklib
5702 can_build_shared=yes
5703
5704 # All known linkers require a `.a' archive for static linking (except M$VC,
5705 # which needs '.lib').
5706 libext=a
5707 ltmain="$ac_aux_dir/ltmain.sh"
5708 ofile="$default_ofile"
5709 with_gnu_ld="$lt_cv_prog_gnu_ld"
5710
5711 if test -n "$ac_tool_prefix"; then
5712   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5713 set dummy ${ac_tool_prefix}ar; ac_word=$2
5714 echo "$as_me:$LINENO: checking for $ac_word" >&5
5715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5716 if test "${ac_cv_prog_AR+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   if test -n "$AR"; then
5720   ac_cv_prog_AR="$AR" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725   IFS=$as_save_IFS
5726   test -z "$as_dir" && as_dir=.
5727   for ac_exec_ext in '' $ac_executable_extensions; do
5728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729     ac_cv_prog_AR="${ac_tool_prefix}ar"
5730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731     break 2
5732   fi
5733 done
5734 done
5735
5736 fi
5737 fi
5738 AR=$ac_cv_prog_AR
5739 if test -n "$AR"; then
5740   echo "$as_me:$LINENO: result: $AR" >&5
5741 echo "${ECHO_T}$AR" >&6
5742 else
5743   echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6
5745 fi
5746
5747 fi
5748 if test -z "$ac_cv_prog_AR"; then
5749   ac_ct_AR=$AR
5750   # Extract the first word of "ar", so it can be a program name with args.
5751 set dummy ar; ac_word=$2
5752 echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5754 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   if test -n "$ac_ct_AR"; then
5758   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763   IFS=$as_save_IFS
5764   test -z "$as_dir" && as_dir=.
5765   for ac_exec_ext in '' $ac_executable_extensions; do
5766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767     ac_cv_prog_ac_ct_AR="ar"
5768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769     break 2
5770   fi
5771 done
5772 done
5773
5774   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5775 fi
5776 fi
5777 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5778 if test -n "$ac_ct_AR"; then
5779   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5780 echo "${ECHO_T}$ac_ct_AR" >&6
5781 else
5782   echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6
5784 fi
5785
5786   AR=$ac_ct_AR
5787 else
5788   AR="$ac_cv_prog_AR"
5789 fi
5790
5791 if test -n "$ac_tool_prefix"; then
5792   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5794 echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796 if test "${ac_cv_prog_RANLIB+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   if test -n "$RANLIB"; then
5800   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814 done
5815
5816 fi
5817 fi
5818 RANLIB=$ac_cv_prog_RANLIB
5819 if test -n "$RANLIB"; then
5820   echo "$as_me:$LINENO: result: $RANLIB" >&5
5821 echo "${ECHO_T}$RANLIB" >&6
5822 else
5823   echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5825 fi
5826
5827 fi
5828 if test -z "$ac_cv_prog_RANLIB"; then
5829   ac_ct_RANLIB=$RANLIB
5830   # Extract the first word of "ranlib", so it can be a program name with args.
5831 set dummy ranlib; ac_word=$2
5832 echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   if test -n "$ac_ct_RANLIB"; then
5838   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845   for ac_exec_ext in '' $ac_executable_extensions; do
5846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847     ac_cv_prog_ac_ct_RANLIB="ranlib"
5848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852 done
5853
5854   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5855 fi
5856 fi
5857 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5858 if test -n "$ac_ct_RANLIB"; then
5859   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5860 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5861 else
5862   echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5864 fi
5865
5866   RANLIB=$ac_ct_RANLIB
5867 else
5868   RANLIB="$ac_cv_prog_RANLIB"
5869 fi
5870
5871 if test -n "$ac_tool_prefix"; then
5872   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5873 set dummy ${ac_tool_prefix}strip; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_STRIP+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   if test -n "$STRIP"; then
5880   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887   for ac_exec_ext in '' $ac_executable_extensions; do
5888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894 done
5895
5896 fi
5897 fi
5898 STRIP=$ac_cv_prog_STRIP
5899 if test -n "$STRIP"; then
5900   echo "$as_me:$LINENO: result: $STRIP" >&5
5901 echo "${ECHO_T}$STRIP" >&6
5902 else
5903   echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5905 fi
5906
5907 fi
5908 if test -z "$ac_cv_prog_STRIP"; then
5909   ac_ct_STRIP=$STRIP
5910   # Extract the first word of "strip", so it can be a program name with args.
5911 set dummy strip; ac_word=$2
5912 echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   if test -n "$ac_ct_STRIP"; then
5918   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925   for ac_exec_ext in '' $ac_executable_extensions; do
5926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927     ac_cv_prog_ac_ct_STRIP="strip"
5928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932 done
5933
5934   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5935 fi
5936 fi
5937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5938 if test -n "$ac_ct_STRIP"; then
5939   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5940 echo "${ECHO_T}$ac_ct_STRIP" >&6
5941 else
5942   echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5944 fi
5945
5946   STRIP=$ac_ct_STRIP
5947 else
5948   STRIP="$ac_cv_prog_STRIP"
5949 fi
5950
5951
5952 old_CC="$CC"
5953 old_CFLAGS="$CFLAGS"
5954
5955 # Set sane defaults for various variables
5956 test -z "$AR" && AR=ar
5957 test -z "$AR_FLAGS" && AR_FLAGS=cru
5958 test -z "$AS" && AS=as
5959 test -z "$CC" && CC=cc
5960 test -z "$LTCC" && LTCC=$CC
5961 test -z "$DLLTOOL" && DLLTOOL=dlltool
5962 test -z "$LD" && LD=ld
5963 test -z "$LN_S" && LN_S="ln -s"
5964 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5965 test -z "$NM" && NM=nm
5966 test -z "$SED" && SED=sed
5967 test -z "$OBJDUMP" && OBJDUMP=objdump
5968 test -z "$RANLIB" && RANLIB=:
5969 test -z "$STRIP" && STRIP=:
5970 test -z "$ac_objext" && ac_objext=o
5971
5972 # Determine commands to create old-style static archives.
5973 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5974 old_postinstall_cmds='chmod 644 $oldlib'
5975 old_postuninstall_cmds=
5976
5977 if test -n "$RANLIB"; then
5978   case $host_os in
5979   openbsd*)
5980     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5981     ;;
5982   *)
5983     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5984     ;;
5985   esac
5986   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5987 fi
5988
5989 # Only perform the check for file, if the check method requires it
5990 case $deplibs_check_method in
5991 file_magic*)
5992   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5993     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5994 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5995 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   case $MAGIC_CMD in
5999 [\\/*] |  ?:[\\/]*)
6000   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6001   ;;
6002 *)
6003   lt_save_MAGIC_CMD="$MAGIC_CMD"
6004   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6005   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6006   for ac_dir in $ac_dummy; do
6007     IFS="$lt_save_ifs"
6008     test -z "$ac_dir" && ac_dir=.
6009     if test -f $ac_dir/${ac_tool_prefix}file; then
6010       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6011       if test -n "$file_magic_test_file"; then
6012         case $deplibs_check_method in
6013         "file_magic "*)
6014           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6015           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6016           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6017             $EGREP "$file_magic_regex" > /dev/null; then
6018             :
6019           else
6020             cat <<EOF 1>&2
6021
6022 *** Warning: the command libtool uses to detect shared libraries,
6023 *** $file_magic_cmd, produces output that libtool cannot recognize.
6024 *** The result is that libtool may fail to recognize shared libraries
6025 *** as such.  This will affect the creation of libtool libraries that
6026 *** depend on shared libraries, but programs linked with such libtool
6027 *** libraries will work regardless of this problem.  Nevertheless, you
6028 *** may want to report the problem to your system manager and/or to
6029 *** bug-libtool@gnu.org
6030
6031 EOF
6032           fi ;;
6033         esac
6034       fi
6035       break
6036     fi
6037   done
6038   IFS="$lt_save_ifs"
6039   MAGIC_CMD="$lt_save_MAGIC_CMD"
6040   ;;
6041 esac
6042 fi
6043
6044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6045 if test -n "$MAGIC_CMD"; then
6046   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6047 echo "${ECHO_T}$MAGIC_CMD" >&6
6048 else
6049   echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6
6051 fi
6052
6053 if test -z "$lt_cv_path_MAGIC_CMD"; then
6054   if test -n "$ac_tool_prefix"; then
6055     echo "$as_me:$LINENO: checking for file" >&5
6056 echo $ECHO_N "checking for file... $ECHO_C" >&6
6057 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   case $MAGIC_CMD in
6061 [\\/*] |  ?:[\\/]*)
6062   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6063   ;;
6064 *)
6065   lt_save_MAGIC_CMD="$MAGIC_CMD"
6066   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6067   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6068   for ac_dir in $ac_dummy; do
6069     IFS="$lt_save_ifs"
6070     test -z "$ac_dir" && ac_dir=.
6071     if test -f $ac_dir/file; then
6072       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6073       if test -n "$file_magic_test_file"; then
6074         case $deplibs_check_method in
6075         "file_magic "*)
6076           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6077           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6078           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6079             $EGREP "$file_magic_regex" > /dev/null; then
6080             :
6081           else
6082             cat <<EOF 1>&2
6083
6084 *** Warning: the command libtool uses to detect shared libraries,
6085 *** $file_magic_cmd, produces output that libtool cannot recognize.
6086 *** The result is that libtool may fail to recognize shared libraries
6087 *** as such.  This will affect the creation of libtool libraries that
6088 *** depend on shared libraries, but programs linked with such libtool
6089 *** libraries will work regardless of this problem.  Nevertheless, you
6090 *** may want to report the problem to your system manager and/or to
6091 *** bug-libtool@gnu.org
6092
6093 EOF
6094           fi ;;
6095         esac
6096       fi
6097       break
6098     fi
6099   done
6100   IFS="$lt_save_ifs"
6101   MAGIC_CMD="$lt_save_MAGIC_CMD"
6102   ;;
6103 esac
6104 fi
6105
6106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6107 if test -n "$MAGIC_CMD"; then
6108   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6109 echo "${ECHO_T}$MAGIC_CMD" >&6
6110 else
6111   echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6
6113 fi
6114
6115   else
6116     MAGIC_CMD=:
6117   fi
6118 fi
6119
6120   fi
6121   ;;
6122 esac
6123
6124 enable_dlopen=no
6125 enable_win32_dll=no
6126
6127 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6128 if test "${enable_libtool_lock+set}" = set; then
6129   enableval="$enable_libtool_lock"
6130
6131 fi;
6132 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6133
6134
6135 # Check whether --with-pic or --without-pic was given.
6136 if test "${with_pic+set}" = set; then
6137   withval="$with_pic"
6138   pic_mode="$withval"
6139 else
6140   pic_mode=default
6141 fi;
6142 test -z "$pic_mode" && pic_mode=default
6143
6144 # Use C for the default configuration in the libtool script
6145 tagname=
6146 lt_save_CC="$CC"
6147 ac_ext=c
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152
6153
6154 # Source file extension for C test sources.
6155 ac_ext=c
6156
6157 # Object file extension for compiled C test sources.
6158 objext=o
6159 objext=$objext
6160
6161 # Code to be used in simple compile tests
6162 lt_simple_compile_test_code="int some_variable = 0;\n"
6163
6164 # Code to be used in simple link tests
6165 lt_simple_link_test_code='int main(){return(0);}\n'
6166
6167
6168 # If no C compiler was specified, use CC.
6169 LTCC=${LTCC-"$CC"}
6170
6171 # Allow CC to be a program name with arguments.
6172 compiler=$CC
6173
6174
6175 #
6176 # Check for any special shared library compilation flags.
6177 #
6178 lt_prog_cc_shlib=
6179 if test "$GCC" = no; then
6180   case $host_os in
6181   sco3.2v5*)
6182     lt_prog_cc_shlib='-belf'
6183     ;;
6184   esac
6185 fi
6186 if test -n "$lt_prog_cc_shlib"; then
6187   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6188 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6189   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6190   else
6191     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6192 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6193     lt_cv_prog_cc_can_build_shared=no
6194   fi
6195 fi
6196
6197
6198 #
6199 # Check to make sure the static flag actually works.
6200 #
6201 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6202 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6203 if test "${lt_prog_compiler_static_works+set}" = set; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   lt_prog_compiler_static_works=no
6207    save_LDFLAGS="$LDFLAGS"
6208    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6209    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6210    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6211      # The compiler can only warn and ignore the option if not recognized
6212      # So say no if there are warnings
6213      if test -s conftest.err; then
6214        # Append any errors to the config.log.
6215        cat conftest.err 1>&5
6216      else
6217        lt_prog_compiler_static_works=yes
6218      fi
6219    fi
6220    $rm conftest*
6221    LDFLAGS="$save_LDFLAGS"
6222
6223 fi
6224 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6225 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6226
6227 if test x"$lt_prog_compiler_static_works" = xyes; then
6228     :
6229 else
6230     lt_prog_compiler_static=
6231 fi
6232
6233
6234
6235 ## CAVEAT EMPTOR:
6236 ## There is no encapsulation within the following macros, do not change
6237 ## the running order or otherwise move them around unless you know exactly
6238 ## what you are doing...
6239
6240 lt_prog_compiler_no_builtin_flag=
6241
6242 if test "$GCC" = yes; then
6243   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6244
6245   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6246 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6247 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   lt_cv_prog_compiler_rtti_exceptions=no
6251   ac_outfile=conftest.$ac_objext
6252    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6253    lt_compiler_flag="-fno-rtti -fno-exceptions"
6254    # Insert the option either (1) after the last *FLAGS variable, or
6255    # (2) before a word containing "conftest.", or (3) at the end.
6256    # Note that $ac_compile itself does not contain backslashes and begins
6257    # with a dollar sign (not a hyphen), so the echo should work correctly.
6258    # The option is referenced via a variable to avoid confusing sed.
6259    lt_compile=`echo "$ac_compile" | $SED \
6260    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6262    -e 's:$: $lt_compiler_flag:'`
6263    (eval echo "\"\$as_me:6263: $lt_compile\"" >&5)
6264    (eval "$lt_compile" 2>conftest.err)
6265    ac_status=$?
6266    cat conftest.err >&5
6267    echo "$as_me:6267: \$? = $ac_status" >&5
6268    if (exit $ac_status) && test -s "$ac_outfile"; then
6269      # The compiler can only warn and ignore the option if not recognized
6270      # So say no if there are warnings
6271      if test ! -s conftest.err; then
6272        lt_cv_prog_compiler_rtti_exceptions=yes
6273      fi
6274    fi
6275    $rm conftest*
6276
6277 fi
6278 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6279 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6280
6281 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6282     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6283 else
6284     :
6285 fi
6286
6287 fi
6288
6289 lt_prog_compiler_wl=
6290 lt_prog_compiler_pic=
6291 lt_prog_compiler_static=
6292
6293 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6294 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6295
6296   if test "$GCC" = yes; then
6297     lt_prog_compiler_wl='-Wl,'
6298     lt_prog_compiler_static='-static'
6299
6300     case $host_os in
6301       aix*)
6302       # All AIX code is PIC.
6303       if test "$host_cpu" = ia64; then
6304         # AIX 5 now supports IA64 processor
6305         lt_prog_compiler_static='-Bstatic'
6306       fi
6307       ;;
6308
6309     amigaos*)
6310       # FIXME: we need at least 68020 code to build shared libraries, but
6311       # adding the `-m68020' flag to GCC prevents building anything better,
6312       # like `-m68040'.
6313       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6314       ;;
6315
6316     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6317       # PIC is the default for these OSes.
6318       ;;
6319
6320     mingw* | pw32* | os2*)
6321       # This hack is so that the source file can tell whether it is being
6322       # built for inclusion in a dll (and should export symbols for example).
6323       lt_prog_compiler_pic='-DDLL_EXPORT'
6324       ;;
6325
6326     darwin* | rhapsody*)
6327       # PIC is the default on this platform
6328       # Common symbols not allowed in MH_DYLIB files
6329       lt_prog_compiler_pic='-fno-common'
6330       ;;
6331
6332     msdosdjgpp*)
6333       # Just because we use GCC doesn't mean we suddenly get shared libraries
6334       # on systems that don't support them.
6335       lt_prog_compiler_can_build_shared=no
6336       enable_shared=no
6337       ;;
6338
6339     sysv4*MP*)
6340       if test -d /usr/nec; then
6341         lt_prog_compiler_pic=-Kconform_pic
6342       fi
6343       ;;
6344
6345     hpux*)
6346       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6347       # not for PA HP-UX.
6348       case "$host_cpu" in
6349       hppa*64*|ia64*)
6350         # +Z the default
6351         ;;
6352       *)
6353         lt_prog_compiler_pic='-fPIC'
6354         ;;
6355       esac
6356       ;;
6357
6358     *)
6359       lt_prog_compiler_pic='-fPIC'
6360       ;;
6361     esac
6362   else
6363     # PORTME Check for flag to pass linker flags through the system compiler.
6364     case $host_os in
6365     aix*)
6366       lt_prog_compiler_wl='-Wl,'
6367       if test "$host_cpu" = ia64; then
6368         # AIX 5 now supports IA64 processor
6369         lt_prog_compiler_static='-Bstatic'
6370       else
6371         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6372       fi
6373       ;;
6374
6375     mingw* | pw32* | os2*)
6376       # This hack is so that the source file can tell whether it is being
6377       # built for inclusion in a dll (and should export symbols for example).
6378       lt_prog_compiler_pic='-DDLL_EXPORT'
6379       ;;
6380
6381     hpux9* | hpux10* | hpux11*)
6382       lt_prog_compiler_wl='-Wl,'
6383       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6384       # not for PA HP-UX.
6385       case "$host_cpu" in
6386       hppa*64*|ia64*)
6387         # +Z the default
6388         ;;
6389       *)
6390         lt_prog_compiler_pic='+Z'
6391         ;;
6392       esac
6393       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6394       lt_prog_compiler_static='${wl}-a ${wl}archive'
6395       ;;
6396
6397     irix5* | irix6* | nonstopux*)
6398       lt_prog_compiler_wl='-Wl,'
6399       # PIC (with -KPIC) is the default.
6400       lt_prog_compiler_static='-non_shared'
6401       ;;
6402
6403     newsos6)
6404       lt_prog_compiler_pic='-KPIC'
6405       lt_prog_compiler_static='-Bstatic'
6406       ;;
6407
6408     linux*)
6409       case $CC in
6410       icc|ecc)
6411         lt_prog_compiler_wl='-Wl,'
6412         lt_prog_compiler_pic='-KPIC'
6413         lt_prog_compiler_static='-static'
6414         ;;
6415       ccc)
6416         lt_prog_compiler_wl='-Wl,'
6417         # All Alpha code is PIC.
6418         lt_prog_compiler_static='-non_shared'
6419         ;;
6420       esac
6421       ;;
6422
6423     osf3* | osf4* | osf5*)
6424       lt_prog_compiler_wl='-Wl,'
6425       # All OSF/1 code is PIC.
6426       lt_prog_compiler_static='-non_shared'
6427       ;;
6428
6429     sco3.2v5*)
6430       lt_prog_compiler_pic='-Kpic'
6431       lt_prog_compiler_static='-dn'
6432       ;;
6433
6434     solaris*)
6435       lt_prog_compiler_wl='-Wl,'
6436       lt_prog_compiler_pic='-KPIC'
6437       lt_prog_compiler_static='-Bstatic'
6438       ;;
6439
6440     sunos4*)
6441       lt_prog_compiler_wl='-Qoption ld '
6442       lt_prog_compiler_pic='-PIC'
6443       lt_prog_compiler_static='-Bstatic'
6444       ;;
6445
6446     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6447       lt_prog_compiler_wl='-Wl,'
6448       lt_prog_compiler_pic='-KPIC'
6449       lt_prog_compiler_static='-Bstatic'
6450       ;;
6451
6452     sysv4*MP*)
6453       if test -d /usr/nec ;then
6454         lt_prog_compiler_pic='-Kconform_pic'
6455         lt_prog_compiler_static='-Bstatic'
6456       fi
6457       ;;
6458
6459     uts4*)
6460       lt_prog_compiler_pic='-pic'
6461       lt_prog_compiler_static='-Bstatic'
6462       ;;
6463
6464     *)
6465       lt_prog_compiler_can_build_shared=no
6466       ;;
6467     esac
6468   fi
6469
6470 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6471 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6472
6473 #
6474 # Check to make sure the PIC flag actually works.
6475 #
6476 if test -n "$lt_prog_compiler_pic"; then
6477   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6478 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6479 if test "${lt_prog_compiler_pic_works+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   lt_prog_compiler_pic_works=no
6483   ac_outfile=conftest.$ac_objext
6484    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6485    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6486    # Insert the option either (1) after the last *FLAGS variable, or
6487    # (2) before a word containing "conftest.", or (3) at the end.
6488    # Note that $ac_compile itself does not contain backslashes and begins
6489    # with a dollar sign (not a hyphen), so the echo should work correctly.
6490    # The option is referenced via a variable to avoid confusing sed.
6491    lt_compile=`echo "$ac_compile" | $SED \
6492    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6494    -e 's:$: $lt_compiler_flag:'`
6495    (eval echo "\"\$as_me:6495: $lt_compile\"" >&5)
6496    (eval "$lt_compile" 2>conftest.err)
6497    ac_status=$?
6498    cat conftest.err >&5
6499    echo "$as_me:6499: \$? = $ac_status" >&5
6500    if (exit $ac_status) && test -s "$ac_outfile"; then
6501      # The compiler can only warn and ignore the option if not recognized
6502      # So say no if there are warnings
6503      if test ! -s conftest.err; then
6504        lt_prog_compiler_pic_works=yes
6505      fi
6506    fi
6507    $rm conftest*
6508
6509 fi
6510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6511 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6512
6513 if test x"$lt_prog_compiler_pic_works" = xyes; then
6514     case $lt_prog_compiler_pic in
6515      "" | " "*) ;;
6516      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6517      esac
6518 else
6519     lt_prog_compiler_pic=
6520      lt_prog_compiler_can_build_shared=no
6521 fi
6522
6523 fi
6524 case "$host_os" in
6525   # For platforms which do not support PIC, -DPIC is meaningless:
6526   *djgpp*)
6527     lt_prog_compiler_pic=
6528     ;;
6529   *)
6530     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6531     ;;
6532 esac
6533
6534 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6535 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6536 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   lt_cv_prog_compiler_c_o=no
6540    $rm -r conftest 2>/dev/null
6541    mkdir conftest
6542    cd conftest
6543    mkdir out
6544    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6545
6546    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6547    # that will create temporary files in the current directory regardless of
6548    # the output directory.  Thus, making CWD read-only will cause this test
6549    # to fail, enabling locking or at least warning the user not to do parallel
6550    # builds.
6551    chmod -w .
6552
6553    lt_compiler_flag="-o out/conftest2.$ac_objext"
6554    # Insert the option either (1) after the last *FLAGS variable, or
6555    # (2) before a word containing "conftest.", or (3) at the end.
6556    # Note that $ac_compile itself does not contain backslashes and begins
6557    # with a dollar sign (not a hyphen), so the echo should work correctly.
6558    lt_compile=`echo "$ac_compile" | $SED \
6559    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6560    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6561    -e 's:$: $lt_compiler_flag:'`
6562    (eval echo "\"\$as_me:6562: $lt_compile\"" >&5)
6563    (eval "$lt_compile" 2>out/conftest.err)
6564    ac_status=$?
6565    cat out/conftest.err >&5
6566    echo "$as_me:6566: \$? = $ac_status" >&5
6567    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6568    then
6569      # The compiler can only warn and ignore the option if not recognized
6570      # So say no if there are warnings
6571      if test ! -s out/conftest.err; then
6572        lt_cv_prog_compiler_c_o=yes
6573      fi
6574    fi
6575    chmod u+w .
6576    $rm conftest* out/*
6577    rmdir out
6578    cd ..
6579    rmdir conftest
6580    $rm conftest*
6581
6582 fi
6583 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6584 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6585
6586
6587 hard_links="nottested"
6588 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6589   # do not overwrite the value of need_locks provided by the user
6590   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6591 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6592   hard_links=yes
6593   $rm conftest*
6594   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6595   touch conftest.a
6596   ln conftest.a conftest.b 2>&5 || hard_links=no
6597   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6598   echo "$as_me:$LINENO: result: $hard_links" >&5
6599 echo "${ECHO_T}$hard_links" >&6
6600   if test "$hard_links" = no; then
6601     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6602 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6603     need_locks=warn
6604   fi
6605 else
6606   need_locks=no
6607 fi
6608
6609 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6610 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6611
6612   runpath_var=
6613   allow_undefined_flag=
6614   enable_shared_with_static_runtimes=no
6615   archive_cmds=
6616   archive_expsym_cmds=
6617   old_archive_From_new_cmds=
6618   old_archive_from_expsyms_cmds=
6619   export_dynamic_flag_spec=
6620   whole_archive_flag_spec=
6621   thread_safe_flag_spec=
6622   hardcode_libdir_flag_spec=
6623   hardcode_libdir_flag_spec_ld=
6624   hardcode_libdir_separator=
6625   hardcode_direct=no
6626   hardcode_minus_L=no
6627   hardcode_shlibpath_var=unsupported
6628   link_all_deplibs=unknown
6629   hardcode_automatic=no
6630   module_cmds=
6631   module_expsym_cmds=
6632   always_export_symbols=no
6633   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6634   # include_expsyms should be a list of space-separated symbols to be *always*
6635   # included in the symbol list
6636   include_expsyms=
6637   # exclude_expsyms can be an extended regexp of symbols to exclude
6638   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6639   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6640   # as well as any symbol that contains `d'.
6641   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6642   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6643   # platforms (ab)use it in PIC code, but their linkers get confused if
6644   # the symbol is explicitly referenced.  Since portable code cannot
6645   # rely on this symbol name, it's probably fine to never include it in
6646   # preloaded symbol tables.
6647   extract_expsyms_cmds=
6648
6649   case $host_os in
6650   cygwin* | mingw* | pw32*)
6651     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6652     # When not using gcc, we currently assume that we are using
6653     # Microsoft Visual C++.
6654     if test "$GCC" != yes; then
6655       with_gnu_ld=no
6656     fi
6657     ;;
6658   openbsd*)
6659     with_gnu_ld=no
6660     ;;
6661   esac
6662
6663   ld_shlibs=yes
6664   if test "$with_gnu_ld" = yes; then
6665     # If archive_cmds runs LD, not CC, wlarc should be empty
6666     wlarc='${wl}'
6667
6668     # See if GNU ld supports shared libraries.
6669     case $host_os in
6670     aix3* | aix4* | aix5*)
6671       # On AIX/PPC, the GNU linker is very broken
6672       if test "$host_cpu" != ia64; then
6673         ld_shlibs=no
6674         cat <<EOF 1>&2
6675
6676 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6677 *** to be unable to reliably create shared libraries on AIX.
6678 *** Therefore, libtool is disabling shared libraries support.  If you
6679 *** really care for shared libraries, you may want to modify your PATH
6680 *** so that a non-GNU linker is found, and then restart.
6681
6682 EOF
6683       fi
6684       ;;
6685
6686     amigaos*)
6687       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)'
6688       hardcode_libdir_flag_spec='-L$libdir'
6689       hardcode_minus_L=yes
6690
6691       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6692       # that the semantics of dynamic libraries on AmigaOS, at least up
6693       # to version 4, is to share data among multiple programs linked
6694       # with the same dynamic library.  Since this doesn't match the
6695       # behavior of shared libraries on other platforms, we can't use
6696       # them.
6697       ld_shlibs=no
6698       ;;
6699
6700     beos*)
6701       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6702         allow_undefined_flag=unsupported
6703         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6704         # support --undefined.  This deserves some investigation.  FIXME
6705         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6706       else
6707         ld_shlibs=no
6708       fi
6709       ;;
6710
6711     cygwin* | mingw* | pw32*)
6712       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6713       # as there is no search path for DLLs.
6714       hardcode_libdir_flag_spec='-L$libdir'
6715       allow_undefined_flag=unsupported
6716       always_export_symbols=no
6717       enable_shared_with_static_runtimes=yes
6718       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6719
6720       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6722         # If the export-symbols file already is a .def file (1st line
6723         # is EXPORTS), use it as is; otherwise, prepend...
6724         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6725           cp $export_symbols $output_objdir/$soname.def;
6726         else
6727           echo EXPORTS > $output_objdir/$soname.def;
6728           cat $export_symbols >> $output_objdir/$soname.def;
6729         fi~
6730         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6731       else
6732         ld_shlibs=no
6733       fi
6734       ;;
6735
6736     netbsd*)
6737       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6738         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6739         wlarc=
6740       else
6741         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6742         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6743       fi
6744       ;;
6745
6746     solaris* | sysv5*)
6747       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6748         ld_shlibs=no
6749         cat <<EOF 1>&2
6750
6751 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6752 *** create shared libraries on Solaris systems.  Therefore, libtool
6753 *** is disabling shared libraries support.  We urge you to upgrade GNU
6754 *** binutils to release 2.9.1 or newer.  Another option is to modify
6755 *** your PATH or compiler configuration so that the native linker is
6756 *** used, and then restart.
6757
6758 EOF
6759       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6760         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6762       else
6763         ld_shlibs=no
6764       fi
6765       ;;
6766
6767     sunos4*)
6768       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6769       wlarc=
6770       hardcode_direct=yes
6771       hardcode_shlibpath_var=no
6772       ;;
6773
6774     *)
6775       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6778       else
6779         ld_shlibs=no
6780       fi
6781       ;;
6782     esac
6783
6784     if test "$ld_shlibs" = yes; then
6785       runpath_var=LD_RUN_PATH
6786       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6787       export_dynamic_flag_spec='${wl}--export-dynamic'
6788       # ancient GNU ld didn't support --whole-archive et. al.
6789       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6790         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6791       else
6792         whole_archive_flag_spec=
6793       fi
6794     fi
6795   else
6796     # PORTME fill in a description of your system's linker (not GNU ld)
6797     case $host_os in
6798     aix3*)
6799       allow_undefined_flag=unsupported
6800       always_export_symbols=yes
6801       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'
6802       # Note: this linker hardcodes the directories in LIBPATH if there
6803       # are no directories specified by -L.
6804       hardcode_minus_L=yes
6805       if test "$GCC" = yes && test -z "$link_static_flag"; then
6806         # Neither direct hardcoding nor static linking is supported with a
6807         # broken collect2.
6808         hardcode_direct=unsupported
6809       fi
6810       ;;
6811
6812     aix4* | aix5*)
6813       if test "$host_cpu" = ia64; then
6814         # On IA64, the linker does run time linking by default, so we don't
6815         # have to do anything special.
6816         aix_use_runtimelinking=no
6817         exp_sym_flag='-Bexport'
6818         no_entry_flag=""
6819       else
6820         # If we're using GNU nm, then we don't want the "-C" option.
6821         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6822         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6823           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'
6824         else
6825           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'
6826         fi
6827         aix_use_runtimelinking=no
6828
6829         # Test if we are trying to use run time linking or normal
6830         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6831         # need to do runtime linking.
6832         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6833           for ld_flag in $LDFLAGS; do
6834           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6835             aix_use_runtimelinking=yes
6836             break
6837           fi
6838           done
6839         esac
6840
6841         exp_sym_flag='-bexport'
6842         no_entry_flag='-bnoentry'
6843       fi
6844
6845       # When large executables or shared objects are built, AIX ld can
6846       # have problems creating the table of contents.  If linking a library
6847       # or program results in "error TOC overflow" add -mminimal-toc to
6848       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6849       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6850
6851       archive_cmds=''
6852       hardcode_direct=yes
6853       hardcode_libdir_separator=':'
6854       link_all_deplibs=yes
6855
6856       if test "$GCC" = yes; then
6857         case $host_os in aix4.012|aix4.012.*)
6858         # We only want to do this on AIX 4.2 and lower, the check
6859         # below for broken collect2 doesn't work under 4.3+
6860           collect2name=`${CC} -print-prog-name=collect2`
6861           if test -f "$collect2name" && \
6862            strings "$collect2name" | grep resolve_lib_name >/dev/null
6863           then
6864           # We have reworked collect2
6865           hardcode_direct=yes
6866           else
6867           # We have old collect2
6868           hardcode_direct=unsupported
6869           # It fails to find uninstalled libraries when the uninstalled
6870           # path is not listed in the libpath.  Setting hardcode_minus_L
6871           # to unsupported forces relinking
6872           hardcode_minus_L=yes
6873           hardcode_libdir_flag_spec='-L$libdir'
6874           hardcode_libdir_separator=
6875           fi
6876         esac
6877         shared_flag='-shared'
6878       else
6879         # not using gcc
6880         if test "$host_cpu" = ia64; then
6881         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6882         # chokes on -Wl,-G. The following line is correct:
6883           shared_flag='-G'
6884         else
6885         if test "$aix_use_runtimelinking" = yes; then
6886             shared_flag='${wl}-G'
6887           else
6888             shared_flag='${wl}-bM:SRE'
6889         fi
6890         fi
6891       fi
6892
6893       # It seems that -bexpall does not export symbols beginning with
6894       # underscore (_), so it is better to generate a list of symbols to export.
6895       always_export_symbols=yes
6896       if test "$aix_use_runtimelinking" = yes; then
6897         # Warning - without using the other runtime loading flags (-brtl),
6898         # -berok will link without error, but may produce a broken library.
6899         allow_undefined_flag='-berok'
6900        # Determine the default libpath from the value encoded in an empty executable.
6901        cat >conftest.$ac_ext <<_ACEOF
6902 #line $LINENO "configure"
6903 /* confdefs.h.  */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h.  */
6908
6909 int
6910 main ()
6911 {
6912
6913   ;
6914   return 0;
6915 }
6916 _ACEOF
6917 rm -f conftest.$ac_objext conftest$ac_exeext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6919   (eval $ac_link) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); } &&
6923          { ac_try='test -s conftest$ac_exeext'
6924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925   (eval $ac_try) 2>&5
6926   ac_status=$?
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); }; }; then
6929
6930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6931 }'`
6932 # Check for a 64-bit object if we didn't find anything.
6933 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; }
6934 }'`; fi
6935 else
6936   echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939 fi
6940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6942
6943        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6944         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"
6945        else
6946         if test "$host_cpu" = ia64; then
6947           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6948           allow_undefined_flag="-z nodefs"
6949           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"
6950         else
6951          # Determine the default libpath from the value encoded in an empty executable.
6952          cat >conftest.$ac_ext <<_ACEOF
6953 #line $LINENO "configure"
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959
6960 int
6961 main ()
6962 {
6963
6964   ;
6965   return 0;
6966 }
6967 _ACEOF
6968 rm -f conftest.$ac_objext conftest$ac_exeext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970   (eval $ac_link) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); } &&
6974          { ac_try='test -s conftest$ac_exeext'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; }; then
6980
6981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6982 }'`
6983 # Check for a 64-bit object if we didn't find anything.
6984 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; }
6985 }'`; fi
6986 else
6987   echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6989
6990 fi
6991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6992 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6993
6994          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6995           # Warning - without using the other run time loading flags,
6996           # -berok will link without error, but may produce a broken library.
6997           no_undefined_flag=' ${wl}-bernotok'
6998           allow_undefined_flag=' ${wl}-berok'
6999           # -bexpall does not export symbols beginning with underscore (_)
7000           always_export_symbols=yes
7001           # Exported symbols can be pulled into shared objects from archives
7002           whole_archive_flag_spec=' '
7003           archive_cmds_need_lc=yes
7004           # This is similar to how AIX traditionally builds it's shared libraries.
7005           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'
7006         fi
7007       fi
7008       ;;
7009
7010     amigaos*)
7011       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)'
7012       hardcode_libdir_flag_spec='-L$libdir'
7013       hardcode_minus_L=yes
7014       # see comment about different semantics on the GNU ld section
7015       ld_shlibs=no
7016       ;;
7017
7018     bsdi4*)
7019       export_dynamic_flag_spec=-rdynamic
7020       ;;
7021
7022     cygwin* | mingw* | pw32*)
7023       # When not using gcc, we currently assume that we are using
7024       # Microsoft Visual C++.
7025       # hardcode_libdir_flag_spec is actually meaningless, as there is
7026       # no search path for DLLs.
7027       hardcode_libdir_flag_spec=' '
7028       allow_undefined_flag=unsupported
7029       # Tell ltmain to make .lib files, not .a files.
7030       libext=lib
7031       # Tell ltmain to make .dll files, not .so files.
7032       shrext=".dll"
7033       # FIXME: Setting linknames here is a bad hack.
7034       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7035       # The linker will automatically build a .lib file if we build a DLL.
7036       old_archive_From_new_cmds='true'
7037       # FIXME: Should let the user specify the lib program.
7038       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7039       fix_srcfile_path='`cygpath -w "$srcfile"`'
7040       enable_shared_with_static_runtimes=yes
7041       ;;
7042
7043     darwin* | rhapsody*)
7044     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7045       archive_cmds_need_lc=no
7046       case "$host_os" in
7047       rhapsody* | darwin1.[012])
7048         allow_undefined_flag='-undefined suppress'
7049         ;;
7050       *) # Darwin 1.3 on
7051         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7052         ;;
7053       esac
7054       # FIXME: Relying on posixy $() will cause problems for
7055       #        cross-compilation, but unfortunately the echo tests do not
7056       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7057       #        `"' quotes if we put them in here... so don't!
7058         lt_int_apple_cc_single_mod=no
7059         output_verbose_link_cmd='echo'
7060         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7061           lt_int_apple_cc_single_mod=yes
7062         fi
7063         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7064           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7065         else
7066         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'
7067       fi
7068       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7069       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7070         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7071           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}'
7072         else
7073           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}'
7074         fi
7075           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}'
7076       hardcode_direct=no
7077       hardcode_automatic=yes
7078       hardcode_shlibpath_var=unsupported
7079       whole_archive_flag_spec='-all_load $convenience'
7080       link_all_deplibs=yes
7081     fi
7082       ;;
7083
7084     dgux*)
7085       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7086       hardcode_libdir_flag_spec='-L$libdir'
7087       hardcode_shlibpath_var=no
7088       ;;
7089
7090     freebsd1*)
7091       ld_shlibs=no
7092       ;;
7093
7094     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7095     # support.  Future versions do this automatically, but an explicit c++rt0.o
7096     # does not break anything, and helps significantly (at the cost of a little
7097     # extra space).
7098     freebsd2.2*)
7099       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7100       hardcode_libdir_flag_spec='-R$libdir'
7101       hardcode_direct=yes
7102       hardcode_shlibpath_var=no
7103       ;;
7104
7105     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7106     freebsd2*)
7107       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7108       hardcode_direct=yes
7109       hardcode_minus_L=yes
7110       hardcode_shlibpath_var=no
7111       ;;
7112
7113     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7114     freebsd*)
7115       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7116       hardcode_libdir_flag_spec='-R$libdir'
7117       hardcode_direct=yes
7118       hardcode_shlibpath_var=no
7119       ;;
7120
7121     hpux9*)
7122       if test "$GCC" = yes; then
7123         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'
7124       else
7125         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'
7126       fi
7127       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7128       hardcode_libdir_separator=:
7129       hardcode_direct=yes
7130
7131       # hardcode_minus_L: Not really in the search PATH,
7132       # but as the default location of the library.
7133       hardcode_minus_L=yes
7134       export_dynamic_flag_spec='${wl}-E'
7135       ;;
7136
7137     hpux10* | hpux11*)
7138       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7139         case "$host_cpu" in
7140         hppa*64*|ia64*)
7141           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7142           ;;
7143         *)
7144           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7145           ;;
7146         esac
7147       else
7148         case "$host_cpu" in
7149         hppa*64*|ia64*)
7150           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7151           ;;
7152         *)
7153           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7154           ;;
7155         esac
7156       fi
7157       if test "$with_gnu_ld" = no; then
7158         case "$host_cpu" in
7159         hppa*64*)
7160           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7161           hardcode_libdir_flag_spec_ld='+b $libdir'
7162           hardcode_libdir_separator=:
7163           hardcode_direct=no
7164           hardcode_shlibpath_var=no
7165           ;;
7166         ia64*)
7167           hardcode_libdir_flag_spec='-L$libdir'
7168           hardcode_direct=no
7169           hardcode_shlibpath_var=no
7170
7171           # hardcode_minus_L: Not really in the search PATH,
7172           # but as the default location of the library.
7173           hardcode_minus_L=yes
7174           ;;
7175         *)
7176           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7177           hardcode_libdir_separator=:
7178           hardcode_direct=yes
7179           export_dynamic_flag_spec='${wl}-E'
7180
7181           # hardcode_minus_L: Not really in the search PATH,
7182           # but as the default location of the library.
7183           hardcode_minus_L=yes
7184           ;;
7185         esac
7186       fi
7187       ;;
7188
7189     irix5* | irix6* | nonstopux*)
7190       if test "$GCC" = yes; then
7191         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'
7192       else
7193         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'
7194         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7195       fi
7196       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7197       hardcode_libdir_separator=:
7198       link_all_deplibs=yes
7199       ;;
7200
7201     netbsd*)
7202       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7203         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7204       else
7205         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7206       fi
7207       hardcode_libdir_flag_spec='-R$libdir'
7208       hardcode_direct=yes
7209       hardcode_shlibpath_var=no
7210       ;;
7211
7212     newsos6)
7213       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7214       hardcode_direct=yes
7215       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7216       hardcode_libdir_separator=:
7217       hardcode_shlibpath_var=no
7218       ;;
7219
7220     openbsd*)
7221       hardcode_direct=yes
7222       hardcode_shlibpath_var=no
7223       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7224         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7225         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7226         export_dynamic_flag_spec='${wl}-E'
7227       else
7228        case $host_os in
7229          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7230            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7231            hardcode_libdir_flag_spec='-R$libdir'
7232            ;;
7233          *)
7234            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7235            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7236            ;;
7237        esac
7238       fi
7239       ;;
7240
7241     os2*)
7242       hardcode_libdir_flag_spec='-L$libdir'
7243       hardcode_minus_L=yes
7244       allow_undefined_flag=unsupported
7245       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'
7246       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7247       ;;
7248
7249     osf3*)
7250       if test "$GCC" = yes; then
7251         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7252         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'
7253       else
7254         allow_undefined_flag=' -expect_unresolved \*'
7255         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'
7256       fi
7257       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7258       hardcode_libdir_separator=:
7259       ;;
7260
7261     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7262       if test "$GCC" = yes; then
7263         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7264         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'
7265         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7266       else
7267         allow_undefined_flag=' -expect_unresolved \*'
7268         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'
7269         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7270         $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'
7271
7272         # Both c and cxx compiler support -rpath directly
7273         hardcode_libdir_flag_spec='-rpath $libdir'
7274       fi
7275       hardcode_libdir_separator=:
7276       ;;
7277
7278     sco3.2v5*)
7279       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7280       hardcode_shlibpath_var=no
7281       export_dynamic_flag_spec='${wl}-Bexport'
7282       runpath_var=LD_RUN_PATH
7283       hardcode_runpath_var=yes
7284       ;;
7285
7286     solaris*)
7287       no_undefined_flag=' -z text'
7288       if test "$GCC" = yes; then
7289         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7290         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7291           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7292       else
7293         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7294         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7295         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7296       fi
7297       hardcode_libdir_flag_spec='-R$libdir'
7298       hardcode_shlibpath_var=no
7299       case $host_os in
7300       solaris2.[0-5] | solaris2.[0-5].*) ;;
7301       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7302         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7303       esac
7304       link_all_deplibs=yes
7305       ;;
7306
7307     sunos4*)
7308       if test "x$host_vendor" = xsequent; then
7309         # Use $CC to link under sequent, because it throws in some extra .o
7310         # files that make .init and .fini sections work.
7311         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7312       else
7313         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7314       fi
7315       hardcode_libdir_flag_spec='-L$libdir'
7316       hardcode_direct=yes
7317       hardcode_minus_L=yes
7318       hardcode_shlibpath_var=no
7319       ;;
7320
7321     sysv4)
7322       case $host_vendor in
7323         sni)
7324           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325           hardcode_direct=yes # is this really true???
7326         ;;
7327         siemens)
7328           ## LD is ld it makes a PLAMLIB
7329           ## CC just makes a GrossModule.
7330           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7331           reload_cmds='$CC -r -o $output$reload_objs'
7332           hardcode_direct=no
7333         ;;
7334         motorola)
7335           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7337         ;;
7338       esac
7339       runpath_var='LD_RUN_PATH'
7340       hardcode_shlibpath_var=no
7341       ;;
7342
7343     sysv4.3*)
7344       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7345       hardcode_shlibpath_var=no
7346       export_dynamic_flag_spec='-Bexport'
7347       ;;
7348
7349     sysv4*MP*)
7350       if test -d /usr/nec; then
7351         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7352         hardcode_shlibpath_var=no
7353         runpath_var=LD_RUN_PATH
7354         hardcode_runpath_var=yes
7355         ld_shlibs=yes
7356       fi
7357       ;;
7358
7359     sysv4.2uw2*)
7360       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7361       hardcode_direct=yes
7362       hardcode_minus_L=no
7363       hardcode_shlibpath_var=no
7364       hardcode_runpath_var=yes
7365       runpath_var=LD_RUN_PATH
7366       ;;
7367
7368    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7369       no_undefined_flag='${wl}-z ${wl}text'
7370       if test "$GCC" = yes; then
7371         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7372       else
7373         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7374       fi
7375       runpath_var='LD_RUN_PATH'
7376       hardcode_shlibpath_var=no
7377       ;;
7378
7379     sysv5*)
7380       no_undefined_flag=' -z text'
7381       # $CC -shared without GNU ld will not create a library from C++
7382       # object files and a static libstdc++, better avoid it by now
7383       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7385                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7386       hardcode_libdir_flag_spec=
7387       hardcode_shlibpath_var=no
7388       runpath_var='LD_RUN_PATH'
7389       ;;
7390
7391     uts4*)
7392       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7393       hardcode_libdir_flag_spec='-L$libdir'
7394       hardcode_shlibpath_var=no
7395       ;;
7396
7397     *)
7398       ld_shlibs=no
7399       ;;
7400     esac
7401   fi
7402
7403 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7404 echo "${ECHO_T}$ld_shlibs" >&6
7405 test "$ld_shlibs" = no && can_build_shared=no
7406
7407 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7408 if test "$GCC" = yes; then
7409   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7410 fi
7411
7412 #
7413 # Do we need to explicitly link libc?
7414 #
7415 case "x$archive_cmds_need_lc" in
7416 x|xyes)
7417   # Assume -lc should be added
7418   archive_cmds_need_lc=yes
7419
7420   if test "$enable_shared" = yes && test "$GCC" = yes; then
7421     case $archive_cmds in
7422     *'~'*)
7423       # FIXME: we may have to deal with multi-command sequences.
7424       ;;
7425     '$CC '*)
7426       # Test whether the compiler implicitly links with -lc since on some
7427       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7428       # to ld, don't add -lc before -lgcc.
7429       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7430 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7431       $rm conftest*
7432       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7433
7434       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435   (eval $ac_compile) 2>&5
7436   ac_status=$?
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); } 2>conftest.err; then
7439         soname=conftest
7440         lib=conftest
7441         libobjs=conftest.$ac_objext
7442         deplibs=
7443         wl=$lt_prog_compiler_wl
7444         compiler_flags=-v
7445         linker_flags=-v
7446         verstring=
7447         output_objdir=.
7448         libname=conftest
7449         lt_save_allow_undefined_flag=$allow_undefined_flag
7450         allow_undefined_flag=
7451         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7452   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }
7456         then
7457           archive_cmds_need_lc=no
7458         else
7459           archive_cmds_need_lc=yes
7460         fi
7461         allow_undefined_flag=$lt_save_allow_undefined_flag
7462       else
7463         cat conftest.err 1>&5
7464       fi
7465       $rm conftest*
7466       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7467 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7468       ;;
7469     esac
7470   fi
7471   ;;
7472 esac
7473
7474 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7475 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7476 hardcode_action=
7477 if test -n "$hardcode_libdir_flag_spec" || \
7478    test -n "$runpath_var " || \
7479    test "X$hardcode_automatic"="Xyes" ; then
7480
7481   # We can hardcode non-existant directories.
7482   if test "$hardcode_direct" != no &&
7483      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7484      # have to relink, otherwise we might link with an installed library
7485      # when we should be linking with a yet-to-be-installed one
7486      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7487      test "$hardcode_minus_L" != no; then
7488     # Linking always hardcodes the temporary library directory.
7489     hardcode_action=relink
7490   else
7491     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7492     hardcode_action=immediate
7493   fi
7494 else
7495   # We cannot hardcode anything, or else we can only hardcode existing
7496   # directories.
7497   hardcode_action=unsupported
7498 fi
7499 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7500 echo "${ECHO_T}$hardcode_action" >&6
7501
7502 if test "$hardcode_action" = relink; then
7503   # Fast installation is not supported
7504   enable_fast_install=no
7505 elif test "$shlibpath_overrides_runpath" = yes ||
7506      test "$enable_shared" = no; then
7507   # Fast installation is not necessary
7508   enable_fast_install=needless
7509 fi
7510
7511 striplib=
7512 old_striplib=
7513 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7514 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7515 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7516   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7517   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7518   echo "$as_me:$LINENO: result: yes" >&5
7519 echo "${ECHO_T}yes" >&6
7520 else
7521 # FIXME - insert some real tests, host_os isn't really good enough
7522   case $host_os in
7523    darwin*)
7524        if test -n "$STRIP" ; then
7525          striplib="$STRIP -x"
7526          echo "$as_me:$LINENO: result: yes" >&5
7527 echo "${ECHO_T}yes" >&6
7528        else
7529   echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6
7531 fi
7532        ;;
7533    *)
7534   echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7536     ;;
7537   esac
7538 fi
7539
7540 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7541 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7542 library_names_spec=
7543 libname_spec='lib$name'
7544 soname_spec=
7545 shrext=".so"
7546 postinstall_cmds=
7547 postuninstall_cmds=
7548 finish_cmds=
7549 finish_eval=
7550 shlibpath_var=
7551 shlibpath_overrides_runpath=unknown
7552 version_type=none
7553 dynamic_linker="$host_os ld.so"
7554 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7555 if test "$GCC" = yes; then
7556   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7557   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7558     # if the path contains ";" then we assume it to be the separator
7559     # otherwise default to the standard path separator (i.e. ":") - it is
7560     # assumed that no part of a normal pathname contains ";" but that should
7561     # okay in the real world where ";" in dirpaths is itself problematic.
7562     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7563   else
7564     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7565   fi
7566 else
7567   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7568 fi
7569 need_lib_prefix=unknown
7570 hardcode_into_libs=no
7571
7572 # when you set need_version to no, make sure it does not cause -set_version
7573 # flags to be left without arguments
7574 need_version=unknown
7575
7576 case $host_os in
7577 aix3*)
7578   version_type=linux
7579   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7580   shlibpath_var=LIBPATH
7581
7582   # AIX 3 has no versioning support, so we append a major version to the name.
7583   soname_spec='${libname}${release}${shared_ext}$major'
7584   ;;
7585
7586 aix4* | aix5*)
7587   version_type=linux
7588   need_lib_prefix=no
7589   need_version=no
7590   hardcode_into_libs=yes
7591   if test "$host_cpu" = ia64; then
7592     # AIX 5 supports IA64
7593     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7594     shlibpath_var=LD_LIBRARY_PATH
7595   else
7596     # With GCC up to 2.95.x, collect2 would create an import file
7597     # for dependence libraries.  The import file would start with
7598     # the line `#! .'.  This would cause the generated library to
7599     # depend on `.', always an invalid library.  This was fixed in
7600     # development snapshots of GCC prior to 3.0.
7601     case $host_os in
7602       aix4 | aix4.[01] | aix4.[01].*)
7603       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7604            echo ' yes '
7605            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7606         :
7607       else
7608         can_build_shared=no
7609       fi
7610       ;;
7611     esac
7612     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7613     # soname into executable. Probably we can add versioning support to
7614     # collect2, so additional links can be useful in future.
7615     if test "$aix_use_runtimelinking" = yes; then
7616       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7617       # instead of lib<name>.a to let people know that these are not
7618       # typical AIX shared libraries.
7619       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7620     else
7621       # We preserve .a as extension for shared libraries through AIX4.2
7622       # and later when we are not doing run time linking.
7623       library_names_spec='${libname}${release}.a $libname.a'
7624       soname_spec='${libname}${release}${shared_ext}$major'
7625     fi
7626     shlibpath_var=LIBPATH
7627   fi
7628   ;;
7629
7630 amigaos*)
7631   library_names_spec='$libname.ixlibrary $libname.a'
7632   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7633   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'
7634   ;;
7635
7636 beos*)
7637   library_names_spec='${libname}${shared_ext}'
7638   dynamic_linker="$host_os ld.so"
7639   shlibpath_var=LIBRARY_PATH
7640   ;;
7641
7642 bsdi4*)
7643   version_type=linux
7644   need_version=no
7645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7646   soname_spec='${libname}${release}${shared_ext}$major'
7647   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7648   shlibpath_var=LD_LIBRARY_PATH
7649   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7650   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7651   # the default ld.so.conf also contains /usr/contrib/lib and
7652   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7653   # libtool to hard-code these into programs
7654   ;;
7655
7656 cygwin* | mingw* | pw32*)
7657   version_type=windows
7658   shrext=".dll"
7659   need_version=no
7660   need_lib_prefix=no
7661
7662   case $GCC,$host_os in
7663   yes,cygwin* | yes,mingw* | yes,pw32*)
7664     library_names_spec='$libname.dll.a'
7665     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7666     postinstall_cmds='base_file=`basename \${file}`~
7667       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7668       dldir=$destdir/`dirname \$dlpath`~
7669       test -d \$dldir || mkdir -p \$dldir~
7670       $install_prog $dir/$dlname \$dldir/$dlname'
7671     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7672       dlpath=$dir/\$dldll~
7673        $rm \$dlpath'
7674     shlibpath_overrides_runpath=yes
7675
7676     case $host_os in
7677     cygwin*)
7678       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7679       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7680       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7681       ;;
7682     mingw*)
7683       # MinGW DLLs use traditional 'lib' prefix
7684       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7685       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7686       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7687         # It is most probably a Windows format PATH printed by
7688         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7689         # path with ; separators, and with drive letters. We can handle the
7690         # drive letters (cygwin fileutils understands them), so leave them,
7691         # especially as we might pass files found there to a mingw objdump,
7692         # which wouldn't understand a cygwinified path. Ahh.
7693         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7694       else
7695         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7696       fi
7697       ;;
7698     pw32*)
7699       # pw32 DLLs use 'pw' prefix rather than 'lib'
7700       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7701       ;;
7702     esac
7703     ;;
7704
7705   *)
7706     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7707     ;;
7708   esac
7709   dynamic_linker='Win32 ld.exe'
7710   # FIXME: first we should search . and the directory the executable is in
7711   shlibpath_var=PATH
7712   ;;
7713
7714 darwin* | rhapsody*)
7715   dynamic_linker="$host_os dyld"
7716   version_type=darwin
7717   need_lib_prefix=no
7718   need_version=no
7719   # FIXME: Relying on posixy $() will cause problems for
7720   #        cross-compilation, but unfortunately the echo tests do not
7721   #        yet detect zsh echo's removal of \ escapes.
7722   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7723   soname_spec='${libname}${release}${major}$shared_ext'
7724   shlibpath_overrides_runpath=yes
7725   shlibpath_var=DYLD_LIBRARY_PATH
7726   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7727   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7728   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7729   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"`
7730   fi
7731   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7732   ;;
7733
7734 dgux*)
7735   version_type=linux
7736   need_lib_prefix=no
7737   need_version=no
7738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7739   soname_spec='${libname}${release}${shared_ext}$major'
7740   shlibpath_var=LD_LIBRARY_PATH
7741   ;;
7742
7743 freebsd1*)
7744   dynamic_linker=no
7745   ;;
7746
7747 freebsd*)
7748   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7749   version_type=freebsd-$objformat
7750   case $version_type in
7751     freebsd-elf*)
7752       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7753       need_version=no
7754       need_lib_prefix=no
7755       ;;
7756     freebsd-*)
7757       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7758       need_version=yes
7759       ;;
7760   esac
7761   shlibpath_var=LD_LIBRARY_PATH
7762   case $host_os in
7763   freebsd2*)
7764     shlibpath_overrides_runpath=yes
7765     ;;
7766   freebsd3.01* | freebsdelf3.01*)
7767     shlibpath_overrides_runpath=yes
7768     hardcode_into_libs=yes
7769     ;;
7770   *) # from 3.2 on
7771     shlibpath_overrides_runpath=no
7772     hardcode_into_libs=yes
7773     ;;
7774   esac
7775   ;;
7776
7777 gnu*)
7778   version_type=linux
7779   need_lib_prefix=no
7780   need_version=no
7781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7782   soname_spec='${libname}${release}${shared_ext}$major'
7783   shlibpath_var=LD_LIBRARY_PATH
7784   hardcode_into_libs=yes
7785   ;;
7786
7787 hpux9* | hpux10* | hpux11*)
7788   # Give a soname corresponding to the major version so that dld.sl refuses to
7789   # link against other versions.
7790   version_type=sunos
7791   need_lib_prefix=no
7792   need_version=no
7793   case "$host_cpu" in
7794   ia64*)
7795     shrext='.so'
7796     hardcode_into_libs=yes
7797     dynamic_linker="$host_os dld.so"
7798     shlibpath_var=LD_LIBRARY_PATH
7799     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7801     soname_spec='${libname}${release}${shared_ext}$major'
7802     if test "X$HPUX_IA64_MODE" = X32; then
7803       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7804     else
7805       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7806     fi
7807     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7808     ;;
7809    hppa*64*)
7810      shrext='.sl'
7811      hardcode_into_libs=yes
7812      dynamic_linker="$host_os dld.sl"
7813      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7814      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7815      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7816      soname_spec='${libname}${release}${shared_ext}$major'
7817      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7818      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7819      ;;
7820    *)
7821     shrext='.sl'
7822     dynamic_linker="$host_os dld.sl"
7823     shlibpath_var=SHLIB_PATH
7824     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7826     soname_spec='${libname}${release}${shared_ext}$major'
7827     ;;
7828   esac
7829   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7830   postinstall_cmds='chmod 555 $lib'
7831   ;;
7832
7833 irix5* | irix6* | nonstopux*)
7834   case $host_os in
7835     nonstopux*) version_type=nonstopux ;;
7836     *)
7837         if test "$lt_cv_prog_gnu_ld" = yes; then
7838                 version_type=linux
7839         else
7840                 version_type=irix
7841         fi ;;
7842   esac
7843   need_lib_prefix=no
7844   need_version=no
7845   soname_spec='${libname}${release}${shared_ext}$major'
7846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7847   case $host_os in
7848   irix5* | nonstopux*)
7849     libsuff= shlibsuff=
7850     ;;
7851   *)
7852     case $LD in # libtool.m4 will add one of these switches to LD
7853     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7854       libsuff= shlibsuff= libmagic=32-bit;;
7855     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7856       libsuff=32 shlibsuff=N32 libmagic=N32;;
7857     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7858       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7859     *) libsuff= shlibsuff= libmagic=never-match;;
7860     esac
7861     ;;
7862   esac
7863   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7864   shlibpath_overrides_runpath=no
7865   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7866   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7867   hardcode_into_libs=yes
7868   ;;
7869
7870 # No shared lib support for Linux oldld, aout, or coff.
7871 linux*oldld* | linux*aout* | linux*coff*)
7872   dynamic_linker=no
7873   ;;
7874
7875 # This must be Linux ELF.
7876 linux*)
7877   version_type=linux
7878   need_lib_prefix=no
7879   need_version=no
7880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881   soname_spec='${libname}${release}${shared_ext}$major'
7882   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7883   shlibpath_var=LD_LIBRARY_PATH
7884   shlibpath_overrides_runpath=no
7885   # This implies no fast_install, which is unacceptable.
7886   # Some rework will be needed to allow for fast_install
7887   # before this can be enabled.
7888   hardcode_into_libs=yes
7889
7890   # We used to test for /lib/ld.so.1 and disable shared libraries on
7891   # powerpc, because MkLinux only supported shared libraries with the
7892   # GNU dynamic linker.  Since this was broken with cross compilers,
7893   # most powerpc-linux boxes support dynamic linking these days and
7894   # people can always --disable-shared, the test was removed, and we
7895   # assume the GNU/Linux dynamic linker is in use.
7896   dynamic_linker='GNU/Linux ld.so'
7897   ;;
7898
7899 netbsd*)
7900   version_type=sunos
7901   need_lib_prefix=no
7902   need_version=no
7903   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7905     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7906     dynamic_linker='NetBSD (a.out) ld.so'
7907   else
7908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7909     soname_spec='${libname}${release}${shared_ext}$major'
7910     dynamic_linker='NetBSD ld.elf_so'
7911   fi
7912   shlibpath_var=LD_LIBRARY_PATH
7913   shlibpath_overrides_runpath=yes
7914   hardcode_into_libs=yes
7915   ;;
7916
7917 newsos6)
7918   version_type=linux
7919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7920   shlibpath_var=LD_LIBRARY_PATH
7921   shlibpath_overrides_runpath=yes
7922   ;;
7923
7924 nto-qnx)
7925   version_type=linux
7926   need_lib_prefix=no
7927   need_version=no
7928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929   soname_spec='${libname}${release}${shared_ext}$major'
7930   shlibpath_var=LD_LIBRARY_PATH
7931   shlibpath_overrides_runpath=yes
7932   ;;
7933
7934 openbsd*)
7935   version_type=sunos
7936   need_lib_prefix=no
7937   need_version=no
7938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7939   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7940   shlibpath_var=LD_LIBRARY_PATH
7941   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7942     case $host_os in
7943       openbsd2.[89] | openbsd2.[89].*)
7944         shlibpath_overrides_runpath=no
7945         ;;
7946       *)
7947         shlibpath_overrides_runpath=yes
7948         ;;
7949       esac
7950   else
7951     shlibpath_overrides_runpath=yes
7952   fi
7953   ;;
7954
7955 os2*)
7956   libname_spec='$name'
7957   shrext=".dll"
7958   need_lib_prefix=no
7959   library_names_spec='$libname${shared_ext} $libname.a'
7960   dynamic_linker='OS/2 ld.exe'
7961   shlibpath_var=LIBPATH
7962   ;;
7963
7964 osf3* | osf4* | osf5*)
7965   version_type=osf
7966   need_lib_prefix=no
7967   need_version=no
7968   soname_spec='${libname}${release}${shared_ext}$major'
7969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970   shlibpath_var=LD_LIBRARY_PATH
7971   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7972   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7973   ;;
7974
7975 sco3.2v5*)
7976   version_type=osf
7977   soname_spec='${libname}${release}${shared_ext}$major'
7978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7979   shlibpath_var=LD_LIBRARY_PATH
7980   ;;
7981
7982 solaris*)
7983   version_type=linux
7984   need_lib_prefix=no
7985   need_version=no
7986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7987   soname_spec='${libname}${release}${shared_ext}$major'
7988   shlibpath_var=LD_LIBRARY_PATH
7989   shlibpath_overrides_runpath=yes
7990   hardcode_into_libs=yes
7991   # ldd complains unless libraries are executable
7992   postinstall_cmds='chmod +x $lib'
7993   ;;
7994
7995 sunos4*)
7996   version_type=sunos
7997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7998   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7999   shlibpath_var=LD_LIBRARY_PATH
8000   shlibpath_overrides_runpath=yes
8001   if test "$with_gnu_ld" = yes; then
8002     need_lib_prefix=no
8003   fi
8004   need_version=yes
8005   ;;
8006
8007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8008   version_type=linux
8009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8010   soname_spec='${libname}${release}${shared_ext}$major'
8011   shlibpath_var=LD_LIBRARY_PATH
8012   case $host_vendor in
8013     sni)
8014       shlibpath_overrides_runpath=no
8015       need_lib_prefix=no
8016       export_dynamic_flag_spec='${wl}-Blargedynsym'
8017       runpath_var=LD_RUN_PATH
8018       ;;
8019     siemens)
8020       need_lib_prefix=no
8021       ;;
8022     motorola)
8023       need_lib_prefix=no
8024       need_version=no
8025       shlibpath_overrides_runpath=no
8026       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8027       ;;
8028   esac
8029   ;;
8030
8031 sysv4*MP*)
8032   if test -d /usr/nec ;then
8033     version_type=linux
8034     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8035     soname_spec='$libname${shared_ext}.$major'
8036     shlibpath_var=LD_LIBRARY_PATH
8037   fi
8038   ;;
8039
8040 uts4*)
8041   version_type=linux
8042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8043   soname_spec='${libname}${release}${shared_ext}$major'
8044   shlibpath_var=LD_LIBRARY_PATH
8045   ;;
8046
8047 *)
8048   dynamic_linker=no
8049   ;;
8050 esac
8051 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8052 echo "${ECHO_T}$dynamic_linker" >&6
8053 test "$dynamic_linker" = no && can_build_shared=no
8054
8055 if test "x$enable_dlopen" != xyes; then
8056   enable_dlopen=unknown
8057   enable_dlopen_self=unknown
8058   enable_dlopen_self_static=unknown
8059 else
8060   lt_cv_dlopen=no
8061   lt_cv_dlopen_libs=
8062
8063   case $host_os in
8064   beos*)
8065     lt_cv_dlopen="load_add_on"
8066     lt_cv_dlopen_libs=
8067     lt_cv_dlopen_self=yes
8068     ;;
8069
8070   mingw* | pw32*)
8071     lt_cv_dlopen="LoadLibrary"
8072     lt_cv_dlopen_libs=
8073    ;;
8074
8075   cygwin*)
8076     lt_cv_dlopen="dlopen"
8077     lt_cv_dlopen_libs=
8078    ;;
8079
8080   darwin*)
8081   # if libdl is installed we need to link against it
8082     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8083 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8084 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087   ac_check_lib_save_LIBS=$LIBS
8088 LIBS="-ldl  $LIBS"
8089 cat >conftest.$ac_ext <<_ACEOF
8090 #line $LINENO "configure"
8091 /* confdefs.h.  */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h.  */
8096
8097 /* Override any gcc2 internal prototype to avoid an error.  */
8098 #ifdef __cplusplus
8099 extern "C"
8100 #endif
8101 /* We use char because int might match the return type of a gcc2
8102    builtin and then its argument prototype would still apply.  */
8103 char dlopen ();
8104 int
8105 main ()
8106 {
8107 dlopen ();
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext conftest$ac_exeext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114   (eval $ac_link) 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); } &&
8118          { ac_try='test -s conftest$ac_exeext'
8119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120   (eval $ac_try) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; }; then
8124   ac_cv_lib_dl_dlopen=yes
8125 else
8126   echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 ac_cv_lib_dl_dlopen=no
8130 fi
8131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8132 LIBS=$ac_check_lib_save_LIBS
8133 fi
8134 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8135 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8136 if test $ac_cv_lib_dl_dlopen = yes; then
8137   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8138 else
8139
8140     lt_cv_dlopen="dyld"
8141     lt_cv_dlopen_libs=
8142     lt_cv_dlopen_self=yes
8143
8144 fi
8145
8146    ;;
8147
8148   *)
8149     echo "$as_me:$LINENO: checking for shl_load" >&5
8150 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8151 if test "${ac_cv_func_shl_load+set}" = set; then
8152   echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154   cat >conftest.$ac_ext <<_ACEOF
8155 #line $LINENO "configure"
8156 /* confdefs.h.  */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h.  */
8161 /* System header to define __stub macros and hopefully few prototypes,
8162     which can conflict with char shl_load (); below.
8163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8164     <limits.h> exists even on freestanding compilers.  */
8165 #ifdef __STDC__
8166 # include <limits.h>
8167 #else
8168 # include <assert.h>
8169 #endif
8170 /* Override any gcc2 internal prototype to avoid an error.  */
8171 #ifdef __cplusplus
8172 extern "C"
8173 {
8174 #endif
8175 /* We use char because int might match the return type of a gcc2
8176    builtin and then its argument prototype would still apply.  */
8177 char shl_load ();
8178 /* The GNU C library defines this for functions which it implements
8179     to always fail with ENOSYS.  Some functions are actually named
8180     something starting with __ and the normal name is an alias.  */
8181 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8182 choke me
8183 #else
8184 char (*f) () = shl_load;
8185 #endif
8186 #ifdef __cplusplus
8187 }
8188 #endif
8189
8190 int
8191 main ()
8192 {
8193 return f != shl_load;
8194   ;
8195   return 0;
8196 }
8197 _ACEOF
8198 rm -f conftest.$ac_objext conftest$ac_exeext
8199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8200   (eval $ac_link) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -s conftest$ac_exeext'
8205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206   (eval $ac_try) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); }; }; then
8210   ac_cv_func_shl_load=yes
8211 else
8212   echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 ac_cv_func_shl_load=no
8216 fi
8217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8218 fi
8219 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8220 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8221 if test $ac_cv_func_shl_load = yes; then
8222   lt_cv_dlopen="shl_load"
8223 else
8224   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8225 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8226 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8227   echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229   ac_check_lib_save_LIBS=$LIBS
8230 LIBS="-ldld  $LIBS"
8231 cat >conftest.$ac_ext <<_ACEOF
8232 #line $LINENO "configure"
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238
8239 /* Override any gcc2 internal prototype to avoid an error.  */
8240 #ifdef __cplusplus
8241 extern "C"
8242 #endif
8243 /* We use char because int might match the return type of a gcc2
8244    builtin and then its argument prototype would still apply.  */
8245 char shl_load ();
8246 int
8247 main ()
8248 {
8249 shl_load ();
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256   (eval $ac_link) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); } &&
8260          { ac_try='test -s conftest$ac_exeext'
8261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262   (eval $ac_try) 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); }; }; then
8266   ac_cv_lib_dld_shl_load=yes
8267 else
8268   echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271 ac_cv_lib_dld_shl_load=no
8272 fi
8273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8274 LIBS=$ac_check_lib_save_LIBS
8275 fi
8276 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8277 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8278 if test $ac_cv_lib_dld_shl_load = yes; then
8279   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8280 else
8281   echo "$as_me:$LINENO: checking for dlopen" >&5
8282 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8283 if test "${ac_cv_func_dlopen+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293 /* System header to define __stub macros and hopefully few prototypes,
8294     which can conflict with char dlopen (); below.
8295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8296     <limits.h> exists even on freestanding compilers.  */
8297 #ifdef __STDC__
8298 # include <limits.h>
8299 #else
8300 # include <assert.h>
8301 #endif
8302 /* Override any gcc2 internal prototype to avoid an error.  */
8303 #ifdef __cplusplus
8304 extern "C"
8305 {
8306 #endif
8307 /* We use char because int might match the return type of a gcc2
8308    builtin and then its argument prototype would still apply.  */
8309 char dlopen ();
8310 /* The GNU C library defines this for functions which it implements
8311     to always fail with ENOSYS.  Some functions are actually named
8312     something starting with __ and the normal name is an alias.  */
8313 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8314 choke me
8315 #else
8316 char (*f) () = dlopen;
8317 #endif
8318 #ifdef __cplusplus
8319 }
8320 #endif
8321
8322 int
8323 main ()
8324 {
8325 return f != dlopen;
8326   ;
8327   return 0;
8328 }
8329 _ACEOF
8330 rm -f conftest.$ac_objext conftest$ac_exeext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8332   (eval $ac_link) 2>&5
8333   ac_status=$?
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); } &&
8336          { ac_try='test -s conftest$ac_exeext'
8337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338   (eval $ac_try) 2>&5
8339   ac_status=$?
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); }; }; then
8342   ac_cv_func_dlopen=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347 ac_cv_func_dlopen=no
8348 fi
8349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8350 fi
8351 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8352 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8353 if test $ac_cv_func_dlopen = yes; then
8354   lt_cv_dlopen="dlopen"
8355 else
8356   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8357 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8358 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   ac_check_lib_save_LIBS=$LIBS
8362 LIBS="-ldl  $LIBS"
8363 cat >conftest.$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370
8371 /* Override any gcc2 internal prototype to avoid an error.  */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 /* We use char because int might match the return type of a gcc2
8376    builtin and then its argument prototype would still apply.  */
8377 char dlopen ();
8378 int
8379 main ()
8380 {
8381 dlopen ();
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388   (eval $ac_link) 2>&5
8389   ac_status=$?
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -s conftest$ac_exeext'
8393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394   (eval $ac_try) 2>&5
8395   ac_status=$?
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); }; }; then
8398   ac_cv_lib_dl_dlopen=yes
8399 else
8400   echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8402
8403 ac_cv_lib_dl_dlopen=no
8404 fi
8405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8406 LIBS=$ac_check_lib_save_LIBS
8407 fi
8408 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8409 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8410 if test $ac_cv_lib_dl_dlopen = yes; then
8411   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8412 else
8413   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8414 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8415 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8416   echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418   ac_check_lib_save_LIBS=$LIBS
8419 LIBS="-lsvld  $LIBS"
8420 cat >conftest.$ac_ext <<_ACEOF
8421 #line $LINENO "configure"
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427
8428 /* Override any gcc2 internal prototype to avoid an error.  */
8429 #ifdef __cplusplus
8430 extern "C"
8431 #endif
8432 /* We use char because int might match the return type of a gcc2
8433    builtin and then its argument prototype would still apply.  */
8434 char dlopen ();
8435 int
8436 main ()
8437 {
8438 dlopen ();
8439   ;
8440   return 0;
8441 }
8442 _ACEOF
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8445   (eval $ac_link) 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); } &&
8449          { ac_try='test -s conftest$ac_exeext'
8450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451   (eval $ac_try) 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; }; then
8455   ac_cv_lib_svld_dlopen=yes
8456 else
8457   echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8459
8460 ac_cv_lib_svld_dlopen=no
8461 fi
8462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8463 LIBS=$ac_check_lib_save_LIBS
8464 fi
8465 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8466 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8467 if test $ac_cv_lib_svld_dlopen = yes; then
8468   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8469 else
8470   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8471 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8472 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8473   echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475   ac_check_lib_save_LIBS=$LIBS
8476 LIBS="-ldld  $LIBS"
8477 cat >conftest.$ac_ext <<_ACEOF
8478 #line $LINENO "configure"
8479 /* confdefs.h.  */
8480 _ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h.  */
8484
8485 /* Override any gcc2 internal prototype to avoid an error.  */
8486 #ifdef __cplusplus
8487 extern "C"
8488 #endif
8489 /* We use char because int might match the return type of a gcc2
8490    builtin and then its argument prototype would still apply.  */
8491 char dld_link ();
8492 int
8493 main ()
8494 {
8495 dld_link ();
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502   (eval $ac_link) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } &&
8506          { ac_try='test -s conftest$ac_exeext'
8507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508   (eval $ac_try) 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; }; then
8512   ac_cv_lib_dld_dld_link=yes
8513 else
8514   echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 ac_cv_lib_dld_dld_link=no
8518 fi
8519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8520 LIBS=$ac_check_lib_save_LIBS
8521 fi
8522 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8523 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8524 if test $ac_cv_lib_dld_dld_link = yes; then
8525   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8526 fi
8527
8528
8529 fi
8530
8531
8532 fi
8533
8534
8535 fi
8536
8537
8538 fi
8539
8540
8541 fi
8542
8543     ;;
8544   esac
8545
8546   if test "x$lt_cv_dlopen" != xno; then
8547     enable_dlopen=yes
8548   else
8549     enable_dlopen=no
8550   fi
8551
8552   case $lt_cv_dlopen in
8553   dlopen)
8554     save_CPPFLAGS="$CPPFLAGS"
8555     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8556
8557     save_LDFLAGS="$LDFLAGS"
8558     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8559
8560     save_LIBS="$LIBS"
8561     LIBS="$lt_cv_dlopen_libs $LIBS"
8562
8563     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8564 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8565 if test "${lt_cv_dlopen_self+set}" = set; then
8566   echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568           if test "$cross_compiling" = yes; then :
8569   lt_cv_dlopen_self=cross
8570 else
8571   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8572   lt_status=$lt_dlunknown
8573   cat > conftest.$ac_ext <<EOF
8574 #line 8574 "configure"
8575 #include "confdefs.h"
8576
8577 #if HAVE_DLFCN_H
8578 #include <dlfcn.h>
8579 #endif
8580
8581 #include <stdio.h>
8582
8583 #ifdef RTLD_GLOBAL
8584 #  define LT_DLGLOBAL           RTLD_GLOBAL
8585 #else
8586 #  ifdef DL_GLOBAL
8587 #    define LT_DLGLOBAL         DL_GLOBAL
8588 #  else
8589 #    define LT_DLGLOBAL         0
8590 #  endif
8591 #endif
8592
8593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8594    find out it does not work in some platform. */
8595 #ifndef LT_DLLAZY_OR_NOW
8596 #  ifdef RTLD_LAZY
8597 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8598 #  else
8599 #    ifdef DL_LAZY
8600 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8601 #    else
8602 #      ifdef RTLD_NOW
8603 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8604 #      else
8605 #        ifdef DL_NOW
8606 #          define LT_DLLAZY_OR_NOW      DL_NOW
8607 #        else
8608 #          define LT_DLLAZY_OR_NOW      0
8609 #        endif
8610 #      endif
8611 #    endif
8612 #  endif
8613 #endif
8614
8615 #ifdef __cplusplus
8616 extern "C" void exit (int);
8617 #endif
8618
8619 void fnord() { int i=42;}
8620 int main ()
8621 {
8622   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8623   int status = $lt_dlunknown;
8624
8625   if (self)
8626     {
8627       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8628       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8629       /* dlclose (self); */
8630     }
8631
8632     exit (status);
8633 }
8634 EOF
8635   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636   (eval $ac_link) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8640     (./conftest; exit; ) 2>/dev/null
8641     lt_status=$?
8642     case x$lt_status in
8643       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8644       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8645       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8646     esac
8647   else :
8648     # compilation failed
8649     lt_cv_dlopen_self=no
8650   fi
8651 fi
8652 rm -fr conftest*
8653
8654
8655 fi
8656 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8657 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8658
8659     if test "x$lt_cv_dlopen_self" = xyes; then
8660       LDFLAGS="$LDFLAGS $link_static_flag"
8661       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8662 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8663 if test "${lt_cv_dlopen_self_static+set}" = set; then
8664   echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666           if test "$cross_compiling" = yes; then :
8667   lt_cv_dlopen_self_static=cross
8668 else
8669   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8670   lt_status=$lt_dlunknown
8671   cat > conftest.$ac_ext <<EOF
8672 #line 8672 "configure"
8673 #include "confdefs.h"
8674
8675 #if HAVE_DLFCN_H
8676 #include <dlfcn.h>
8677 #endif
8678
8679 #include <stdio.h>
8680
8681 #ifdef RTLD_GLOBAL
8682 #  define LT_DLGLOBAL           RTLD_GLOBAL
8683 #else
8684 #  ifdef DL_GLOBAL
8685 #    define LT_DLGLOBAL         DL_GLOBAL
8686 #  else
8687 #    define LT_DLGLOBAL         0
8688 #  endif
8689 #endif
8690
8691 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8692    find out it does not work in some platform. */
8693 #ifndef LT_DLLAZY_OR_NOW
8694 #  ifdef RTLD_LAZY
8695 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8696 #  else
8697 #    ifdef DL_LAZY
8698 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8699 #    else
8700 #      ifdef RTLD_NOW
8701 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8702 #      else
8703 #        ifdef DL_NOW
8704 #          define LT_DLLAZY_OR_NOW      DL_NOW
8705 #        else
8706 #          define LT_DLLAZY_OR_NOW      0
8707 #        endif
8708 #      endif
8709 #    endif
8710 #  endif
8711 #endif
8712
8713 #ifdef __cplusplus
8714 extern "C" void exit (int);
8715 #endif
8716
8717 void fnord() { int i=42;}
8718 int main ()
8719 {
8720   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8721   int status = $lt_dlunknown;
8722
8723   if (self)
8724     {
8725       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8726       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8727       /* dlclose (self); */
8728     }
8729
8730     exit (status);
8731 }
8732 EOF
8733   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734   (eval $ac_link) 2>&5
8735   ac_status=$?
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8738     (./conftest; exit; ) 2>/dev/null
8739     lt_status=$?
8740     case x$lt_status in
8741       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8742       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8743       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8744     esac
8745   else :
8746     # compilation failed
8747     lt_cv_dlopen_self_static=no
8748   fi
8749 fi
8750 rm -fr conftest*
8751
8752
8753 fi
8754 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8755 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8756     fi
8757
8758     CPPFLAGS="$save_CPPFLAGS"
8759     LDFLAGS="$save_LDFLAGS"
8760     LIBS="$save_LIBS"
8761     ;;
8762   esac
8763
8764   case $lt_cv_dlopen_self in
8765   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8766   *) enable_dlopen_self=unknown ;;
8767   esac
8768
8769   case $lt_cv_dlopen_self_static in
8770   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8771   *) enable_dlopen_self_static=unknown ;;
8772   esac
8773 fi
8774
8775
8776 # Report which librarie types wil actually be built
8777 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8778 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8779 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8780 echo "${ECHO_T}$can_build_shared" >&6
8781
8782 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8783 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8784 test "$can_build_shared" = "no" && enable_shared=no
8785
8786 # On AIX, shared libraries and static libraries use the same namespace, and
8787 # are all built from PIC.
8788 case "$host_os" in
8789 aix3*)
8790   test "$enable_shared" = yes && enable_static=no
8791   if test -n "$RANLIB"; then
8792     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8793     postinstall_cmds='$RANLIB $lib'
8794   fi
8795   ;;
8796
8797 aix4*)
8798   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8799     test "$enable_shared" = yes && enable_static=no
8800   fi
8801   ;;
8802   darwin* | rhapsody*)
8803   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8804     archive_cmds_need_lc=no
8805     case "$host_os" in
8806     rhapsody* | darwin1.[012])
8807       allow_undefined_flag='-undefined suppress'
8808       ;;
8809     *) # Darwin 1.3 on
8810       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8811       ;;
8812     esac
8813     # FIXME: Relying on posixy $() will cause problems for
8814     #        cross-compilation, but unfortunately the echo tests do not
8815     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8816     #          `"' quotes if we put them in here... so don't!
8817                 output_verbose_link_cmd='echo'
8818     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8819     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8820     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8821                   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}'
8822                   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}'
8823     hardcode_direct=no
8824     hardcode_automatic=yes
8825     hardcode_shlibpath_var=unsupported
8826     whole_archive_flag_spec='-all_load $convenience'
8827     link_all_deplibs=yes
8828     fi
8829     ;;
8830 esac
8831 echo "$as_me:$LINENO: result: $enable_shared" >&5
8832 echo "${ECHO_T}$enable_shared" >&6
8833
8834 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8835 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8836 # Make sure either enable_shared or enable_static is yes.
8837 test "$enable_shared" = yes || enable_static=yes
8838 echo "$as_me:$LINENO: result: $enable_static" >&5
8839 echo "${ECHO_T}$enable_static" >&6
8840
8841 # The else clause should only fire when bootstrapping the
8842 # libtool distribution, otherwise you forgot to ship ltmain.sh
8843 # with your package, and you will get complaints that there are
8844 # no rules to generate ltmain.sh.
8845 if test -f "$ltmain"; then
8846   # See if we are running on zsh, and set the options which allow our commands through
8847   # without removal of \ escapes.
8848   if test -n "${ZSH_VERSION+set}" ; then
8849     setopt NO_GLOB_SUBST
8850   fi
8851   # Now quote all the things that may contain metacharacters while being
8852   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8853   # variables and quote the copies for generation of the libtool script.
8854   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8855     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8856     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8857     deplibs_check_method reload_flag reload_cmds need_locks \
8858     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8859     lt_cv_sys_global_symbol_to_c_name_address \
8860     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8861     old_postinstall_cmds old_postuninstall_cmds \
8862     compiler \
8863     CC \
8864     LD \
8865     lt_prog_compiler_wl \
8866     lt_prog_compiler_pic \
8867     lt_prog_compiler_static \
8868     lt_prog_compiler_no_builtin_flag \
8869     export_dynamic_flag_spec \
8870     thread_safe_flag_spec \
8871     whole_archive_flag_spec \
8872     enable_shared_with_static_runtimes \
8873     old_archive_cmds \
8874     old_archive_from_new_cmds \
8875     predep_objects \
8876     postdep_objects \
8877     predeps \
8878     postdeps \
8879     compiler_lib_search_path \
8880     archive_cmds \
8881     archive_expsym_cmds \
8882     postinstall_cmds \
8883     postuninstall_cmds \
8884     old_archive_from_expsyms_cmds \
8885     allow_undefined_flag \
8886     no_undefined_flag \
8887     export_symbols_cmds \
8888     hardcode_libdir_flag_spec \
8889     hardcode_libdir_flag_spec_ld \
8890     hardcode_libdir_separator \
8891     hardcode_automatic \
8892     module_cmds \
8893     module_expsym_cmds \
8894     lt_cv_prog_compiler_c_o \
8895     exclude_expsyms \
8896     include_expsyms; do
8897
8898     case $var in
8899     old_archive_cmds | \
8900     old_archive_from_new_cmds | \
8901     archive_cmds | \
8902     archive_expsym_cmds | \
8903     module_cmds | \
8904     module_expsym_cmds | \
8905     old_archive_from_expsyms_cmds | \
8906     export_symbols_cmds | \
8907     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8908     postinstall_cmds | postuninstall_cmds | \
8909     old_postinstall_cmds | old_postuninstall_cmds | \
8910     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8911       # Double-quote double-evaled strings.
8912       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8913       ;;
8914     *)
8915       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8916       ;;
8917     esac
8918   done
8919
8920   case $lt_echo in
8921   *'\$0 --fallback-echo"')
8922     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8923     ;;
8924   esac
8925
8926 cfgfile="${ofile}T"
8927   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8928   $rm -f "$cfgfile"
8929   { echo "$as_me:$LINENO: creating $ofile" >&5
8930 echo "$as_me: creating $ofile" >&6;}
8931
8932   cat <<__EOF__ >> "$cfgfile"
8933 #! $SHELL
8934
8935 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8936 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8937 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8938 #
8939 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8940 # Free Software Foundation, Inc.
8941 #
8942 # This file is part of GNU Libtool:
8943 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8944 #
8945 # This program is free software; you can redistribute it and/or modify
8946 # it under the terms of the GNU General Public License as published by
8947 # the Free Software Foundation; either version 2 of the License, or
8948 # (at your option) any later version.
8949 #
8950 # This program is distributed in the hope that it will be useful, but
8951 # WITHOUT ANY WARRANTY; without even the implied warranty of
8952 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8953 # General Public License for more details.
8954 #
8955 # You should have received a copy of the GNU General Public License
8956 # along with this program; if not, write to the Free Software
8957 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8958 #
8959 # As a special exception to the GNU General Public License, if you
8960 # distribute this file as part of a program that contains a
8961 # configuration script generated by Autoconf, you may include it under
8962 # the same distribution terms that you use for the rest of that program.
8963
8964 # A sed program that does not truncate output.
8965 SED=$lt_SED
8966
8967 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8968 Xsed="$SED -e s/^X//"
8969
8970 # The HP-UX ksh and POSIX shell print the target directory to stdout
8971 # if CDPATH is set.
8972 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8973
8974 # The names of the tagged configurations supported by this script.
8975 available_tags=
8976
8977 # ### BEGIN LIBTOOL CONFIG
8978
8979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8980
8981 # Shell to use when invoking shell scripts.
8982 SHELL=$lt_SHELL
8983
8984 # Whether or not to build shared libraries.
8985 build_libtool_libs=$enable_shared
8986
8987 # Whether or not to build static libraries.
8988 build_old_libs=$enable_static
8989
8990 # Whether or not to add -lc for building shared libraries.
8991 build_libtool_need_lc=$archive_cmds_need_lc
8992
8993 # Whether or not to disallow shared libs when runtime libs are static
8994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8995
8996 # Whether or not to optimize for fast installation.
8997 fast_install=$enable_fast_install
8998
8999 # The host system.
9000 host_alias=$host_alias
9001 host=$host
9002
9003 # An echo program that does not interpret backslashes.
9004 echo=$lt_echo
9005
9006 # The archiver.
9007 AR=$lt_AR
9008 AR_FLAGS=$lt_AR_FLAGS
9009
9010 # A C compiler.
9011 LTCC=$lt_LTCC
9012
9013 # A language-specific compiler.
9014 CC=$lt_compiler
9015
9016 # Is the compiler the GNU C compiler?
9017 with_gcc=$GCC
9018
9019 # An ERE matcher.
9020 EGREP=$lt_EGREP
9021
9022 # The linker used to build libraries.
9023 LD=$lt_LD
9024
9025 # Whether we need hard or soft links.
9026 LN_S=$lt_LN_S
9027
9028 # A BSD-compatible nm program.
9029 NM=$lt_NM
9030
9031 # A symbol stripping program
9032 STRIP=$STRIP
9033
9034 # Used to examine libraries when file_magic_cmd begins "file"
9035 MAGIC_CMD=$MAGIC_CMD
9036
9037 # Used on cygwin: DLL creation program.
9038 DLLTOOL="$DLLTOOL"
9039
9040 # Used on cygwin: object dumper.
9041 OBJDUMP="$OBJDUMP"
9042
9043 # Used on cygwin: assembler.
9044 AS="$AS"
9045
9046 # The name of the directory that contains temporary libtool files.
9047 objdir=$objdir
9048
9049 # How to create reloadable object files.
9050 reload_flag=$lt_reload_flag
9051 reload_cmds=$lt_reload_cmds
9052
9053 # How to pass a linker flag through the compiler.
9054 wl=$lt_lt_prog_compiler_wl
9055
9056 # Object file suffix (normally "o").
9057 objext="$ac_objext"
9058
9059 # Old archive suffix (normally "a").
9060 libext="$libext"
9061
9062 # Shared library suffix (normally ".so").
9063 shrext='$shrext'
9064
9065 # Executable file suffix (normally "").
9066 exeext="$exeext"
9067
9068 # Additional compiler flags for building library objects.
9069 pic_flag=$lt_lt_prog_compiler_pic
9070 pic_mode=$pic_mode
9071
9072 # What is the maximum length of a command?
9073 max_cmd_len=$lt_cv_sys_max_cmd_len
9074
9075 # Does compiler simultaneously support -c and -o options?
9076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9077
9078 # Must we lock files when doing compilation ?
9079 need_locks=$lt_need_locks
9080
9081 # Do we need the lib prefix for modules?
9082 need_lib_prefix=$need_lib_prefix
9083
9084 # Do we need a version for libraries?
9085 need_version=$need_version
9086
9087 # Whether dlopen is supported.
9088 dlopen_support=$enable_dlopen
9089
9090 # Whether dlopen of programs is supported.
9091 dlopen_self=$enable_dlopen_self
9092
9093 # Whether dlopen of statically linked programs is supported.
9094 dlopen_self_static=$enable_dlopen_self_static
9095
9096 # Compiler flag to prevent dynamic linking.
9097 link_static_flag=$lt_lt_prog_compiler_static
9098
9099 # Compiler flag to turn off builtin functions.
9100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9101
9102 # Compiler flag to allow reflexive dlopens.
9103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9104
9105 # Compiler flag to generate shared objects directly from archives.
9106 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9107
9108 # Compiler flag to generate thread-safe objects.
9109 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9110
9111 # Library versioning type.
9112 version_type=$version_type
9113
9114 # Format of library name prefix.
9115 libname_spec=$lt_libname_spec
9116
9117 # List of archive names.  First name is the real one, the rest are links.
9118 # The last name is the one that the linker finds with -lNAME.
9119 library_names_spec=$lt_library_names_spec
9120
9121 # The coded name of the library, if different from the real name.
9122 soname_spec=$lt_soname_spec
9123
9124 # Commands used to build and install an old-style archive.
9125 RANLIB=$lt_RANLIB
9126 old_archive_cmds=$lt_old_archive_cmds
9127 old_postinstall_cmds=$lt_old_postinstall_cmds
9128 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9129
9130 # Create an old-style archive from a shared archive.
9131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9132
9133 # Create a temporary old-style archive to link instead of a shared archive.
9134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9135
9136 # Commands used to build and install a shared archive.
9137 archive_cmds=$lt_archive_cmds
9138 archive_expsym_cmds=$lt_archive_expsym_cmds
9139 postinstall_cmds=$lt_postinstall_cmds
9140 postuninstall_cmds=$lt_postuninstall_cmds
9141
9142 # Commands used to build a loadable module (assumed same as above if empty)
9143 module_cmds=$lt_module_cmds
9144 module_expsym_cmds=$lt_module_expsym_cmds
9145
9146 # Commands to strip libraries.
9147 old_striplib=$lt_old_striplib
9148 striplib=$lt_striplib
9149
9150 # Dependencies to place before the objects being linked to create a
9151 # shared library.
9152 predep_objects=$lt_predep_objects
9153
9154 # Dependencies to place after the objects being linked to create a
9155 # shared library.
9156 postdep_objects=$lt_postdep_objects
9157
9158 # Dependencies to place before the objects being linked to create a
9159 # shared library.
9160 predeps=$lt_predeps
9161
9162 # Dependencies to place after the objects being linked to create a
9163 # shared library.
9164 postdeps=$lt_postdeps
9165
9166 # The library search path used internally by the compiler when linking
9167 # a shared library.
9168 compiler_lib_search_path=$lt_compiler_lib_search_path
9169
9170 # Method to check whether dependent libraries are shared objects.
9171 deplibs_check_method=$lt_deplibs_check_method
9172
9173 # Command to use when deplibs_check_method == file_magic.
9174 file_magic_cmd=$lt_file_magic_cmd
9175
9176 # Flag that allows shared libraries with undefined symbols to be built.
9177 allow_undefined_flag=$lt_allow_undefined_flag
9178
9179 # Flag that forces no undefined symbols.
9180 no_undefined_flag=$lt_no_undefined_flag
9181
9182 # Commands used to finish a libtool library installation in a directory.
9183 finish_cmds=$lt_finish_cmds
9184
9185 # Same as above, but a single script fragment to be evaled but not shown.
9186 finish_eval=$lt_finish_eval
9187
9188 # Take the output of nm and produce a listing of raw symbols and C names.
9189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9190
9191 # Transform the output of nm in a proper C declaration
9192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9193
9194 # Transform the output of nm in a C name address pair
9195 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9196
9197 # This is the shared library runtime path variable.
9198 runpath_var=$runpath_var
9199
9200 # This is the shared library path variable.
9201 shlibpath_var=$shlibpath_var
9202
9203 # Is shlibpath searched before the hard-coded library search path?
9204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9205
9206 # How to hardcode a shared library path into an executable.
9207 hardcode_action=$hardcode_action
9208
9209 # Whether we should hardcode library paths into libraries.
9210 hardcode_into_libs=$hardcode_into_libs
9211
9212 # Flag to hardcode \$libdir into a binary during linking.
9213 # This must work even if \$libdir does not exist.
9214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9215
9216 # If ld is used when linking, flag to hardcode \$libdir into
9217 # a binary during linking. This must work even if \$libdir does
9218 # not exist.
9219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9220
9221 # Whether we need a single -rpath flag with a separated argument.
9222 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9223
9224 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9225 # resulting binary.
9226 hardcode_direct=$hardcode_direct
9227
9228 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9229 # resulting binary.
9230 hardcode_minus_L=$hardcode_minus_L
9231
9232 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9233 # the resulting binary.
9234 hardcode_shlibpath_var=$hardcode_shlibpath_var
9235
9236 # Set to yes if building a shared library automatically hardcodes DIR into the library
9237 # and all subsequent libraries and executables linked against it.
9238 hardcode_automatic=$hardcode_automatic
9239
9240 # Variables whose values should be saved in libtool wrapper scripts and
9241 # restored at relink time.
9242 variables_saved_for_relink="$variables_saved_for_relink"
9243
9244 # Whether libtool must link a program against all its dependency libraries.
9245 link_all_deplibs=$link_all_deplibs
9246
9247 # Compile-time system search path for libraries
9248 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9249
9250 # Run-time system search path for libraries
9251 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9252
9253 # Fix the shell variable \$srcfile for the compiler.
9254 fix_srcfile_path="$fix_srcfile_path"
9255
9256 # Set to yes if exported symbols are required.
9257 always_export_symbols=$always_export_symbols
9258
9259 # The commands to list exported symbols.
9260 export_symbols_cmds=$lt_export_symbols_cmds
9261
9262 # The commands to extract the exported symbol list from a shared archive.
9263 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9264
9265 # Symbols that should not be listed in the preloaded symbols.
9266 exclude_expsyms=$lt_exclude_expsyms
9267
9268 # Symbols that must always be exported.
9269 include_expsyms=$lt_include_expsyms
9270
9271 # ### END LIBTOOL CONFIG
9272
9273 __EOF__
9274
9275
9276   case $host_os in
9277   aix3*)
9278     cat <<\EOF >> "$cfgfile"
9279
9280 # AIX sometimes has problems with the GCC collect2 program.  For some
9281 # reason, if we set the COLLECT_NAMES environment variable, the problems
9282 # vanish in a puff of smoke.
9283 if test "X${COLLECT_NAMES+set}" != Xset; then
9284   COLLECT_NAMES=
9285   export COLLECT_NAMES
9286 fi
9287 EOF
9288     ;;
9289   esac
9290
9291   # We use sed instead of cat because bash on DJGPP gets confused if
9292   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9293   # text mode, it properly converts lines to CR/LF.  This bash problem
9294   # is reportedly fixed, but why not run on old versions too?
9295   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9296
9297   mv -f "$cfgfile" "$ofile" || \
9298     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9299   chmod +x "$ofile"
9300
9301 else
9302   # If there is no Makefile yet, we rely on a make rule to execute
9303   # `config.status --recheck' to rerun these tests and create the
9304   # libtool script then.
9305   test -f Makefile && make "$ltmain"
9306 fi
9307
9308
9309 ac_ext=c
9310 ac_cpp='$CPP $CPPFLAGS'
9311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9314
9315 CC="$lt_save_CC"
9316
9317
9318 # Check whether --with-tags or --without-tags was given.
9319 if test "${with_tags+set}" = set; then
9320   withval="$with_tags"
9321   tagnames="$withval"
9322 fi;
9323
9324 if test -f "$ltmain" && test -n "$tagnames"; then
9325   if test ! -f "${ofile}"; then
9326     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9327 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9328   fi
9329
9330   if test -z "$LTCC"; then
9331     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9332     if test -z "$LTCC"; then
9333       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9334 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9335     else
9336       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9337 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9338     fi
9339   fi
9340
9341   # Extract list of available tagged configurations in $ofile.
9342   # Note that this assumes the entire list is on one line.
9343   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9344
9345   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9346   for tagname in $tagnames; do
9347     IFS="$lt_save_ifs"
9348     # Check whether tagname contains only valid characters
9349     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9350     "") ;;
9351     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9352 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9353    { (exit 1); exit 1; }; }
9354         ;;
9355     esac
9356
9357     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9358     then
9359       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9360 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9361    { (exit 1); exit 1; }; }
9362     fi
9363
9364     # Update the list of available tags.
9365     if test -n "$tagname"; then
9366       echo appending configuration tag \"$tagname\" to $ofile
9367
9368       case $tagname in
9369       CXX)
9370         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9371           ac_ext=cc
9372 ac_cpp='$CXXCPP $CPPFLAGS'
9373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9376
9377
9378
9379
9380 archive_cmds_need_lc_CXX=no
9381 allow_undefined_flag_CXX=
9382 always_export_symbols_CXX=no
9383 archive_expsym_cmds_CXX=
9384 export_dynamic_flag_spec_CXX=
9385 hardcode_direct_CXX=no
9386 hardcode_libdir_flag_spec_CXX=
9387 hardcode_libdir_flag_spec_ld_CXX=
9388 hardcode_libdir_separator_CXX=
9389 hardcode_minus_L_CXX=no
9390 hardcode_automatic_CXX=no
9391 module_cmds_CXX=
9392 module_expsym_cmds_CXX=
9393 link_all_deplibs_CXX=unknown
9394 old_archive_cmds_CXX=$old_archive_cmds
9395 no_undefined_flag_CXX=
9396 whole_archive_flag_spec_CXX=
9397 enable_shared_with_static_runtimes_CXX=no
9398
9399 # Dependencies to place before and after the object being linked:
9400 predep_objects_CXX=
9401 postdep_objects_CXX=
9402 predeps_CXX=
9403 postdeps_CXX=
9404 compiler_lib_search_path_CXX=
9405
9406 # Source file extension for C++ test sources.
9407 ac_ext=cc
9408
9409 # Object file extension for compiled C++ test sources.
9410 objext=o
9411 objext_CXX=$objext
9412
9413 # Code to be used in simple compile tests
9414 lt_simple_compile_test_code="int some_variable = 0;\n"
9415
9416 # Code to be used in simple link tests
9417 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9418
9419 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9420
9421 # If no C compiler was specified, use CC.
9422 LTCC=${LTCC-"$CC"}
9423
9424 # Allow CC to be a program name with arguments.
9425 compiler=$CC
9426
9427
9428 # Allow CC to be a program name with arguments.
9429 lt_save_CC=$CC
9430 lt_save_LD=$LD
9431 lt_save_GCC=$GCC
9432 GCC=$GXX
9433 lt_save_with_gnu_ld=$with_gnu_ld
9434 lt_save_path_LD=$lt_cv_path_LD
9435 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9436   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9437 else
9438   unset lt_cv_prog_gnu_ld
9439 fi
9440 if test -n "${lt_cv_path_LDCXX+set}"; then
9441   lt_cv_path_LD=$lt_cv_path_LDCXX
9442 else
9443   unset lt_cv_path_LD
9444 fi
9445 test -z "${LDCXX+set}" || LD=$LDCXX
9446 CC=${CXX-"c++"}
9447 compiler=$CC
9448 compiler_CXX=$CC
9449 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9450
9451 # We don't want -fno-exception wen compiling C++ code, so set the
9452 # no_builtin_flag separately
9453 if test "$GXX" = yes; then
9454   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9455 else
9456   lt_prog_compiler_no_builtin_flag_CXX=
9457 fi
9458
9459 if test "$GXX" = yes; then
9460   # Set up default GNU C++ configuration
9461
9462
9463 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9464 if test "${with_gnu_ld+set}" = set; then
9465   withval="$with_gnu_ld"
9466   test "$withval" = no || with_gnu_ld=yes
9467 else
9468   with_gnu_ld=no
9469 fi;
9470 ac_prog=ld
9471 if test "$GCC" = yes; then
9472   # Check if gcc -print-prog-name=ld gives a path.
9473   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9474 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9475   case $host in
9476   *-*-mingw*)
9477     # gcc leaves a trailing carriage return which upsets mingw
9478     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9479   *)
9480     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9481   esac
9482   case $ac_prog in
9483     # Accept absolute paths.
9484     [\\/]* | ?:[\\/]*)
9485       re_direlt='/[^/][^/]*/\.\./'
9486       # Canonicalize the path of ld
9487       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9488       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9489         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9490       done
9491       test -z "$LD" && LD="$ac_prog"
9492       ;;
9493   "")
9494     # If it fails, then pretend we aren't using GCC.
9495     ac_prog=ld
9496     ;;
9497   *)
9498     # If it is relative, then search for the first ld in PATH.
9499     with_gnu_ld=unknown
9500     ;;
9501   esac
9502 elif test "$with_gnu_ld" = yes; then
9503   echo "$as_me:$LINENO: checking for GNU ld" >&5
9504 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9505 else
9506   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9507 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9508 fi
9509 if test "${lt_cv_path_LD+set}" = set; then
9510   echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512   if test -z "$LD"; then
9513   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9514   for ac_dir in $PATH; do
9515     IFS="$lt_save_ifs"
9516     test -z "$ac_dir" && ac_dir=.
9517     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9518       lt_cv_path_LD="$ac_dir/$ac_prog"
9519       # Check to see if the program is GNU ld.  I'd rather use --version,
9520       # but apparently some GNU ld's only accept -v.
9521       # Break only if it was the GNU/non-GNU ld that we prefer.
9522       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9523       *GNU* | *'with BFD'*)
9524         test "$with_gnu_ld" != no && break
9525         ;;
9526       *)
9527         test "$with_gnu_ld" != yes && break
9528         ;;
9529       esac
9530     fi
9531   done
9532   IFS="$lt_save_ifs"
9533 else
9534   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9535 fi
9536 fi
9537
9538 LD="$lt_cv_path_LD"
9539 if test -n "$LD"; then
9540   echo "$as_me:$LINENO: result: $LD" >&5
9541 echo "${ECHO_T}$LD" >&6
9542 else
9543   echo "$as_me:$LINENO: result: no" >&5
9544 echo "${ECHO_T}no" >&6
9545 fi
9546 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9547 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9548    { (exit 1); exit 1; }; }
9549 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9550 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9551 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9555 case `"$LD" -v 2>&1 </dev/null` in
9556 *GNU* | *'with BFD'*)
9557   lt_cv_prog_gnu_ld=yes
9558   ;;
9559 *)
9560   lt_cv_prog_gnu_ld=no
9561   ;;
9562 esac
9563 fi
9564 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9565 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9566 with_gnu_ld=$lt_cv_prog_gnu_ld
9567
9568
9569
9570   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9571   # archiving commands below assume that GNU ld is being used.
9572   if test "$with_gnu_ld" = yes; then
9573     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9574     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'
9575
9576     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9577     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9578
9579     # If archive_cmds runs LD, not CC, wlarc should be empty
9580     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9581     #     investigate it a little bit more. (MM)
9582     wlarc='${wl}'
9583
9584     # ancient GNU ld didn't support --whole-archive et. al.
9585     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9586         grep 'no-whole-archive' > /dev/null; then
9587       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9588     else
9589       whole_archive_flag_spec_CXX=
9590     fi
9591   else
9592     with_gnu_ld=no
9593     wlarc=
9594
9595     # A generic and very simple default shared library creation
9596     # command for GNU C++ for the case where it uses the native
9597     # linker, instead of GNU ld.  If possible, this setting should
9598     # overridden to take advantage of the native linker features on
9599     # the platform it is being used on.
9600     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9601   fi
9602
9603   # Commands to make compiler produce verbose output that lists
9604   # what "hidden" libraries, object files and flags are used when
9605   # linking a shared library.
9606   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9607
9608 else
9609   GXX=no
9610   with_gnu_ld=no
9611   wlarc=
9612 fi
9613
9614 # PORTME: fill in a description of your system's C++ link characteristics
9615 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9617 ld_shlibs_CXX=yes
9618 case $host_os in
9619   aix3*)
9620     # FIXME: insert proper C++ library support
9621     ld_shlibs_CXX=no
9622     ;;
9623   aix4* | aix5*)
9624     if test "$host_cpu" = ia64; then
9625       # On IA64, the linker does run time linking by default, so we don't
9626       # have to do anything special.
9627       aix_use_runtimelinking=no
9628       exp_sym_flag='-Bexport'
9629       no_entry_flag=""
9630     else
9631       aix_use_runtimelinking=no
9632
9633       # Test if we are trying to use run time linking or normal
9634       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9635       # need to do runtime linking.
9636       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9637         for ld_flag in $LDFLAGS; do
9638           case $ld_flag in
9639           *-brtl*)
9640             aix_use_runtimelinking=yes
9641             break
9642             ;;
9643           esac
9644         done
9645       esac
9646
9647       exp_sym_flag='-bexport'
9648       no_entry_flag='-bnoentry'
9649     fi
9650
9651     # When large executables or shared objects are built, AIX ld can
9652     # have problems creating the table of contents.  If linking a library
9653     # or program results in "error TOC overflow" add -mminimal-toc to
9654     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9655     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9656
9657     archive_cmds_CXX=''
9658     hardcode_direct_CXX=yes
9659     hardcode_libdir_separator_CXX=':'
9660     link_all_deplibs_CXX=yes
9661
9662     if test "$GXX" = yes; then
9663       case $host_os in aix4.012|aix4.012.*)
9664       # We only want to do this on AIX 4.2 and lower, the check
9665       # below for broken collect2 doesn't work under 4.3+
9666         collect2name=`${CC} -print-prog-name=collect2`
9667         if test -f "$collect2name" && \
9668            strings "$collect2name" | grep resolve_lib_name >/dev/null
9669         then
9670           # We have reworked collect2
9671           hardcode_direct_CXX=yes
9672         else
9673           # We have old collect2
9674           hardcode_direct_CXX=unsupported
9675           # It fails to find uninstalled libraries when the uninstalled
9676           # path is not listed in the libpath.  Setting hardcode_minus_L
9677           # to unsupported forces relinking
9678           hardcode_minus_L_CXX=yes
9679           hardcode_libdir_flag_spec_CXX='-L$libdir'
9680           hardcode_libdir_separator_CXX=
9681         fi
9682       esac
9683       shared_flag='-shared'
9684     else
9685       # not using gcc
9686       if test "$host_cpu" = ia64; then
9687         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9688         # chokes on -Wl,-G. The following line is correct:
9689         shared_flag='-G'
9690       else
9691         if test "$aix_use_runtimelinking" = yes; then
9692           shared_flag='${wl}-G'
9693         else
9694           shared_flag='${wl}-bM:SRE'
9695         fi
9696       fi
9697     fi
9698
9699     # It seems that -bexpall does not export symbols beginning with
9700     # underscore (_), so it is better to generate a list of symbols to export.
9701     always_export_symbols_CXX=yes
9702     if test "$aix_use_runtimelinking" = yes; then
9703       # Warning - without using the other runtime loading flags (-brtl),
9704       # -berok will link without error, but may produce a broken library.
9705       allow_undefined_flag_CXX='-berok'
9706       # Determine the default libpath from the value encoded in an empty executable.
9707       cat >conftest.$ac_ext <<_ACEOF
9708 #line $LINENO "configure"
9709 /* confdefs.h.  */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h.  */
9714
9715 int
9716 main ()
9717 {
9718
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } &&
9729          { ac_try='test -s conftest$ac_exeext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735
9736 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9737 }'`
9738 # Check for a 64-bit object if we didn't find anything.
9739 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; }
9740 }'`; fi
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 fi
9746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9748
9749       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9750
9751       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"
9752      else
9753       if test "$host_cpu" = ia64; then
9754         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9755         allow_undefined_flag_CXX="-z nodefs"
9756         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"
9757       else
9758         # Determine the default libpath from the value encoded in an empty executable.
9759         cat >conftest.$ac_ext <<_ACEOF
9760 #line $LINENO "configure"
9761 /* confdefs.h.  */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h.  */
9766
9767 int
9768 main ()
9769 {
9770
9771   ;
9772   return 0;
9773 }
9774 _ACEOF
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777   (eval $ac_link) 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); } &&
9781          { ac_try='test -s conftest$ac_exeext'
9782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783   (eval $ac_try) 2>&5
9784   ac_status=$?
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); }; }; then
9787
9788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9789 }'`
9790 # Check for a 64-bit object if we didn't find anything.
9791 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; }
9792 }'`; fi
9793 else
9794   echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9796
9797 fi
9798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9800
9801         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9802         # Warning - without using the other run time loading flags,
9803         # -berok will link without error, but may produce a broken library.
9804         no_undefined_flag_CXX=' ${wl}-bernotok'
9805         allow_undefined_flag_CXX=' ${wl}-berok'
9806         # -bexpall does not export symbols beginning with underscore (_)
9807         always_export_symbols_CXX=yes
9808         # Exported symbols can be pulled into shared objects from archives
9809         whole_archive_flag_spec_CXX=' '
9810         archive_cmds_need_lc_CXX=yes
9811         # This is similar to how AIX traditionally builds it's shared libraries.
9812         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'
9813       fi
9814     fi
9815     ;;
9816   chorus*)
9817     case $cc_basename in
9818       *)
9819         # FIXME: insert proper C++ library support
9820         ld_shlibs_CXX=no
9821         ;;
9822     esac
9823     ;;
9824
9825   cygwin* | mingw* | pw32*)
9826     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9827     # as there is no search path for DLLs.
9828     hardcode_libdir_flag_spec_CXX='-L$libdir'
9829     allow_undefined_flag_CXX=unsupported
9830     always_export_symbols_CXX=no
9831     enable_shared_with_static_runtimes_CXX=yes
9832
9833     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9834       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'
9835       # If the export-symbols file already is a .def file (1st line
9836       # is EXPORTS), use it as is; otherwise, prepend...
9837       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9838         cp $export_symbols $output_objdir/$soname.def;
9839       else
9840         echo EXPORTS > $output_objdir/$soname.def;
9841         cat $export_symbols >> $output_objdir/$soname.def;
9842       fi~
9843       $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'
9844     else
9845       ld_shlibs_CXX=no
9846     fi
9847   ;;
9848
9849   darwin* | rhapsody*)
9850    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9851     archive_cmds_need_lc_CXX=no
9852     case "$host_os" in
9853     rhapsody* | darwin1.[012])
9854       allow_undefined_flag_CXX='-undefined suppress'
9855       ;;
9856     *) # Darwin 1.3 on
9857       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9858       ;;
9859     esac
9860         lt_int_apple_cc_single_mod=no
9861         output_verbose_link_cmd='echo'
9862         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9863           lt_int_apple_cc_single_mod=yes
9864         fi
9865         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9866           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9867         else
9868         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'
9869       fi
9870       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9871
9872     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9873       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9874         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}'
9875       else
9876         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}'
9877       fi
9878         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}'
9879     hardcode_direct_CXX=no
9880     hardcode_automatic_CXX=yes
9881     hardcode_shlibpath_var_CXX=unsupported
9882     whole_archive_flag_spec_CXX='-all_load $convenience'
9883     link_all_deplibs_CXX=yes
9884    fi
9885     ;;
9886
9887   dgux*)
9888     case $cc_basename in
9889       ec++)
9890         # FIXME: insert proper C++ library support
9891         ld_shlibs_CXX=no
9892         ;;
9893       ghcx)
9894         # Green Hills C++ Compiler
9895         # FIXME: insert proper C++ library support
9896         ld_shlibs_CXX=no
9897         ;;
9898       *)
9899         # FIXME: insert proper C++ library support
9900         ld_shlibs_CXX=no
9901         ;;
9902     esac
9903     ;;
9904   freebsd12*)
9905     # C++ shared libraries reported to be fairly broken before switch to ELF
9906     ld_shlibs_CXX=no
9907     ;;
9908   freebsd-elf*)
9909     archive_cmds_need_lc_CXX=no
9910     ;;
9911   freebsd*)
9912     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9913     # conventions
9914     ld_shlibs_CXX=yes
9915     ;;
9916   gnu*)
9917     ;;
9918   hpux9*)
9919     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9920     hardcode_libdir_separator_CXX=:
9921     export_dynamic_flag_spec_CXX='${wl}-E'
9922     hardcode_direct_CXX=yes
9923     hardcode_minus_L_CXX=yes # Not in the search PATH,
9924                                 # but as the default
9925                                 # location of the library.
9926
9927     case $cc_basename in
9928     CC)
9929       # FIXME: insert proper C++ library support
9930       ld_shlibs_CXX=no
9931       ;;
9932     aCC)
9933       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'
9934       # Commands to make compiler produce verbose output that lists
9935       # what "hidden" libraries, object files and flags are used when
9936       # linking a shared library.
9937       #
9938       # There doesn't appear to be a way to prevent this compiler from
9939       # explicitly linking system object files so we need to strip them
9940       # from the output so that they don't get included in the library
9941       # dependencies.
9942       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'
9943       ;;
9944     *)
9945       if test "$GXX" = yes; then
9946         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'
9947       else
9948         # FIXME: insert proper C++ library support
9949         ld_shlibs_CXX=no
9950       fi
9951       ;;
9952     esac
9953     ;;
9954   hpux10*|hpux11*)
9955     if test $with_gnu_ld = no; then
9956       case "$host_cpu" in
9957       hppa*64*)
9958         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9959         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9960         hardcode_libdir_separator_CXX=:
9961         ;;
9962       ia64*)
9963         hardcode_libdir_flag_spec_CXX='-L$libdir'
9964         ;;
9965       *)
9966         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9967         hardcode_libdir_separator_CXX=:
9968         export_dynamic_flag_spec_CXX='${wl}-E'
9969         ;;
9970       esac
9971     fi
9972     case "$host_cpu" in
9973     hppa*64*)
9974       hardcode_direct_CXX=no
9975       hardcode_shlibpath_var_CXX=no
9976       ;;
9977     ia64*)
9978       hardcode_direct_CXX=no
9979       hardcode_shlibpath_var_CXX=no
9980       hardcode_minus_L_CXX=yes # Not in the search PATH,
9981                                               # but as the default
9982                                               # location of the library.
9983       ;;
9984     *)
9985       hardcode_direct_CXX=yes
9986       hardcode_minus_L_CXX=yes # Not in the search PATH,
9987                                               # but as the default
9988                                               # location of the library.
9989       ;;
9990     esac
9991
9992     case $cc_basename in
9993       CC)
9994         # FIXME: insert proper C++ library support
9995         ld_shlibs_CXX=no
9996         ;;
9997       aCC)
9998         case "$host_cpu" in
9999         hppa*64*|ia64*)
10000           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10001           ;;
10002         *)
10003           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10004           ;;
10005         esac
10006         # Commands to make compiler produce verbose output that lists
10007         # what "hidden" libraries, object files and flags are used when
10008         # linking a shared library.
10009         #
10010         # There doesn't appear to be a way to prevent this compiler from
10011         # explicitly linking system object files so we need to strip them
10012         # from the output so that they don't get included in the library
10013         # dependencies.
10014         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'
10015         ;;
10016       *)
10017         if test "$GXX" = yes; then
10018           if test $with_gnu_ld = no; then
10019             case "$host_cpu" in
10020             ia64*|hppa*64*)
10021               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10022               ;;
10023             *)
10024               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'
10025               ;;
10026             esac
10027           fi
10028         else
10029           # FIXME: insert proper C++ library support
10030           ld_shlibs_CXX=no
10031         fi
10032         ;;
10033     esac
10034     ;;
10035   irix5* | irix6*)
10036     case $cc_basename in
10037       CC)
10038         # SGI C++
10039         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'
10040
10041         # Archives containing C++ object files must be created using
10042         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10043         # necessary to make sure instantiated templates are included
10044         # in the archive.
10045         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10046         ;;
10047       *)
10048         if test "$GXX" = yes; then
10049           if test "$with_gnu_ld" = no; then
10050             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'
10051           else
10052             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'
10053           fi
10054         fi
10055         link_all_deplibs_CXX=yes
10056         ;;
10057     esac
10058     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10059     hardcode_libdir_separator_CXX=:
10060     ;;
10061   linux*)
10062     case $cc_basename in
10063       KCC)
10064         # Kuck and Associates, Inc. (KAI) C++ Compiler
10065
10066         # KCC will only create a shared library if the output file
10067         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10068         # to its proper name (with version) after linking.
10069         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'
10070         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'
10071         # Commands to make compiler produce verbose output that lists
10072         # what "hidden" libraries, object files and flags are used when
10073         # linking a shared library.
10074         #
10075         # There doesn't appear to be a way to prevent this compiler from
10076         # explicitly linking system object files so we need to strip them
10077         # from the output so that they don't get included in the library
10078         # dependencies.
10079         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'
10080
10081         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10082         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10083
10084         # Archives containing C++ object files must be created using
10085         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10086         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10087         ;;
10088       icpc)
10089         # Intel C++
10090         with_gnu_ld=yes
10091         archive_cmds_need_lc_CXX=no
10092         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10093         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'
10094         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10095         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10096         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10097         ;;
10098       cxx)
10099         # Compaq C++
10100         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101         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'
10102
10103         runpath_var=LD_RUN_PATH
10104         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10105         hardcode_libdir_separator_CXX=:
10106
10107         # Commands to make compiler produce verbose output that lists
10108         # what "hidden" libraries, object files and flags are used when
10109         # linking a shared library.
10110         #
10111         # There doesn't appear to be a way to prevent this compiler from
10112         # explicitly linking system object files so we need to strip them
10113         # from the output so that they don't get included in the library
10114         # dependencies.
10115         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'
10116         ;;
10117     esac
10118     ;;
10119   lynxos*)
10120     # FIXME: insert proper C++ library support
10121     ld_shlibs_CXX=no
10122     ;;
10123   m88k*)
10124     # FIXME: insert proper C++ library support
10125     ld_shlibs_CXX=no
10126     ;;
10127   mvs*)
10128     case $cc_basename in
10129       cxx)
10130         # FIXME: insert proper C++ library support
10131         ld_shlibs_CXX=no
10132         ;;
10133       *)
10134         # FIXME: insert proper C++ library support
10135         ld_shlibs_CXX=no
10136         ;;
10137     esac
10138     ;;
10139   netbsd*)
10140     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10141       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10142       wlarc=
10143       hardcode_libdir_flag_spec_CXX='-R$libdir'
10144       hardcode_direct_CXX=yes
10145       hardcode_shlibpath_var_CXX=no
10146     fi
10147     # Workaround some broken pre-1.5 toolchains
10148     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10149     ;;
10150   osf3*)
10151     case $cc_basename in
10152       KCC)
10153         # Kuck and Associates, Inc. (KAI) C++ Compiler
10154
10155         # KCC will only create a shared library if the output file
10156         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10157         # to its proper name (with version) after linking.
10158         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'
10159
10160         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10161         hardcode_libdir_separator_CXX=:
10162
10163         # Archives containing C++ object files must be created using
10164         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10165         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10166
10167         ;;
10168       RCC)
10169         # Rational C++ 2.4.1
10170         # FIXME: insert proper C++ library support
10171         ld_shlibs_CXX=no
10172         ;;
10173       cxx)
10174         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10175         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'
10176
10177         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10178         hardcode_libdir_separator_CXX=:
10179
10180         # Commands to make compiler produce verbose output that lists
10181         # what "hidden" libraries, object files and flags are used when
10182         # linking a shared library.
10183         #
10184         # There doesn't appear to be a way to prevent this compiler from
10185         # explicitly linking system object files so we need to strip them
10186         # from the output so that they don't get included in the library
10187         # dependencies.
10188         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'
10189         ;;
10190       *)
10191         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10192           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10193           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'
10194
10195           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10196           hardcode_libdir_separator_CXX=:
10197
10198           # Commands to make compiler produce verbose output that lists
10199           # what "hidden" libraries, object files and flags are used when
10200           # linking a shared library.
10201           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10202
10203         else
10204           # FIXME: insert proper C++ library support
10205           ld_shlibs_CXX=no
10206         fi
10207         ;;
10208     esac
10209     ;;
10210   osf4* | osf5*)
10211     case $cc_basename in
10212       KCC)
10213         # Kuck and Associates, Inc. (KAI) C++ Compiler
10214
10215         # KCC will only create a shared library if the output file
10216         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10217         # to its proper name (with version) after linking.
10218         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'
10219
10220         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10221         hardcode_libdir_separator_CXX=:
10222
10223         # Archives containing C++ object files must be created using
10224         # the KAI C++ compiler.
10225         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10226         ;;
10227       RCC)
10228         # Rational C++ 2.4.1
10229         # FIXME: insert proper C++ library support
10230         ld_shlibs_CXX=no
10231         ;;
10232       cxx)
10233         allow_undefined_flag_CXX=' -expect_unresolved \*'
10234         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'
10235         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10236           echo "-hidden">> $lib.exp~
10237           $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~
10238           $rm $lib.exp'
10239
10240         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10241         hardcode_libdir_separator_CXX=:
10242
10243         # Commands to make compiler produce verbose output that lists
10244         # what "hidden" libraries, object files and flags are used when
10245         # linking a shared library.
10246         #
10247         # There doesn't appear to be a way to prevent this compiler from
10248         # explicitly linking system object files so we need to strip them
10249         # from the output so that they don't get included in the library
10250         # dependencies.
10251         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'
10252         ;;
10253       *)
10254         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10255           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10256          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'
10257
10258           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10259           hardcode_libdir_separator_CXX=:
10260
10261           # Commands to make compiler produce verbose output that lists
10262           # what "hidden" libraries, object files and flags are used when
10263           # linking a shared library.
10264           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10265
10266         else
10267           # FIXME: insert proper C++ library support
10268           ld_shlibs_CXX=no
10269         fi
10270         ;;
10271     esac
10272     ;;
10273   psos*)
10274     # FIXME: insert proper C++ library support
10275     ld_shlibs_CXX=no
10276     ;;
10277   sco*)
10278     archive_cmds_need_lc_CXX=no
10279     case $cc_basename in
10280       CC)
10281         # FIXME: insert proper C++ library support
10282         ld_shlibs_CXX=no
10283         ;;
10284       *)
10285         # FIXME: insert proper C++ library support
10286         ld_shlibs_CXX=no
10287         ;;
10288     esac
10289     ;;
10290   sunos4*)
10291     case $cc_basename in
10292       CC)
10293         # Sun C++ 4.x
10294         # FIXME: insert proper C++ library support
10295         ld_shlibs_CXX=no
10296         ;;
10297       lcc)
10298         # Lucid
10299         # FIXME: insert proper C++ library support
10300         ld_shlibs_CXX=no
10301         ;;
10302       *)
10303         # FIXME: insert proper C++ library support
10304         ld_shlibs_CXX=no
10305         ;;
10306     esac
10307     ;;
10308   solaris*)
10309     case $cc_basename in
10310       CC)
10311         # Sun C++ 4.2, 5.x and Centerline C++
10312         no_undefined_flag_CXX=' -zdefs'
10313         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10314         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10315         $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'
10316
10317         hardcode_libdir_flag_spec_CXX='-R$libdir'
10318         hardcode_shlibpath_var_CXX=no
10319         case $host_os in
10320           solaris2.0-5 | solaris2.0-5.*) ;;
10321           *)
10322             # The C++ compiler is used as linker so we must use $wl
10323             # flag to pass the commands to the underlying system
10324             # linker.
10325             # Supported since Solaris 2.6 (maybe 2.5.1?)
10326             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10327             ;;
10328         esac
10329         link_all_deplibs_CXX=yes
10330
10331         # Commands to make compiler produce verbose output that lists
10332         # what "hidden" libraries, object files and flags are used when
10333         # linking a shared library.
10334         #
10335         # There doesn't appear to be a way to prevent this compiler from
10336         # explicitly linking system object files so we need to strip them
10337         # from the output so that they don't get included in the library
10338         # dependencies.
10339         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'
10340
10341         # Archives containing C++ object files must be created using
10342         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10343         # necessary to make sure instantiated templates are included
10344         # in the archive.
10345         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10346         ;;
10347       gcx)
10348         # Green Hills C++ Compiler
10349         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10350
10351         # The C++ compiler must be used to create the archive.
10352         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10353         ;;
10354       *)
10355         # GNU C++ compiler with Solaris linker
10356         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10357           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10358           if $CC --version | grep -v '^2\.7' > /dev/null; then
10359             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10360             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10361                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10362
10363             # Commands to make compiler produce verbose output that lists
10364             # what "hidden" libraries, object files and flags are used when
10365             # linking a shared library.
10366             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10367           else
10368             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10369             # platform.
10370             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10371             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10372                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10373
10374             # Commands to make compiler produce verbose output that lists
10375             # what "hidden" libraries, object files and flags are used when
10376             # linking a shared library.
10377             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10378           fi
10379
10380           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10381         fi
10382         ;;
10383     esac
10384     ;;
10385   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10386     archive_cmds_need_lc_CXX=no
10387     ;;
10388   tandem*)
10389     case $cc_basename in
10390       NCC)
10391         # NonStop-UX NCC 3.20
10392         # FIXME: insert proper C++ library support
10393         ld_shlibs_CXX=no
10394         ;;
10395       *)
10396         # FIXME: insert proper C++ library support
10397         ld_shlibs_CXX=no
10398         ;;
10399     esac
10400     ;;
10401   vxworks*)
10402     # FIXME: insert proper C++ library support
10403     ld_shlibs_CXX=no
10404     ;;
10405   *)
10406     # FIXME: insert proper C++ library support
10407     ld_shlibs_CXX=no
10408     ;;
10409 esac
10410 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10411 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10412 test "$ld_shlibs_CXX" = no && can_build_shared=no
10413
10414 GCC_CXX="$GXX"
10415 LD_CXX="$LD"
10416
10417 ## CAVEAT EMPTOR:
10418 ## There is no encapsulation within the following macros, do not change
10419 ## the running order or otherwise move them around unless you know exactly
10420 ## what you are doing...
10421
10422 cat > conftest.$ac_ext <<EOF
10423 class Foo
10424 {
10425 public:
10426   Foo (void) { a = 0; }
10427 private:
10428   int a;
10429 };
10430 EOF
10431
10432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10433   (eval $ac_compile) 2>&5
10434   ac_status=$?
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); }; then
10437   # Parse the compiler output and extract the necessary
10438   # objects, libraries and library flags.
10439
10440   # Sentinel used to keep track of whether or not we are before
10441   # the conftest object file.
10442   pre_test_object_deps_done=no
10443
10444   # The `*' in the case matches for architectures that use `case' in
10445   # $output_verbose_cmd can trigger glob expansion during the loop
10446   # eval without this substitution.
10447   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10448
10449   for p in `eval $output_verbose_link_cmd`; do
10450     case $p in
10451
10452     -L* | -R* | -l*)
10453        # Some compilers place space between "-{L,R}" and the path.
10454        # Remove the space.
10455        if test $p = "-L" \
10456           || test $p = "-R"; then
10457          prev=$p
10458          continue
10459        else
10460          prev=
10461        fi
10462
10463        if test "$pre_test_object_deps_done" = no; then
10464          case $p in
10465          -L* | -R*)
10466            # Internal compiler library paths should come after those
10467            # provided the user.  The postdeps already come after the
10468            # user supplied libs so there is no need to process them.
10469            if test -z "$compiler_lib_search_path_CXX"; then
10470              compiler_lib_search_path_CXX="${prev}${p}"
10471            else
10472              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10473            fi
10474            ;;
10475          # The "-l" case would never come before the object being
10476          # linked, so don't bother handling this case.
10477          esac
10478        else
10479          if test -z "$postdeps_CXX"; then
10480            postdeps_CXX="${prev}${p}"
10481          else
10482            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10483          fi
10484        fi
10485        ;;
10486
10487     *.$objext)
10488        # This assumes that the test object file only shows up
10489        # once in the compiler output.
10490        if test "$p" = "conftest.$objext"; then
10491          pre_test_object_deps_done=yes
10492          continue
10493        fi
10494
10495        if test "$pre_test_object_deps_done" = no; then
10496          if test -z "$predep_objects_CXX"; then
10497            predep_objects_CXX="$p"
10498          else
10499            predep_objects_CXX="$predep_objects_CXX $p"
10500          fi
10501        else
10502          if test -z "$postdep_objects_CXX"; then
10503            postdep_objects_CXX="$p"
10504          else
10505            postdep_objects_CXX="$postdep_objects_CXX $p"
10506          fi
10507        fi
10508        ;;
10509
10510     *) ;; # Ignore the rest.
10511
10512     esac
10513   done
10514
10515   # Clean up.
10516   rm -f a.out a.exe
10517 else
10518   echo "libtool.m4: error: problem compiling CXX test program"
10519 fi
10520
10521 $rm -f confest.$objext
10522
10523 case " $postdeps_CXX " in
10524 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10525 esac
10526
10527 lt_prog_compiler_wl_CXX=
10528 lt_prog_compiler_pic_CXX=
10529 lt_prog_compiler_static_CXX=
10530
10531 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10532 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10533
10534   # C++ specific cases for pic, static, wl, etc.
10535   if test "$GXX" = yes; then
10536     lt_prog_compiler_wl_CXX='-Wl,'
10537     lt_prog_compiler_static_CXX='-static'
10538
10539     case $host_os in
10540     aix*)
10541       # All AIX code is PIC.
10542       if test "$host_cpu" = ia64; then
10543         # AIX 5 now supports IA64 processor
10544         lt_prog_compiler_static_CXX='-Bstatic'
10545       fi
10546       ;;
10547     amigaos*)
10548       # FIXME: we need at least 68020 code to build shared libraries, but
10549       # adding the `-m68020' flag to GCC prevents building anything better,
10550       # like `-m68040'.
10551       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10552       ;;
10553     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10554       # PIC is the default for these OSes.
10555       ;;
10556     mingw* | os2* | pw32*)
10557       # This hack is so that the source file can tell whether it is being
10558       # built for inclusion in a dll (and should export symbols for example).
10559       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10560       ;;
10561     darwin* | rhapsody*)
10562       # PIC is the default on this platform
10563       # Common symbols not allowed in MH_DYLIB files
10564       lt_prog_compiler_pic_CXX='-fno-common'
10565       ;;
10566     *djgpp*)
10567       # DJGPP does not support shared libraries at all
10568       lt_prog_compiler_pic_CXX=
10569       ;;
10570     sysv4*MP*)
10571       if test -d /usr/nec; then
10572         lt_prog_compiler_pic_CXX=-Kconform_pic
10573       fi
10574       ;;
10575     hpux*)
10576       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10577       # not for PA HP-UX.
10578       case "$host_cpu" in
10579       hppa*64*|ia64*)
10580         ;;
10581       *)
10582         lt_prog_compiler_pic_CXX='-fPIC'
10583         ;;
10584       esac
10585       ;;
10586     *)
10587       lt_prog_compiler_pic_CXX='-fPIC'
10588       ;;
10589     esac
10590   else
10591     case $host_os in
10592       aix4* | aix5*)
10593         # All AIX code is PIC.
10594         if test "$host_cpu" = ia64; then
10595           # AIX 5 now supports IA64 processor
10596           lt_prog_compiler_static_CXX='-Bstatic'
10597         else
10598           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10599         fi
10600         ;;
10601       chorus*)
10602         case $cc_basename in
10603         cxch68)
10604           # Green Hills C++ Compiler
10605           # _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"
10606           ;;
10607         esac
10608         ;;
10609       dgux*)
10610         case $cc_basename in
10611           ec++)
10612             lt_prog_compiler_pic_CXX='-KPIC'
10613             ;;
10614           ghcx)
10615             # Green Hills C++ Compiler
10616             lt_prog_compiler_pic_CXX='-pic'
10617             ;;
10618           *)
10619             ;;
10620         esac
10621         ;;
10622       freebsd*)
10623         # FreeBSD uses GNU C++
10624         ;;
10625       hpux9* | hpux10* | hpux11*)
10626         case $cc_basename in
10627           CC)
10628             lt_prog_compiler_wl_CXX='-Wl,'
10629             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10630             if test "$host_cpu" != ia64; then
10631               lt_prog_compiler_pic_CXX='+Z'
10632             fi
10633             ;;
10634           aCC)
10635             lt_prog_compiler_wl_CXX='-Wl,'
10636             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10637             case "$host_cpu" in
10638             hppa*64*|ia64*)
10639               # +Z the default
10640               ;;
10641             *)
10642               lt_prog_compiler_pic_CXX='+Z'
10643               ;;
10644             esac
10645             ;;
10646           *)
10647             ;;
10648         esac
10649         ;;
10650       irix5* | irix6* | nonstopux*)
10651         case $cc_basename in
10652           CC)
10653             lt_prog_compiler_wl_CXX='-Wl,'
10654             lt_prog_compiler_static_CXX='-non_shared'
10655             # CC pic flag -KPIC is the default.
10656             ;;
10657           *)
10658             ;;
10659         esac
10660         ;;
10661       linux*)
10662         case $cc_basename in
10663           KCC)
10664             # KAI C++ Compiler
10665             lt_prog_compiler_wl_CXX='--backend -Wl,'
10666             lt_prog_compiler_pic_CXX='-fPIC'
10667             ;;
10668           icpc)
10669             # Intel C++
10670             lt_prog_compiler_wl_CXX='-Wl,'
10671             lt_prog_compiler_pic_CXX='-KPIC'
10672             lt_prog_compiler_static_CXX='-static'
10673             ;;
10674           cxx)
10675             # Compaq C++
10676             # Make sure the PIC flag is empty.  It appears that all Alpha
10677             # Linux and Compaq Tru64 Unix objects are PIC.
10678             lt_prog_compiler_pic_CXX=
10679             lt_prog_compiler_static_CXX='-non_shared'
10680             ;;
10681           *)
10682             ;;
10683         esac
10684         ;;
10685       lynxos*)
10686         ;;
10687       m88k*)
10688         ;;
10689       mvs*)
10690         case $cc_basename in
10691           cxx)
10692             lt_prog_compiler_pic_CXX='-W c,exportall'
10693             ;;
10694           *)
10695             ;;
10696         esac
10697         ;;
10698       netbsd*)
10699         ;;
10700       osf3* | osf4* | osf5*)
10701         case $cc_basename in
10702           KCC)
10703             lt_prog_compiler_wl_CXX='--backend -Wl,'
10704             ;;
10705           RCC)
10706             # Rational C++ 2.4.1
10707             lt_prog_compiler_pic_CXX='-pic'
10708             ;;
10709           cxx)
10710             # Digital/Compaq C++
10711             lt_prog_compiler_wl_CXX='-Wl,'
10712             # Make sure the PIC flag is empty.  It appears that all Alpha
10713             # Linux and Compaq Tru64 Unix objects are PIC.
10714             lt_prog_compiler_pic_CXX=
10715             lt_prog_compiler_static_CXX='-non_shared'
10716             ;;
10717           *)
10718             ;;
10719         esac
10720         ;;
10721       psos*)
10722         ;;
10723       sco*)
10724         case $cc_basename in
10725           CC)
10726             lt_prog_compiler_pic_CXX='-fPIC'
10727             ;;
10728           *)
10729             ;;
10730         esac
10731         ;;
10732       solaris*)
10733         case $cc_basename in
10734           CC)
10735             # Sun C++ 4.2, 5.x and Centerline C++
10736             lt_prog_compiler_pic_CXX='-KPIC'
10737             lt_prog_compiler_static_CXX='-Bstatic'
10738             lt_prog_compiler_wl_CXX='-Qoption ld '
10739             ;;
10740           gcx)
10741             # Green Hills C++ Compiler
10742             lt_prog_compiler_pic_CXX='-PIC'
10743             ;;
10744           *)
10745             ;;
10746         esac
10747         ;;
10748       sunos4*)
10749         case $cc_basename in
10750           CC)
10751             # Sun C++ 4.x
10752             lt_prog_compiler_pic_CXX='-pic'
10753             lt_prog_compiler_static_CXX='-Bstatic'
10754             ;;
10755           lcc)
10756             # Lucid
10757             lt_prog_compiler_pic_CXX='-pic'
10758             ;;
10759           *)
10760             ;;
10761         esac
10762         ;;
10763       tandem*)
10764         case $cc_basename in
10765           NCC)
10766             # NonStop-UX NCC 3.20
10767             lt_prog_compiler_pic_CXX='-KPIC'
10768             ;;
10769           *)
10770             ;;
10771         esac
10772         ;;
10773       unixware*)
10774         ;;
10775       vxworks*)
10776         ;;
10777       *)
10778         lt_prog_compiler_can_build_shared_CXX=no
10779         ;;
10780     esac
10781   fi
10782
10783 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10784 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10785
10786 #
10787 # Check to make sure the PIC flag actually works.
10788 #
10789 if test -n "$lt_prog_compiler_pic_CXX"; then
10790   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10791 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10792 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795   lt_prog_compiler_pic_works_CXX=no
10796   ac_outfile=conftest.$ac_objext
10797    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10798    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10799    # Insert the option either (1) after the last *FLAGS variable, or
10800    # (2) before a word containing "conftest.", or (3) at the end.
10801    # Note that $ac_compile itself does not contain backslashes and begins
10802    # with a dollar sign (not a hyphen), so the echo should work correctly.
10803    # The option is referenced via a variable to avoid confusing sed.
10804    lt_compile=`echo "$ac_compile" | $SED \
10805    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10807    -e 's:$: $lt_compiler_flag:'`
10808    (eval echo "\"\$as_me:10808: $lt_compile\"" >&5)
10809    (eval "$lt_compile" 2>conftest.err)
10810    ac_status=$?
10811    cat conftest.err >&5
10812    echo "$as_me:10812: \$? = $ac_status" >&5
10813    if (exit $ac_status) && test -s "$ac_outfile"; then
10814      # The compiler can only warn and ignore the option if not recognized
10815      # So say no if there are warnings
10816      if test ! -s conftest.err; then
10817        lt_prog_compiler_pic_works_CXX=yes
10818      fi
10819    fi
10820    $rm conftest*
10821
10822 fi
10823 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10824 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10825
10826 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10827     case $lt_prog_compiler_pic_CXX in
10828      "" | " "*) ;;
10829      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10830      esac
10831 else
10832     lt_prog_compiler_pic_CXX=
10833      lt_prog_compiler_can_build_shared_CXX=no
10834 fi
10835
10836 fi
10837 case "$host_os" in
10838   # For platforms which do not support PIC, -DPIC is meaningless:
10839   *djgpp*)
10840     lt_prog_compiler_pic_CXX=
10841     ;;
10842   *)
10843     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10844     ;;
10845 esac
10846
10847 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10849 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   lt_cv_prog_compiler_c_o_CXX=no
10853    $rm -r conftest 2>/dev/null
10854    mkdir conftest
10855    cd conftest
10856    mkdir out
10857    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10858
10859    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10860    # that will create temporary files in the current directory regardless of
10861    # the output directory.  Thus, making CWD read-only will cause this test
10862    # to fail, enabling locking or at least warning the user not to do parallel
10863    # builds.
10864    chmod -w .
10865
10866    lt_compiler_flag="-o out/conftest2.$ac_objext"
10867    # Insert the option either (1) after the last *FLAGS variable, or
10868    # (2) before a word containing "conftest.", or (3) at the end.
10869    # Note that $ac_compile itself does not contain backslashes and begins
10870    # with a dollar sign (not a hyphen), so the echo should work correctly.
10871    lt_compile=`echo "$ac_compile" | $SED \
10872    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10874    -e 's:$: $lt_compiler_flag:'`
10875    (eval echo "\"\$as_me:10875: $lt_compile\"" >&5)
10876    (eval "$lt_compile" 2>out/conftest.err)
10877    ac_status=$?
10878    cat out/conftest.err >&5
10879    echo "$as_me:10879: \$? = $ac_status" >&5
10880    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10881    then
10882      # The compiler can only warn and ignore the option if not recognized
10883      # So say no if there are warnings
10884      if test ! -s out/conftest.err; then
10885        lt_cv_prog_compiler_c_o_CXX=yes
10886      fi
10887    fi
10888    chmod u+w .
10889    $rm conftest* out/*
10890    rmdir out
10891    cd ..
10892    rmdir conftest
10893    $rm conftest*
10894
10895 fi
10896 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10897 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10898
10899
10900 hard_links="nottested"
10901 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10902   # do not overwrite the value of need_locks provided by the user
10903   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10904 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10905   hard_links=yes
10906   $rm conftest*
10907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10908   touch conftest.a
10909   ln conftest.a conftest.b 2>&5 || hard_links=no
10910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10911   echo "$as_me:$LINENO: result: $hard_links" >&5
10912 echo "${ECHO_T}$hard_links" >&6
10913   if test "$hard_links" = no; then
10914     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10915 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10916     need_locks=warn
10917   fi
10918 else
10919   need_locks=no
10920 fi
10921
10922 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10923 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10924
10925   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10926   case $host_os in
10927   aix4* | aix5*)
10928     # If we're using GNU nm, then we don't want the "-C" option.
10929     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10930     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10931       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'
10932     else
10933       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'
10934     fi
10935     ;;
10936   pw32*)
10937     export_symbols_cmds_CXX="$ltdll_cmds"
10938   ;;
10939   cygwin* | mingw*)
10940     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10941   ;;
10942   *)
10943     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10944   ;;
10945   esac
10946
10947 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10948 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10949 test "$ld_shlibs_CXX" = no && can_build_shared=no
10950
10951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10952 if test "$GCC" = yes; then
10953   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10954 fi
10955
10956 #
10957 # Do we need to explicitly link libc?
10958 #
10959 case "x$archive_cmds_need_lc_CXX" in
10960 x|xyes)
10961   # Assume -lc should be added
10962   archive_cmds_need_lc_CXX=yes
10963
10964   if test "$enable_shared" = yes && test "$GCC" = yes; then
10965     case $archive_cmds_CXX in
10966     *'~'*)
10967       # FIXME: we may have to deal with multi-command sequences.
10968       ;;
10969     '$CC '*)
10970       # Test whether the compiler implicitly links with -lc since on some
10971       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10972       # to ld, don't add -lc before -lgcc.
10973       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10974 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10975       $rm conftest*
10976       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10977
10978       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979   (eval $ac_compile) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); } 2>conftest.err; then
10983         soname=conftest
10984         lib=conftest
10985         libobjs=conftest.$ac_objext
10986         deplibs=
10987         wl=$lt_prog_compiler_wl_CXX
10988         compiler_flags=-v
10989         linker_flags=-v
10990         verstring=
10991         output_objdir=.
10992         libname=conftest
10993         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10994         allow_undefined_flag_CXX=
10995         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10996   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); }
11000         then
11001           archive_cmds_need_lc_CXX=no
11002         else
11003           archive_cmds_need_lc_CXX=yes
11004         fi
11005         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11006       else
11007         cat conftest.err 1>&5
11008       fi
11009       $rm conftest*
11010       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11011 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11012       ;;
11013     esac
11014   fi
11015   ;;
11016 esac
11017
11018 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11019 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11020 hardcode_action_CXX=
11021 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11022    test -n "$runpath_var CXX" || \
11023    test "X$hardcode_automatic_CXX"="Xyes" ; then
11024
11025   # We can hardcode non-existant directories.
11026   if test "$hardcode_direct_CXX" != no &&
11027      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11028      # have to relink, otherwise we might link with an installed library
11029      # when we should be linking with a yet-to-be-installed one
11030      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11031      test "$hardcode_minus_L_CXX" != no; then
11032     # Linking always hardcodes the temporary library directory.
11033     hardcode_action_CXX=relink
11034   else
11035     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11036     hardcode_action_CXX=immediate
11037   fi
11038 else
11039   # We cannot hardcode anything, or else we can only hardcode existing
11040   # directories.
11041   hardcode_action_CXX=unsupported
11042 fi
11043 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11044 echo "${ECHO_T}$hardcode_action_CXX" >&6
11045
11046 if test "$hardcode_action_CXX" = relink; then
11047   # Fast installation is not supported
11048   enable_fast_install=no
11049 elif test "$shlibpath_overrides_runpath" = yes ||
11050      test "$enable_shared" = no; then
11051   # Fast installation is not necessary
11052   enable_fast_install=needless
11053 fi
11054
11055 striplib=
11056 old_striplib=
11057 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11058 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11059 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11060   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11061   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11062   echo "$as_me:$LINENO: result: yes" >&5
11063 echo "${ECHO_T}yes" >&6
11064 else
11065 # FIXME - insert some real tests, host_os isn't really good enough
11066   case $host_os in
11067    darwin*)
11068        if test -n "$STRIP" ; then
11069          striplib="$STRIP -x"
11070          echo "$as_me:$LINENO: result: yes" >&5
11071 echo "${ECHO_T}yes" >&6
11072        else
11073   echo "$as_me:$LINENO: result: no" >&5
11074 echo "${ECHO_T}no" >&6
11075 fi
11076        ;;
11077    *)
11078   echo "$as_me:$LINENO: result: no" >&5
11079 echo "${ECHO_T}no" >&6
11080     ;;
11081   esac
11082 fi
11083
11084 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11085 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11086 library_names_spec=
11087 libname_spec='lib$name'
11088 soname_spec=
11089 shrext=".so"
11090 postinstall_cmds=
11091 postuninstall_cmds=
11092 finish_cmds=
11093 finish_eval=
11094 shlibpath_var=
11095 shlibpath_overrides_runpath=unknown
11096 version_type=none
11097 dynamic_linker="$host_os ld.so"
11098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11099 if test "$GCC" = yes; then
11100   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11101   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11102     # if the path contains ";" then we assume it to be the separator
11103     # otherwise default to the standard path separator (i.e. ":") - it is
11104     # assumed that no part of a normal pathname contains ";" but that should
11105     # okay in the real world where ";" in dirpaths is itself problematic.
11106     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11107   else
11108     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11109   fi
11110 else
11111   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11112 fi
11113 need_lib_prefix=unknown
11114 hardcode_into_libs=no
11115
11116 # when you set need_version to no, make sure it does not cause -set_version
11117 # flags to be left without arguments
11118 need_version=unknown
11119
11120 case $host_os in
11121 aix3*)
11122   version_type=linux
11123   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11124   shlibpath_var=LIBPATH
11125
11126   # AIX 3 has no versioning support, so we append a major version to the name.
11127   soname_spec='${libname}${release}${shared_ext}$major'
11128   ;;
11129
11130 aix4* | aix5*)
11131   version_type=linux
11132   need_lib_prefix=no
11133   need_version=no
11134   hardcode_into_libs=yes
11135   if test "$host_cpu" = ia64; then
11136     # AIX 5 supports IA64
11137     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11138     shlibpath_var=LD_LIBRARY_PATH
11139   else
11140     # With GCC up to 2.95.x, collect2 would create an import file
11141     # for dependence libraries.  The import file would start with
11142     # the line `#! .'.  This would cause the generated library to
11143     # depend on `.', always an invalid library.  This was fixed in
11144     # development snapshots of GCC prior to 3.0.
11145     case $host_os in
11146       aix4 | aix4.[01] | aix4.[01].*)
11147       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11148            echo ' yes '
11149            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11150         :
11151       else
11152         can_build_shared=no
11153       fi
11154       ;;
11155     esac
11156     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11157     # soname into executable. Probably we can add versioning support to
11158     # collect2, so additional links can be useful in future.
11159     if test "$aix_use_runtimelinking" = yes; then
11160       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11161       # instead of lib<name>.a to let people know that these are not
11162       # typical AIX shared libraries.
11163       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164     else
11165       # We preserve .a as extension for shared libraries through AIX4.2
11166       # and later when we are not doing run time linking.
11167       library_names_spec='${libname}${release}.a $libname.a'
11168       soname_spec='${libname}${release}${shared_ext}$major'
11169     fi
11170     shlibpath_var=LIBPATH
11171   fi
11172   ;;
11173
11174 amigaos*)
11175   library_names_spec='$libname.ixlibrary $libname.a'
11176   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11177   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'
11178   ;;
11179
11180 beos*)
11181   library_names_spec='${libname}${shared_ext}'
11182   dynamic_linker="$host_os ld.so"
11183   shlibpath_var=LIBRARY_PATH
11184   ;;
11185
11186 bsdi4*)
11187   version_type=linux
11188   need_version=no
11189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190   soname_spec='${libname}${release}${shared_ext}$major'
11191   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11192   shlibpath_var=LD_LIBRARY_PATH
11193   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11194   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11195   # the default ld.so.conf also contains /usr/contrib/lib and
11196   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11197   # libtool to hard-code these into programs
11198   ;;
11199
11200 cygwin* | mingw* | pw32*)
11201   version_type=windows
11202   shrext=".dll"
11203   need_version=no
11204   need_lib_prefix=no
11205
11206   case $GCC,$host_os in
11207   yes,cygwin* | yes,mingw* | yes,pw32*)
11208     library_names_spec='$libname.dll.a'
11209     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11210     postinstall_cmds='base_file=`basename \${file}`~
11211       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11212       dldir=$destdir/`dirname \$dlpath`~
11213       test -d \$dldir || mkdir -p \$dldir~
11214       $install_prog $dir/$dlname \$dldir/$dlname'
11215     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11216       dlpath=$dir/\$dldll~
11217        $rm \$dlpath'
11218     shlibpath_overrides_runpath=yes
11219
11220     case $host_os in
11221     cygwin*)
11222       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11223       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11224       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11225       ;;
11226     mingw*)
11227       # MinGW DLLs use traditional 'lib' prefix
11228       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11229       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11230       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11231         # It is most probably a Windows format PATH printed by
11232         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11233         # path with ; separators, and with drive letters. We can handle the
11234         # drive letters (cygwin fileutils understands them), so leave them,
11235         # especially as we might pass files found there to a mingw objdump,
11236         # which wouldn't understand a cygwinified path. Ahh.
11237         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11238       else
11239         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11240       fi
11241       ;;
11242     pw32*)
11243       # pw32 DLLs use 'pw' prefix rather than 'lib'
11244       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11245       ;;
11246     esac
11247     ;;
11248
11249   *)
11250     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11251     ;;
11252   esac
11253   dynamic_linker='Win32 ld.exe'
11254   # FIXME: first we should search . and the directory the executable is in
11255   shlibpath_var=PATH
11256   ;;
11257
11258 darwin* | rhapsody*)
11259   dynamic_linker="$host_os dyld"
11260   version_type=darwin
11261   need_lib_prefix=no
11262   need_version=no
11263   # FIXME: Relying on posixy $() will cause problems for
11264   #        cross-compilation, but unfortunately the echo tests do not
11265   #        yet detect zsh echo's removal of \ escapes.
11266   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11267   soname_spec='${libname}${release}${major}$shared_ext'
11268   shlibpath_overrides_runpath=yes
11269   shlibpath_var=DYLD_LIBRARY_PATH
11270   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11271   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11272   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11273   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"`
11274   fi
11275   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11276   ;;
11277
11278 dgux*)
11279   version_type=linux
11280   need_lib_prefix=no
11281   need_version=no
11282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11283   soname_spec='${libname}${release}${shared_ext}$major'
11284   shlibpath_var=LD_LIBRARY_PATH
11285   ;;
11286
11287 freebsd1*)
11288   dynamic_linker=no
11289   ;;
11290
11291 freebsd*)
11292   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11293   version_type=freebsd-$objformat
11294   case $version_type in
11295     freebsd-elf*)
11296       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11297       need_version=no
11298       need_lib_prefix=no
11299       ;;
11300     freebsd-*)
11301       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11302       need_version=yes
11303       ;;
11304   esac
11305   shlibpath_var=LD_LIBRARY_PATH
11306   case $host_os in
11307   freebsd2*)
11308     shlibpath_overrides_runpath=yes
11309     ;;
11310   freebsd3.01* | freebsdelf3.01*)
11311     shlibpath_overrides_runpath=yes
11312     hardcode_into_libs=yes
11313     ;;
11314   *) # from 3.2 on
11315     shlibpath_overrides_runpath=no
11316     hardcode_into_libs=yes
11317     ;;
11318   esac
11319   ;;
11320
11321 gnu*)
11322   version_type=linux
11323   need_lib_prefix=no
11324   need_version=no
11325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11326   soname_spec='${libname}${release}${shared_ext}$major'
11327   shlibpath_var=LD_LIBRARY_PATH
11328   hardcode_into_libs=yes
11329   ;;
11330
11331 hpux9* | hpux10* | hpux11*)
11332   # Give a soname corresponding to the major version so that dld.sl refuses to
11333   # link against other versions.
11334   version_type=sunos
11335   need_lib_prefix=no
11336   need_version=no
11337   case "$host_cpu" in
11338   ia64*)
11339     shrext='.so'
11340     hardcode_into_libs=yes
11341     dynamic_linker="$host_os dld.so"
11342     shlibpath_var=LD_LIBRARY_PATH
11343     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345     soname_spec='${libname}${release}${shared_ext}$major'
11346     if test "X$HPUX_IA64_MODE" = X32; then
11347       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11348     else
11349       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11350     fi
11351     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11352     ;;
11353    hppa*64*)
11354      shrext='.sl'
11355      hardcode_into_libs=yes
11356      dynamic_linker="$host_os dld.sl"
11357      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11358      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11359      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360      soname_spec='${libname}${release}${shared_ext}$major'
11361      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11362      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11363      ;;
11364    *)
11365     shrext='.sl'
11366     dynamic_linker="$host_os dld.sl"
11367     shlibpath_var=SHLIB_PATH
11368     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370     soname_spec='${libname}${release}${shared_ext}$major'
11371     ;;
11372   esac
11373   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11374   postinstall_cmds='chmod 555 $lib'
11375   ;;
11376
11377 irix5* | irix6* | nonstopux*)
11378   case $host_os in
11379     nonstopux*) version_type=nonstopux ;;
11380     *)
11381         if test "$lt_cv_prog_gnu_ld" = yes; then
11382                 version_type=linux
11383         else
11384                 version_type=irix
11385         fi ;;
11386   esac
11387   need_lib_prefix=no
11388   need_version=no
11389   soname_spec='${libname}${release}${shared_ext}$major'
11390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11391   case $host_os in
11392   irix5* | nonstopux*)
11393     libsuff= shlibsuff=
11394     ;;
11395   *)
11396     case $LD in # libtool.m4 will add one of these switches to LD
11397     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11398       libsuff= shlibsuff= libmagic=32-bit;;
11399     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11400       libsuff=32 shlibsuff=N32 libmagic=N32;;
11401     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11402       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11403     *) libsuff= shlibsuff= libmagic=never-match;;
11404     esac
11405     ;;
11406   esac
11407   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11408   shlibpath_overrides_runpath=no
11409   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11410   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11411   hardcode_into_libs=yes
11412   ;;
11413
11414 # No shared lib support for Linux oldld, aout, or coff.
11415 linux*oldld* | linux*aout* | linux*coff*)
11416   dynamic_linker=no
11417   ;;
11418
11419 # This must be Linux ELF.
11420 linux*)
11421   version_type=linux
11422   need_lib_prefix=no
11423   need_version=no
11424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425   soname_spec='${libname}${release}${shared_ext}$major'
11426   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11427   shlibpath_var=LD_LIBRARY_PATH
11428   shlibpath_overrides_runpath=no
11429   # This implies no fast_install, which is unacceptable.
11430   # Some rework will be needed to allow for fast_install
11431   # before this can be enabled.
11432   hardcode_into_libs=yes
11433
11434   # We used to test for /lib/ld.so.1 and disable shared libraries on
11435   # powerpc, because MkLinux only supported shared libraries with the
11436   # GNU dynamic linker.  Since this was broken with cross compilers,
11437   # most powerpc-linux boxes support dynamic linking these days and
11438   # people can always --disable-shared, the test was removed, and we
11439   # assume the GNU/Linux dynamic linker is in use.
11440   dynamic_linker='GNU/Linux ld.so'
11441   ;;
11442
11443 netbsd*)
11444   version_type=sunos
11445   need_lib_prefix=no
11446   need_version=no
11447   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11449     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11450     dynamic_linker='NetBSD (a.out) ld.so'
11451   else
11452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11453     soname_spec='${libname}${release}${shared_ext}$major'
11454     dynamic_linker='NetBSD ld.elf_so'
11455   fi
11456   shlibpath_var=LD_LIBRARY_PATH
11457   shlibpath_overrides_runpath=yes
11458   hardcode_into_libs=yes
11459   ;;
11460
11461 newsos6)
11462   version_type=linux
11463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464   shlibpath_var=LD_LIBRARY_PATH
11465   shlibpath_overrides_runpath=yes
11466   ;;
11467
11468 nto-qnx)
11469   version_type=linux
11470   need_lib_prefix=no
11471   need_version=no
11472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473   soname_spec='${libname}${release}${shared_ext}$major'
11474   shlibpath_var=LD_LIBRARY_PATH
11475   shlibpath_overrides_runpath=yes
11476   ;;
11477
11478 openbsd*)
11479   version_type=sunos
11480   need_lib_prefix=no
11481   need_version=no
11482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11483   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11484   shlibpath_var=LD_LIBRARY_PATH
11485   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11486     case $host_os in
11487       openbsd2.[89] | openbsd2.[89].*)
11488         shlibpath_overrides_runpath=no
11489         ;;
11490       *)
11491         shlibpath_overrides_runpath=yes
11492         ;;
11493       esac
11494   else
11495     shlibpath_overrides_runpath=yes
11496   fi
11497   ;;
11498
11499 os2*)
11500   libname_spec='$name'
11501   shrext=".dll"
11502   need_lib_prefix=no
11503   library_names_spec='$libname${shared_ext} $libname.a'
11504   dynamic_linker='OS/2 ld.exe'
11505   shlibpath_var=LIBPATH
11506   ;;
11507
11508 osf3* | osf4* | osf5*)
11509   version_type=osf
11510   need_lib_prefix=no
11511   need_version=no
11512   soname_spec='${libname}${release}${shared_ext}$major'
11513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514   shlibpath_var=LD_LIBRARY_PATH
11515   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11516   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11517   ;;
11518
11519 sco3.2v5*)
11520   version_type=osf
11521   soname_spec='${libname}${release}${shared_ext}$major'
11522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11523   shlibpath_var=LD_LIBRARY_PATH
11524   ;;
11525
11526 solaris*)
11527   version_type=linux
11528   need_lib_prefix=no
11529   need_version=no
11530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531   soname_spec='${libname}${release}${shared_ext}$major'
11532   shlibpath_var=LD_LIBRARY_PATH
11533   shlibpath_overrides_runpath=yes
11534   hardcode_into_libs=yes
11535   # ldd complains unless libraries are executable
11536   postinstall_cmds='chmod +x $lib'
11537   ;;
11538
11539 sunos4*)
11540   version_type=sunos
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11542   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11543   shlibpath_var=LD_LIBRARY_PATH
11544   shlibpath_overrides_runpath=yes
11545   if test "$with_gnu_ld" = yes; then
11546     need_lib_prefix=no
11547   fi
11548   need_version=yes
11549   ;;
11550
11551 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11552   version_type=linux
11553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554   soname_spec='${libname}${release}${shared_ext}$major'
11555   shlibpath_var=LD_LIBRARY_PATH
11556   case $host_vendor in
11557     sni)
11558       shlibpath_overrides_runpath=no
11559       need_lib_prefix=no
11560       export_dynamic_flag_spec='${wl}-Blargedynsym'
11561       runpath_var=LD_RUN_PATH
11562       ;;
11563     siemens)
11564       need_lib_prefix=no
11565       ;;
11566     motorola)
11567       need_lib_prefix=no
11568       need_version=no
11569       shlibpath_overrides_runpath=no
11570       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11571       ;;
11572   esac
11573   ;;
11574
11575 sysv4*MP*)
11576   if test -d /usr/nec ;then
11577     version_type=linux
11578     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11579     soname_spec='$libname${shared_ext}.$major'
11580     shlibpath_var=LD_LIBRARY_PATH
11581   fi
11582   ;;
11583
11584 uts4*)
11585   version_type=linux
11586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587   soname_spec='${libname}${release}${shared_ext}$major'
11588   shlibpath_var=LD_LIBRARY_PATH
11589   ;;
11590
11591 *)
11592   dynamic_linker=no
11593   ;;
11594 esac
11595 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11596 echo "${ECHO_T}$dynamic_linker" >&6
11597 test "$dynamic_linker" = no && can_build_shared=no
11598
11599 if test "x$enable_dlopen" != xyes; then
11600   enable_dlopen=unknown
11601   enable_dlopen_self=unknown
11602   enable_dlopen_self_static=unknown
11603 else
11604   lt_cv_dlopen=no
11605   lt_cv_dlopen_libs=
11606
11607   case $host_os in
11608   beos*)
11609     lt_cv_dlopen="load_add_on"
11610     lt_cv_dlopen_libs=
11611     lt_cv_dlopen_self=yes
11612     ;;
11613
11614   mingw* | pw32*)
11615     lt_cv_dlopen="LoadLibrary"
11616     lt_cv_dlopen_libs=
11617    ;;
11618
11619   cygwin*)
11620     lt_cv_dlopen="dlopen"
11621     lt_cv_dlopen_libs=
11622    ;;
11623
11624   darwin*)
11625   # if libdl is installed we need to link against it
11626     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11629   echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631   ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-ldl  $LIBS"
11633 cat >conftest.$ac_ext <<_ACEOF
11634 #line $LINENO "configure"
11635 /* confdefs.h.  */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h.  */
11640
11641 /* Override any gcc2 internal prototype to avoid an error.  */
11642 #ifdef __cplusplus
11643 extern "C"
11644 #endif
11645 /* We use char because int might match the return type of a gcc2
11646    builtin and then its argument prototype would still apply.  */
11647 char dlopen ();
11648 int
11649 main ()
11650 {
11651 dlopen ();
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658   (eval $ac_link) 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); } &&
11662          { ac_try='test -s conftest$ac_exeext'
11663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664   (eval $ac_try) 2>&5
11665   ac_status=$?
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); }; }; then
11668   ac_cv_lib_dl_dlopen=yes
11669 else
11670   echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 ac_cv_lib_dl_dlopen=no
11674 fi
11675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11677 fi
11678 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11679 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11680 if test $ac_cv_lib_dl_dlopen = yes; then
11681   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11682 else
11683
11684     lt_cv_dlopen="dyld"
11685     lt_cv_dlopen_libs=
11686     lt_cv_dlopen_self=yes
11687
11688 fi
11689
11690    ;;
11691
11692   *)
11693     echo "$as_me:$LINENO: checking for shl_load" >&5
11694 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11695 if test "${ac_cv_func_shl_load+set}" = set; then
11696   echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698   cat >conftest.$ac_ext <<_ACEOF
11699 #line $LINENO "configure"
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 /* System header to define __stub macros and hopefully few prototypes,
11706     which can conflict with char shl_load (); below.
11707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708     <limits.h> exists even on freestanding compilers.  */
11709 #ifdef __STDC__
11710 # include <limits.h>
11711 #else
11712 # include <assert.h>
11713 #endif
11714 /* Override any gcc2 internal prototype to avoid an error.  */
11715 #ifdef __cplusplus
11716 extern "C"
11717 {
11718 #endif
11719 /* We use char because int might match the return type of a gcc2
11720    builtin and then its argument prototype would still apply.  */
11721 char shl_load ();
11722 /* The GNU C library defines this for functions which it implements
11723     to always fail with ENOSYS.  Some functions are actually named
11724     something starting with __ and the normal name is an alias.  */
11725 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11726 choke me
11727 #else
11728 char (*f) () = shl_load;
11729 #endif
11730 #ifdef __cplusplus
11731 }
11732 #endif
11733
11734 int
11735 main ()
11736 {
11737 return f != shl_load;
11738   ;
11739   return 0;
11740 }
11741 _ACEOF
11742 rm -f conftest.$ac_objext conftest$ac_exeext
11743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11744   (eval $ac_link) 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); } &&
11748          { ac_try='test -s conftest$ac_exeext'
11749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750   (eval $ac_try) 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); }; }; then
11754   ac_cv_func_shl_load=yes
11755 else
11756   echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759 ac_cv_func_shl_load=no
11760 fi
11761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11762 fi
11763 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11764 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11765 if test $ac_cv_func_shl_load = yes; then
11766   lt_cv_dlopen="shl_load"
11767 else
11768   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11769 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11770 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11771   echo $ECHO_N "(cached) $ECHO_C" >&6
11772 else
11773   ac_check_lib_save_LIBS=$LIBS
11774 LIBS="-ldld  $LIBS"
11775 cat >conftest.$ac_ext <<_ACEOF
11776 #line $LINENO "configure"
11777 /* confdefs.h.  */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h.  */
11782
11783 /* Override any gcc2 internal prototype to avoid an error.  */
11784 #ifdef __cplusplus
11785 extern "C"
11786 #endif
11787 /* We use char because int might match the return type of a gcc2
11788    builtin and then its argument prototype would still apply.  */
11789 char shl_load ();
11790 int
11791 main ()
11792 {
11793 shl_load ();
11794   ;
11795   return 0;
11796 }
11797 _ACEOF
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800   (eval $ac_link) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } &&
11804          { ac_try='test -s conftest$ac_exeext'
11805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806   (eval $ac_try) 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); }; }; then
11810   ac_cv_lib_dld_shl_load=yes
11811 else
11812   echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11814
11815 ac_cv_lib_dld_shl_load=no
11816 fi
11817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11818 LIBS=$ac_check_lib_save_LIBS
11819 fi
11820 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11821 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11822 if test $ac_cv_lib_dld_shl_load = yes; then
11823   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11824 else
11825   echo "$as_me:$LINENO: checking for dlopen" >&5
11826 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11827 if test "${ac_cv_func_dlopen+set}" = set; then
11828   echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830   cat >conftest.$ac_ext <<_ACEOF
11831 #line $LINENO "configure"
11832 /* confdefs.h.  */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h.  */
11837 /* System header to define __stub macros and hopefully few prototypes,
11838     which can conflict with char dlopen (); below.
11839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11840     <limits.h> exists even on freestanding compilers.  */
11841 #ifdef __STDC__
11842 # include <limits.h>
11843 #else
11844 # include <assert.h>
11845 #endif
11846 /* Override any gcc2 internal prototype to avoid an error.  */
11847 #ifdef __cplusplus
11848 extern "C"
11849 {
11850 #endif
11851 /* We use char because int might match the return type of a gcc2
11852    builtin and then its argument prototype would still apply.  */
11853 char dlopen ();
11854 /* The GNU C library defines this for functions which it implements
11855     to always fail with ENOSYS.  Some functions are actually named
11856     something starting with __ and the normal name is an alias.  */
11857 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11858 choke me
11859 #else
11860 char (*f) () = dlopen;
11861 #endif
11862 #ifdef __cplusplus
11863 }
11864 #endif
11865
11866 int
11867 main ()
11868 {
11869 return f != dlopen;
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876   (eval $ac_link) 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); } &&
11880          { ac_try='test -s conftest$ac_exeext'
11881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882   (eval $ac_try) 2>&5
11883   ac_status=$?
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); }; }; then
11886   ac_cv_func_dlopen=yes
11887 else
11888   echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891 ac_cv_func_dlopen=no
11892 fi
11893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11894 fi
11895 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11896 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11897 if test $ac_cv_func_dlopen = yes; then
11898   lt_cv_dlopen="dlopen"
11899 else
11900   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11903   echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905   ac_check_lib_save_LIBS=$LIBS
11906 LIBS="-ldl  $LIBS"
11907 cat >conftest.$ac_ext <<_ACEOF
11908 #line $LINENO "configure"
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914
11915 /* Override any gcc2 internal prototype to avoid an error.  */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 /* We use char because int might match the return type of a gcc2
11920    builtin and then its argument prototype would still apply.  */
11921 char dlopen ();
11922 int
11923 main ()
11924 {
11925 dlopen ();
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932   (eval $ac_link) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } &&
11936          { ac_try='test -s conftest$ac_exeext'
11937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938   (eval $ac_try) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   ac_cv_lib_dl_dlopen=yes
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 ac_cv_lib_dl_dlopen=no
11948 fi
11949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11951 fi
11952 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11953 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11954 if test $ac_cv_lib_dl_dlopen = yes; then
11955   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11956 else
11957   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11958 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11959 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   ac_check_lib_save_LIBS=$LIBS
11963 LIBS="-lsvld  $LIBS"
11964 cat >conftest.$ac_ext <<_ACEOF
11965 #line $LINENO "configure"
11966 /* confdefs.h.  */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h.  */
11971
11972 /* Override any gcc2 internal prototype to avoid an error.  */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 /* We use char because int might match the return type of a gcc2
11977    builtin and then its argument prototype would still apply.  */
11978 char dlopen ();
11979 int
11980 main ()
11981 {
11982 dlopen ();
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989   (eval $ac_link) 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); } &&
11993          { ac_try='test -s conftest$ac_exeext'
11994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995   (eval $ac_try) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); }; }; then
11999   ac_cv_lib_svld_dlopen=yes
12000 else
12001   echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004 ac_cv_lib_svld_dlopen=no
12005 fi
12006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12010 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12011 if test $ac_cv_lib_svld_dlopen = yes; then
12012   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12013 else
12014   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12015 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12017   echo $ECHO_N "(cached) $ECHO_C" >&6
12018 else
12019   ac_check_lib_save_LIBS=$LIBS
12020 LIBS="-ldld  $LIBS"
12021 cat >conftest.$ac_ext <<_ACEOF
12022 #line $LINENO "configure"
12023 /* confdefs.h.  */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h.  */
12028
12029 /* Override any gcc2 internal prototype to avoid an error.  */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 /* We use char because int might match the return type of a gcc2
12034    builtin and then its argument prototype would still apply.  */
12035 char dld_link ();
12036 int
12037 main ()
12038 {
12039 dld_link ();
12040   ;
12041   return 0;
12042 }
12043 _ACEOF
12044 rm -f conftest.$ac_objext conftest$ac_exeext
12045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12046   (eval $ac_link) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); } &&
12050          { ac_try='test -s conftest$ac_exeext'
12051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052   (eval $ac_try) 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; }; then
12056   ac_cv_lib_dld_dld_link=yes
12057 else
12058   echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 ac_cv_lib_dld_dld_link=no
12062 fi
12063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12064 LIBS=$ac_check_lib_save_LIBS
12065 fi
12066 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12067 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12068 if test $ac_cv_lib_dld_dld_link = yes; then
12069   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12070 fi
12071
12072
12073 fi
12074
12075
12076 fi
12077
12078
12079 fi
12080
12081
12082 fi
12083
12084
12085 fi
12086
12087     ;;
12088   esac
12089
12090   if test "x$lt_cv_dlopen" != xno; then
12091     enable_dlopen=yes
12092   else
12093     enable_dlopen=no
12094   fi
12095
12096   case $lt_cv_dlopen in
12097   dlopen)
12098     save_CPPFLAGS="$CPPFLAGS"
12099     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12100
12101     save_LDFLAGS="$LDFLAGS"
12102     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12103
12104     save_LIBS="$LIBS"
12105     LIBS="$lt_cv_dlopen_libs $LIBS"
12106
12107     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12108 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12109 if test "${lt_cv_dlopen_self+set}" = set; then
12110   echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112           if test "$cross_compiling" = yes; then :
12113   lt_cv_dlopen_self=cross
12114 else
12115   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12116   lt_status=$lt_dlunknown
12117   cat > conftest.$ac_ext <<EOF
12118 #line 12118 "configure"
12119 #include "confdefs.h"
12120
12121 #if HAVE_DLFCN_H
12122 #include <dlfcn.h>
12123 #endif
12124
12125 #include <stdio.h>
12126
12127 #ifdef RTLD_GLOBAL
12128 #  define LT_DLGLOBAL           RTLD_GLOBAL
12129 #else
12130 #  ifdef DL_GLOBAL
12131 #    define LT_DLGLOBAL         DL_GLOBAL
12132 #  else
12133 #    define LT_DLGLOBAL         0
12134 #  endif
12135 #endif
12136
12137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12138    find out it does not work in some platform. */
12139 #ifndef LT_DLLAZY_OR_NOW
12140 #  ifdef RTLD_LAZY
12141 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12142 #  else
12143 #    ifdef DL_LAZY
12144 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12145 #    else
12146 #      ifdef RTLD_NOW
12147 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12148 #      else
12149 #        ifdef DL_NOW
12150 #          define LT_DLLAZY_OR_NOW      DL_NOW
12151 #        else
12152 #          define LT_DLLAZY_OR_NOW      0
12153 #        endif
12154 #      endif
12155 #    endif
12156 #  endif
12157 #endif
12158
12159 #ifdef __cplusplus
12160 extern "C" void exit (int);
12161 #endif
12162
12163 void fnord() { int i=42;}
12164 int main ()
12165 {
12166   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12167   int status = $lt_dlunknown;
12168
12169   if (self)
12170     {
12171       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12172       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12173       /* dlclose (self); */
12174     }
12175
12176     exit (status);
12177 }
12178 EOF
12179   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12180   (eval $ac_link) 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12184     (./conftest; exit; ) 2>/dev/null
12185     lt_status=$?
12186     case x$lt_status in
12187       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12188       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12189       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12190     esac
12191   else :
12192     # compilation failed
12193     lt_cv_dlopen_self=no
12194   fi
12195 fi
12196 rm -fr conftest*
12197
12198
12199 fi
12200 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12201 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12202
12203     if test "x$lt_cv_dlopen_self" = xyes; then
12204       LDFLAGS="$LDFLAGS $link_static_flag"
12205       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12206 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12207 if test "${lt_cv_dlopen_self_static+set}" = set; then
12208   echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210           if test "$cross_compiling" = yes; then :
12211   lt_cv_dlopen_self_static=cross
12212 else
12213   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12214   lt_status=$lt_dlunknown
12215   cat > conftest.$ac_ext <<EOF
12216 #line 12216 "configure"
12217 #include "confdefs.h"
12218
12219 #if HAVE_DLFCN_H
12220 #include <dlfcn.h>
12221 #endif
12222
12223 #include <stdio.h>
12224
12225 #ifdef RTLD_GLOBAL
12226 #  define LT_DLGLOBAL           RTLD_GLOBAL
12227 #else
12228 #  ifdef DL_GLOBAL
12229 #    define LT_DLGLOBAL         DL_GLOBAL
12230 #  else
12231 #    define LT_DLGLOBAL         0
12232 #  endif
12233 #endif
12234
12235 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12236    find out it does not work in some platform. */
12237 #ifndef LT_DLLAZY_OR_NOW
12238 #  ifdef RTLD_LAZY
12239 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12240 #  else
12241 #    ifdef DL_LAZY
12242 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12243 #    else
12244 #      ifdef RTLD_NOW
12245 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12246 #      else
12247 #        ifdef DL_NOW
12248 #          define LT_DLLAZY_OR_NOW      DL_NOW
12249 #        else
12250 #          define LT_DLLAZY_OR_NOW      0
12251 #        endif
12252 #      endif
12253 #    endif
12254 #  endif
12255 #endif
12256
12257 #ifdef __cplusplus
12258 extern "C" void exit (int);
12259 #endif
12260
12261 void fnord() { int i=42;}
12262 int main ()
12263 {
12264   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12265   int status = $lt_dlunknown;
12266
12267   if (self)
12268     {
12269       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12270       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12271       /* dlclose (self); */
12272     }
12273
12274     exit (status);
12275 }
12276 EOF
12277   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278   (eval $ac_link) 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12282     (./conftest; exit; ) 2>/dev/null
12283     lt_status=$?
12284     case x$lt_status in
12285       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12286       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12287       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12288     esac
12289   else :
12290     # compilation failed
12291     lt_cv_dlopen_self_static=no
12292   fi
12293 fi
12294 rm -fr conftest*
12295
12296
12297 fi
12298 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12299 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12300     fi
12301
12302     CPPFLAGS="$save_CPPFLAGS"
12303     LDFLAGS="$save_LDFLAGS"
12304     LIBS="$save_LIBS"
12305     ;;
12306   esac
12307
12308   case $lt_cv_dlopen_self in
12309   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12310   *) enable_dlopen_self=unknown ;;
12311   esac
12312
12313   case $lt_cv_dlopen_self_static in
12314   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12315   *) enable_dlopen_self_static=unknown ;;
12316   esac
12317 fi
12318
12319
12320 # The else clause should only fire when bootstrapping the
12321 # libtool distribution, otherwise you forgot to ship ltmain.sh
12322 # with your package, and you will get complaints that there are
12323 # no rules to generate ltmain.sh.
12324 if test -f "$ltmain"; then
12325   # See if we are running on zsh, and set the options which allow our commands through
12326   # without removal of \ escapes.
12327   if test -n "${ZSH_VERSION+set}" ; then
12328     setopt NO_GLOB_SUBST
12329   fi
12330   # Now quote all the things that may contain metacharacters while being
12331   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12332   # variables and quote the copies for generation of the libtool script.
12333   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12334     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12335     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12336     deplibs_check_method reload_flag reload_cmds need_locks \
12337     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12338     lt_cv_sys_global_symbol_to_c_name_address \
12339     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12340     old_postinstall_cmds old_postuninstall_cmds \
12341     compiler_CXX \
12342     CC_CXX \
12343     LD_CXX \
12344     lt_prog_compiler_wl_CXX \
12345     lt_prog_compiler_pic_CXX \
12346     lt_prog_compiler_static_CXX \
12347     lt_prog_compiler_no_builtin_flag_CXX \
12348     export_dynamic_flag_spec_CXX \
12349     thread_safe_flag_spec_CXX \
12350     whole_archive_flag_spec_CXX \
12351     enable_shared_with_static_runtimes_CXX \
12352     old_archive_cmds_CXX \
12353     old_archive_from_new_cmds_CXX \
12354     predep_objects_CXX \
12355     postdep_objects_CXX \
12356     predeps_CXX \
12357     postdeps_CXX \
12358     compiler_lib_search_path_CXX \
12359     archive_cmds_CXX \
12360     archive_expsym_cmds_CXX \
12361     postinstall_cmds_CXX \
12362     postuninstall_cmds_CXX \
12363     old_archive_from_expsyms_cmds_CXX \
12364     allow_undefined_flag_CXX \
12365     no_undefined_flag_CXX \
12366     export_symbols_cmds_CXX \
12367     hardcode_libdir_flag_spec_CXX \
12368     hardcode_libdir_flag_spec_ld_CXX \
12369     hardcode_libdir_separator_CXX \
12370     hardcode_automatic_CXX \
12371     module_cmds_CXX \
12372     module_expsym_cmds_CXX \
12373     lt_cv_prog_compiler_c_o_CXX \
12374     exclude_expsyms_CXX \
12375     include_expsyms_CXX; do
12376
12377     case $var in
12378     old_archive_cmds_CXX | \
12379     old_archive_from_new_cmds_CXX | \
12380     archive_cmds_CXX | \
12381     archive_expsym_cmds_CXX | \
12382     module_cmds_CXX | \
12383     module_expsym_cmds_CXX | \
12384     old_archive_from_expsyms_cmds_CXX | \
12385     export_symbols_cmds_CXX | \
12386     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12387     postinstall_cmds | postuninstall_cmds | \
12388     old_postinstall_cmds | old_postuninstall_cmds | \
12389     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12390       # Double-quote double-evaled strings.
12391       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12392       ;;
12393     *)
12394       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12395       ;;
12396     esac
12397   done
12398
12399   case $lt_echo in
12400   *'\$0 --fallback-echo"')
12401     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12402     ;;
12403   esac
12404
12405 cfgfile="$ofile"
12406
12407   cat <<__EOF__ >> "$cfgfile"
12408 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12409
12410 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12411
12412 # Shell to use when invoking shell scripts.
12413 SHELL=$lt_SHELL
12414
12415 # Whether or not to build shared libraries.
12416 build_libtool_libs=$enable_shared
12417
12418 # Whether or not to build static libraries.
12419 build_old_libs=$enable_static
12420
12421 # Whether or not to add -lc for building shared libraries.
12422 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12423
12424 # Whether or not to disallow shared libs when runtime libs are static
12425 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12426
12427 # Whether or not to optimize for fast installation.
12428 fast_install=$enable_fast_install
12429
12430 # The host system.
12431 host_alias=$host_alias
12432 host=$host
12433
12434 # An echo program that does not interpret backslashes.
12435 echo=$lt_echo
12436
12437 # The archiver.
12438 AR=$lt_AR
12439 AR_FLAGS=$lt_AR_FLAGS
12440
12441 # A C compiler.
12442 LTCC=$lt_LTCC
12443
12444 # A language-specific compiler.
12445 CC=$lt_compiler_CXX
12446
12447 # Is the compiler the GNU C compiler?
12448 with_gcc=$GCC_CXX
12449
12450 # An ERE matcher.
12451 EGREP=$lt_EGREP
12452
12453 # The linker used to build libraries.
12454 LD=$lt_LD_CXX
12455
12456 # Whether we need hard or soft links.
12457 LN_S=$lt_LN_S
12458
12459 # A BSD-compatible nm program.
12460 NM=$lt_NM
12461
12462 # A symbol stripping program
12463 STRIP=$STRIP
12464
12465 # Used to examine libraries when file_magic_cmd begins "file"
12466 MAGIC_CMD=$MAGIC_CMD
12467
12468 # Used on cygwin: DLL creation program.
12469 DLLTOOL="$DLLTOOL"
12470
12471 # Used on cygwin: object dumper.
12472 OBJDUMP="$OBJDUMP"
12473
12474 # Used on cygwin: assembler.
12475 AS="$AS"
12476
12477 # The name of the directory that contains temporary libtool files.
12478 objdir=$objdir
12479
12480 # How to create reloadable object files.
12481 reload_flag=$lt_reload_flag
12482 reload_cmds=$lt_reload_cmds
12483
12484 # How to pass a linker flag through the compiler.
12485 wl=$lt_lt_prog_compiler_wl_CXX
12486
12487 # Object file suffix (normally "o").
12488 objext="$ac_objext"
12489
12490 # Old archive suffix (normally "a").
12491 libext="$libext"
12492
12493 # Shared library suffix (normally ".so").
12494 shrext='$shrext'
12495
12496 # Executable file suffix (normally "").
12497 exeext="$exeext"
12498
12499 # Additional compiler flags for building library objects.
12500 pic_flag=$lt_lt_prog_compiler_pic_CXX
12501 pic_mode=$pic_mode
12502
12503 # What is the maximum length of a command?
12504 max_cmd_len=$lt_cv_sys_max_cmd_len
12505
12506 # Does compiler simultaneously support -c and -o options?
12507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12508
12509 # Must we lock files when doing compilation ?
12510 need_locks=$lt_need_locks
12511
12512 # Do we need the lib prefix for modules?
12513 need_lib_prefix=$need_lib_prefix
12514
12515 # Do we need a version for libraries?
12516 need_version=$need_version
12517
12518 # Whether dlopen is supported.
12519 dlopen_support=$enable_dlopen
12520
12521 # Whether dlopen of programs is supported.
12522 dlopen_self=$enable_dlopen_self
12523
12524 # Whether dlopen of statically linked programs is supported.
12525 dlopen_self_static=$enable_dlopen_self_static
12526
12527 # Compiler flag to prevent dynamic linking.
12528 link_static_flag=$lt_lt_prog_compiler_static_CXX
12529
12530 # Compiler flag to turn off builtin functions.
12531 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12532
12533 # Compiler flag to allow reflexive dlopens.
12534 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12535
12536 # Compiler flag to generate shared objects directly from archives.
12537 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12538
12539 # Compiler flag to generate thread-safe objects.
12540 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12541
12542 # Library versioning type.
12543 version_type=$version_type
12544
12545 # Format of library name prefix.
12546 libname_spec=$lt_libname_spec
12547
12548 # List of archive names.  First name is the real one, the rest are links.
12549 # The last name is the one that the linker finds with -lNAME.
12550 library_names_spec=$lt_library_names_spec
12551
12552 # The coded name of the library, if different from the real name.
12553 soname_spec=$lt_soname_spec
12554
12555 # Commands used to build and install an old-style archive.
12556 RANLIB=$lt_RANLIB
12557 old_archive_cmds=$lt_old_archive_cmds_CXX
12558 old_postinstall_cmds=$lt_old_postinstall_cmds
12559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12560
12561 # Create an old-style archive from a shared archive.
12562 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12563
12564 # Create a temporary old-style archive to link instead of a shared archive.
12565 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12566
12567 # Commands used to build and install a shared archive.
12568 archive_cmds=$lt_archive_cmds_CXX
12569 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12570 postinstall_cmds=$lt_postinstall_cmds
12571 postuninstall_cmds=$lt_postuninstall_cmds
12572
12573 # Commands used to build a loadable module (assumed same as above if empty)
12574 module_cmds=$lt_module_cmds_CXX
12575 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12576
12577 # Commands to strip libraries.
12578 old_striplib=$lt_old_striplib
12579 striplib=$lt_striplib
12580
12581 # Dependencies to place before the objects being linked to create a
12582 # shared library.
12583 predep_objects=$lt_predep_objects_CXX
12584
12585 # Dependencies to place after the objects being linked to create a
12586 # shared library.
12587 postdep_objects=$lt_postdep_objects_CXX
12588
12589 # Dependencies to place before the objects being linked to create a
12590 # shared library.
12591 predeps=$lt_predeps_CXX
12592
12593 # Dependencies to place after the objects being linked to create a
12594 # shared library.
12595 postdeps=$lt_postdeps_CXX
12596
12597 # The library search path used internally by the compiler when linking
12598 # a shared library.
12599 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12600
12601 # Method to check whether dependent libraries are shared objects.
12602 deplibs_check_method=$lt_deplibs_check_method
12603
12604 # Command to use when deplibs_check_method == file_magic.
12605 file_magic_cmd=$lt_file_magic_cmd
12606
12607 # Flag that allows shared libraries with undefined symbols to be built.
12608 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12609
12610 # Flag that forces no undefined symbols.
12611 no_undefined_flag=$lt_no_undefined_flag_CXX
12612
12613 # Commands used to finish a libtool library installation in a directory.
12614 finish_cmds=$lt_finish_cmds
12615
12616 # Same as above, but a single script fragment to be evaled but not shown.
12617 finish_eval=$lt_finish_eval
12618
12619 # Take the output of nm and produce a listing of raw symbols and C names.
12620 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12621
12622 # Transform the output of nm in a proper C declaration
12623 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12624
12625 # Transform the output of nm in a C name address pair
12626 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12627
12628 # This is the shared library runtime path variable.
12629 runpath_var=$runpath_var
12630
12631 # This is the shared library path variable.
12632 shlibpath_var=$shlibpath_var
12633
12634 # Is shlibpath searched before the hard-coded library search path?
12635 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12636
12637 # How to hardcode a shared library path into an executable.
12638 hardcode_action=$hardcode_action_CXX
12639
12640 # Whether we should hardcode library paths into libraries.
12641 hardcode_into_libs=$hardcode_into_libs
12642
12643 # Flag to hardcode \$libdir into a binary during linking.
12644 # This must work even if \$libdir does not exist.
12645 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12646
12647 # If ld is used when linking, flag to hardcode \$libdir into
12648 # a binary during linking. This must work even if \$libdir does
12649 # not exist.
12650 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12651
12652 # Whether we need a single -rpath flag with a separated argument.
12653 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12654
12655 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12656 # resulting binary.
12657 hardcode_direct=$hardcode_direct_CXX
12658
12659 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12660 # resulting binary.
12661 hardcode_minus_L=$hardcode_minus_L_CXX
12662
12663 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12664 # the resulting binary.
12665 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12666
12667 # Set to yes if building a shared library automatically hardcodes DIR into the library
12668 # and all subsequent libraries and executables linked against it.
12669 hardcode_automatic=$hardcode_automatic_CXX
12670
12671 # Variables whose values should be saved in libtool wrapper scripts and
12672 # restored at relink time.
12673 variables_saved_for_relink="$variables_saved_for_relink"
12674
12675 # Whether libtool must link a program against all its dependency libraries.
12676 link_all_deplibs=$link_all_deplibs_CXX
12677
12678 # Compile-time system search path for libraries
12679 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12680
12681 # Run-time system search path for libraries
12682 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12683
12684 # Fix the shell variable \$srcfile for the compiler.
12685 fix_srcfile_path="$fix_srcfile_path_CXX"
12686
12687 # Set to yes if exported symbols are required.
12688 always_export_symbols=$always_export_symbols_CXX
12689
12690 # The commands to list exported symbols.
12691 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12692
12693 # The commands to extract the exported symbol list from a shared archive.
12694 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12695
12696 # Symbols that should not be listed in the preloaded symbols.
12697 exclude_expsyms=$lt_exclude_expsyms_CXX
12698
12699 # Symbols that must always be exported.
12700 include_expsyms=$lt_include_expsyms_CXX
12701
12702 # ### END LIBTOOL TAG CONFIG: $tagname
12703
12704 __EOF__
12705
12706
12707 else
12708   # If there is no Makefile yet, we rely on a make rule to execute
12709   # `config.status --recheck' to rerun these tests and create the
12710   # libtool script then.
12711   test -f Makefile && make "$ltmain"
12712 fi
12713
12714
12715 ac_ext=c
12716 ac_cpp='$CPP $CPPFLAGS'
12717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720
12721 CC=$lt_save_CC
12722 LDCXX=$LD
12723 LD=$lt_save_LD
12724 GCC=$lt_save_GCC
12725 with_gnu_ldcxx=$with_gnu_ld
12726 with_gnu_ld=$lt_save_with_gnu_ld
12727 lt_cv_path_LDCXX=$lt_cv_path_LD
12728 lt_cv_path_LD=$lt_save_path_LD
12729 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12730 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12731
12732         else
12733           tagname=""
12734         fi
12735         ;;
12736
12737       F77)
12738         if test -n "$F77" && test "X$F77" != "Xno"; then
12739
12740 ac_ext=f
12741 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12742 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12744
12745
12746 archive_cmds_need_lc_F77=no
12747 allow_undefined_flag_F77=
12748 always_export_symbols_F77=no
12749 archive_expsym_cmds_F77=
12750 export_dynamic_flag_spec_F77=
12751 hardcode_direct_F77=no
12752 hardcode_libdir_flag_spec_F77=
12753 hardcode_libdir_flag_spec_ld_F77=
12754 hardcode_libdir_separator_F77=
12755 hardcode_minus_L_F77=no
12756 hardcode_automatic_F77=no
12757 module_cmds_F77=
12758 module_expsym_cmds_F77=
12759 link_all_deplibs_F77=unknown
12760 old_archive_cmds_F77=$old_archive_cmds
12761 no_undefined_flag_F77=
12762 whole_archive_flag_spec_F77=
12763 enable_shared_with_static_runtimes_F77=no
12764
12765 # Source file extension for f77 test sources.
12766 ac_ext=f
12767
12768 # Object file extension for compiled f77 test sources.
12769 objext=o
12770 objext_F77=$objext
12771
12772 # Code to be used in simple compile tests
12773 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12774
12775 # Code to be used in simple link tests
12776 lt_simple_link_test_code="      program t\n      end\n"
12777
12778 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12779
12780 # If no C compiler was specified, use CC.
12781 LTCC=${LTCC-"$CC"}
12782
12783 # Allow CC to be a program name with arguments.
12784 compiler=$CC
12785
12786
12787 # Allow CC to be a program name with arguments.
12788 lt_save_CC="$CC"
12789 CC=${F77-"f77"}
12790 compiler=$CC
12791 compiler_F77=$CC
12792 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12793
12794 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12795 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12796 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12797 echo "${ECHO_T}$can_build_shared" >&6
12798
12799 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12800 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12801 test "$can_build_shared" = "no" && enable_shared=no
12802
12803 # On AIX, shared libraries and static libraries use the same namespace, and
12804 # are all built from PIC.
12805 case "$host_os" in
12806 aix3*)
12807   test "$enable_shared" = yes && enable_static=no
12808   if test -n "$RANLIB"; then
12809     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12810     postinstall_cmds='$RANLIB $lib'
12811   fi
12812   ;;
12813 aix4*)
12814   test "$enable_shared" = yes && enable_static=no
12815   ;;
12816 esac
12817 echo "$as_me:$LINENO: result: $enable_shared" >&5
12818 echo "${ECHO_T}$enable_shared" >&6
12819
12820 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12821 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12822 # Make sure either enable_shared or enable_static is yes.
12823 test "$enable_shared" = yes || enable_static=yes
12824 echo "$as_me:$LINENO: result: $enable_static" >&5
12825 echo "${ECHO_T}$enable_static" >&6
12826
12827 test "$ld_shlibs_F77" = no && can_build_shared=no
12828
12829 GCC_F77="$G77"
12830 LD_F77="$LD"
12831
12832 lt_prog_compiler_wl_F77=
12833 lt_prog_compiler_pic_F77=
12834 lt_prog_compiler_static_F77=
12835
12836 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12837 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12838
12839   if test "$GCC" = yes; then
12840     lt_prog_compiler_wl_F77='-Wl,'
12841     lt_prog_compiler_static_F77='-static'
12842
12843     case $host_os in
12844       aix*)
12845       # All AIX code is PIC.
12846       if test "$host_cpu" = ia64; then
12847         # AIX 5 now supports IA64 processor
12848         lt_prog_compiler_static_F77='-Bstatic'
12849       fi
12850       ;;
12851
12852     amigaos*)
12853       # FIXME: we need at least 68020 code to build shared libraries, but
12854       # adding the `-m68020' flag to GCC prevents building anything better,
12855       # like `-m68040'.
12856       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12857       ;;
12858
12859     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12860       # PIC is the default for these OSes.
12861       ;;
12862
12863     mingw* | pw32* | os2*)
12864       # This hack is so that the source file can tell whether it is being
12865       # built for inclusion in a dll (and should export symbols for example).
12866       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12867       ;;
12868
12869     darwin* | rhapsody*)
12870       # PIC is the default on this platform
12871       # Common symbols not allowed in MH_DYLIB files
12872       lt_prog_compiler_pic_F77='-fno-common'
12873       ;;
12874
12875     msdosdjgpp*)
12876       # Just because we use GCC doesn't mean we suddenly get shared libraries
12877       # on systems that don't support them.
12878       lt_prog_compiler_can_build_shared_F77=no
12879       enable_shared=no
12880       ;;
12881
12882     sysv4*MP*)
12883       if test -d /usr/nec; then
12884         lt_prog_compiler_pic_F77=-Kconform_pic
12885       fi
12886       ;;
12887
12888     hpux*)
12889       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12890       # not for PA HP-UX.
12891       case "$host_cpu" in
12892       hppa*64*|ia64*)
12893         # +Z the default
12894         ;;
12895       *)
12896         lt_prog_compiler_pic_F77='-fPIC'
12897         ;;
12898       esac
12899       ;;
12900
12901     *)
12902       lt_prog_compiler_pic_F77='-fPIC'
12903       ;;
12904     esac
12905   else
12906     # PORTME Check for flag to pass linker flags through the system compiler.
12907     case $host_os in
12908     aix*)
12909       lt_prog_compiler_wl_F77='-Wl,'
12910       if test "$host_cpu" = ia64; then
12911         # AIX 5 now supports IA64 processor
12912         lt_prog_compiler_static_F77='-Bstatic'
12913       else
12914         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12915       fi
12916       ;;
12917
12918     mingw* | pw32* | os2*)
12919       # This hack is so that the source file can tell whether it is being
12920       # built for inclusion in a dll (and should export symbols for example).
12921       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12922       ;;
12923
12924     hpux9* | hpux10* | hpux11*)
12925       lt_prog_compiler_wl_F77='-Wl,'
12926       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12927       # not for PA HP-UX.
12928       case "$host_cpu" in
12929       hppa*64*|ia64*)
12930         # +Z the default
12931         ;;
12932       *)
12933         lt_prog_compiler_pic_F77='+Z'
12934         ;;
12935       esac
12936       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12937       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12938       ;;
12939
12940     irix5* | irix6* | nonstopux*)
12941       lt_prog_compiler_wl_F77='-Wl,'
12942       # PIC (with -KPIC) is the default.
12943       lt_prog_compiler_static_F77='-non_shared'
12944       ;;
12945
12946     newsos6)
12947       lt_prog_compiler_pic_F77='-KPIC'
12948       lt_prog_compiler_static_F77='-Bstatic'
12949       ;;
12950
12951     linux*)
12952       case $CC in
12953       icc|ecc)
12954         lt_prog_compiler_wl_F77='-Wl,'
12955         lt_prog_compiler_pic_F77='-KPIC'
12956         lt_prog_compiler_static_F77='-static'
12957         ;;
12958       ccc)
12959         lt_prog_compiler_wl_F77='-Wl,'
12960         # All Alpha code is PIC.
12961         lt_prog_compiler_static_F77='-non_shared'
12962         ;;
12963       esac
12964       ;;
12965
12966     osf3* | osf4* | osf5*)
12967       lt_prog_compiler_wl_F77='-Wl,'
12968       # All OSF/1 code is PIC.
12969       lt_prog_compiler_static_F77='-non_shared'
12970       ;;
12971
12972     sco3.2v5*)
12973       lt_prog_compiler_pic_F77='-Kpic'
12974       lt_prog_compiler_static_F77='-dn'
12975       ;;
12976
12977     solaris*)
12978       lt_prog_compiler_wl_F77='-Wl,'
12979       lt_prog_compiler_pic_F77='-KPIC'
12980       lt_prog_compiler_static_F77='-Bstatic'
12981       ;;
12982
12983     sunos4*)
12984       lt_prog_compiler_wl_F77='-Qoption ld '
12985       lt_prog_compiler_pic_F77='-PIC'
12986       lt_prog_compiler_static_F77='-Bstatic'
12987       ;;
12988
12989     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12990       lt_prog_compiler_wl_F77='-Wl,'
12991       lt_prog_compiler_pic_F77='-KPIC'
12992       lt_prog_compiler_static_F77='-Bstatic'
12993       ;;
12994
12995     sysv4*MP*)
12996       if test -d /usr/nec ;then
12997         lt_prog_compiler_pic_F77='-Kconform_pic'
12998         lt_prog_compiler_static_F77='-Bstatic'
12999       fi
13000       ;;
13001
13002     uts4*)
13003       lt_prog_compiler_pic_F77='-pic'
13004       lt_prog_compiler_static_F77='-Bstatic'
13005       ;;
13006
13007     *)
13008       lt_prog_compiler_can_build_shared_F77=no
13009       ;;
13010     esac
13011   fi
13012
13013 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13014 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13015
13016 #
13017 # Check to make sure the PIC flag actually works.
13018 #
13019 if test -n "$lt_prog_compiler_pic_F77"; then
13020   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13021 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13022 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13023   echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025   lt_prog_compiler_pic_works_F77=no
13026   ac_outfile=conftest.$ac_objext
13027    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13028    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13029    # Insert the option either (1) after the last *FLAGS variable, or
13030    # (2) before a word containing "conftest.", or (3) at the end.
13031    # Note that $ac_compile itself does not contain backslashes and begins
13032    # with a dollar sign (not a hyphen), so the echo should work correctly.
13033    # The option is referenced via a variable to avoid confusing sed.
13034    lt_compile=`echo "$ac_compile" | $SED \
13035    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13037    -e 's:$: $lt_compiler_flag:'`
13038    (eval echo "\"\$as_me:13038: $lt_compile\"" >&5)
13039    (eval "$lt_compile" 2>conftest.err)
13040    ac_status=$?
13041    cat conftest.err >&5
13042    echo "$as_me:13042: \$? = $ac_status" >&5
13043    if (exit $ac_status) && test -s "$ac_outfile"; then
13044      # The compiler can only warn and ignore the option if not recognized
13045      # So say no if there are warnings
13046      if test ! -s conftest.err; then
13047        lt_prog_compiler_pic_works_F77=yes
13048      fi
13049    fi
13050    $rm conftest*
13051
13052 fi
13053 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13054 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13055
13056 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13057     case $lt_prog_compiler_pic_F77 in
13058      "" | " "*) ;;
13059      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13060      esac
13061 else
13062     lt_prog_compiler_pic_F77=
13063      lt_prog_compiler_can_build_shared_F77=no
13064 fi
13065
13066 fi
13067 case "$host_os" in
13068   # For platforms which do not support PIC, -DPIC is meaningless:
13069   *djgpp*)
13070     lt_prog_compiler_pic_F77=
13071     ;;
13072   *)
13073     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13074     ;;
13075 esac
13076
13077 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13078 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13079 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13080   echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082   lt_cv_prog_compiler_c_o_F77=no
13083    $rm -r conftest 2>/dev/null
13084    mkdir conftest
13085    cd conftest
13086    mkdir out
13087    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13088
13089    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13090    # that will create temporary files in the current directory regardless of
13091    # the output directory.  Thus, making CWD read-only will cause this test
13092    # to fail, enabling locking or at least warning the user not to do parallel
13093    # builds.
13094    chmod -w .
13095
13096    lt_compiler_flag="-o out/conftest2.$ac_objext"
13097    # Insert the option either (1) after the last *FLAGS variable, or
13098    # (2) before a word containing "conftest.", or (3) at the end.
13099    # Note that $ac_compile itself does not contain backslashes and begins
13100    # with a dollar sign (not a hyphen), so the echo should work correctly.
13101    lt_compile=`echo "$ac_compile" | $SED \
13102    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13104    -e 's:$: $lt_compiler_flag:'`
13105    (eval echo "\"\$as_me:13105: $lt_compile\"" >&5)
13106    (eval "$lt_compile" 2>out/conftest.err)
13107    ac_status=$?
13108    cat out/conftest.err >&5
13109    echo "$as_me:13109: \$? = $ac_status" >&5
13110    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13111    then
13112      # The compiler can only warn and ignore the option if not recognized
13113      # So say no if there are warnings
13114      if test ! -s out/conftest.err; then
13115        lt_cv_prog_compiler_c_o_F77=yes
13116      fi
13117    fi
13118    chmod u+w .
13119    $rm conftest* out/*
13120    rmdir out
13121    cd ..
13122    rmdir conftest
13123    $rm conftest*
13124
13125 fi
13126 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13127 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13128
13129
13130 hard_links="nottested"
13131 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13132   # do not overwrite the value of need_locks provided by the user
13133   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13134 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13135   hard_links=yes
13136   $rm conftest*
13137   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13138   touch conftest.a
13139   ln conftest.a conftest.b 2>&5 || hard_links=no
13140   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13141   echo "$as_me:$LINENO: result: $hard_links" >&5
13142 echo "${ECHO_T}$hard_links" >&6
13143   if test "$hard_links" = no; then
13144     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13145 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13146     need_locks=warn
13147   fi
13148 else
13149   need_locks=no
13150 fi
13151
13152 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13153 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13154
13155   runpath_var=
13156   allow_undefined_flag_F77=
13157   enable_shared_with_static_runtimes_F77=no
13158   archive_cmds_F77=
13159   archive_expsym_cmds_F77=
13160   old_archive_From_new_cmds_F77=
13161   old_archive_from_expsyms_cmds_F77=
13162   export_dynamic_flag_spec_F77=
13163   whole_archive_flag_spec_F77=
13164   thread_safe_flag_spec_F77=
13165   hardcode_libdir_flag_spec_F77=
13166   hardcode_libdir_flag_spec_ld_F77=
13167   hardcode_libdir_separator_F77=
13168   hardcode_direct_F77=no
13169   hardcode_minus_L_F77=no
13170   hardcode_shlibpath_var_F77=unsupported
13171   link_all_deplibs_F77=unknown
13172   hardcode_automatic_F77=no
13173   module_cmds_F77=
13174   module_expsym_cmds_F77=
13175   always_export_symbols_F77=no
13176   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13177   # include_expsyms should be a list of space-separated symbols to be *always*
13178   # included in the symbol list
13179   include_expsyms_F77=
13180   # exclude_expsyms can be an extended regexp of symbols to exclude
13181   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13182   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13183   # as well as any symbol that contains `d'.
13184   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13185   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13186   # platforms (ab)use it in PIC code, but their linkers get confused if
13187   # the symbol is explicitly referenced.  Since portable code cannot
13188   # rely on this symbol name, it's probably fine to never include it in
13189   # preloaded symbol tables.
13190   extract_expsyms_cmds=
13191
13192   case $host_os in
13193   cygwin* | mingw* | pw32*)
13194     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13195     # When not using gcc, we currently assume that we are using
13196     # Microsoft Visual C++.
13197     if test "$GCC" != yes; then
13198       with_gnu_ld=no
13199     fi
13200     ;;
13201   openbsd*)
13202     with_gnu_ld=no
13203     ;;
13204   esac
13205
13206   ld_shlibs_F77=yes
13207   if test "$with_gnu_ld" = yes; then
13208     # If archive_cmds runs LD, not CC, wlarc should be empty
13209     wlarc='${wl}'
13210
13211     # See if GNU ld supports shared libraries.
13212     case $host_os in
13213     aix3* | aix4* | aix5*)
13214       # On AIX/PPC, the GNU linker is very broken
13215       if test "$host_cpu" != ia64; then
13216         ld_shlibs_F77=no
13217         cat <<EOF 1>&2
13218
13219 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13220 *** to be unable to reliably create shared libraries on AIX.
13221 *** Therefore, libtool is disabling shared libraries support.  If you
13222 *** really care for shared libraries, you may want to modify your PATH
13223 *** so that a non-GNU linker is found, and then restart.
13224
13225 EOF
13226       fi
13227       ;;
13228
13229     amigaos*)
13230       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)'
13231       hardcode_libdir_flag_spec_F77='-L$libdir'
13232       hardcode_minus_L_F77=yes
13233
13234       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13235       # that the semantics of dynamic libraries on AmigaOS, at least up
13236       # to version 4, is to share data among multiple programs linked
13237       # with the same dynamic library.  Since this doesn't match the
13238       # behavior of shared libraries on other platforms, we can't use
13239       # them.
13240       ld_shlibs_F77=no
13241       ;;
13242
13243     beos*)
13244       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13245         allow_undefined_flag_F77=unsupported
13246         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13247         # support --undefined.  This deserves some investigation.  FIXME
13248         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13249       else
13250         ld_shlibs_F77=no
13251       fi
13252       ;;
13253
13254     cygwin* | mingw* | pw32*)
13255       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13256       # as there is no search path for DLLs.
13257       hardcode_libdir_flag_spec_F77='-L$libdir'
13258       allow_undefined_flag_F77=unsupported
13259       always_export_symbols_F77=no
13260       enable_shared_with_static_runtimes_F77=yes
13261       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13262
13263       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13264         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13265         # If the export-symbols file already is a .def file (1st line
13266         # is EXPORTS), use it as is; otherwise, prepend...
13267         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13268           cp $export_symbols $output_objdir/$soname.def;
13269         else
13270           echo EXPORTS > $output_objdir/$soname.def;
13271           cat $export_symbols >> $output_objdir/$soname.def;
13272         fi~
13273         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13274       else
13275         ld_shlibs=no
13276       fi
13277       ;;
13278
13279     netbsd*)
13280       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13281         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13282         wlarc=
13283       else
13284         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13285         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13286       fi
13287       ;;
13288
13289     solaris* | sysv5*)
13290       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13291         ld_shlibs_F77=no
13292         cat <<EOF 1>&2
13293
13294 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13295 *** create shared libraries on Solaris systems.  Therefore, libtool
13296 *** is disabling shared libraries support.  We urge you to upgrade GNU
13297 *** binutils to release 2.9.1 or newer.  Another option is to modify
13298 *** your PATH or compiler configuration so that the native linker is
13299 *** used, and then restart.
13300
13301 EOF
13302       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13303         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13304         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13305       else
13306         ld_shlibs_F77=no
13307       fi
13308       ;;
13309
13310     sunos4*)
13311       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13312       wlarc=
13313       hardcode_direct_F77=yes
13314       hardcode_shlibpath_var_F77=no
13315       ;;
13316
13317     *)
13318       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13319         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13320         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13321       else
13322         ld_shlibs_F77=no
13323       fi
13324       ;;
13325     esac
13326
13327     if test "$ld_shlibs_F77" = yes; then
13328       runpath_var=LD_RUN_PATH
13329       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13330       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13331       # ancient GNU ld didn't support --whole-archive et. al.
13332       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13333         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13334       else
13335         whole_archive_flag_spec_F77=
13336       fi
13337     fi
13338   else
13339     # PORTME fill in a description of your system's linker (not GNU ld)
13340     case $host_os in
13341     aix3*)
13342       allow_undefined_flag_F77=unsupported
13343       always_export_symbols_F77=yes
13344       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'
13345       # Note: this linker hardcodes the directories in LIBPATH if there
13346       # are no directories specified by -L.
13347       hardcode_minus_L_F77=yes
13348       if test "$GCC" = yes && test -z "$link_static_flag"; then
13349         # Neither direct hardcoding nor static linking is supported with a
13350         # broken collect2.
13351         hardcode_direct_F77=unsupported
13352       fi
13353       ;;
13354
13355     aix4* | aix5*)
13356       if test "$host_cpu" = ia64; then
13357         # On IA64, the linker does run time linking by default, so we don't
13358         # have to do anything special.
13359         aix_use_runtimelinking=no
13360         exp_sym_flag='-Bexport'
13361         no_entry_flag=""
13362       else
13363         # If we're using GNU nm, then we don't want the "-C" option.
13364         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13365         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13366           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'
13367         else
13368           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'
13369         fi
13370         aix_use_runtimelinking=no
13371
13372         # Test if we are trying to use run time linking or normal
13373         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13374         # need to do runtime linking.
13375         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13376           for ld_flag in $LDFLAGS; do
13377           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13378             aix_use_runtimelinking=yes
13379             break
13380           fi
13381           done
13382         esac
13383
13384         exp_sym_flag='-bexport'
13385         no_entry_flag='-bnoentry'
13386       fi
13387
13388       # When large executables or shared objects are built, AIX ld can
13389       # have problems creating the table of contents.  If linking a library
13390       # or program results in "error TOC overflow" add -mminimal-toc to
13391       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13392       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13393
13394       archive_cmds_F77=''
13395       hardcode_direct_F77=yes
13396       hardcode_libdir_separator_F77=':'
13397       link_all_deplibs_F77=yes
13398
13399       if test "$GCC" = yes; then
13400         case $host_os in aix4.012|aix4.012.*)
13401         # We only want to do this on AIX 4.2 and lower, the check
13402         # below for broken collect2 doesn't work under 4.3+
13403           collect2name=`${CC} -print-prog-name=collect2`
13404           if test -f "$collect2name" && \
13405            strings "$collect2name" | grep resolve_lib_name >/dev/null
13406           then
13407           # We have reworked collect2
13408           hardcode_direct_F77=yes
13409           else
13410           # We have old collect2
13411           hardcode_direct_F77=unsupported
13412           # It fails to find uninstalled libraries when the uninstalled
13413           # path is not listed in the libpath.  Setting hardcode_minus_L
13414           # to unsupported forces relinking
13415           hardcode_minus_L_F77=yes
13416           hardcode_libdir_flag_spec_F77='-L$libdir'
13417           hardcode_libdir_separator_F77=
13418           fi
13419         esac
13420         shared_flag='-shared'
13421       else
13422         # not using gcc
13423         if test "$host_cpu" = ia64; then
13424         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13425         # chokes on -Wl,-G. The following line is correct:
13426           shared_flag='-G'
13427         else
13428         if test "$aix_use_runtimelinking" = yes; then
13429             shared_flag='${wl}-G'
13430           else
13431             shared_flag='${wl}-bM:SRE'
13432         fi
13433         fi
13434       fi
13435
13436       # It seems that -bexpall does not export symbols beginning with
13437       # underscore (_), so it is better to generate a list of symbols to export.
13438       always_export_symbols_F77=yes
13439       if test "$aix_use_runtimelinking" = yes; then
13440         # Warning - without using the other runtime loading flags (-brtl),
13441         # -berok will link without error, but may produce a broken library.
13442         allow_undefined_flag_F77='-berok'
13443        # Determine the default libpath from the value encoded in an empty executable.
13444        cat >conftest.$ac_ext <<_ACEOF
13445       program main
13446
13447       end
13448 _ACEOF
13449 rm -f conftest.$ac_objext conftest$ac_exeext
13450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13451   (eval $ac_link) 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -s conftest$ac_exeext'
13456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457   (eval $ac_try) 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; }; then
13461
13462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13463 }'`
13464 # Check for a 64-bit object if we didn't find anything.
13465 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; }
13466 }'`; fi
13467 else
13468   echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471 fi
13472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13474
13475        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13476         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"
13477        else
13478         if test "$host_cpu" = ia64; then
13479           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13480           allow_undefined_flag_F77="-z nodefs"
13481           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"
13482         else
13483          # Determine the default libpath from the value encoded in an empty executable.
13484          cat >conftest.$ac_ext <<_ACEOF
13485       program main
13486
13487       end
13488 _ACEOF
13489 rm -f conftest.$ac_objext conftest$ac_exeext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13491   (eval $ac_link) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); } &&
13495          { ac_try='test -s conftest$ac_exeext'
13496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497   (eval $ac_try) 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; }; then
13501
13502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13503 }'`
13504 # Check for a 64-bit object if we didn't find anything.
13505 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; }
13506 }'`; fi
13507 else
13508   echo "$as_me: failed program was:" >&5
13509 sed 's/^/| /' conftest.$ac_ext >&5
13510
13511 fi
13512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13514
13515          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13516           # Warning - without using the other run time loading flags,
13517           # -berok will link without error, but may produce a broken library.
13518           no_undefined_flag_F77=' ${wl}-bernotok'
13519           allow_undefined_flag_F77=' ${wl}-berok'
13520           # -bexpall does not export symbols beginning with underscore (_)
13521           always_export_symbols_F77=yes
13522           # Exported symbols can be pulled into shared objects from archives
13523           whole_archive_flag_spec_F77=' '
13524           archive_cmds_need_lc_F77=yes
13525           # This is similar to how AIX traditionally builds it's shared libraries.
13526           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'
13527         fi
13528       fi
13529       ;;
13530
13531     amigaos*)
13532       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)'
13533       hardcode_libdir_flag_spec_F77='-L$libdir'
13534       hardcode_minus_L_F77=yes
13535       # see comment about different semantics on the GNU ld section
13536       ld_shlibs_F77=no
13537       ;;
13538
13539     bsdi4*)
13540       export_dynamic_flag_spec_F77=-rdynamic
13541       ;;
13542
13543     cygwin* | mingw* | pw32*)
13544       # When not using gcc, we currently assume that we are using
13545       # Microsoft Visual C++.
13546       # hardcode_libdir_flag_spec is actually meaningless, as there is
13547       # no search path for DLLs.
13548       hardcode_libdir_flag_spec_F77=' '
13549       allow_undefined_flag_F77=unsupported
13550       # Tell ltmain to make .lib files, not .a files.
13551       libext=lib
13552       # Tell ltmain to make .dll files, not .so files.
13553       shrext=".dll"
13554       # FIXME: Setting linknames here is a bad hack.
13555       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13556       # The linker will automatically build a .lib file if we build a DLL.
13557       old_archive_From_new_cmds_F77='true'
13558       # FIXME: Should let the user specify the lib program.
13559       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13560       fix_srcfile_path='`cygpath -w "$srcfile"`'
13561       enable_shared_with_static_runtimes_F77=yes
13562       ;;
13563
13564     darwin* | rhapsody*)
13565     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13566       archive_cmds_need_lc_F77=no
13567       case "$host_os" in
13568       rhapsody* | darwin1.[012])
13569         allow_undefined_flag_F77='-undefined suppress'
13570         ;;
13571       *) # Darwin 1.3 on
13572         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13573         ;;
13574       esac
13575       # FIXME: Relying on posixy $() will cause problems for
13576       #        cross-compilation, but unfortunately the echo tests do not
13577       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13578       #        `"' quotes if we put them in here... so don't!
13579         lt_int_apple_cc_single_mod=no
13580         output_verbose_link_cmd='echo'
13581         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13582           lt_int_apple_cc_single_mod=yes
13583         fi
13584         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13585           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13586         else
13587         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'
13588       fi
13589       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13590       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13591         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13592           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}'
13593         else
13594           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}'
13595         fi
13596           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}'
13597       hardcode_direct_F77=no
13598       hardcode_automatic_F77=yes
13599       hardcode_shlibpath_var_F77=unsupported
13600       whole_archive_flag_spec_F77='-all_load $convenience'
13601       link_all_deplibs_F77=yes
13602     fi
13603       ;;
13604
13605     dgux*)
13606       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13607       hardcode_libdir_flag_spec_F77='-L$libdir'
13608       hardcode_shlibpath_var_F77=no
13609       ;;
13610
13611     freebsd1*)
13612       ld_shlibs_F77=no
13613       ;;
13614
13615     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13616     # support.  Future versions do this automatically, but an explicit c++rt0.o
13617     # does not break anything, and helps significantly (at the cost of a little
13618     # extra space).
13619     freebsd2.2*)
13620       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13621       hardcode_libdir_flag_spec_F77='-R$libdir'
13622       hardcode_direct_F77=yes
13623       hardcode_shlibpath_var_F77=no
13624       ;;
13625
13626     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13627     freebsd2*)
13628       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13629       hardcode_direct_F77=yes
13630       hardcode_minus_L_F77=yes
13631       hardcode_shlibpath_var_F77=no
13632       ;;
13633
13634     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13635     freebsd*)
13636       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13637       hardcode_libdir_flag_spec_F77='-R$libdir'
13638       hardcode_direct_F77=yes
13639       hardcode_shlibpath_var_F77=no
13640       ;;
13641
13642     hpux9*)
13643       if test "$GCC" = yes; then
13644         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'
13645       else
13646         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'
13647       fi
13648       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13649       hardcode_libdir_separator_F77=:
13650       hardcode_direct_F77=yes
13651
13652       # hardcode_minus_L: Not really in the search PATH,
13653       # but as the default location of the library.
13654       hardcode_minus_L_F77=yes
13655       export_dynamic_flag_spec_F77='${wl}-E'
13656       ;;
13657
13658     hpux10* | hpux11*)
13659       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13660         case "$host_cpu" in
13661         hppa*64*|ia64*)
13662           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13663           ;;
13664         *)
13665           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13666           ;;
13667         esac
13668       else
13669         case "$host_cpu" in
13670         hppa*64*|ia64*)
13671           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13672           ;;
13673         *)
13674           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13675           ;;
13676         esac
13677       fi
13678       if test "$with_gnu_ld" = no; then
13679         case "$host_cpu" in
13680         hppa*64*)
13681           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13682           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13683           hardcode_libdir_separator_F77=:
13684           hardcode_direct_F77=no
13685           hardcode_shlibpath_var_F77=no
13686           ;;
13687         ia64*)
13688           hardcode_libdir_flag_spec_F77='-L$libdir'
13689           hardcode_direct_F77=no
13690           hardcode_shlibpath_var_F77=no
13691
13692           # hardcode_minus_L: Not really in the search PATH,
13693           # but as the default location of the library.
13694           hardcode_minus_L_F77=yes
13695           ;;
13696         *)
13697           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13698           hardcode_libdir_separator_F77=:
13699           hardcode_direct_F77=yes
13700           export_dynamic_flag_spec_F77='${wl}-E'
13701
13702           # hardcode_minus_L: Not really in the search PATH,
13703           # but as the default location of the library.
13704           hardcode_minus_L_F77=yes
13705           ;;
13706         esac
13707       fi
13708       ;;
13709
13710     irix5* | irix6* | nonstopux*)
13711       if test "$GCC" = yes; then
13712         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'
13713       else
13714         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'
13715         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13716       fi
13717       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13718       hardcode_libdir_separator_F77=:
13719       link_all_deplibs_F77=yes
13720       ;;
13721
13722     netbsd*)
13723       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13724         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13725       else
13726         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13727       fi
13728       hardcode_libdir_flag_spec_F77='-R$libdir'
13729       hardcode_direct_F77=yes
13730       hardcode_shlibpath_var_F77=no
13731       ;;
13732
13733     newsos6)
13734       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13735       hardcode_direct_F77=yes
13736       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13737       hardcode_libdir_separator_F77=:
13738       hardcode_shlibpath_var_F77=no
13739       ;;
13740
13741     openbsd*)
13742       hardcode_direct_F77=yes
13743       hardcode_shlibpath_var_F77=no
13744       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13745         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13746         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13747         export_dynamic_flag_spec_F77='${wl}-E'
13748       else
13749        case $host_os in
13750          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13751            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13752            hardcode_libdir_flag_spec_F77='-R$libdir'
13753            ;;
13754          *)
13755            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13756            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13757            ;;
13758        esac
13759       fi
13760       ;;
13761
13762     os2*)
13763       hardcode_libdir_flag_spec_F77='-L$libdir'
13764       hardcode_minus_L_F77=yes
13765       allow_undefined_flag_F77=unsupported
13766       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'
13767       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13768       ;;
13769
13770     osf3*)
13771       if test "$GCC" = yes; then
13772         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13773         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'
13774       else
13775         allow_undefined_flag_F77=' -expect_unresolved \*'
13776         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'
13777       fi
13778       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13779       hardcode_libdir_separator_F77=:
13780       ;;
13781
13782     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13783       if test "$GCC" = yes; then
13784         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13785         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'
13786         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13787       else
13788         allow_undefined_flag_F77=' -expect_unresolved \*'
13789         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'
13790         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~
13791         $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'
13792
13793         # Both c and cxx compiler support -rpath directly
13794         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13795       fi
13796       hardcode_libdir_separator_F77=:
13797       ;;
13798
13799     sco3.2v5*)
13800       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13801       hardcode_shlibpath_var_F77=no
13802       export_dynamic_flag_spec_F77='${wl}-Bexport'
13803       runpath_var=LD_RUN_PATH
13804       hardcode_runpath_var=yes
13805       ;;
13806
13807     solaris*)
13808       no_undefined_flag_F77=' -z text'
13809       if test "$GCC" = yes; then
13810         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13811         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13812           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13813       else
13814         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13815         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13816         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13817       fi
13818       hardcode_libdir_flag_spec_F77='-R$libdir'
13819       hardcode_shlibpath_var_F77=no
13820       case $host_os in
13821       solaris2.[0-5] | solaris2.[0-5].*) ;;
13822       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13823         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13824       esac
13825       link_all_deplibs_F77=yes
13826       ;;
13827
13828     sunos4*)
13829       if test "x$host_vendor" = xsequent; then
13830         # Use $CC to link under sequent, because it throws in some extra .o
13831         # files that make .init and .fini sections work.
13832         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13833       else
13834         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13835       fi
13836       hardcode_libdir_flag_spec_F77='-L$libdir'
13837       hardcode_direct_F77=yes
13838       hardcode_minus_L_F77=yes
13839       hardcode_shlibpath_var_F77=no
13840       ;;
13841
13842     sysv4)
13843       case $host_vendor in
13844         sni)
13845           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846           hardcode_direct_F77=yes # is this really true???
13847         ;;
13848         siemens)
13849           ## LD is ld it makes a PLAMLIB
13850           ## CC just makes a GrossModule.
13851           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13852           reload_cmds_F77='$CC -r -o $output$reload_objs'
13853           hardcode_direct_F77=no
13854         ;;
13855         motorola)
13856           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13857           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13858         ;;
13859       esac
13860       runpath_var='LD_RUN_PATH'
13861       hardcode_shlibpath_var_F77=no
13862       ;;
13863
13864     sysv4.3*)
13865       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13866       hardcode_shlibpath_var_F77=no
13867       export_dynamic_flag_spec_F77='-Bexport'
13868       ;;
13869
13870     sysv4*MP*)
13871       if test -d /usr/nec; then
13872         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873         hardcode_shlibpath_var_F77=no
13874         runpath_var=LD_RUN_PATH
13875         hardcode_runpath_var=yes
13876         ld_shlibs_F77=yes
13877       fi
13878       ;;
13879
13880     sysv4.2uw2*)
13881       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13882       hardcode_direct_F77=yes
13883       hardcode_minus_L_F77=no
13884       hardcode_shlibpath_var_F77=no
13885       hardcode_runpath_var=yes
13886       runpath_var=LD_RUN_PATH
13887       ;;
13888
13889    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13890       no_undefined_flag_F77='${wl}-z ${wl}text'
13891       if test "$GCC" = yes; then
13892         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13893       else
13894         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13895       fi
13896       runpath_var='LD_RUN_PATH'
13897       hardcode_shlibpath_var_F77=no
13898       ;;
13899
13900     sysv5*)
13901       no_undefined_flag_F77=' -z text'
13902       # $CC -shared without GNU ld will not create a library from C++
13903       # object files and a static libstdc++, better avoid it by now
13904       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13905       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13906                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13907       hardcode_libdir_flag_spec_F77=
13908       hardcode_shlibpath_var_F77=no
13909       runpath_var='LD_RUN_PATH'
13910       ;;
13911
13912     uts4*)
13913       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13914       hardcode_libdir_flag_spec_F77='-L$libdir'
13915       hardcode_shlibpath_var_F77=no
13916       ;;
13917
13918     *)
13919       ld_shlibs_F77=no
13920       ;;
13921     esac
13922   fi
13923
13924 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13925 echo "${ECHO_T}$ld_shlibs_F77" >&6
13926 test "$ld_shlibs_F77" = no && can_build_shared=no
13927
13928 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13929 if test "$GCC" = yes; then
13930   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13931 fi
13932
13933 #
13934 # Do we need to explicitly link libc?
13935 #
13936 case "x$archive_cmds_need_lc_F77" in
13937 x|xyes)
13938   # Assume -lc should be added
13939   archive_cmds_need_lc_F77=yes
13940
13941   if test "$enable_shared" = yes && test "$GCC" = yes; then
13942     case $archive_cmds_F77 in
13943     *'~'*)
13944       # FIXME: we may have to deal with multi-command sequences.
13945       ;;
13946     '$CC '*)
13947       # Test whether the compiler implicitly links with -lc since on some
13948       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13949       # to ld, don't add -lc before -lgcc.
13950       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13951 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13952       $rm conftest*
13953       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13954
13955       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956   (eval $ac_compile) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); } 2>conftest.err; then
13960         soname=conftest
13961         lib=conftest
13962         libobjs=conftest.$ac_objext
13963         deplibs=
13964         wl=$lt_prog_compiler_wl_F77
13965         compiler_flags=-v
13966         linker_flags=-v
13967         verstring=
13968         output_objdir=.
13969         libname=conftest
13970         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13971         allow_undefined_flag_F77=
13972         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13973   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); }
13977         then
13978           archive_cmds_need_lc_F77=no
13979         else
13980           archive_cmds_need_lc_F77=yes
13981         fi
13982         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13983       else
13984         cat conftest.err 1>&5
13985       fi
13986       $rm conftest*
13987       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13988 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13989       ;;
13990     esac
13991   fi
13992   ;;
13993 esac
13994
13995 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13996 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13997 hardcode_action_F77=
13998 if test -n "$hardcode_libdir_flag_spec_F77" || \
13999    test -n "$runpath_var F77" || \
14000    test "X$hardcode_automatic_F77"="Xyes" ; then
14001
14002   # We can hardcode non-existant directories.
14003   if test "$hardcode_direct_F77" != no &&
14004      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14005      # have to relink, otherwise we might link with an installed library
14006      # when we should be linking with a yet-to-be-installed one
14007      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14008      test "$hardcode_minus_L_F77" != no; then
14009     # Linking always hardcodes the temporary library directory.
14010     hardcode_action_F77=relink
14011   else
14012     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14013     hardcode_action_F77=immediate
14014   fi
14015 else
14016   # We cannot hardcode anything, or else we can only hardcode existing
14017   # directories.
14018   hardcode_action_F77=unsupported
14019 fi
14020 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14021 echo "${ECHO_T}$hardcode_action_F77" >&6
14022
14023 if test "$hardcode_action_F77" = relink; then
14024   # Fast installation is not supported
14025   enable_fast_install=no
14026 elif test "$shlibpath_overrides_runpath" = yes ||
14027      test "$enable_shared" = no; then
14028   # Fast installation is not necessary
14029   enable_fast_install=needless
14030 fi
14031
14032 striplib=
14033 old_striplib=
14034 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14035 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14036 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14037   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14038   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14039   echo "$as_me:$LINENO: result: yes" >&5
14040 echo "${ECHO_T}yes" >&6
14041 else
14042 # FIXME - insert some real tests, host_os isn't really good enough
14043   case $host_os in
14044    darwin*)
14045        if test -n "$STRIP" ; then
14046          striplib="$STRIP -x"
14047          echo "$as_me:$LINENO: result: yes" >&5
14048 echo "${ECHO_T}yes" >&6
14049        else
14050   echo "$as_me:$LINENO: result: no" >&5
14051 echo "${ECHO_T}no" >&6
14052 fi
14053        ;;
14054    *)
14055   echo "$as_me:$LINENO: result: no" >&5
14056 echo "${ECHO_T}no" >&6
14057     ;;
14058   esac
14059 fi
14060
14061 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14062 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14063 library_names_spec=
14064 libname_spec='lib$name'
14065 soname_spec=
14066 shrext=".so"
14067 postinstall_cmds=
14068 postuninstall_cmds=
14069 finish_cmds=
14070 finish_eval=
14071 shlibpath_var=
14072 shlibpath_overrides_runpath=unknown
14073 version_type=none
14074 dynamic_linker="$host_os ld.so"
14075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14076 if test "$GCC" = yes; then
14077   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14078   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14079     # if the path contains ";" then we assume it to be the separator
14080     # otherwise default to the standard path separator (i.e. ":") - it is
14081     # assumed that no part of a normal pathname contains ";" but that should
14082     # okay in the real world where ";" in dirpaths is itself problematic.
14083     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14084   else
14085     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14086   fi
14087 else
14088   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14089 fi
14090 need_lib_prefix=unknown
14091 hardcode_into_libs=no
14092
14093 # when you set need_version to no, make sure it does not cause -set_version
14094 # flags to be left without arguments
14095 need_version=unknown
14096
14097 case $host_os in
14098 aix3*)
14099   version_type=linux
14100   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14101   shlibpath_var=LIBPATH
14102
14103   # AIX 3 has no versioning support, so we append a major version to the name.
14104   soname_spec='${libname}${release}${shared_ext}$major'
14105   ;;
14106
14107 aix4* | aix5*)
14108   version_type=linux
14109   need_lib_prefix=no
14110   need_version=no
14111   hardcode_into_libs=yes
14112   if test "$host_cpu" = ia64; then
14113     # AIX 5 supports IA64
14114     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14115     shlibpath_var=LD_LIBRARY_PATH
14116   else
14117     # With GCC up to 2.95.x, collect2 would create an import file
14118     # for dependence libraries.  The import file would start with
14119     # the line `#! .'.  This would cause the generated library to
14120     # depend on `.', always an invalid library.  This was fixed in
14121     # development snapshots of GCC prior to 3.0.
14122     case $host_os in
14123       aix4 | aix4.[01] | aix4.[01].*)
14124       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14125            echo ' yes '
14126            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14127         :
14128       else
14129         can_build_shared=no
14130       fi
14131       ;;
14132     esac
14133     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14134     # soname into executable. Probably we can add versioning support to
14135     # collect2, so additional links can be useful in future.
14136     if test "$aix_use_runtimelinking" = yes; then
14137       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14138       # instead of lib<name>.a to let people know that these are not
14139       # typical AIX shared libraries.
14140       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14141     else
14142       # We preserve .a as extension for shared libraries through AIX4.2
14143       # and later when we are not doing run time linking.
14144       library_names_spec='${libname}${release}.a $libname.a'
14145       soname_spec='${libname}${release}${shared_ext}$major'
14146     fi
14147     shlibpath_var=LIBPATH
14148   fi
14149   ;;
14150
14151 amigaos*)
14152   library_names_spec='$libname.ixlibrary $libname.a'
14153   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14154   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'
14155   ;;
14156
14157 beos*)
14158   library_names_spec='${libname}${shared_ext}'
14159   dynamic_linker="$host_os ld.so"
14160   shlibpath_var=LIBRARY_PATH
14161   ;;
14162
14163 bsdi4*)
14164   version_type=linux
14165   need_version=no
14166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14167   soname_spec='${libname}${release}${shared_ext}$major'
14168   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14169   shlibpath_var=LD_LIBRARY_PATH
14170   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14171   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14172   # the default ld.so.conf also contains /usr/contrib/lib and
14173   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14174   # libtool to hard-code these into programs
14175   ;;
14176
14177 cygwin* | mingw* | pw32*)
14178   version_type=windows
14179   shrext=".dll"
14180   need_version=no
14181   need_lib_prefix=no
14182
14183   case $GCC,$host_os in
14184   yes,cygwin* | yes,mingw* | yes,pw32*)
14185     library_names_spec='$libname.dll.a'
14186     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14187     postinstall_cmds='base_file=`basename \${file}`~
14188       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14189       dldir=$destdir/`dirname \$dlpath`~
14190       test -d \$dldir || mkdir -p \$dldir~
14191       $install_prog $dir/$dlname \$dldir/$dlname'
14192     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14193       dlpath=$dir/\$dldll~
14194        $rm \$dlpath'
14195     shlibpath_overrides_runpath=yes
14196
14197     case $host_os in
14198     cygwin*)
14199       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14200       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14201       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14202       ;;
14203     mingw*)
14204       # MinGW DLLs use traditional 'lib' prefix
14205       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14206       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14207       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14208         # It is most probably a Windows format PATH printed by
14209         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14210         # path with ; separators, and with drive letters. We can handle the
14211         # drive letters (cygwin fileutils understands them), so leave them,
14212         # especially as we might pass files found there to a mingw objdump,
14213         # which wouldn't understand a cygwinified path. Ahh.
14214         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14215       else
14216         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14217       fi
14218       ;;
14219     pw32*)
14220       # pw32 DLLs use 'pw' prefix rather than 'lib'
14221       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14222       ;;
14223     esac
14224     ;;
14225
14226   *)
14227     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14228     ;;
14229   esac
14230   dynamic_linker='Win32 ld.exe'
14231   # FIXME: first we should search . and the directory the executable is in
14232   shlibpath_var=PATH
14233   ;;
14234
14235 darwin* | rhapsody*)
14236   dynamic_linker="$host_os dyld"
14237   version_type=darwin
14238   need_lib_prefix=no
14239   need_version=no
14240   # FIXME: Relying on posixy $() will cause problems for
14241   #        cross-compilation, but unfortunately the echo tests do not
14242   #        yet detect zsh echo's removal of \ escapes.
14243   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14244   soname_spec='${libname}${release}${major}$shared_ext'
14245   shlibpath_overrides_runpath=yes
14246   shlibpath_var=DYLD_LIBRARY_PATH
14247   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14248   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14249   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14250   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"`
14251   fi
14252   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14253   ;;
14254
14255 dgux*)
14256   version_type=linux
14257   need_lib_prefix=no
14258   need_version=no
14259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14260   soname_spec='${libname}${release}${shared_ext}$major'
14261   shlibpath_var=LD_LIBRARY_PATH
14262   ;;
14263
14264 freebsd1*)
14265   dynamic_linker=no
14266   ;;
14267
14268 freebsd*)
14269   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14270   version_type=freebsd-$objformat
14271   case $version_type in
14272     freebsd-elf*)
14273       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14274       need_version=no
14275       need_lib_prefix=no
14276       ;;
14277     freebsd-*)
14278       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14279       need_version=yes
14280       ;;
14281   esac
14282   shlibpath_var=LD_LIBRARY_PATH
14283   case $host_os in
14284   freebsd2*)
14285     shlibpath_overrides_runpath=yes
14286     ;;
14287   freebsd3.01* | freebsdelf3.01*)
14288     shlibpath_overrides_runpath=yes
14289     hardcode_into_libs=yes
14290     ;;
14291   *) # from 3.2 on
14292     shlibpath_overrides_runpath=no
14293     hardcode_into_libs=yes
14294     ;;
14295   esac
14296   ;;
14297
14298 gnu*)
14299   version_type=linux
14300   need_lib_prefix=no
14301   need_version=no
14302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14303   soname_spec='${libname}${release}${shared_ext}$major'
14304   shlibpath_var=LD_LIBRARY_PATH
14305   hardcode_into_libs=yes
14306   ;;
14307
14308 hpux9* | hpux10* | hpux11*)
14309   # Give a soname corresponding to the major version so that dld.sl refuses to
14310   # link against other versions.
14311   version_type=sunos
14312   need_lib_prefix=no
14313   need_version=no
14314   case "$host_cpu" in
14315   ia64*)
14316     shrext='.so'
14317     hardcode_into_libs=yes
14318     dynamic_linker="$host_os dld.so"
14319     shlibpath_var=LD_LIBRARY_PATH
14320     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14322     soname_spec='${libname}${release}${shared_ext}$major'
14323     if test "X$HPUX_IA64_MODE" = X32; then
14324       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14325     else
14326       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14327     fi
14328     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14329     ;;
14330    hppa*64*)
14331      shrext='.sl'
14332      hardcode_into_libs=yes
14333      dynamic_linker="$host_os dld.sl"
14334      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14335      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14336      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337      soname_spec='${libname}${release}${shared_ext}$major'
14338      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14339      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14340      ;;
14341    *)
14342     shrext='.sl'
14343     dynamic_linker="$host_os dld.sl"
14344     shlibpath_var=SHLIB_PATH
14345     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347     soname_spec='${libname}${release}${shared_ext}$major'
14348     ;;
14349   esac
14350   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14351   postinstall_cmds='chmod 555 $lib'
14352   ;;
14353
14354 irix5* | irix6* | nonstopux*)
14355   case $host_os in
14356     nonstopux*) version_type=nonstopux ;;
14357     *)
14358         if test "$lt_cv_prog_gnu_ld" = yes; then
14359                 version_type=linux
14360         else
14361                 version_type=irix
14362         fi ;;
14363   esac
14364   need_lib_prefix=no
14365   need_version=no
14366   soname_spec='${libname}${release}${shared_ext}$major'
14367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14368   case $host_os in
14369   irix5* | nonstopux*)
14370     libsuff= shlibsuff=
14371     ;;
14372   *)
14373     case $LD in # libtool.m4 will add one of these switches to LD
14374     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14375       libsuff= shlibsuff= libmagic=32-bit;;
14376     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14377       libsuff=32 shlibsuff=N32 libmagic=N32;;
14378     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14379       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14380     *) libsuff= shlibsuff= libmagic=never-match;;
14381     esac
14382     ;;
14383   esac
14384   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14385   shlibpath_overrides_runpath=no
14386   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14387   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14388   hardcode_into_libs=yes
14389   ;;
14390
14391 # No shared lib support for Linux oldld, aout, or coff.
14392 linux*oldld* | linux*aout* | linux*coff*)
14393   dynamic_linker=no
14394   ;;
14395
14396 # This must be Linux ELF.
14397 linux*)
14398   version_type=linux
14399   need_lib_prefix=no
14400   need_version=no
14401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14402   soname_spec='${libname}${release}${shared_ext}$major'
14403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14404   shlibpath_var=LD_LIBRARY_PATH
14405   shlibpath_overrides_runpath=no
14406   # This implies no fast_install, which is unacceptable.
14407   # Some rework will be needed to allow for fast_install
14408   # before this can be enabled.
14409   hardcode_into_libs=yes
14410
14411   # We used to test for /lib/ld.so.1 and disable shared libraries on
14412   # powerpc, because MkLinux only supported shared libraries with the
14413   # GNU dynamic linker.  Since this was broken with cross compilers,
14414   # most powerpc-linux boxes support dynamic linking these days and
14415   # people can always --disable-shared, the test was removed, and we
14416   # assume the GNU/Linux dynamic linker is in use.
14417   dynamic_linker='GNU/Linux ld.so'
14418   ;;
14419
14420 netbsd*)
14421   version_type=sunos
14422   need_lib_prefix=no
14423   need_version=no
14424   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14426     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14427     dynamic_linker='NetBSD (a.out) ld.so'
14428   else
14429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14430     soname_spec='${libname}${release}${shared_ext}$major'
14431     dynamic_linker='NetBSD ld.elf_so'
14432   fi
14433   shlibpath_var=LD_LIBRARY_PATH
14434   shlibpath_overrides_runpath=yes
14435   hardcode_into_libs=yes
14436   ;;
14437
14438 newsos6)
14439   version_type=linux
14440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441   shlibpath_var=LD_LIBRARY_PATH
14442   shlibpath_overrides_runpath=yes
14443   ;;
14444
14445 nto-qnx)
14446   version_type=linux
14447   need_lib_prefix=no
14448   need_version=no
14449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450   soname_spec='${libname}${release}${shared_ext}$major'
14451   shlibpath_var=LD_LIBRARY_PATH
14452   shlibpath_overrides_runpath=yes
14453   ;;
14454
14455 openbsd*)
14456   version_type=sunos
14457   need_lib_prefix=no
14458   need_version=no
14459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14460   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14461   shlibpath_var=LD_LIBRARY_PATH
14462   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14463     case $host_os in
14464       openbsd2.[89] | openbsd2.[89].*)
14465         shlibpath_overrides_runpath=no
14466         ;;
14467       *)
14468         shlibpath_overrides_runpath=yes
14469         ;;
14470       esac
14471   else
14472     shlibpath_overrides_runpath=yes
14473   fi
14474   ;;
14475
14476 os2*)
14477   libname_spec='$name'
14478   shrext=".dll"
14479   need_lib_prefix=no
14480   library_names_spec='$libname${shared_ext} $libname.a'
14481   dynamic_linker='OS/2 ld.exe'
14482   shlibpath_var=LIBPATH
14483   ;;
14484
14485 osf3* | osf4* | osf5*)
14486   version_type=osf
14487   need_lib_prefix=no
14488   need_version=no
14489   soname_spec='${libname}${release}${shared_ext}$major'
14490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491   shlibpath_var=LD_LIBRARY_PATH
14492   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14493   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14494   ;;
14495
14496 sco3.2v5*)
14497   version_type=osf
14498   soname_spec='${libname}${release}${shared_ext}$major'
14499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500   shlibpath_var=LD_LIBRARY_PATH
14501   ;;
14502
14503 solaris*)
14504   version_type=linux
14505   need_lib_prefix=no
14506   need_version=no
14507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508   soname_spec='${libname}${release}${shared_ext}$major'
14509   shlibpath_var=LD_LIBRARY_PATH
14510   shlibpath_overrides_runpath=yes
14511   hardcode_into_libs=yes
14512   # ldd complains unless libraries are executable
14513   postinstall_cmds='chmod +x $lib'
14514   ;;
14515
14516 sunos4*)
14517   version_type=sunos
14518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14519   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14520   shlibpath_var=LD_LIBRARY_PATH
14521   shlibpath_overrides_runpath=yes
14522   if test "$with_gnu_ld" = yes; then
14523     need_lib_prefix=no
14524   fi
14525   need_version=yes
14526   ;;
14527
14528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14529   version_type=linux
14530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531   soname_spec='${libname}${release}${shared_ext}$major'
14532   shlibpath_var=LD_LIBRARY_PATH
14533   case $host_vendor in
14534     sni)
14535       shlibpath_overrides_runpath=no
14536       need_lib_prefix=no
14537       export_dynamic_flag_spec='${wl}-Blargedynsym'
14538       runpath_var=LD_RUN_PATH
14539       ;;
14540     siemens)
14541       need_lib_prefix=no
14542       ;;
14543     motorola)
14544       need_lib_prefix=no
14545       need_version=no
14546       shlibpath_overrides_runpath=no
14547       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14548       ;;
14549   esac
14550   ;;
14551
14552 sysv4*MP*)
14553   if test -d /usr/nec ;then
14554     version_type=linux
14555     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14556     soname_spec='$libname${shared_ext}.$major'
14557     shlibpath_var=LD_LIBRARY_PATH
14558   fi
14559   ;;
14560
14561 uts4*)
14562   version_type=linux
14563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564   soname_spec='${libname}${release}${shared_ext}$major'
14565   shlibpath_var=LD_LIBRARY_PATH
14566   ;;
14567
14568 *)
14569   dynamic_linker=no
14570   ;;
14571 esac
14572 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14573 echo "${ECHO_T}$dynamic_linker" >&6
14574 test "$dynamic_linker" = no && can_build_shared=no
14575
14576
14577 # The else clause should only fire when bootstrapping the
14578 # libtool distribution, otherwise you forgot to ship ltmain.sh
14579 # with your package, and you will get complaints that there are
14580 # no rules to generate ltmain.sh.
14581 if test -f "$ltmain"; then
14582   # See if we are running on zsh, and set the options which allow our commands through
14583   # without removal of \ escapes.
14584   if test -n "${ZSH_VERSION+set}" ; then
14585     setopt NO_GLOB_SUBST
14586   fi
14587   # Now quote all the things that may contain metacharacters while being
14588   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14589   # variables and quote the copies for generation of the libtool script.
14590   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14591     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14592     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14593     deplibs_check_method reload_flag reload_cmds need_locks \
14594     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14595     lt_cv_sys_global_symbol_to_c_name_address \
14596     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14597     old_postinstall_cmds old_postuninstall_cmds \
14598     compiler_F77 \
14599     CC_F77 \
14600     LD_F77 \
14601     lt_prog_compiler_wl_F77 \
14602     lt_prog_compiler_pic_F77 \
14603     lt_prog_compiler_static_F77 \
14604     lt_prog_compiler_no_builtin_flag_F77 \
14605     export_dynamic_flag_spec_F77 \
14606     thread_safe_flag_spec_F77 \
14607     whole_archive_flag_spec_F77 \
14608     enable_shared_with_static_runtimes_F77 \
14609     old_archive_cmds_F77 \
14610     old_archive_from_new_cmds_F77 \
14611     predep_objects_F77 \
14612     postdep_objects_F77 \
14613     predeps_F77 \
14614     postdeps_F77 \
14615     compiler_lib_search_path_F77 \
14616     archive_cmds_F77 \
14617     archive_expsym_cmds_F77 \
14618     postinstall_cmds_F77 \
14619     postuninstall_cmds_F77 \
14620     old_archive_from_expsyms_cmds_F77 \
14621     allow_undefined_flag_F77 \
14622     no_undefined_flag_F77 \
14623     export_symbols_cmds_F77 \
14624     hardcode_libdir_flag_spec_F77 \
14625     hardcode_libdir_flag_spec_ld_F77 \
14626     hardcode_libdir_separator_F77 \
14627     hardcode_automatic_F77 \
14628     module_cmds_F77 \
14629     module_expsym_cmds_F77 \
14630     lt_cv_prog_compiler_c_o_F77 \
14631     exclude_expsyms_F77 \
14632     include_expsyms_F77; do
14633
14634     case $var in
14635     old_archive_cmds_F77 | \
14636     old_archive_from_new_cmds_F77 | \
14637     archive_cmds_F77 | \
14638     archive_expsym_cmds_F77 | \
14639     module_cmds_F77 | \
14640     module_expsym_cmds_F77 | \
14641     old_archive_from_expsyms_cmds_F77 | \
14642     export_symbols_cmds_F77 | \
14643     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14644     postinstall_cmds | postuninstall_cmds | \
14645     old_postinstall_cmds | old_postuninstall_cmds | \
14646     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14647       # Double-quote double-evaled strings.
14648       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14649       ;;
14650     *)
14651       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14652       ;;
14653     esac
14654   done
14655
14656   case $lt_echo in
14657   *'\$0 --fallback-echo"')
14658     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14659     ;;
14660   esac
14661
14662 cfgfile="$ofile"
14663
14664   cat <<__EOF__ >> "$cfgfile"
14665 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14666
14667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14668
14669 # Shell to use when invoking shell scripts.
14670 SHELL=$lt_SHELL
14671
14672 # Whether or not to build shared libraries.
14673 build_libtool_libs=$enable_shared
14674
14675 # Whether or not to build static libraries.
14676 build_old_libs=$enable_static
14677
14678 # Whether or not to add -lc for building shared libraries.
14679 build_libtool_need_lc=$archive_cmds_need_lc_F77
14680
14681 # Whether or not to disallow shared libs when runtime libs are static
14682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14683
14684 # Whether or not to optimize for fast installation.
14685 fast_install=$enable_fast_install
14686
14687 # The host system.
14688 host_alias=$host_alias
14689 host=$host
14690
14691 # An echo program that does not interpret backslashes.
14692 echo=$lt_echo
14693
14694 # The archiver.
14695 AR=$lt_AR
14696 AR_FLAGS=$lt_AR_FLAGS
14697
14698 # A C compiler.
14699 LTCC=$lt_LTCC
14700
14701 # A language-specific compiler.
14702 CC=$lt_compiler_F77
14703
14704 # Is the compiler the GNU C compiler?
14705 with_gcc=$GCC_F77
14706
14707 # An ERE matcher.
14708 EGREP=$lt_EGREP
14709
14710 # The linker used to build libraries.
14711 LD=$lt_LD_F77
14712
14713 # Whether we need hard or soft links.
14714 LN_S=$lt_LN_S
14715
14716 # A BSD-compatible nm program.
14717 NM=$lt_NM
14718
14719 # A symbol stripping program
14720 STRIP=$STRIP
14721
14722 # Used to examine libraries when file_magic_cmd begins "file"
14723 MAGIC_CMD=$MAGIC_CMD
14724
14725 # Used on cygwin: DLL creation program.
14726 DLLTOOL="$DLLTOOL"
14727
14728 # Used on cygwin: object dumper.
14729 OBJDUMP="$OBJDUMP"
14730
14731 # Used on cygwin: assembler.
14732 AS="$AS"
14733
14734 # The name of the directory that contains temporary libtool files.
14735 objdir=$objdir
14736
14737 # How to create reloadable object files.
14738 reload_flag=$lt_reload_flag
14739 reload_cmds=$lt_reload_cmds
14740
14741 # How to pass a linker flag through the compiler.
14742 wl=$lt_lt_prog_compiler_wl_F77
14743
14744 # Object file suffix (normally "o").
14745 objext="$ac_objext"
14746
14747 # Old archive suffix (normally "a").
14748 libext="$libext"
14749
14750 # Shared library suffix (normally ".so").
14751 shrext='$shrext'
14752
14753 # Executable file suffix (normally "").
14754 exeext="$exeext"
14755
14756 # Additional compiler flags for building library objects.
14757 pic_flag=$lt_lt_prog_compiler_pic_F77
14758 pic_mode=$pic_mode
14759
14760 # What is the maximum length of a command?
14761 max_cmd_len=$lt_cv_sys_max_cmd_len
14762
14763 # Does compiler simultaneously support -c and -o options?
14764 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14765
14766 # Must we lock files when doing compilation ?
14767 need_locks=$lt_need_locks
14768
14769 # Do we need the lib prefix for modules?
14770 need_lib_prefix=$need_lib_prefix
14771
14772 # Do we need a version for libraries?
14773 need_version=$need_version
14774
14775 # Whether dlopen is supported.
14776 dlopen_support=$enable_dlopen
14777
14778 # Whether dlopen of programs is supported.
14779 dlopen_self=$enable_dlopen_self
14780
14781 # Whether dlopen of statically linked programs is supported.
14782 dlopen_self_static=$enable_dlopen_self_static
14783
14784 # Compiler flag to prevent dynamic linking.
14785 link_static_flag=$lt_lt_prog_compiler_static_F77
14786
14787 # Compiler flag to turn off builtin functions.
14788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14789
14790 # Compiler flag to allow reflexive dlopens.
14791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14792
14793 # Compiler flag to generate shared objects directly from archives.
14794 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14795
14796 # Compiler flag to generate thread-safe objects.
14797 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14798
14799 # Library versioning type.
14800 version_type=$version_type
14801
14802 # Format of library name prefix.
14803 libname_spec=$lt_libname_spec
14804
14805 # List of archive names.  First name is the real one, the rest are links.
14806 # The last name is the one that the linker finds with -lNAME.
14807 library_names_spec=$lt_library_names_spec
14808
14809 # The coded name of the library, if different from the real name.
14810 soname_spec=$lt_soname_spec
14811
14812 # Commands used to build and install an old-style archive.
14813 RANLIB=$lt_RANLIB
14814 old_archive_cmds=$lt_old_archive_cmds_F77
14815 old_postinstall_cmds=$lt_old_postinstall_cmds
14816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14817
14818 # Create an old-style archive from a shared archive.
14819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14820
14821 # Create a temporary old-style archive to link instead of a shared archive.
14822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14823
14824 # Commands used to build and install a shared archive.
14825 archive_cmds=$lt_archive_cmds_F77
14826 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14827 postinstall_cmds=$lt_postinstall_cmds
14828 postuninstall_cmds=$lt_postuninstall_cmds
14829
14830 # Commands used to build a loadable module (assumed same as above if empty)
14831 module_cmds=$lt_module_cmds_F77
14832 module_expsym_cmds=$lt_module_expsym_cmds_F77
14833
14834 # Commands to strip libraries.
14835 old_striplib=$lt_old_striplib
14836 striplib=$lt_striplib
14837
14838 # Dependencies to place before the objects being linked to create a
14839 # shared library.
14840 predep_objects=$lt_predep_objects_F77
14841
14842 # Dependencies to place after the objects being linked to create a
14843 # shared library.
14844 postdep_objects=$lt_postdep_objects_F77
14845
14846 # Dependencies to place before the objects being linked to create a
14847 # shared library.
14848 predeps=$lt_predeps_F77
14849
14850 # Dependencies to place after the objects being linked to create a
14851 # shared library.
14852 postdeps=$lt_postdeps_F77
14853
14854 # The library search path used internally by the compiler when linking
14855 # a shared library.
14856 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14857
14858 # Method to check whether dependent libraries are shared objects.
14859 deplibs_check_method=$lt_deplibs_check_method
14860
14861 # Command to use when deplibs_check_method == file_magic.
14862 file_magic_cmd=$lt_file_magic_cmd
14863
14864 # Flag that allows shared libraries with undefined symbols to be built.
14865 allow_undefined_flag=$lt_allow_undefined_flag_F77
14866
14867 # Flag that forces no undefined symbols.
14868 no_undefined_flag=$lt_no_undefined_flag_F77
14869
14870 # Commands used to finish a libtool library installation in a directory.
14871 finish_cmds=$lt_finish_cmds
14872
14873 # Same as above, but a single script fragment to be evaled but not shown.
14874 finish_eval=$lt_finish_eval
14875
14876 # Take the output of nm and produce a listing of raw symbols and C names.
14877 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14878
14879 # Transform the output of nm in a proper C declaration
14880 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14881
14882 # Transform the output of nm in a C name address pair
14883 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14884
14885 # This is the shared library runtime path variable.
14886 runpath_var=$runpath_var
14887
14888 # This is the shared library path variable.
14889 shlibpath_var=$shlibpath_var
14890
14891 # Is shlibpath searched before the hard-coded library search path?
14892 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14893
14894 # How to hardcode a shared library path into an executable.
14895 hardcode_action=$hardcode_action_F77
14896
14897 # Whether we should hardcode library paths into libraries.
14898 hardcode_into_libs=$hardcode_into_libs
14899
14900 # Flag to hardcode \$libdir into a binary during linking.
14901 # This must work even if \$libdir does not exist.
14902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14903
14904 # If ld is used when linking, flag to hardcode \$libdir into
14905 # a binary during linking. This must work even if \$libdir does
14906 # not exist.
14907 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14908
14909 # Whether we need a single -rpath flag with a separated argument.
14910 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14911
14912 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14913 # resulting binary.
14914 hardcode_direct=$hardcode_direct_F77
14915
14916 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14917 # resulting binary.
14918 hardcode_minus_L=$hardcode_minus_L_F77
14919
14920 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14921 # the resulting binary.
14922 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14923
14924 # Set to yes if building a shared library automatically hardcodes DIR into the library
14925 # and all subsequent libraries and executables linked against it.
14926 hardcode_automatic=$hardcode_automatic_F77
14927
14928 # Variables whose values should be saved in libtool wrapper scripts and
14929 # restored at relink time.
14930 variables_saved_for_relink="$variables_saved_for_relink"
14931
14932 # Whether libtool must link a program against all its dependency libraries.
14933 link_all_deplibs=$link_all_deplibs_F77
14934
14935 # Compile-time system search path for libraries
14936 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14937
14938 # Run-time system search path for libraries
14939 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14940
14941 # Fix the shell variable \$srcfile for the compiler.
14942 fix_srcfile_path="$fix_srcfile_path_F77"
14943
14944 # Set to yes if exported symbols are required.
14945 always_export_symbols=$always_export_symbols_F77
14946
14947 # The commands to list exported symbols.
14948 export_symbols_cmds=$lt_export_symbols_cmds_F77
14949
14950 # The commands to extract the exported symbol list from a shared archive.
14951 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14952
14953 # Symbols that should not be listed in the preloaded symbols.
14954 exclude_expsyms=$lt_exclude_expsyms_F77
14955
14956 # Symbols that must always be exported.
14957 include_expsyms=$lt_include_expsyms_F77
14958
14959 # ### END LIBTOOL TAG CONFIG: $tagname
14960
14961 __EOF__
14962
14963
14964 else
14965   # If there is no Makefile yet, we rely on a make rule to execute
14966   # `config.status --recheck' to rerun these tests and create the
14967   # libtool script then.
14968   test -f Makefile && make "$ltmain"
14969 fi
14970
14971
14972 ac_ext=c
14973 ac_cpp='$CPP $CPPFLAGS'
14974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14977
14978 CC="$lt_save_CC"
14979
14980         else
14981           tagname=""
14982         fi
14983         ;;
14984
14985       GCJ)
14986         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14987
14988
14989
14990 # Source file extension for Java test sources.
14991 ac_ext=java
14992
14993 # Object file extension for compiled Java test sources.
14994 objext=o
14995 objext_GCJ=$objext
14996
14997 # Code to be used in simple compile tests
14998 lt_simple_compile_test_code="class foo {}\n"
14999
15000 # Code to be used in simple link tests
15001 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15002
15003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15004
15005 # If no C compiler was specified, use CC.
15006 LTCC=${LTCC-"$CC"}
15007
15008 # Allow CC to be a program name with arguments.
15009 compiler=$CC
15010
15011
15012 # Allow CC to be a program name with arguments.
15013 lt_save_CC="$CC"
15014 CC=${GCJ-"gcj"}
15015 compiler=$CC
15016 compiler_GCJ=$CC
15017
15018 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15019 archive_cmds_need_lc_GCJ=no
15020
15021 ## CAVEAT EMPTOR:
15022 ## There is no encapsulation within the following macros, do not change
15023 ## the running order or otherwise move them around unless you know exactly
15024 ## what you are doing...
15025
15026 lt_prog_compiler_no_builtin_flag_GCJ=
15027
15028 if test "$GCC" = yes; then
15029   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15030
15031   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15032 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15033 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15034   echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036   lt_cv_prog_compiler_rtti_exceptions=no
15037   ac_outfile=conftest.$ac_objext
15038    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15039    lt_compiler_flag="-fno-rtti -fno-exceptions"
15040    # Insert the option either (1) after the last *FLAGS variable, or
15041    # (2) before a word containing "conftest.", or (3) at the end.
15042    # Note that $ac_compile itself does not contain backslashes and begins
15043    # with a dollar sign (not a hyphen), so the echo should work correctly.
15044    # The option is referenced via a variable to avoid confusing sed.
15045    lt_compile=`echo "$ac_compile" | $SED \
15046    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15047    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15048    -e 's:$: $lt_compiler_flag:'`
15049    (eval echo "\"\$as_me:15049: $lt_compile\"" >&5)
15050    (eval "$lt_compile" 2>conftest.err)
15051    ac_status=$?
15052    cat conftest.err >&5
15053    echo "$as_me:15053: \$? = $ac_status" >&5
15054    if (exit $ac_status) && test -s "$ac_outfile"; then
15055      # The compiler can only warn and ignore the option if not recognized
15056      # So say no if there are warnings
15057      if test ! -s conftest.err; then
15058        lt_cv_prog_compiler_rtti_exceptions=yes
15059      fi
15060    fi
15061    $rm conftest*
15062
15063 fi
15064 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15065 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15066
15067 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15068     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15069 else
15070     :
15071 fi
15072
15073 fi
15074
15075 lt_prog_compiler_wl_GCJ=
15076 lt_prog_compiler_pic_GCJ=
15077 lt_prog_compiler_static_GCJ=
15078
15079 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15080 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15081
15082   if test "$GCC" = yes; then
15083     lt_prog_compiler_wl_GCJ='-Wl,'
15084     lt_prog_compiler_static_GCJ='-static'
15085
15086     case $host_os in
15087       aix*)
15088       # All AIX code is PIC.
15089       if test "$host_cpu" = ia64; then
15090         # AIX 5 now supports IA64 processor
15091         lt_prog_compiler_static_GCJ='-Bstatic'
15092       fi
15093       ;;
15094
15095     amigaos*)
15096       # FIXME: we need at least 68020 code to build shared libraries, but
15097       # adding the `-m68020' flag to GCC prevents building anything better,
15098       # like `-m68040'.
15099       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15100       ;;
15101
15102     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15103       # PIC is the default for these OSes.
15104       ;;
15105
15106     mingw* | pw32* | os2*)
15107       # This hack is so that the source file can tell whether it is being
15108       # built for inclusion in a dll (and should export symbols for example).
15109       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15110       ;;
15111
15112     darwin* | rhapsody*)
15113       # PIC is the default on this platform
15114       # Common symbols not allowed in MH_DYLIB files
15115       lt_prog_compiler_pic_GCJ='-fno-common'
15116       ;;
15117
15118     msdosdjgpp*)
15119       # Just because we use GCC doesn't mean we suddenly get shared libraries
15120       # on systems that don't support them.
15121       lt_prog_compiler_can_build_shared_GCJ=no
15122       enable_shared=no
15123       ;;
15124
15125     sysv4*MP*)
15126       if test -d /usr/nec; then
15127         lt_prog_compiler_pic_GCJ=-Kconform_pic
15128       fi
15129       ;;
15130
15131     hpux*)
15132       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15133       # not for PA HP-UX.
15134       case "$host_cpu" in
15135       hppa*64*|ia64*)
15136         # +Z the default
15137         ;;
15138       *)
15139         lt_prog_compiler_pic_GCJ='-fPIC'
15140         ;;
15141       esac
15142       ;;
15143
15144     *)
15145       lt_prog_compiler_pic_GCJ='-fPIC'
15146       ;;
15147     esac
15148   else
15149     # PORTME Check for flag to pass linker flags through the system compiler.
15150     case $host_os in
15151     aix*)
15152       lt_prog_compiler_wl_GCJ='-Wl,'
15153       if test "$host_cpu" = ia64; then
15154         # AIX 5 now supports IA64 processor
15155         lt_prog_compiler_static_GCJ='-Bstatic'
15156       else
15157         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15158       fi
15159       ;;
15160
15161     mingw* | pw32* | os2*)
15162       # This hack is so that the source file can tell whether it is being
15163       # built for inclusion in a dll (and should export symbols for example).
15164       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15165       ;;
15166
15167     hpux9* | hpux10* | hpux11*)
15168       lt_prog_compiler_wl_GCJ='-Wl,'
15169       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15170       # not for PA HP-UX.
15171       case "$host_cpu" in
15172       hppa*64*|ia64*)
15173         # +Z the default
15174         ;;
15175       *)
15176         lt_prog_compiler_pic_GCJ='+Z'
15177         ;;
15178       esac
15179       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15180       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15181       ;;
15182
15183     irix5* | irix6* | nonstopux*)
15184       lt_prog_compiler_wl_GCJ='-Wl,'
15185       # PIC (with -KPIC) is the default.
15186       lt_prog_compiler_static_GCJ='-non_shared'
15187       ;;
15188
15189     newsos6)
15190       lt_prog_compiler_pic_GCJ='-KPIC'
15191       lt_prog_compiler_static_GCJ='-Bstatic'
15192       ;;
15193
15194     linux*)
15195       case $CC in
15196       icc|ecc)
15197         lt_prog_compiler_wl_GCJ='-Wl,'
15198         lt_prog_compiler_pic_GCJ='-KPIC'
15199         lt_prog_compiler_static_GCJ='-static'
15200         ;;
15201       ccc)
15202         lt_prog_compiler_wl_GCJ='-Wl,'
15203         # All Alpha code is PIC.
15204         lt_prog_compiler_static_GCJ='-non_shared'
15205         ;;
15206       esac
15207       ;;
15208
15209     osf3* | osf4* | osf5*)
15210       lt_prog_compiler_wl_GCJ='-Wl,'
15211       # All OSF/1 code is PIC.
15212       lt_prog_compiler_static_GCJ='-non_shared'
15213       ;;
15214
15215     sco3.2v5*)
15216       lt_prog_compiler_pic_GCJ='-Kpic'
15217       lt_prog_compiler_static_GCJ='-dn'
15218       ;;
15219
15220     solaris*)
15221       lt_prog_compiler_wl_GCJ='-Wl,'
15222       lt_prog_compiler_pic_GCJ='-KPIC'
15223       lt_prog_compiler_static_GCJ='-Bstatic'
15224       ;;
15225
15226     sunos4*)
15227       lt_prog_compiler_wl_GCJ='-Qoption ld '
15228       lt_prog_compiler_pic_GCJ='-PIC'
15229       lt_prog_compiler_static_GCJ='-Bstatic'
15230       ;;
15231
15232     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15233       lt_prog_compiler_wl_GCJ='-Wl,'
15234       lt_prog_compiler_pic_GCJ='-KPIC'
15235       lt_prog_compiler_static_GCJ='-Bstatic'
15236       ;;
15237
15238     sysv4*MP*)
15239       if test -d /usr/nec ;then
15240         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15241         lt_prog_compiler_static_GCJ='-Bstatic'
15242       fi
15243       ;;
15244
15245     uts4*)
15246       lt_prog_compiler_pic_GCJ='-pic'
15247       lt_prog_compiler_static_GCJ='-Bstatic'
15248       ;;
15249
15250     *)
15251       lt_prog_compiler_can_build_shared_GCJ=no
15252       ;;
15253     esac
15254   fi
15255
15256 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15257 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15258
15259 #
15260 # Check to make sure the PIC flag actually works.
15261 #
15262 if test -n "$lt_prog_compiler_pic_GCJ"; then
15263   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15265 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15266   echo $ECHO_N "(cached) $ECHO_C" >&6
15267 else
15268   lt_prog_compiler_pic_works_GCJ=no
15269   ac_outfile=conftest.$ac_objext
15270    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15271    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15272    # Insert the option either (1) after the last *FLAGS variable, or
15273    # (2) before a word containing "conftest.", or (3) at the end.
15274    # Note that $ac_compile itself does not contain backslashes and begins
15275    # with a dollar sign (not a hyphen), so the echo should work correctly.
15276    # The option is referenced via a variable to avoid confusing sed.
15277    lt_compile=`echo "$ac_compile" | $SED \
15278    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15279    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15280    -e 's:$: $lt_compiler_flag:'`
15281    (eval echo "\"\$as_me:15281: $lt_compile\"" >&5)
15282    (eval "$lt_compile" 2>conftest.err)
15283    ac_status=$?
15284    cat conftest.err >&5
15285    echo "$as_me:15285: \$? = $ac_status" >&5
15286    if (exit $ac_status) && test -s "$ac_outfile"; then
15287      # The compiler can only warn and ignore the option if not recognized
15288      # So say no if there are warnings
15289      if test ! -s conftest.err; then
15290        lt_prog_compiler_pic_works_GCJ=yes
15291      fi
15292    fi
15293    $rm conftest*
15294
15295 fi
15296 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15297 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15298
15299 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15300     case $lt_prog_compiler_pic_GCJ in
15301      "" | " "*) ;;
15302      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15303      esac
15304 else
15305     lt_prog_compiler_pic_GCJ=
15306      lt_prog_compiler_can_build_shared_GCJ=no
15307 fi
15308
15309 fi
15310 case "$host_os" in
15311   # For platforms which do not support PIC, -DPIC is meaningless:
15312   *djgpp*)
15313     lt_prog_compiler_pic_GCJ=
15314     ;;
15315   *)
15316     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15317     ;;
15318 esac
15319
15320 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15321 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15322 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325   lt_cv_prog_compiler_c_o_GCJ=no
15326    $rm -r conftest 2>/dev/null
15327    mkdir conftest
15328    cd conftest
15329    mkdir out
15330    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15331
15332    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15333    # that will create temporary files in the current directory regardless of
15334    # the output directory.  Thus, making CWD read-only will cause this test
15335    # to fail, enabling locking or at least warning the user not to do parallel
15336    # builds.
15337    chmod -w .
15338
15339    lt_compiler_flag="-o out/conftest2.$ac_objext"
15340    # Insert the option either (1) after the last *FLAGS variable, or
15341    # (2) before a word containing "conftest.", or (3) at the end.
15342    # Note that $ac_compile itself does not contain backslashes and begins
15343    # with a dollar sign (not a hyphen), so the echo should work correctly.
15344    lt_compile=`echo "$ac_compile" | $SED \
15345    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15346    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347    -e 's:$: $lt_compiler_flag:'`
15348    (eval echo "\"\$as_me:15348: $lt_compile\"" >&5)
15349    (eval "$lt_compile" 2>out/conftest.err)
15350    ac_status=$?
15351    cat out/conftest.err >&5
15352    echo "$as_me:15352: \$? = $ac_status" >&5
15353    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15354    then
15355      # The compiler can only warn and ignore the option if not recognized
15356      # So say no if there are warnings
15357      if test ! -s out/conftest.err; then
15358        lt_cv_prog_compiler_c_o_GCJ=yes
15359      fi
15360    fi
15361    chmod u+w .
15362    $rm conftest* out/*
15363    rmdir out
15364    cd ..
15365    rmdir conftest
15366    $rm conftest*
15367
15368 fi
15369 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15370 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15371
15372
15373 hard_links="nottested"
15374 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15375   # do not overwrite the value of need_locks provided by the user
15376   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15377 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15378   hard_links=yes
15379   $rm conftest*
15380   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15381   touch conftest.a
15382   ln conftest.a conftest.b 2>&5 || hard_links=no
15383   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15384   echo "$as_me:$LINENO: result: $hard_links" >&5
15385 echo "${ECHO_T}$hard_links" >&6
15386   if test "$hard_links" = no; then
15387     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15388 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15389     need_locks=warn
15390   fi
15391 else
15392   need_locks=no
15393 fi
15394
15395 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15396 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15397
15398   runpath_var=
15399   allow_undefined_flag_GCJ=
15400   enable_shared_with_static_runtimes_GCJ=no
15401   archive_cmds_GCJ=
15402   archive_expsym_cmds_GCJ=
15403   old_archive_From_new_cmds_GCJ=
15404   old_archive_from_expsyms_cmds_GCJ=
15405   export_dynamic_flag_spec_GCJ=
15406   whole_archive_flag_spec_GCJ=
15407   thread_safe_flag_spec_GCJ=
15408   hardcode_libdir_flag_spec_GCJ=
15409   hardcode_libdir_flag_spec_ld_GCJ=
15410   hardcode_libdir_separator_GCJ=
15411   hardcode_direct_GCJ=no
15412   hardcode_minus_L_GCJ=no
15413   hardcode_shlibpath_var_GCJ=unsupported
15414   link_all_deplibs_GCJ=unknown
15415   hardcode_automatic_GCJ=no
15416   module_cmds_GCJ=
15417   module_expsym_cmds_GCJ=
15418   always_export_symbols_GCJ=no
15419   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15420   # include_expsyms should be a list of space-separated symbols to be *always*
15421   # included in the symbol list
15422   include_expsyms_GCJ=
15423   # exclude_expsyms can be an extended regexp of symbols to exclude
15424   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15425   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15426   # as well as any symbol that contains `d'.
15427   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15428   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15429   # platforms (ab)use it in PIC code, but their linkers get confused if
15430   # the symbol is explicitly referenced.  Since portable code cannot
15431   # rely on this symbol name, it's probably fine to never include it in
15432   # preloaded symbol tables.
15433   extract_expsyms_cmds=
15434
15435   case $host_os in
15436   cygwin* | mingw* | pw32*)
15437     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15438     # When not using gcc, we currently assume that we are using
15439     # Microsoft Visual C++.
15440     if test "$GCC" != yes; then
15441       with_gnu_ld=no
15442     fi
15443     ;;
15444   openbsd*)
15445     with_gnu_ld=no
15446     ;;
15447   esac
15448
15449   ld_shlibs_GCJ=yes
15450   if test "$with_gnu_ld" = yes; then
15451     # If archive_cmds runs LD, not CC, wlarc should be empty
15452     wlarc='${wl}'
15453
15454     # See if GNU ld supports shared libraries.
15455     case $host_os in
15456     aix3* | aix4* | aix5*)
15457       # On AIX/PPC, the GNU linker is very broken
15458       if test "$host_cpu" != ia64; then
15459         ld_shlibs_GCJ=no
15460         cat <<EOF 1>&2
15461
15462 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15463 *** to be unable to reliably create shared libraries on AIX.
15464 *** Therefore, libtool is disabling shared libraries support.  If you
15465 *** really care for shared libraries, you may want to modify your PATH
15466 *** so that a non-GNU linker is found, and then restart.
15467
15468 EOF
15469       fi
15470       ;;
15471
15472     amigaos*)
15473       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)'
15474       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15475       hardcode_minus_L_GCJ=yes
15476
15477       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15478       # that the semantics of dynamic libraries on AmigaOS, at least up
15479       # to version 4, is to share data among multiple programs linked
15480       # with the same dynamic library.  Since this doesn't match the
15481       # behavior of shared libraries on other platforms, we can't use
15482       # them.
15483       ld_shlibs_GCJ=no
15484       ;;
15485
15486     beos*)
15487       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15488         allow_undefined_flag_GCJ=unsupported
15489         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15490         # support --undefined.  This deserves some investigation.  FIXME
15491         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15492       else
15493         ld_shlibs_GCJ=no
15494       fi
15495       ;;
15496
15497     cygwin* | mingw* | pw32*)
15498       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15499       # as there is no search path for DLLs.
15500       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15501       allow_undefined_flag_GCJ=unsupported
15502       always_export_symbols_GCJ=no
15503       enable_shared_with_static_runtimes_GCJ=yes
15504       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15505
15506       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15507         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15508         # If the export-symbols file already is a .def file (1st line
15509         # is EXPORTS), use it as is; otherwise, prepend...
15510         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15511           cp $export_symbols $output_objdir/$soname.def;
15512         else
15513           echo EXPORTS > $output_objdir/$soname.def;
15514           cat $export_symbols >> $output_objdir/$soname.def;
15515         fi~
15516         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15517       else
15518         ld_shlibs=no
15519       fi
15520       ;;
15521
15522     netbsd*)
15523       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15524         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15525         wlarc=
15526       else
15527         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15528         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15529       fi
15530       ;;
15531
15532     solaris* | sysv5*)
15533       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15534         ld_shlibs_GCJ=no
15535         cat <<EOF 1>&2
15536
15537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15538 *** create shared libraries on Solaris systems.  Therefore, libtool
15539 *** is disabling shared libraries support.  We urge you to upgrade GNU
15540 *** binutils to release 2.9.1 or newer.  Another option is to modify
15541 *** your PATH or compiler configuration so that the native linker is
15542 *** used, and then restart.
15543
15544 EOF
15545       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15546         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15547         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15548       else
15549         ld_shlibs_GCJ=no
15550       fi
15551       ;;
15552
15553     sunos4*)
15554       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15555       wlarc=
15556       hardcode_direct_GCJ=yes
15557       hardcode_shlibpath_var_GCJ=no
15558       ;;
15559
15560     *)
15561       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15562         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15563         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15564       else
15565         ld_shlibs_GCJ=no
15566       fi
15567       ;;
15568     esac
15569
15570     if test "$ld_shlibs_GCJ" = yes; then
15571       runpath_var=LD_RUN_PATH
15572       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15573       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15574       # ancient GNU ld didn't support --whole-archive et. al.
15575       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15576         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15577       else
15578         whole_archive_flag_spec_GCJ=
15579       fi
15580     fi
15581   else
15582     # PORTME fill in a description of your system's linker (not GNU ld)
15583     case $host_os in
15584     aix3*)
15585       allow_undefined_flag_GCJ=unsupported
15586       always_export_symbols_GCJ=yes
15587       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'
15588       # Note: this linker hardcodes the directories in LIBPATH if there
15589       # are no directories specified by -L.
15590       hardcode_minus_L_GCJ=yes
15591       if test "$GCC" = yes && test -z "$link_static_flag"; then
15592         # Neither direct hardcoding nor static linking is supported with a
15593         # broken collect2.
15594         hardcode_direct_GCJ=unsupported
15595       fi
15596       ;;
15597
15598     aix4* | aix5*)
15599       if test "$host_cpu" = ia64; then
15600         # On IA64, the linker does run time linking by default, so we don't
15601         # have to do anything special.
15602         aix_use_runtimelinking=no
15603         exp_sym_flag='-Bexport'
15604         no_entry_flag=""
15605       else
15606         # If we're using GNU nm, then we don't want the "-C" option.
15607         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15608         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15609           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'
15610         else
15611           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'
15612         fi
15613         aix_use_runtimelinking=no
15614
15615         # Test if we are trying to use run time linking or normal
15616         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15617         # need to do runtime linking.
15618         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15619           for ld_flag in $LDFLAGS; do
15620           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15621             aix_use_runtimelinking=yes
15622             break
15623           fi
15624           done
15625         esac
15626
15627         exp_sym_flag='-bexport'
15628         no_entry_flag='-bnoentry'
15629       fi
15630
15631       # When large executables or shared objects are built, AIX ld can
15632       # have problems creating the table of contents.  If linking a library
15633       # or program results in "error TOC overflow" add -mminimal-toc to
15634       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15635       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15636
15637       archive_cmds_GCJ=''
15638       hardcode_direct_GCJ=yes
15639       hardcode_libdir_separator_GCJ=':'
15640       link_all_deplibs_GCJ=yes
15641
15642       if test "$GCC" = yes; then
15643         case $host_os in aix4.012|aix4.012.*)
15644         # We only want to do this on AIX 4.2 and lower, the check
15645         # below for broken collect2 doesn't work under 4.3+
15646           collect2name=`${CC} -print-prog-name=collect2`
15647           if test -f "$collect2name" && \
15648            strings "$collect2name" | grep resolve_lib_name >/dev/null
15649           then
15650           # We have reworked collect2
15651           hardcode_direct_GCJ=yes
15652           else
15653           # We have old collect2
15654           hardcode_direct_GCJ=unsupported
15655           # It fails to find uninstalled libraries when the uninstalled
15656           # path is not listed in the libpath.  Setting hardcode_minus_L
15657           # to unsupported forces relinking
15658           hardcode_minus_L_GCJ=yes
15659           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15660           hardcode_libdir_separator_GCJ=
15661           fi
15662         esac
15663         shared_flag='-shared'
15664       else
15665         # not using gcc
15666         if test "$host_cpu" = ia64; then
15667         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15668         # chokes on -Wl,-G. The following line is correct:
15669           shared_flag='-G'
15670         else
15671         if test "$aix_use_runtimelinking" = yes; then
15672             shared_flag='${wl}-G'
15673           else
15674             shared_flag='${wl}-bM:SRE'
15675         fi
15676         fi
15677       fi
15678
15679       # It seems that -bexpall does not export symbols beginning with
15680       # underscore (_), so it is better to generate a list of symbols to export.
15681       always_export_symbols_GCJ=yes
15682       if test "$aix_use_runtimelinking" = yes; then
15683         # Warning - without using the other runtime loading flags (-brtl),
15684         # -berok will link without error, but may produce a broken library.
15685         allow_undefined_flag_GCJ='-berok'
15686        # Determine the default libpath from the value encoded in an empty executable.
15687        cat >conftest.$ac_ext <<_ACEOF
15688 #line $LINENO "configure"
15689 /* confdefs.h.  */
15690 _ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h.  */
15694
15695 int
15696 main ()
15697 {
15698
15699   ;
15700   return 0;
15701 }
15702 _ACEOF
15703 rm -f conftest.$ac_objext conftest$ac_exeext
15704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15705   (eval $ac_link) 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } &&
15709          { ac_try='test -s conftest$ac_exeext'
15710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711   (eval $ac_try) 2>&5
15712   ac_status=$?
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); }; }; then
15715
15716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15717 }'`
15718 # Check for a 64-bit object if we didn't find anything.
15719 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; }
15720 }'`; fi
15721 else
15722   echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15724
15725 fi
15726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15728
15729        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15730         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"
15731        else
15732         if test "$host_cpu" = ia64; then
15733           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15734           allow_undefined_flag_GCJ="-z nodefs"
15735           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"
15736         else
15737          # Determine the default libpath from the value encoded in an empty executable.
15738          cat >conftest.$ac_ext <<_ACEOF
15739 #line $LINENO "configure"
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745
15746 int
15747 main ()
15748 {
15749
15750   ;
15751   return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15756   (eval $ac_link) 2>&5
15757   ac_status=$?
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); } &&
15760          { ac_try='test -s conftest$ac_exeext'
15761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762   (eval $ac_try) 2>&5
15763   ac_status=$?
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); }; }; then
15766
15767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15768 }'`
15769 # Check for a 64-bit object if we didn't find anything.
15770 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; }
15771 }'`; fi
15772 else
15773   echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15775
15776 fi
15777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15778 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15779
15780          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15781           # Warning - without using the other run time loading flags,
15782           # -berok will link without error, but may produce a broken library.
15783           no_undefined_flag_GCJ=' ${wl}-bernotok'
15784           allow_undefined_flag_GCJ=' ${wl}-berok'
15785           # -bexpall does not export symbols beginning with underscore (_)
15786           always_export_symbols_GCJ=yes
15787           # Exported symbols can be pulled into shared objects from archives
15788           whole_archive_flag_spec_GCJ=' '
15789           archive_cmds_need_lc_GCJ=yes
15790           # This is similar to how AIX traditionally builds it's shared libraries.
15791           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'
15792         fi
15793       fi
15794       ;;
15795
15796     amigaos*)
15797       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)'
15798       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15799       hardcode_minus_L_GCJ=yes
15800       # see comment about different semantics on the GNU ld section
15801       ld_shlibs_GCJ=no
15802       ;;
15803
15804     bsdi4*)
15805       export_dynamic_flag_spec_GCJ=-rdynamic
15806       ;;
15807
15808     cygwin* | mingw* | pw32*)
15809       # When not using gcc, we currently assume that we are using
15810       # Microsoft Visual C++.
15811       # hardcode_libdir_flag_spec is actually meaningless, as there is
15812       # no search path for DLLs.
15813       hardcode_libdir_flag_spec_GCJ=' '
15814       allow_undefined_flag_GCJ=unsupported
15815       # Tell ltmain to make .lib files, not .a files.
15816       libext=lib
15817       # Tell ltmain to make .dll files, not .so files.
15818       shrext=".dll"
15819       # FIXME: Setting linknames here is a bad hack.
15820       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15821       # The linker will automatically build a .lib file if we build a DLL.
15822       old_archive_From_new_cmds_GCJ='true'
15823       # FIXME: Should let the user specify the lib program.
15824       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15825       fix_srcfile_path='`cygpath -w "$srcfile"`'
15826       enable_shared_with_static_runtimes_GCJ=yes
15827       ;;
15828
15829     darwin* | rhapsody*)
15830     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15831       archive_cmds_need_lc_GCJ=no
15832       case "$host_os" in
15833       rhapsody* | darwin1.[012])
15834         allow_undefined_flag_GCJ='-undefined suppress'
15835         ;;
15836       *) # Darwin 1.3 on
15837         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15838         ;;
15839       esac
15840       # FIXME: Relying on posixy $() will cause problems for
15841       #        cross-compilation, but unfortunately the echo tests do not
15842       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15843       #        `"' quotes if we put them in here... so don't!
15844         lt_int_apple_cc_single_mod=no
15845         output_verbose_link_cmd='echo'
15846         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15847           lt_int_apple_cc_single_mod=yes
15848         fi
15849         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15850           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15851         else
15852         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'
15853       fi
15854       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15855       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15856         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15857           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}'
15858         else
15859           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}'
15860         fi
15861           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}'
15862       hardcode_direct_GCJ=no
15863       hardcode_automatic_GCJ=yes
15864       hardcode_shlibpath_var_GCJ=unsupported
15865       whole_archive_flag_spec_GCJ='-all_load $convenience'
15866       link_all_deplibs_GCJ=yes
15867     fi
15868       ;;
15869
15870     dgux*)
15871       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15872       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15873       hardcode_shlibpath_var_GCJ=no
15874       ;;
15875
15876     freebsd1*)
15877       ld_shlibs_GCJ=no
15878       ;;
15879
15880     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15881     # support.  Future versions do this automatically, but an explicit c++rt0.o
15882     # does not break anything, and helps significantly (at the cost of a little
15883     # extra space).
15884     freebsd2.2*)
15885       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15886       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15887       hardcode_direct_GCJ=yes
15888       hardcode_shlibpath_var_GCJ=no
15889       ;;
15890
15891     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15892     freebsd2*)
15893       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15894       hardcode_direct_GCJ=yes
15895       hardcode_minus_L_GCJ=yes
15896       hardcode_shlibpath_var_GCJ=no
15897       ;;
15898
15899     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15900     freebsd*)
15901       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15902       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15903       hardcode_direct_GCJ=yes
15904       hardcode_shlibpath_var_GCJ=no
15905       ;;
15906
15907     hpux9*)
15908       if test "$GCC" = yes; then
15909         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'
15910       else
15911         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'
15912       fi
15913       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15914       hardcode_libdir_separator_GCJ=:
15915       hardcode_direct_GCJ=yes
15916
15917       # hardcode_minus_L: Not really in the search PATH,
15918       # but as the default location of the library.
15919       hardcode_minus_L_GCJ=yes
15920       export_dynamic_flag_spec_GCJ='${wl}-E'
15921       ;;
15922
15923     hpux10* | hpux11*)
15924       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15925         case "$host_cpu" in
15926         hppa*64*|ia64*)
15927           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15928           ;;
15929         *)
15930           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15931           ;;
15932         esac
15933       else
15934         case "$host_cpu" in
15935         hppa*64*|ia64*)
15936           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15937           ;;
15938         *)
15939           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15940           ;;
15941         esac
15942       fi
15943       if test "$with_gnu_ld" = no; then
15944         case "$host_cpu" in
15945         hppa*64*)
15946           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15947           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15948           hardcode_libdir_separator_GCJ=:
15949           hardcode_direct_GCJ=no
15950           hardcode_shlibpath_var_GCJ=no
15951           ;;
15952         ia64*)
15953           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15954           hardcode_direct_GCJ=no
15955           hardcode_shlibpath_var_GCJ=no
15956
15957           # hardcode_minus_L: Not really in the search PATH,
15958           # but as the default location of the library.
15959           hardcode_minus_L_GCJ=yes
15960           ;;
15961         *)
15962           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15963           hardcode_libdir_separator_GCJ=:
15964           hardcode_direct_GCJ=yes
15965           export_dynamic_flag_spec_GCJ='${wl}-E'
15966
15967           # hardcode_minus_L: Not really in the search PATH,
15968           # but as the default location of the library.
15969           hardcode_minus_L_GCJ=yes
15970           ;;
15971         esac
15972       fi
15973       ;;
15974
15975     irix5* | irix6* | nonstopux*)
15976       if test "$GCC" = yes; then
15977         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'
15978       else
15979         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'
15980         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15981       fi
15982       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15983       hardcode_libdir_separator_GCJ=:
15984       link_all_deplibs_GCJ=yes
15985       ;;
15986
15987     netbsd*)
15988       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15989         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15990       else
15991         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15992       fi
15993       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15994       hardcode_direct_GCJ=yes
15995       hardcode_shlibpath_var_GCJ=no
15996       ;;
15997
15998     newsos6)
15999       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16000       hardcode_direct_GCJ=yes
16001       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16002       hardcode_libdir_separator_GCJ=:
16003       hardcode_shlibpath_var_GCJ=no
16004       ;;
16005
16006     openbsd*)
16007       hardcode_direct_GCJ=yes
16008       hardcode_shlibpath_var_GCJ=no
16009       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16010         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16011         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16012         export_dynamic_flag_spec_GCJ='${wl}-E'
16013       else
16014        case $host_os in
16015          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16016            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16017            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16018            ;;
16019          *)
16020            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16021            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16022            ;;
16023        esac
16024       fi
16025       ;;
16026
16027     os2*)
16028       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16029       hardcode_minus_L_GCJ=yes
16030       allow_undefined_flag_GCJ=unsupported
16031       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'
16032       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16033       ;;
16034
16035     osf3*)
16036       if test "$GCC" = yes; then
16037         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16038         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'
16039       else
16040         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16041         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'
16042       fi
16043       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16044       hardcode_libdir_separator_GCJ=:
16045       ;;
16046
16047     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16048       if test "$GCC" = yes; then
16049         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16050         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'
16051         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16052       else
16053         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16054         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'
16055         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~
16056         $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'
16057
16058         # Both c and cxx compiler support -rpath directly
16059         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16060       fi
16061       hardcode_libdir_separator_GCJ=:
16062       ;;
16063
16064     sco3.2v5*)
16065       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066       hardcode_shlibpath_var_GCJ=no
16067       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16068       runpath_var=LD_RUN_PATH
16069       hardcode_runpath_var=yes
16070       ;;
16071
16072     solaris*)
16073       no_undefined_flag_GCJ=' -z text'
16074       if test "$GCC" = yes; then
16075         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16076         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16077           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16078       else
16079         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16080         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16081         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16082       fi
16083       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16084       hardcode_shlibpath_var_GCJ=no
16085       case $host_os in
16086       solaris2.[0-5] | solaris2.[0-5].*) ;;
16087       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16088         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16089       esac
16090       link_all_deplibs_GCJ=yes
16091       ;;
16092
16093     sunos4*)
16094       if test "x$host_vendor" = xsequent; then
16095         # Use $CC to link under sequent, because it throws in some extra .o
16096         # files that make .init and .fini sections work.
16097         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16098       else
16099         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16100       fi
16101       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16102       hardcode_direct_GCJ=yes
16103       hardcode_minus_L_GCJ=yes
16104       hardcode_shlibpath_var_GCJ=no
16105       ;;
16106
16107     sysv4)
16108       case $host_vendor in
16109         sni)
16110           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16111           hardcode_direct_GCJ=yes # is this really true???
16112         ;;
16113         siemens)
16114           ## LD is ld it makes a PLAMLIB
16115           ## CC just makes a GrossModule.
16116           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16117           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16118           hardcode_direct_GCJ=no
16119         ;;
16120         motorola)
16121           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16123         ;;
16124       esac
16125       runpath_var='LD_RUN_PATH'
16126       hardcode_shlibpath_var_GCJ=no
16127       ;;
16128
16129     sysv4.3*)
16130       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16131       hardcode_shlibpath_var_GCJ=no
16132       export_dynamic_flag_spec_GCJ='-Bexport'
16133       ;;
16134
16135     sysv4*MP*)
16136       if test -d /usr/nec; then
16137         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16138         hardcode_shlibpath_var_GCJ=no
16139         runpath_var=LD_RUN_PATH
16140         hardcode_runpath_var=yes
16141         ld_shlibs_GCJ=yes
16142       fi
16143       ;;
16144
16145     sysv4.2uw2*)
16146       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16147       hardcode_direct_GCJ=yes
16148       hardcode_minus_L_GCJ=no
16149       hardcode_shlibpath_var_GCJ=no
16150       hardcode_runpath_var=yes
16151       runpath_var=LD_RUN_PATH
16152       ;;
16153
16154    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16155       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16156       if test "$GCC" = yes; then
16157         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158       else
16159         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16160       fi
16161       runpath_var='LD_RUN_PATH'
16162       hardcode_shlibpath_var_GCJ=no
16163       ;;
16164
16165     sysv5*)
16166       no_undefined_flag_GCJ=' -z text'
16167       # $CC -shared without GNU ld will not create a library from C++
16168       # object files and a static libstdc++, better avoid it by now
16169       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16171                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16172       hardcode_libdir_flag_spec_GCJ=
16173       hardcode_shlibpath_var_GCJ=no
16174       runpath_var='LD_RUN_PATH'
16175       ;;
16176
16177     uts4*)
16178       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16179       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16180       hardcode_shlibpath_var_GCJ=no
16181       ;;
16182
16183     *)
16184       ld_shlibs_GCJ=no
16185       ;;
16186     esac
16187   fi
16188
16189 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16190 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16191 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16192
16193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16194 if test "$GCC" = yes; then
16195   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16196 fi
16197
16198 #
16199 # Do we need to explicitly link libc?
16200 #
16201 case "x$archive_cmds_need_lc_GCJ" in
16202 x|xyes)
16203   # Assume -lc should be added
16204   archive_cmds_need_lc_GCJ=yes
16205
16206   if test "$enable_shared" = yes && test "$GCC" = yes; then
16207     case $archive_cmds_GCJ in
16208     *'~'*)
16209       # FIXME: we may have to deal with multi-command sequences.
16210       ;;
16211     '$CC '*)
16212       # Test whether the compiler implicitly links with -lc since on some
16213       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16214       # to ld, don't add -lc before -lgcc.
16215       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16217       $rm conftest*
16218       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16219
16220       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16221   (eval $ac_compile) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); } 2>conftest.err; then
16225         soname=conftest
16226         lib=conftest
16227         libobjs=conftest.$ac_objext
16228         deplibs=
16229         wl=$lt_prog_compiler_wl_GCJ
16230         compiler_flags=-v
16231         linker_flags=-v
16232         verstring=
16233         output_objdir=.
16234         libname=conftest
16235         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16236         allow_undefined_flag_GCJ=
16237         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16238   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); }
16242         then
16243           archive_cmds_need_lc_GCJ=no
16244         else
16245           archive_cmds_need_lc_GCJ=yes
16246         fi
16247         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16248       else
16249         cat conftest.err 1>&5
16250       fi
16251       $rm conftest*
16252       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16253 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16254       ;;
16255     esac
16256   fi
16257   ;;
16258 esac
16259
16260 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16261 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16262 hardcode_action_GCJ=
16263 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16264    test -n "$runpath_var GCJ" || \
16265    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16266
16267   # We can hardcode non-existant directories.
16268   if test "$hardcode_direct_GCJ" != no &&
16269      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16270      # have to relink, otherwise we might link with an installed library
16271      # when we should be linking with a yet-to-be-installed one
16272      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16273      test "$hardcode_minus_L_GCJ" != no; then
16274     # Linking always hardcodes the temporary library directory.
16275     hardcode_action_GCJ=relink
16276   else
16277     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16278     hardcode_action_GCJ=immediate
16279   fi
16280 else
16281   # We cannot hardcode anything, or else we can only hardcode existing
16282   # directories.
16283   hardcode_action_GCJ=unsupported
16284 fi
16285 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16286 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16287
16288 if test "$hardcode_action_GCJ" = relink; then
16289   # Fast installation is not supported
16290   enable_fast_install=no
16291 elif test "$shlibpath_overrides_runpath" = yes ||
16292      test "$enable_shared" = no; then
16293   # Fast installation is not necessary
16294   enable_fast_install=needless
16295 fi
16296
16297 striplib=
16298 old_striplib=
16299 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16300 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16301 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16302   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16303   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16304   echo "$as_me:$LINENO: result: yes" >&5
16305 echo "${ECHO_T}yes" >&6
16306 else
16307 # FIXME - insert some real tests, host_os isn't really good enough
16308   case $host_os in
16309    darwin*)
16310        if test -n "$STRIP" ; then
16311          striplib="$STRIP -x"
16312          echo "$as_me:$LINENO: result: yes" >&5
16313 echo "${ECHO_T}yes" >&6
16314        else
16315   echo "$as_me:$LINENO: result: no" >&5
16316 echo "${ECHO_T}no" >&6
16317 fi
16318        ;;
16319    *)
16320   echo "$as_me:$LINENO: result: no" >&5
16321 echo "${ECHO_T}no" >&6
16322     ;;
16323   esac
16324 fi
16325
16326 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16327 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16328 library_names_spec=
16329 libname_spec='lib$name'
16330 soname_spec=
16331 shrext=".so"
16332 postinstall_cmds=
16333 postuninstall_cmds=
16334 finish_cmds=
16335 finish_eval=
16336 shlibpath_var=
16337 shlibpath_overrides_runpath=unknown
16338 version_type=none
16339 dynamic_linker="$host_os ld.so"
16340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16341 if test "$GCC" = yes; then
16342   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16343   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16344     # if the path contains ";" then we assume it to be the separator
16345     # otherwise default to the standard path separator (i.e. ":") - it is
16346     # assumed that no part of a normal pathname contains ";" but that should
16347     # okay in the real world where ";" in dirpaths is itself problematic.
16348     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16349   else
16350     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16351   fi
16352 else
16353   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16354 fi
16355 need_lib_prefix=unknown
16356 hardcode_into_libs=no
16357
16358 # when you set need_version to no, make sure it does not cause -set_version
16359 # flags to be left without arguments
16360 need_version=unknown
16361
16362 case $host_os in
16363 aix3*)
16364   version_type=linux
16365   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16366   shlibpath_var=LIBPATH
16367
16368   # AIX 3 has no versioning support, so we append a major version to the name.
16369   soname_spec='${libname}${release}${shared_ext}$major'
16370   ;;
16371
16372 aix4* | aix5*)
16373   version_type=linux
16374   need_lib_prefix=no
16375   need_version=no
16376   hardcode_into_libs=yes
16377   if test "$host_cpu" = ia64; then
16378     # AIX 5 supports IA64
16379     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16380     shlibpath_var=LD_LIBRARY_PATH
16381   else
16382     # With GCC up to 2.95.x, collect2 would create an import file
16383     # for dependence libraries.  The import file would start with
16384     # the line `#! .'.  This would cause the generated library to
16385     # depend on `.', always an invalid library.  This was fixed in
16386     # development snapshots of GCC prior to 3.0.
16387     case $host_os in
16388       aix4 | aix4.[01] | aix4.[01].*)
16389       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16390            echo ' yes '
16391            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16392         :
16393       else
16394         can_build_shared=no
16395       fi
16396       ;;
16397     esac
16398     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16399     # soname into executable. Probably we can add versioning support to
16400     # collect2, so additional links can be useful in future.
16401     if test "$aix_use_runtimelinking" = yes; then
16402       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16403       # instead of lib<name>.a to let people know that these are not
16404       # typical AIX shared libraries.
16405       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406     else
16407       # We preserve .a as extension for shared libraries through AIX4.2
16408       # and later when we are not doing run time linking.
16409       library_names_spec='${libname}${release}.a $libname.a'
16410       soname_spec='${libname}${release}${shared_ext}$major'
16411     fi
16412     shlibpath_var=LIBPATH
16413   fi
16414   ;;
16415
16416 amigaos*)
16417   library_names_spec='$libname.ixlibrary $libname.a'
16418   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16419   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'
16420   ;;
16421
16422 beos*)
16423   library_names_spec='${libname}${shared_ext}'
16424   dynamic_linker="$host_os ld.so"
16425   shlibpath_var=LIBRARY_PATH
16426   ;;
16427
16428 bsdi4*)
16429   version_type=linux
16430   need_version=no
16431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432   soname_spec='${libname}${release}${shared_ext}$major'
16433   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16434   shlibpath_var=LD_LIBRARY_PATH
16435   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16436   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16437   # the default ld.so.conf also contains /usr/contrib/lib and
16438   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16439   # libtool to hard-code these into programs
16440   ;;
16441
16442 cygwin* | mingw* | pw32*)
16443   version_type=windows
16444   shrext=".dll"
16445   need_version=no
16446   need_lib_prefix=no
16447
16448   case $GCC,$host_os in
16449   yes,cygwin* | yes,mingw* | yes,pw32*)
16450     library_names_spec='$libname.dll.a'
16451     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16452     postinstall_cmds='base_file=`basename \${file}`~
16453       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16454       dldir=$destdir/`dirname \$dlpath`~
16455       test -d \$dldir || mkdir -p \$dldir~
16456       $install_prog $dir/$dlname \$dldir/$dlname'
16457     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16458       dlpath=$dir/\$dldll~
16459        $rm \$dlpath'
16460     shlibpath_overrides_runpath=yes
16461
16462     case $host_os in
16463     cygwin*)
16464       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16465       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16466       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16467       ;;
16468     mingw*)
16469       # MinGW DLLs use traditional 'lib' prefix
16470       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16471       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16472       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16473         # It is most probably a Windows format PATH printed by
16474         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16475         # path with ; separators, and with drive letters. We can handle the
16476         # drive letters (cygwin fileutils understands them), so leave them,
16477         # especially as we might pass files found there to a mingw objdump,
16478         # which wouldn't understand a cygwinified path. Ahh.
16479         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16480       else
16481         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16482       fi
16483       ;;
16484     pw32*)
16485       # pw32 DLLs use 'pw' prefix rather than 'lib'
16486       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16487       ;;
16488     esac
16489     ;;
16490
16491   *)
16492     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16493     ;;
16494   esac
16495   dynamic_linker='Win32 ld.exe'
16496   # FIXME: first we should search . and the directory the executable is in
16497   shlibpath_var=PATH
16498   ;;
16499
16500 darwin* | rhapsody*)
16501   dynamic_linker="$host_os dyld"
16502   version_type=darwin
16503   need_lib_prefix=no
16504   need_version=no
16505   # FIXME: Relying on posixy $() will cause problems for
16506   #        cross-compilation, but unfortunately the echo tests do not
16507   #        yet detect zsh echo's removal of \ escapes.
16508   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16509   soname_spec='${libname}${release}${major}$shared_ext'
16510   shlibpath_overrides_runpath=yes
16511   shlibpath_var=DYLD_LIBRARY_PATH
16512   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16513   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16514   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16515   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"`
16516   fi
16517   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16518   ;;
16519
16520 dgux*)
16521   version_type=linux
16522   need_lib_prefix=no
16523   need_version=no
16524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16525   soname_spec='${libname}${release}${shared_ext}$major'
16526   shlibpath_var=LD_LIBRARY_PATH
16527   ;;
16528
16529 freebsd1*)
16530   dynamic_linker=no
16531   ;;
16532
16533 freebsd*)
16534   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16535   version_type=freebsd-$objformat
16536   case $version_type in
16537     freebsd-elf*)
16538       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16539       need_version=no
16540       need_lib_prefix=no
16541       ;;
16542     freebsd-*)
16543       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16544       need_version=yes
16545       ;;
16546   esac
16547   shlibpath_var=LD_LIBRARY_PATH
16548   case $host_os in
16549   freebsd2*)
16550     shlibpath_overrides_runpath=yes
16551     ;;
16552   freebsd3.01* | freebsdelf3.01*)
16553     shlibpath_overrides_runpath=yes
16554     hardcode_into_libs=yes
16555     ;;
16556   *) # from 3.2 on
16557     shlibpath_overrides_runpath=no
16558     hardcode_into_libs=yes
16559     ;;
16560   esac
16561   ;;
16562
16563 gnu*)
16564   version_type=linux
16565   need_lib_prefix=no
16566   need_version=no
16567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16568   soname_spec='${libname}${release}${shared_ext}$major'
16569   shlibpath_var=LD_LIBRARY_PATH
16570   hardcode_into_libs=yes
16571   ;;
16572
16573 hpux9* | hpux10* | hpux11*)
16574   # Give a soname corresponding to the major version so that dld.sl refuses to
16575   # link against other versions.
16576   version_type=sunos
16577   need_lib_prefix=no
16578   need_version=no
16579   case "$host_cpu" in
16580   ia64*)
16581     shrext='.so'
16582     hardcode_into_libs=yes
16583     dynamic_linker="$host_os dld.so"
16584     shlibpath_var=LD_LIBRARY_PATH
16585     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587     soname_spec='${libname}${release}${shared_ext}$major'
16588     if test "X$HPUX_IA64_MODE" = X32; then
16589       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16590     else
16591       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16592     fi
16593     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16594     ;;
16595    hppa*64*)
16596      shrext='.sl'
16597      hardcode_into_libs=yes
16598      dynamic_linker="$host_os dld.sl"
16599      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16600      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16601      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602      soname_spec='${libname}${release}${shared_ext}$major'
16603      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16604      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16605      ;;
16606    *)
16607     shrext='.sl'
16608     dynamic_linker="$host_os dld.sl"
16609     shlibpath_var=SHLIB_PATH
16610     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16612     soname_spec='${libname}${release}${shared_ext}$major'
16613     ;;
16614   esac
16615   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16616   postinstall_cmds='chmod 555 $lib'
16617   ;;
16618
16619 irix5* | irix6* | nonstopux*)
16620   case $host_os in
16621     nonstopux*) version_type=nonstopux ;;
16622     *)
16623         if test "$lt_cv_prog_gnu_ld" = yes; then
16624                 version_type=linux
16625         else
16626                 version_type=irix
16627         fi ;;
16628   esac
16629   need_lib_prefix=no
16630   need_version=no
16631   soname_spec='${libname}${release}${shared_ext}$major'
16632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16633   case $host_os in
16634   irix5* | nonstopux*)
16635     libsuff= shlibsuff=
16636     ;;
16637   *)
16638     case $LD in # libtool.m4 will add one of these switches to LD
16639     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16640       libsuff= shlibsuff= libmagic=32-bit;;
16641     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16642       libsuff=32 shlibsuff=N32 libmagic=N32;;
16643     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16644       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16645     *) libsuff= shlibsuff= libmagic=never-match;;
16646     esac
16647     ;;
16648   esac
16649   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16650   shlibpath_overrides_runpath=no
16651   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16652   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16653   hardcode_into_libs=yes
16654   ;;
16655
16656 # No shared lib support for Linux oldld, aout, or coff.
16657 linux*oldld* | linux*aout* | linux*coff*)
16658   dynamic_linker=no
16659   ;;
16660
16661 # This must be Linux ELF.
16662 linux*)
16663   version_type=linux
16664   need_lib_prefix=no
16665   need_version=no
16666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667   soname_spec='${libname}${release}${shared_ext}$major'
16668   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16669   shlibpath_var=LD_LIBRARY_PATH
16670   shlibpath_overrides_runpath=no
16671   # This implies no fast_install, which is unacceptable.
16672   # Some rework will be needed to allow for fast_install
16673   # before this can be enabled.
16674   hardcode_into_libs=yes
16675
16676   # We used to test for /lib/ld.so.1 and disable shared libraries on
16677   # powerpc, because MkLinux only supported shared libraries with the
16678   # GNU dynamic linker.  Since this was broken with cross compilers,
16679   # most powerpc-linux boxes support dynamic linking these days and
16680   # people can always --disable-shared, the test was removed, and we
16681   # assume the GNU/Linux dynamic linker is in use.
16682   dynamic_linker='GNU/Linux ld.so'
16683   ;;
16684
16685 netbsd*)
16686   version_type=sunos
16687   need_lib_prefix=no
16688   need_version=no
16689   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16691     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16692     dynamic_linker='NetBSD (a.out) ld.so'
16693   else
16694     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16695     soname_spec='${libname}${release}${shared_ext}$major'
16696     dynamic_linker='NetBSD ld.elf_so'
16697   fi
16698   shlibpath_var=LD_LIBRARY_PATH
16699   shlibpath_overrides_runpath=yes
16700   hardcode_into_libs=yes
16701   ;;
16702
16703 newsos6)
16704   version_type=linux
16705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16706   shlibpath_var=LD_LIBRARY_PATH
16707   shlibpath_overrides_runpath=yes
16708   ;;
16709
16710 nto-qnx)
16711   version_type=linux
16712   need_lib_prefix=no
16713   need_version=no
16714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715   soname_spec='${libname}${release}${shared_ext}$major'
16716   shlibpath_var=LD_LIBRARY_PATH
16717   shlibpath_overrides_runpath=yes
16718   ;;
16719
16720 openbsd*)
16721   version_type=sunos
16722   need_lib_prefix=no
16723   need_version=no
16724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16725   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16726   shlibpath_var=LD_LIBRARY_PATH
16727   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16728     case $host_os in
16729       openbsd2.[89] | openbsd2.[89].*)
16730         shlibpath_overrides_runpath=no
16731         ;;
16732       *)
16733         shlibpath_overrides_runpath=yes
16734         ;;
16735       esac
16736   else
16737     shlibpath_overrides_runpath=yes
16738   fi
16739   ;;
16740
16741 os2*)
16742   libname_spec='$name'
16743   shrext=".dll"
16744   need_lib_prefix=no
16745   library_names_spec='$libname${shared_ext} $libname.a'
16746   dynamic_linker='OS/2 ld.exe'
16747   shlibpath_var=LIBPATH
16748   ;;
16749
16750 osf3* | osf4* | osf5*)
16751   version_type=osf
16752   need_lib_prefix=no
16753   need_version=no
16754   soname_spec='${libname}${release}${shared_ext}$major'
16755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756   shlibpath_var=LD_LIBRARY_PATH
16757   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16758   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16759   ;;
16760
16761 sco3.2v5*)
16762   version_type=osf
16763   soname_spec='${libname}${release}${shared_ext}$major'
16764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765   shlibpath_var=LD_LIBRARY_PATH
16766   ;;
16767
16768 solaris*)
16769   version_type=linux
16770   need_lib_prefix=no
16771   need_version=no
16772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773   soname_spec='${libname}${release}${shared_ext}$major'
16774   shlibpath_var=LD_LIBRARY_PATH
16775   shlibpath_overrides_runpath=yes
16776   hardcode_into_libs=yes
16777   # ldd complains unless libraries are executable
16778   postinstall_cmds='chmod +x $lib'
16779   ;;
16780
16781 sunos4*)
16782   version_type=sunos
16783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16784   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16785   shlibpath_var=LD_LIBRARY_PATH
16786   shlibpath_overrides_runpath=yes
16787   if test "$with_gnu_ld" = yes; then
16788     need_lib_prefix=no
16789   fi
16790   need_version=yes
16791   ;;
16792
16793 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16794   version_type=linux
16795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796   soname_spec='${libname}${release}${shared_ext}$major'
16797   shlibpath_var=LD_LIBRARY_PATH
16798   case $host_vendor in
16799     sni)
16800       shlibpath_overrides_runpath=no
16801       need_lib_prefix=no
16802       export_dynamic_flag_spec='${wl}-Blargedynsym'
16803       runpath_var=LD_RUN_PATH
16804       ;;
16805     siemens)
16806       need_lib_prefix=no
16807       ;;
16808     motorola)
16809       need_lib_prefix=no
16810       need_version=no
16811       shlibpath_overrides_runpath=no
16812       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16813       ;;
16814   esac
16815   ;;
16816
16817 sysv4*MP*)
16818   if test -d /usr/nec ;then
16819     version_type=linux
16820     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16821     soname_spec='$libname${shared_ext}.$major'
16822     shlibpath_var=LD_LIBRARY_PATH
16823   fi
16824   ;;
16825
16826 uts4*)
16827   version_type=linux
16828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829   soname_spec='${libname}${release}${shared_ext}$major'
16830   shlibpath_var=LD_LIBRARY_PATH
16831   ;;
16832
16833 *)
16834   dynamic_linker=no
16835   ;;
16836 esac
16837 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16838 echo "${ECHO_T}$dynamic_linker" >&6
16839 test "$dynamic_linker" = no && can_build_shared=no
16840
16841 if test "x$enable_dlopen" != xyes; then
16842   enable_dlopen=unknown
16843   enable_dlopen_self=unknown
16844   enable_dlopen_self_static=unknown
16845 else
16846   lt_cv_dlopen=no
16847   lt_cv_dlopen_libs=
16848
16849   case $host_os in
16850   beos*)
16851     lt_cv_dlopen="load_add_on"
16852     lt_cv_dlopen_libs=
16853     lt_cv_dlopen_self=yes
16854     ;;
16855
16856   mingw* | pw32*)
16857     lt_cv_dlopen="LoadLibrary"
16858     lt_cv_dlopen_libs=
16859    ;;
16860
16861   cygwin*)
16862     lt_cv_dlopen="dlopen"
16863     lt_cv_dlopen_libs=
16864    ;;
16865
16866   darwin*)
16867   # if libdl is installed we need to link against it
16868     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16869 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16870 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16871   echo $ECHO_N "(cached) $ECHO_C" >&6
16872 else
16873   ac_check_lib_save_LIBS=$LIBS
16874 LIBS="-ldl  $LIBS"
16875 cat >conftest.$ac_ext <<_ACEOF
16876 #line $LINENO "configure"
16877 /* confdefs.h.  */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h.  */
16882
16883 /* Override any gcc2 internal prototype to avoid an error.  */
16884 #ifdef __cplusplus
16885 extern "C"
16886 #endif
16887 /* We use char because int might match the return type of a gcc2
16888    builtin and then its argument prototype would still apply.  */
16889 char dlopen ();
16890 int
16891 main ()
16892 {
16893 dlopen ();
16894   ;
16895   return 0;
16896 }
16897 _ACEOF
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16900   (eval $ac_link) 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); } &&
16904          { ac_try='test -s conftest$ac_exeext'
16905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906   (eval $ac_try) 2>&5
16907   ac_status=$?
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); }; }; then
16910   ac_cv_lib_dl_dlopen=yes
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915 ac_cv_lib_dl_dlopen=no
16916 fi
16917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16918 LIBS=$ac_check_lib_save_LIBS
16919 fi
16920 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16921 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16922 if test $ac_cv_lib_dl_dlopen = yes; then
16923   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16924 else
16925
16926     lt_cv_dlopen="dyld"
16927     lt_cv_dlopen_libs=
16928     lt_cv_dlopen_self=yes
16929
16930 fi
16931
16932    ;;
16933
16934   *)
16935     echo "$as_me:$LINENO: checking for shl_load" >&5
16936 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16937 if test "${ac_cv_func_shl_load+set}" = set; then
16938   echo $ECHO_N "(cached) $ECHO_C" >&6
16939 else
16940   cat >conftest.$ac_ext <<_ACEOF
16941 #line $LINENO "configure"
16942 /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16947 /* System header to define __stub macros and hopefully few prototypes,
16948     which can conflict with char shl_load (); below.
16949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950     <limits.h> exists even on freestanding compilers.  */
16951 #ifdef __STDC__
16952 # include <limits.h>
16953 #else
16954 # include <assert.h>
16955 #endif
16956 /* Override any gcc2 internal prototype to avoid an error.  */
16957 #ifdef __cplusplus
16958 extern "C"
16959 {
16960 #endif
16961 /* We use char because int might match the return type of a gcc2
16962    builtin and then its argument prototype would still apply.  */
16963 char shl_load ();
16964 /* The GNU C library defines this for functions which it implements
16965     to always fail with ENOSYS.  Some functions are actually named
16966     something starting with __ and the normal name is an alias.  */
16967 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16968 choke me
16969 #else
16970 char (*f) () = shl_load;
16971 #endif
16972 #ifdef __cplusplus
16973 }
16974 #endif
16975
16976 int
16977 main ()
16978 {
16979 return f != shl_load;
16980   ;
16981   return 0;
16982 }
16983 _ACEOF
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986   (eval $ac_link) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); } &&
16990          { ac_try='test -s conftest$ac_exeext'
16991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992   (eval $ac_try) 2>&5
16993   ac_status=$?
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); }; }; then
16996   ac_cv_func_shl_load=yes
16997 else
16998   echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001 ac_cv_func_shl_load=no
17002 fi
17003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17004 fi
17005 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17006 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17007 if test $ac_cv_func_shl_load = yes; then
17008   lt_cv_dlopen="shl_load"
17009 else
17010   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17011 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17012 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17013   echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015   ac_check_lib_save_LIBS=$LIBS
17016 LIBS="-ldld  $LIBS"
17017 cat >conftest.$ac_ext <<_ACEOF
17018 #line $LINENO "configure"
17019 /* confdefs.h.  */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h.  */
17024
17025 /* Override any gcc2 internal prototype to avoid an error.  */
17026 #ifdef __cplusplus
17027 extern "C"
17028 #endif
17029 /* We use char because int might match the return type of a gcc2
17030    builtin and then its argument prototype would still apply.  */
17031 char shl_load ();
17032 int
17033 main ()
17034 {
17035 shl_load ();
17036   ;
17037   return 0;
17038 }
17039 _ACEOF
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042   (eval $ac_link) 2>&5
17043   ac_status=$?
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); } &&
17046          { ac_try='test -s conftest$ac_exeext'
17047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048   (eval $ac_try) 2>&5
17049   ac_status=$?
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); }; }; then
17052   ac_cv_lib_dld_shl_load=yes
17053 else
17054   echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17056
17057 ac_cv_lib_dld_shl_load=no
17058 fi
17059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17060 LIBS=$ac_check_lib_save_LIBS
17061 fi
17062 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17063 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17064 if test $ac_cv_lib_dld_shl_load = yes; then
17065   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17066 else
17067   echo "$as_me:$LINENO: checking for dlopen" >&5
17068 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17069 if test "${ac_cv_func_dlopen+set}" = set; then
17070   echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072   cat >conftest.$ac_ext <<_ACEOF
17073 #line $LINENO "configure"
17074 /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079 /* System header to define __stub macros and hopefully few prototypes,
17080     which can conflict with char dlopen (); below.
17081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17082     <limits.h> exists even on freestanding compilers.  */
17083 #ifdef __STDC__
17084 # include <limits.h>
17085 #else
17086 # include <assert.h>
17087 #endif
17088 /* Override any gcc2 internal prototype to avoid an error.  */
17089 #ifdef __cplusplus
17090 extern "C"
17091 {
17092 #endif
17093 /* We use char because int might match the return type of a gcc2
17094    builtin and then its argument prototype would still apply.  */
17095 char dlopen ();
17096 /* The GNU C library defines this for functions which it implements
17097     to always fail with ENOSYS.  Some functions are actually named
17098     something starting with __ and the normal name is an alias.  */
17099 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17100 choke me
17101 #else
17102 char (*f) () = dlopen;
17103 #endif
17104 #ifdef __cplusplus
17105 }
17106 #endif
17107
17108 int
17109 main ()
17110 {
17111 return f != dlopen;
17112   ;
17113   return 0;
17114 }
17115 _ACEOF
17116 rm -f conftest.$ac_objext conftest$ac_exeext
17117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17118   (eval $ac_link) 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); } &&
17122          { ac_try='test -s conftest$ac_exeext'
17123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124   (eval $ac_try) 2>&5
17125   ac_status=$?
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); }; }; then
17128   ac_cv_func_dlopen=yes
17129 else
17130   echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 ac_cv_func_dlopen=no
17134 fi
17135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17136 fi
17137 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17138 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17139 if test $ac_cv_func_dlopen = yes; then
17140   lt_cv_dlopen="dlopen"
17141 else
17142   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17143 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17144 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17145   echo $ECHO_N "(cached) $ECHO_C" >&6
17146 else
17147   ac_check_lib_save_LIBS=$LIBS
17148 LIBS="-ldl  $LIBS"
17149 cat >conftest.$ac_ext <<_ACEOF
17150 #line $LINENO "configure"
17151 /* confdefs.h.  */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h.  */
17156
17157 /* Override any gcc2 internal prototype to avoid an error.  */
17158 #ifdef __cplusplus
17159 extern "C"
17160 #endif
17161 /* We use char because int might match the return type of a gcc2
17162    builtin and then its argument prototype would still apply.  */
17163 char dlopen ();
17164 int
17165 main ()
17166 {
17167 dlopen ();
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17174   (eval $ac_link) 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); } &&
17178          { ac_try='test -s conftest$ac_exeext'
17179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180   (eval $ac_try) 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); }; }; then
17184   ac_cv_lib_dl_dlopen=yes
17185 else
17186   echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17188
17189 ac_cv_lib_dl_dlopen=no
17190 fi
17191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17192 LIBS=$ac_check_lib_save_LIBS
17193 fi
17194 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17195 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17196 if test $ac_cv_lib_dl_dlopen = yes; then
17197   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17198 else
17199   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17200 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17201 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17202   echo $ECHO_N "(cached) $ECHO_C" >&6
17203 else
17204   ac_check_lib_save_LIBS=$LIBS
17205 LIBS="-lsvld  $LIBS"
17206 cat >conftest.$ac_ext <<_ACEOF
17207 #line $LINENO "configure"
17208 /* confdefs.h.  */
17209 _ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h.  */
17213
17214 /* Override any gcc2 internal prototype to avoid an error.  */
17215 #ifdef __cplusplus
17216 extern "C"
17217 #endif
17218 /* We use char because int might match the return type of a gcc2
17219    builtin and then its argument prototype would still apply.  */
17220 char dlopen ();
17221 int
17222 main ()
17223 {
17224 dlopen ();
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17231   (eval $ac_link) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); } &&
17235          { ac_try='test -s conftest$ac_exeext'
17236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237   (eval $ac_try) 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; }; then
17241   ac_cv_lib_svld_dlopen=yes
17242 else
17243   echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246 ac_cv_lib_svld_dlopen=no
17247 fi
17248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17249 LIBS=$ac_check_lib_save_LIBS
17250 fi
17251 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17252 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17253 if test $ac_cv_lib_svld_dlopen = yes; then
17254   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17255 else
17256   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17257 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17258 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17259   echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261   ac_check_lib_save_LIBS=$LIBS
17262 LIBS="-ldld  $LIBS"
17263 cat >conftest.$ac_ext <<_ACEOF
17264 #line $LINENO "configure"
17265 /* confdefs.h.  */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h.  */
17270
17271 /* Override any gcc2 internal prototype to avoid an error.  */
17272 #ifdef __cplusplus
17273 extern "C"
17274 #endif
17275 /* We use char because int might match the return type of a gcc2
17276    builtin and then its argument prototype would still apply.  */
17277 char dld_link ();
17278 int
17279 main ()
17280 {
17281 dld_link ();
17282   ;
17283   return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17288   (eval $ac_link) 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); } &&
17292          { ac_try='test -s conftest$ac_exeext'
17293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294   (eval $ac_try) 2>&5
17295   ac_status=$?
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); }; }; then
17298   ac_cv_lib_dld_dld_link=yes
17299 else
17300   echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17302
17303 ac_cv_lib_dld_dld_link=no
17304 fi
17305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17306 LIBS=$ac_check_lib_save_LIBS
17307 fi
17308 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17309 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17310 if test $ac_cv_lib_dld_dld_link = yes; then
17311   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17312 fi
17313
17314
17315 fi
17316
17317
17318 fi
17319
17320
17321 fi
17322
17323
17324 fi
17325
17326
17327 fi
17328
17329     ;;
17330   esac
17331
17332   if test "x$lt_cv_dlopen" != xno; then
17333     enable_dlopen=yes
17334   else
17335     enable_dlopen=no
17336   fi
17337
17338   case $lt_cv_dlopen in
17339   dlopen)
17340     save_CPPFLAGS="$CPPFLAGS"
17341     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17342
17343     save_LDFLAGS="$LDFLAGS"
17344     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17345
17346     save_LIBS="$LIBS"
17347     LIBS="$lt_cv_dlopen_libs $LIBS"
17348
17349     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17350 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17351 if test "${lt_cv_dlopen_self+set}" = set; then
17352   echo $ECHO_N "(cached) $ECHO_C" >&6
17353 else
17354           if test "$cross_compiling" = yes; then :
17355   lt_cv_dlopen_self=cross
17356 else
17357   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17358   lt_status=$lt_dlunknown
17359   cat > conftest.$ac_ext <<EOF
17360 #line 17360 "configure"
17361 #include "confdefs.h"
17362
17363 #if HAVE_DLFCN_H
17364 #include <dlfcn.h>
17365 #endif
17366
17367 #include <stdio.h>
17368
17369 #ifdef RTLD_GLOBAL
17370 #  define LT_DLGLOBAL           RTLD_GLOBAL
17371 #else
17372 #  ifdef DL_GLOBAL
17373 #    define LT_DLGLOBAL         DL_GLOBAL
17374 #  else
17375 #    define LT_DLGLOBAL         0
17376 #  endif
17377 #endif
17378
17379 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17380    find out it does not work in some platform. */
17381 #ifndef LT_DLLAZY_OR_NOW
17382 #  ifdef RTLD_LAZY
17383 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17384 #  else
17385 #    ifdef DL_LAZY
17386 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17387 #    else
17388 #      ifdef RTLD_NOW
17389 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17390 #      else
17391 #        ifdef DL_NOW
17392 #          define LT_DLLAZY_OR_NOW      DL_NOW
17393 #        else
17394 #          define LT_DLLAZY_OR_NOW      0
17395 #        endif
17396 #      endif
17397 #    endif
17398 #  endif
17399 #endif
17400
17401 #ifdef __cplusplus
17402 extern "C" void exit (int);
17403 #endif
17404
17405 void fnord() { int i=42;}
17406 int main ()
17407 {
17408   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17409   int status = $lt_dlunknown;
17410
17411   if (self)
17412     {
17413       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17414       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17415       /* dlclose (self); */
17416     }
17417
17418     exit (status);
17419 }
17420 EOF
17421   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17422   (eval $ac_link) 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17426     (./conftest; exit; ) 2>/dev/null
17427     lt_status=$?
17428     case x$lt_status in
17429       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17430       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17431       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17432     esac
17433   else :
17434     # compilation failed
17435     lt_cv_dlopen_self=no
17436   fi
17437 fi
17438 rm -fr conftest*
17439
17440
17441 fi
17442 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17443 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17444
17445     if test "x$lt_cv_dlopen_self" = xyes; then
17446       LDFLAGS="$LDFLAGS $link_static_flag"
17447       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17448 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17449 if test "${lt_cv_dlopen_self_static+set}" = set; then
17450   echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452           if test "$cross_compiling" = yes; then :
17453   lt_cv_dlopen_self_static=cross
17454 else
17455   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17456   lt_status=$lt_dlunknown
17457   cat > conftest.$ac_ext <<EOF
17458 #line 17458 "configure"
17459 #include "confdefs.h"
17460
17461 #if HAVE_DLFCN_H
17462 #include <dlfcn.h>
17463 #endif
17464
17465 #include <stdio.h>
17466
17467 #ifdef RTLD_GLOBAL
17468 #  define LT_DLGLOBAL           RTLD_GLOBAL
17469 #else
17470 #  ifdef DL_GLOBAL
17471 #    define LT_DLGLOBAL         DL_GLOBAL
17472 #  else
17473 #    define LT_DLGLOBAL         0
17474 #  endif
17475 #endif
17476
17477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17478    find out it does not work in some platform. */
17479 #ifndef LT_DLLAZY_OR_NOW
17480 #  ifdef RTLD_LAZY
17481 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17482 #  else
17483 #    ifdef DL_LAZY
17484 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17485 #    else
17486 #      ifdef RTLD_NOW
17487 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17488 #      else
17489 #        ifdef DL_NOW
17490 #          define LT_DLLAZY_OR_NOW      DL_NOW
17491 #        else
17492 #          define LT_DLLAZY_OR_NOW      0
17493 #        endif
17494 #      endif
17495 #    endif
17496 #  endif
17497 #endif
17498
17499 #ifdef __cplusplus
17500 extern "C" void exit (int);
17501 #endif
17502
17503 void fnord() { int i=42;}
17504 int main ()
17505 {
17506   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17507   int status = $lt_dlunknown;
17508
17509   if (self)
17510     {
17511       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17512       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17513       /* dlclose (self); */
17514     }
17515
17516     exit (status);
17517 }
17518 EOF
17519   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520   (eval $ac_link) 2>&5
17521   ac_status=$?
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17524     (./conftest; exit; ) 2>/dev/null
17525     lt_status=$?
17526     case x$lt_status in
17527       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17528       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17529       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17530     esac
17531   else :
17532     # compilation failed
17533     lt_cv_dlopen_self_static=no
17534   fi
17535 fi
17536 rm -fr conftest*
17537
17538
17539 fi
17540 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17541 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17542     fi
17543
17544     CPPFLAGS="$save_CPPFLAGS"
17545     LDFLAGS="$save_LDFLAGS"
17546     LIBS="$save_LIBS"
17547     ;;
17548   esac
17549
17550   case $lt_cv_dlopen_self in
17551   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17552   *) enable_dlopen_self=unknown ;;
17553   esac
17554
17555   case $lt_cv_dlopen_self_static in
17556   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17557   *) enable_dlopen_self_static=unknown ;;
17558   esac
17559 fi
17560
17561
17562 # The else clause should only fire when bootstrapping the
17563 # libtool distribution, otherwise you forgot to ship ltmain.sh
17564 # with your package, and you will get complaints that there are
17565 # no rules to generate ltmain.sh.
17566 if test -f "$ltmain"; then
17567   # See if we are running on zsh, and set the options which allow our commands through
17568   # without removal of \ escapes.
17569   if test -n "${ZSH_VERSION+set}" ; then
17570     setopt NO_GLOB_SUBST
17571   fi
17572   # Now quote all the things that may contain metacharacters while being
17573   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17574   # variables and quote the copies for generation of the libtool script.
17575   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17576     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17577     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17578     deplibs_check_method reload_flag reload_cmds need_locks \
17579     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17580     lt_cv_sys_global_symbol_to_c_name_address \
17581     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17582     old_postinstall_cmds old_postuninstall_cmds \
17583     compiler_GCJ \
17584     CC_GCJ \
17585     LD_GCJ \
17586     lt_prog_compiler_wl_GCJ \
17587     lt_prog_compiler_pic_GCJ \
17588     lt_prog_compiler_static_GCJ \
17589     lt_prog_compiler_no_builtin_flag_GCJ \
17590     export_dynamic_flag_spec_GCJ \
17591     thread_safe_flag_spec_GCJ \
17592     whole_archive_flag_spec_GCJ \
17593     enable_shared_with_static_runtimes_GCJ \
17594     old_archive_cmds_GCJ \
17595     old_archive_from_new_cmds_GCJ \
17596     predep_objects_GCJ \
17597     postdep_objects_GCJ \
17598     predeps_GCJ \
17599     postdeps_GCJ \
17600     compiler_lib_search_path_GCJ \
17601     archive_cmds_GCJ \
17602     archive_expsym_cmds_GCJ \
17603     postinstall_cmds_GCJ \
17604     postuninstall_cmds_GCJ \
17605     old_archive_from_expsyms_cmds_GCJ \
17606     allow_undefined_flag_GCJ \
17607     no_undefined_flag_GCJ \
17608     export_symbols_cmds_GCJ \
17609     hardcode_libdir_flag_spec_GCJ \
17610     hardcode_libdir_flag_spec_ld_GCJ \
17611     hardcode_libdir_separator_GCJ \
17612     hardcode_automatic_GCJ \
17613     module_cmds_GCJ \
17614     module_expsym_cmds_GCJ \
17615     lt_cv_prog_compiler_c_o_GCJ \
17616     exclude_expsyms_GCJ \
17617     include_expsyms_GCJ; do
17618
17619     case $var in
17620     old_archive_cmds_GCJ | \
17621     old_archive_from_new_cmds_GCJ | \
17622     archive_cmds_GCJ | \
17623     archive_expsym_cmds_GCJ | \
17624     module_cmds_GCJ | \
17625     module_expsym_cmds_GCJ | \
17626     old_archive_from_expsyms_cmds_GCJ | \
17627     export_symbols_cmds_GCJ | \
17628     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17629     postinstall_cmds | postuninstall_cmds | \
17630     old_postinstall_cmds | old_postuninstall_cmds | \
17631     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17632       # Double-quote double-evaled strings.
17633       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17634       ;;
17635     *)
17636       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17637       ;;
17638     esac
17639   done
17640
17641   case $lt_echo in
17642   *'\$0 --fallback-echo"')
17643     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17644     ;;
17645   esac
17646
17647 cfgfile="$ofile"
17648
17649   cat <<__EOF__ >> "$cfgfile"
17650 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17651
17652 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17653
17654 # Shell to use when invoking shell scripts.
17655 SHELL=$lt_SHELL
17656
17657 # Whether or not to build shared libraries.
17658 build_libtool_libs=$enable_shared
17659
17660 # Whether or not to build static libraries.
17661 build_old_libs=$enable_static
17662
17663 # Whether or not to add -lc for building shared libraries.
17664 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17665
17666 # Whether or not to disallow shared libs when runtime libs are static
17667 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17668
17669 # Whether or not to optimize for fast installation.
17670 fast_install=$enable_fast_install
17671
17672 # The host system.
17673 host_alias=$host_alias
17674 host=$host
17675
17676 # An echo program that does not interpret backslashes.
17677 echo=$lt_echo
17678
17679 # The archiver.
17680 AR=$lt_AR
17681 AR_FLAGS=$lt_AR_FLAGS
17682
17683 # A C compiler.
17684 LTCC=$lt_LTCC
17685
17686 # A language-specific compiler.
17687 CC=$lt_compiler_GCJ
17688
17689 # Is the compiler the GNU C compiler?
17690 with_gcc=$GCC_GCJ
17691
17692 # An ERE matcher.
17693 EGREP=$lt_EGREP
17694
17695 # The linker used to build libraries.
17696 LD=$lt_LD_GCJ
17697
17698 # Whether we need hard or soft links.
17699 LN_S=$lt_LN_S
17700
17701 # A BSD-compatible nm program.
17702 NM=$lt_NM
17703
17704 # A symbol stripping program
17705 STRIP=$STRIP
17706
17707 # Used to examine libraries when file_magic_cmd begins "file"
17708 MAGIC_CMD=$MAGIC_CMD
17709
17710 # Used on cygwin: DLL creation program.
17711 DLLTOOL="$DLLTOOL"
17712
17713 # Used on cygwin: object dumper.
17714 OBJDUMP="$OBJDUMP"
17715
17716 # Used on cygwin: assembler.
17717 AS="$AS"
17718
17719 # The name of the directory that contains temporary libtool files.
17720 objdir=$objdir
17721
17722 # How to create reloadable object files.
17723 reload_flag=$lt_reload_flag
17724 reload_cmds=$lt_reload_cmds
17725
17726 # How to pass a linker flag through the compiler.
17727 wl=$lt_lt_prog_compiler_wl_GCJ
17728
17729 # Object file suffix (normally "o").
17730 objext="$ac_objext"
17731
17732 # Old archive suffix (normally "a").
17733 libext="$libext"
17734
17735 # Shared library suffix (normally ".so").
17736 shrext='$shrext'
17737
17738 # Executable file suffix (normally "").
17739 exeext="$exeext"
17740
17741 # Additional compiler flags for building library objects.
17742 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17743 pic_mode=$pic_mode
17744
17745 # What is the maximum length of a command?
17746 max_cmd_len=$lt_cv_sys_max_cmd_len
17747
17748 # Does compiler simultaneously support -c and -o options?
17749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17750
17751 # Must we lock files when doing compilation ?
17752 need_locks=$lt_need_locks
17753
17754 # Do we need the lib prefix for modules?
17755 need_lib_prefix=$need_lib_prefix
17756
17757 # Do we need a version for libraries?
17758 need_version=$need_version
17759
17760 # Whether dlopen is supported.
17761 dlopen_support=$enable_dlopen
17762
17763 # Whether dlopen of programs is supported.
17764 dlopen_self=$enable_dlopen_self
17765
17766 # Whether dlopen of statically linked programs is supported.
17767 dlopen_self_static=$enable_dlopen_self_static
17768
17769 # Compiler flag to prevent dynamic linking.
17770 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17771
17772 # Compiler flag to turn off builtin functions.
17773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17774
17775 # Compiler flag to allow reflexive dlopens.
17776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17777
17778 # Compiler flag to generate shared objects directly from archives.
17779 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17780
17781 # Compiler flag to generate thread-safe objects.
17782 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17783
17784 # Library versioning type.
17785 version_type=$version_type
17786
17787 # Format of library name prefix.
17788 libname_spec=$lt_libname_spec
17789
17790 # List of archive names.  First name is the real one, the rest are links.
17791 # The last name is the one that the linker finds with -lNAME.
17792 library_names_spec=$lt_library_names_spec
17793
17794 # The coded name of the library, if different from the real name.
17795 soname_spec=$lt_soname_spec
17796
17797 # Commands used to build and install an old-style archive.
17798 RANLIB=$lt_RANLIB
17799 old_archive_cmds=$lt_old_archive_cmds_GCJ
17800 old_postinstall_cmds=$lt_old_postinstall_cmds
17801 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17802
17803 # Create an old-style archive from a shared archive.
17804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17805
17806 # Create a temporary old-style archive to link instead of a shared archive.
17807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17808
17809 # Commands used to build and install a shared archive.
17810 archive_cmds=$lt_archive_cmds_GCJ
17811 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17812 postinstall_cmds=$lt_postinstall_cmds
17813 postuninstall_cmds=$lt_postuninstall_cmds
17814
17815 # Commands used to build a loadable module (assumed same as above if empty)
17816 module_cmds=$lt_module_cmds_GCJ
17817 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17818
17819 # Commands to strip libraries.
17820 old_striplib=$lt_old_striplib
17821 striplib=$lt_striplib
17822
17823 # Dependencies to place before the objects being linked to create a
17824 # shared library.
17825 predep_objects=$lt_predep_objects_GCJ
17826
17827 # Dependencies to place after the objects being linked to create a
17828 # shared library.
17829 postdep_objects=$lt_postdep_objects_GCJ
17830
17831 # Dependencies to place before the objects being linked to create a
17832 # shared library.
17833 predeps=$lt_predeps_GCJ
17834
17835 # Dependencies to place after the objects being linked to create a
17836 # shared library.
17837 postdeps=$lt_postdeps_GCJ
17838
17839 # The library search path used internally by the compiler when linking
17840 # a shared library.
17841 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17842
17843 # Method to check whether dependent libraries are shared objects.
17844 deplibs_check_method=$lt_deplibs_check_method
17845
17846 # Command to use when deplibs_check_method == file_magic.
17847 file_magic_cmd=$lt_file_magic_cmd
17848
17849 # Flag that allows shared libraries with undefined symbols to be built.
17850 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17851
17852 # Flag that forces no undefined symbols.
17853 no_undefined_flag=$lt_no_undefined_flag_GCJ
17854
17855 # Commands used to finish a libtool library installation in a directory.
17856 finish_cmds=$lt_finish_cmds
17857
17858 # Same as above, but a single script fragment to be evaled but not shown.
17859 finish_eval=$lt_finish_eval
17860
17861 # Take the output of nm and produce a listing of raw symbols and C names.
17862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17863
17864 # Transform the output of nm in a proper C declaration
17865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17866
17867 # Transform the output of nm in a C name address pair
17868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17869
17870 # This is the shared library runtime path variable.
17871 runpath_var=$runpath_var
17872
17873 # This is the shared library path variable.
17874 shlibpath_var=$shlibpath_var
17875
17876 # Is shlibpath searched before the hard-coded library search path?
17877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17878
17879 # How to hardcode a shared library path into an executable.
17880 hardcode_action=$hardcode_action_GCJ
17881
17882 # Whether we should hardcode library paths into libraries.
17883 hardcode_into_libs=$hardcode_into_libs
17884
17885 # Flag to hardcode \$libdir into a binary during linking.
17886 # This must work even if \$libdir does not exist.
17887 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17888
17889 # If ld is used when linking, flag to hardcode \$libdir into
17890 # a binary during linking. This must work even if \$libdir does
17891 # not exist.
17892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17893
17894 # Whether we need a single -rpath flag with a separated argument.
17895 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17896
17897 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17898 # resulting binary.
17899 hardcode_direct=$hardcode_direct_GCJ
17900
17901 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17902 # resulting binary.
17903 hardcode_minus_L=$hardcode_minus_L_GCJ
17904
17905 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17906 # the resulting binary.
17907 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17908
17909 # Set to yes if building a shared library automatically hardcodes DIR into the library
17910 # and all subsequent libraries and executables linked against it.
17911 hardcode_automatic=$hardcode_automatic_GCJ
17912
17913 # Variables whose values should be saved in libtool wrapper scripts and
17914 # restored at relink time.
17915 variables_saved_for_relink="$variables_saved_for_relink"
17916
17917 # Whether libtool must link a program against all its dependency libraries.
17918 link_all_deplibs=$link_all_deplibs_GCJ
17919
17920 # Compile-time system search path for libraries
17921 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17922
17923 # Run-time system search path for libraries
17924 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17925
17926 # Fix the shell variable \$srcfile for the compiler.
17927 fix_srcfile_path="$fix_srcfile_path_GCJ"
17928
17929 # Set to yes if exported symbols are required.
17930 always_export_symbols=$always_export_symbols_GCJ
17931
17932 # The commands to list exported symbols.
17933 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17934
17935 # The commands to extract the exported symbol list from a shared archive.
17936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17937
17938 # Symbols that should not be listed in the preloaded symbols.
17939 exclude_expsyms=$lt_exclude_expsyms_GCJ
17940
17941 # Symbols that must always be exported.
17942 include_expsyms=$lt_include_expsyms_GCJ
17943
17944 # ### END LIBTOOL TAG CONFIG: $tagname
17945
17946 __EOF__
17947
17948
17949 else
17950   # If there is no Makefile yet, we rely on a make rule to execute
17951   # `config.status --recheck' to rerun these tests and create the
17952   # libtool script then.
17953   test -f Makefile && make "$ltmain"
17954 fi
17955
17956
17957 ac_ext=c
17958 ac_cpp='$CPP $CPPFLAGS'
17959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17962
17963 CC="$lt_save_CC"
17964
17965         else
17966           tagname=""
17967         fi
17968         ;;
17969
17970       RC)
17971
17972
17973
17974 # Source file extension for RC test sources.
17975 ac_ext=rc
17976
17977 # Object file extension for compiled RC test sources.
17978 objext=o
17979 objext_RC=$objext
17980
17981 # Code to be used in simple compile tests
17982 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17983
17984 # Code to be used in simple link tests
17985 lt_simple_link_test_code="$lt_simple_compile_test_code"
17986
17987 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17988
17989 # If no C compiler was specified, use CC.
17990 LTCC=${LTCC-"$CC"}
17991
17992 # Allow CC to be a program name with arguments.
17993 compiler=$CC
17994
17995
17996 # Allow CC to be a program name with arguments.
17997 lt_save_CC="$CC"
17998 CC=${RC-"windres"}
17999 compiler=$CC
18000 compiler_RC=$CC
18001 lt_cv_prog_compiler_c_o_RC=yes
18002
18003 # The else clause should only fire when bootstrapping the
18004 # libtool distribution, otherwise you forgot to ship ltmain.sh
18005 # with your package, and you will get complaints that there are
18006 # no rules to generate ltmain.sh.
18007 if test -f "$ltmain"; then
18008   # See if we are running on zsh, and set the options which allow our commands through
18009   # without removal of \ escapes.
18010   if test -n "${ZSH_VERSION+set}" ; then
18011     setopt NO_GLOB_SUBST
18012   fi
18013   # Now quote all the things that may contain metacharacters while being
18014   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18015   # variables and quote the copies for generation of the libtool script.
18016   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18017     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18018     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18019     deplibs_check_method reload_flag reload_cmds need_locks \
18020     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18021     lt_cv_sys_global_symbol_to_c_name_address \
18022     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18023     old_postinstall_cmds old_postuninstall_cmds \
18024     compiler_RC \
18025     CC_RC \
18026     LD_RC \
18027     lt_prog_compiler_wl_RC \
18028     lt_prog_compiler_pic_RC \
18029     lt_prog_compiler_static_RC \
18030     lt_prog_compiler_no_builtin_flag_RC \
18031     export_dynamic_flag_spec_RC \
18032     thread_safe_flag_spec_RC \
18033     whole_archive_flag_spec_RC \
18034     enable_shared_with_static_runtimes_RC \
18035     old_archive_cmds_RC \
18036     old_archive_from_new_cmds_RC \
18037     predep_objects_RC \
18038     postdep_objects_RC \
18039     predeps_RC \
18040     postdeps_RC \
18041     compiler_lib_search_path_RC \
18042     archive_cmds_RC \
18043     archive_expsym_cmds_RC \
18044     postinstall_cmds_RC \
18045     postuninstall_cmds_RC \
18046     old_archive_from_expsyms_cmds_RC \
18047     allow_undefined_flag_RC \
18048     no_undefined_flag_RC \
18049     export_symbols_cmds_RC \
18050     hardcode_libdir_flag_spec_RC \
18051     hardcode_libdir_flag_spec_ld_RC \
18052     hardcode_libdir_separator_RC \
18053     hardcode_automatic_RC \
18054     module_cmds_RC \
18055     module_expsym_cmds_RC \
18056     lt_cv_prog_compiler_c_o_RC \
18057     exclude_expsyms_RC \
18058     include_expsyms_RC; do
18059
18060     case $var in
18061     old_archive_cmds_RC | \
18062     old_archive_from_new_cmds_RC | \
18063     archive_cmds_RC | \
18064     archive_expsym_cmds_RC | \
18065     module_cmds_RC | \
18066     module_expsym_cmds_RC | \
18067     old_archive_from_expsyms_cmds_RC | \
18068     export_symbols_cmds_RC | \
18069     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18070     postinstall_cmds | postuninstall_cmds | \
18071     old_postinstall_cmds | old_postuninstall_cmds | \
18072     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18073       # Double-quote double-evaled strings.
18074       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18075       ;;
18076     *)
18077       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18078       ;;
18079     esac
18080   done
18081
18082   case $lt_echo in
18083   *'\$0 --fallback-echo"')
18084     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18085     ;;
18086   esac
18087
18088 cfgfile="$ofile"
18089
18090   cat <<__EOF__ >> "$cfgfile"
18091 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18092
18093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18094
18095 # Shell to use when invoking shell scripts.
18096 SHELL=$lt_SHELL
18097
18098 # Whether or not to build shared libraries.
18099 build_libtool_libs=$enable_shared
18100
18101 # Whether or not to build static libraries.
18102 build_old_libs=$enable_static
18103
18104 # Whether or not to add -lc for building shared libraries.
18105 build_libtool_need_lc=$archive_cmds_need_lc_RC
18106
18107 # Whether or not to disallow shared libs when runtime libs are static
18108 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18109
18110 # Whether or not to optimize for fast installation.
18111 fast_install=$enable_fast_install
18112
18113 # The host system.
18114 host_alias=$host_alias
18115 host=$host
18116
18117 # An echo program that does not interpret backslashes.
18118 echo=$lt_echo
18119
18120 # The archiver.
18121 AR=$lt_AR
18122 AR_FLAGS=$lt_AR_FLAGS
18123
18124 # A C compiler.
18125 LTCC=$lt_LTCC
18126
18127 # A language-specific compiler.
18128 CC=$lt_compiler_RC
18129
18130 # Is the compiler the GNU C compiler?
18131 with_gcc=$GCC_RC
18132
18133 # An ERE matcher.
18134 EGREP=$lt_EGREP
18135
18136 # The linker used to build libraries.
18137 LD=$lt_LD_RC
18138
18139 # Whether we need hard or soft links.
18140 LN_S=$lt_LN_S
18141
18142 # A BSD-compatible nm program.
18143 NM=$lt_NM
18144
18145 # A symbol stripping program
18146 STRIP=$STRIP
18147
18148 # Used to examine libraries when file_magic_cmd begins "file"
18149 MAGIC_CMD=$MAGIC_CMD
18150
18151 # Used on cygwin: DLL creation program.
18152 DLLTOOL="$DLLTOOL"
18153
18154 # Used on cygwin: object dumper.
18155 OBJDUMP="$OBJDUMP"
18156
18157 # Used on cygwin: assembler.
18158 AS="$AS"
18159
18160 # The name of the directory that contains temporary libtool files.
18161 objdir=$objdir
18162
18163 # How to create reloadable object files.
18164 reload_flag=$lt_reload_flag
18165 reload_cmds=$lt_reload_cmds
18166
18167 # How to pass a linker flag through the compiler.
18168 wl=$lt_lt_prog_compiler_wl_RC
18169
18170 # Object file suffix (normally "o").
18171 objext="$ac_objext"
18172
18173 # Old archive suffix (normally "a").
18174 libext="$libext"
18175
18176 # Shared library suffix (normally ".so").
18177 shrext='$shrext'
18178
18179 # Executable file suffix (normally "").
18180 exeext="$exeext"
18181
18182 # Additional compiler flags for building library objects.
18183 pic_flag=$lt_lt_prog_compiler_pic_RC
18184 pic_mode=$pic_mode
18185
18186 # What is the maximum length of a command?
18187 max_cmd_len=$lt_cv_sys_max_cmd_len
18188
18189 # Does compiler simultaneously support -c and -o options?
18190 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18191
18192 # Must we lock files when doing compilation ?
18193 need_locks=$lt_need_locks
18194
18195 # Do we need the lib prefix for modules?
18196 need_lib_prefix=$need_lib_prefix
18197
18198 # Do we need a version for libraries?
18199 need_version=$need_version
18200
18201 # Whether dlopen is supported.
18202 dlopen_support=$enable_dlopen
18203
18204 # Whether dlopen of programs is supported.
18205 dlopen_self=$enable_dlopen_self
18206
18207 # Whether dlopen of statically linked programs is supported.
18208 dlopen_self_static=$enable_dlopen_self_static
18209
18210 # Compiler flag to prevent dynamic linking.
18211 link_static_flag=$lt_lt_prog_compiler_static_RC
18212
18213 # Compiler flag to turn off builtin functions.
18214 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18215
18216 # Compiler flag to allow reflexive dlopens.
18217 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18218
18219 # Compiler flag to generate shared objects directly from archives.
18220 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18221
18222 # Compiler flag to generate thread-safe objects.
18223 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18224
18225 # Library versioning type.
18226 version_type=$version_type
18227
18228 # Format of library name prefix.
18229 libname_spec=$lt_libname_spec
18230
18231 # List of archive names.  First name is the real one, the rest are links.
18232 # The last name is the one that the linker finds with -lNAME.
18233 library_names_spec=$lt_library_names_spec
18234
18235 # The coded name of the library, if different from the real name.
18236 soname_spec=$lt_soname_spec
18237
18238 # Commands used to build and install an old-style archive.
18239 RANLIB=$lt_RANLIB
18240 old_archive_cmds=$lt_old_archive_cmds_RC
18241 old_postinstall_cmds=$lt_old_postinstall_cmds
18242 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18243
18244 # Create an old-style archive from a shared archive.
18245 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18246
18247 # Create a temporary old-style archive to link instead of a shared archive.
18248 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18249
18250 # Commands used to build and install a shared archive.
18251 archive_cmds=$lt_archive_cmds_RC
18252 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18253 postinstall_cmds=$lt_postinstall_cmds
18254 postuninstall_cmds=$lt_postuninstall_cmds
18255
18256 # Commands used to build a loadable module (assumed same as above if empty)
18257 module_cmds=$lt_module_cmds_RC
18258 module_expsym_cmds=$lt_module_expsym_cmds_RC
18259
18260 # Commands to strip libraries.
18261 old_striplib=$lt_old_striplib
18262 striplib=$lt_striplib
18263
18264 # Dependencies to place before the objects being linked to create a
18265 # shared library.
18266 predep_objects=$lt_predep_objects_RC
18267
18268 # Dependencies to place after the objects being linked to create a
18269 # shared library.
18270 postdep_objects=$lt_postdep_objects_RC
18271
18272 # Dependencies to place before the objects being linked to create a
18273 # shared library.
18274 predeps=$lt_predeps_RC
18275
18276 # Dependencies to place after the objects being linked to create a
18277 # shared library.
18278 postdeps=$lt_postdeps_RC
18279
18280 # The library search path used internally by the compiler when linking
18281 # a shared library.
18282 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18283
18284 # Method to check whether dependent libraries are shared objects.
18285 deplibs_check_method=$lt_deplibs_check_method
18286
18287 # Command to use when deplibs_check_method == file_magic.
18288 file_magic_cmd=$lt_file_magic_cmd
18289
18290 # Flag that allows shared libraries with undefined symbols to be built.
18291 allow_undefined_flag=$lt_allow_undefined_flag_RC
18292
18293 # Flag that forces no undefined symbols.
18294 no_undefined_flag=$lt_no_undefined_flag_RC
18295
18296 # Commands used to finish a libtool library installation in a directory.
18297 finish_cmds=$lt_finish_cmds
18298
18299 # Same as above, but a single script fragment to be evaled but not shown.
18300 finish_eval=$lt_finish_eval
18301
18302 # Take the output of nm and produce a listing of raw symbols and C names.
18303 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18304
18305 # Transform the output of nm in a proper C declaration
18306 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18307
18308 # Transform the output of nm in a C name address pair
18309 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18310
18311 # This is the shared library runtime path variable.
18312 runpath_var=$runpath_var
18313
18314 # This is the shared library path variable.
18315 shlibpath_var=$shlibpath_var
18316
18317 # Is shlibpath searched before the hard-coded library search path?
18318 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18319
18320 # How to hardcode a shared library path into an executable.
18321 hardcode_action=$hardcode_action_RC
18322
18323 # Whether we should hardcode library paths into libraries.
18324 hardcode_into_libs=$hardcode_into_libs
18325
18326 # Flag to hardcode \$libdir into a binary during linking.
18327 # This must work even if \$libdir does not exist.
18328 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18329
18330 # If ld is used when linking, flag to hardcode \$libdir into
18331 # a binary during linking. This must work even if \$libdir does
18332 # not exist.
18333 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18334
18335 # Whether we need a single -rpath flag with a separated argument.
18336 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18337
18338 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18339 # resulting binary.
18340 hardcode_direct=$hardcode_direct_RC
18341
18342 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18343 # resulting binary.
18344 hardcode_minus_L=$hardcode_minus_L_RC
18345
18346 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18347 # the resulting binary.
18348 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18349
18350 # Set to yes if building a shared library automatically hardcodes DIR into the library
18351 # and all subsequent libraries and executables linked against it.
18352 hardcode_automatic=$hardcode_automatic_RC
18353
18354 # Variables whose values should be saved in libtool wrapper scripts and
18355 # restored at relink time.
18356 variables_saved_for_relink="$variables_saved_for_relink"
18357
18358 # Whether libtool must link a program against all its dependency libraries.
18359 link_all_deplibs=$link_all_deplibs_RC
18360
18361 # Compile-time system search path for libraries
18362 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18363
18364 # Run-time system search path for libraries
18365 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18366
18367 # Fix the shell variable \$srcfile for the compiler.
18368 fix_srcfile_path="$fix_srcfile_path_RC"
18369
18370 # Set to yes if exported symbols are required.
18371 always_export_symbols=$always_export_symbols_RC
18372
18373 # The commands to list exported symbols.
18374 export_symbols_cmds=$lt_export_symbols_cmds_RC
18375
18376 # The commands to extract the exported symbol list from a shared archive.
18377 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18378
18379 # Symbols that should not be listed in the preloaded symbols.
18380 exclude_expsyms=$lt_exclude_expsyms_RC
18381
18382 # Symbols that must always be exported.
18383 include_expsyms=$lt_include_expsyms_RC
18384
18385 # ### END LIBTOOL TAG CONFIG: $tagname
18386
18387 __EOF__
18388
18389
18390 else
18391   # If there is no Makefile yet, we rely on a make rule to execute
18392   # `config.status --recheck' to rerun these tests and create the
18393   # libtool script then.
18394   test -f Makefile && make "$ltmain"
18395 fi
18396
18397
18398 ac_ext=c
18399 ac_cpp='$CPP $CPPFLAGS'
18400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18403
18404 CC="$lt_save_CC"
18405
18406         ;;
18407
18408       *)
18409         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18410 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18411    { (exit 1); exit 1; }; }
18412         ;;
18413       esac
18414
18415       # Append the new tag name to the list of available tags.
18416       if test -n "$tagname" ; then
18417       available_tags="$available_tags $tagname"
18418     fi
18419     fi
18420   done
18421   IFS="$lt_save_ifs"
18422
18423   # Now substitute the updated list of available tags.
18424   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18425     mv "${ofile}T" "$ofile"
18426     chmod +x "$ofile"
18427   else
18428     rm -f "${ofile}T"
18429     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18430 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18431    { (exit 1); exit 1; }; }
18432   fi
18433 fi
18434
18435
18436
18437 # This can be used to rebuild libtool when needed
18438 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18439
18440 # Always use our own libtool.
18441 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18442
18443 # Prevent multiple expansion
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465 # Extract the first word of "pwd", so it can be a program name with args.
18466 set dummy pwd; ac_word=$2
18467 echo "$as_me:$LINENO: checking for $ac_word" >&5
18468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18469 if test "${ac_cv_path_RPWD+set}" = set; then
18470   echo $ECHO_N "(cached) $ECHO_C" >&6
18471 else
18472   case $RPWD in
18473   [\\/]* | ?:[\\/]*)
18474   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18475   ;;
18476   *)
18477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478 for as_dir in $PATH
18479 do
18480   IFS=$as_save_IFS
18481   test -z "$as_dir" && as_dir=.
18482   for ac_exec_ext in '' $ac_executable_extensions; do
18483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18484     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18486     break 2
18487   fi
18488 done
18489 done
18490
18491   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18492   ;;
18493 esac
18494 fi
18495 RPWD=$ac_cv_path_RPWD
18496
18497 if test -n "$RPWD"; then
18498   echo "$as_me:$LINENO: result: $RPWD" >&5
18499 echo "${ECHO_T}$RPWD" >&6
18500 else
18501   echo "$as_me:$LINENO: result: no" >&5
18502 echo "${ECHO_T}no" >&6
18503 fi
18504
18505 if test ${RPWD} = "false"
18506 then
18507         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18508 echo "$as_me: error: pwd required but not found" >&2;}
18509    { (exit 1); exit 1; }; }
18510 fi
18511
18512 # Extract the first word of "ar", so it can be a program name with args.
18513 set dummy ar; ac_word=$2
18514 echo "$as_me:$LINENO: checking for $ac_word" >&5
18515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18516 if test "${ac_cv_path_AR+set}" = set; then
18517   echo $ECHO_N "(cached) $ECHO_C" >&6
18518 else
18519   case $AR in
18520   [\\/]* | ?:[\\/]*)
18521   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18522   ;;
18523   *)
18524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18525 for as_dir in $PATH
18526 do
18527   IFS=$as_save_IFS
18528   test -z "$as_dir" && as_dir=.
18529   for ac_exec_ext in '' $ac_executable_extensions; do
18530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18531     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18533     break 2
18534   fi
18535 done
18536 done
18537
18538   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18539   ;;
18540 esac
18541 fi
18542 AR=$ac_cv_path_AR
18543
18544 if test -n "$AR"; then
18545   echo "$as_me:$LINENO: result: $AR" >&5
18546 echo "${ECHO_T}$AR" >&6
18547 else
18548   echo "$as_me:$LINENO: result: no" >&5
18549 echo "${ECHO_T}no" >&6
18550 fi
18551
18552 if test ${AR} = "false"
18553 then
18554         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18555 echo "$as_me: error: ar required but not found" >&2;}
18556    { (exit 1); exit 1; }; }
18557 fi
18558
18559 # Extract the first word of "sed", so it can be a program name with args.
18560 set dummy sed; ac_word=$2
18561 echo "$as_me:$LINENO: checking for $ac_word" >&5
18562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18563 if test "${ac_cv_path_SED+set}" = set; then
18564   echo $ECHO_N "(cached) $ECHO_C" >&6
18565 else
18566   case $SED in
18567   [\\/]* | ?:[\\/]*)
18568   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18569   ;;
18570   *)
18571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18572 for as_dir in $PATH
18573 do
18574   IFS=$as_save_IFS
18575   test -z "$as_dir" && as_dir=.
18576   for ac_exec_ext in '' $ac_executable_extensions; do
18577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18578     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18580     break 2
18581   fi
18582 done
18583 done
18584
18585   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18586   ;;
18587 esac
18588 fi
18589 SED=$ac_cv_path_SED
18590
18591 if test -n "$SED"; then
18592   echo "$as_me:$LINENO: result: $SED" >&5
18593 echo "${ECHO_T}$SED" >&6
18594 else
18595   echo "$as_me:$LINENO: result: no" >&5
18596 echo "${ECHO_T}no" >&6
18597 fi
18598
18599 if test ${SED} = "false"
18600 then
18601         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18602 echo "$as_me: error: sed required but not found" >&2;}
18603    { (exit 1); exit 1; }; }
18604 fi
18605
18606 # Extract the first word of "rm", so it can be a program name with args.
18607 set dummy rm; ac_word=$2
18608 echo "$as_me:$LINENO: checking for $ac_word" >&5
18609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18610 if test "${ac_cv_path_RM+set}" = set; then
18611   echo $ECHO_N "(cached) $ECHO_C" >&6
18612 else
18613   case $RM in
18614   [\\/]* | ?:[\\/]*)
18615   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18616   ;;
18617   *)
18618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619 for as_dir in $PATH
18620 do
18621   IFS=$as_save_IFS
18622   test -z "$as_dir" && as_dir=.
18623   for ac_exec_ext in '' $ac_executable_extensions; do
18624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18625     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18627     break 2
18628   fi
18629 done
18630 done
18631
18632   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18633   ;;
18634 esac
18635 fi
18636 RM=$ac_cv_path_RM
18637
18638 if test -n "$RM"; then
18639   echo "$as_me:$LINENO: result: $RM" >&5
18640 echo "${ECHO_T}$RM" >&6
18641 else
18642   echo "$as_me:$LINENO: result: no" >&5
18643 echo "${ECHO_T}no" >&6
18644 fi
18645
18646 if test ${RM} = "false"
18647 then
18648         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18649 echo "$as_me: error: rm required but not found" >&2;}
18650    { (exit 1); exit 1; }; }
18651 fi
18652
18653 # Extract the first word of "echo", so it can be a program name with args.
18654 set dummy echo; ac_word=$2
18655 echo "$as_me:$LINENO: checking for $ac_word" >&5
18656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18657 if test "${ac_cv_path_ECHO+set}" = set; then
18658   echo $ECHO_N "(cached) $ECHO_C" >&6
18659 else
18660   case $ECHO in
18661   [\\/]* | ?:[\\/]*)
18662   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18663   ;;
18664   *)
18665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666 for as_dir in $PATH
18667 do
18668   IFS=$as_save_IFS
18669   test -z "$as_dir" && as_dir=.
18670   for ac_exec_ext in '' $ac_executable_extensions; do
18671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18672     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18674     break 2
18675   fi
18676 done
18677 done
18678
18679   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18680   ;;
18681 esac
18682 fi
18683 ECHO=$ac_cv_path_ECHO
18684
18685 if test -n "$ECHO"; then
18686   echo "$as_me:$LINENO: result: $ECHO" >&5
18687 echo "${ECHO_T}$ECHO" >&6
18688 else
18689   echo "$as_me:$LINENO: result: no" >&5
18690 echo "${ECHO_T}no" >&6
18691 fi
18692
18693 if test ${ECHO} = "false"
18694 then
18695         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18696 echo "$as_me: error: echo required but not found" >&2;}
18697    { (exit 1); exit 1; }; }
18698 fi
18699
18700 # Extract the first word of "mkdir", so it can be a program name with args.
18701 set dummy mkdir; ac_word=$2
18702 echo "$as_me:$LINENO: checking for $ac_word" >&5
18703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18704 if test "${ac_cv_path_MKDIR+set}" = set; then
18705   echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707   case $MKDIR in
18708   [\\/]* | ?:[\\/]*)
18709   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18710   ;;
18711   *)
18712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18713 for as_dir in $PATH
18714 do
18715   IFS=$as_save_IFS
18716   test -z "$as_dir" && as_dir=.
18717   for ac_exec_ext in '' $ac_executable_extensions; do
18718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18719     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18721     break 2
18722   fi
18723 done
18724 done
18725
18726   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18727   ;;
18728 esac
18729 fi
18730 MKDIR=$ac_cv_path_MKDIR
18731
18732 if test -n "$MKDIR"; then
18733   echo "$as_me:$LINENO: result: $MKDIR" >&5
18734 echo "${ECHO_T}$MKDIR" >&6
18735 else
18736   echo "$as_me:$LINENO: result: no" >&5
18737 echo "${ECHO_T}no" >&6
18738 fi
18739
18740 if test ${MKDIR} = "false"
18741 then
18742         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18743 echo "$as_me: error: mkdir required but not found" >&2;}
18744    { (exit 1); exit 1; }; }
18745 fi
18746
18747 # Extract the first word of "date", so it can be a program name with args.
18748 set dummy date; ac_word=$2
18749 echo "$as_me:$LINENO: checking for $ac_word" >&5
18750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18751 if test "${ac_cv_path_DATE+set}" = set; then
18752   echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754   case $DATE in
18755   [\\/]* | ?:[\\/]*)
18756   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18757   ;;
18758   *)
18759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18760 for as_dir in $PATH
18761 do
18762   IFS=$as_save_IFS
18763   test -z "$as_dir" && as_dir=.
18764   for ac_exec_ext in '' $ac_executable_extensions; do
18765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18766     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18768     break 2
18769   fi
18770 done
18771 done
18772
18773   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18774   ;;
18775 esac
18776 fi
18777 DATE=$ac_cv_path_DATE
18778
18779 if test -n "$DATE"; then
18780   echo "$as_me:$LINENO: result: $DATE" >&5
18781 echo "${ECHO_T}$DATE" >&6
18782 else
18783   echo "$as_me:$LINENO: result: no" >&5
18784 echo "${ECHO_T}no" >&6
18785 fi
18786
18787 if test ${DATE} = "false"
18788 then
18789         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18790 echo "$as_me: error: date required but not found" >&2;}
18791    { (exit 1); exit 1; }; }
18792 fi
18793
18794 # Extract the first word of "mv", so it can be a program name with args.
18795 set dummy mv; ac_word=$2
18796 echo "$as_me:$LINENO: checking for $ac_word" >&5
18797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18798 if test "${ac_cv_path_MV+set}" = set; then
18799   echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801   case $MV in
18802   [\\/]* | ?:[\\/]*)
18803   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18804   ;;
18805   *)
18806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807 for as_dir in $PATH
18808 do
18809   IFS=$as_save_IFS
18810   test -z "$as_dir" && as_dir=.
18811   for ac_exec_ext in '' $ac_executable_extensions; do
18812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18813     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18815     break 2
18816   fi
18817 done
18818 done
18819
18820   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18821   ;;
18822 esac
18823 fi
18824 MV=$ac_cv_path_MV
18825
18826 if test -n "$MV"; then
18827   echo "$as_me:$LINENO: result: $MV" >&5
18828 echo "${ECHO_T}$MV" >&6
18829 else
18830   echo "$as_me:$LINENO: result: no" >&5
18831 echo "${ECHO_T}no" >&6
18832 fi
18833
18834 if test ${MV} = "false"
18835 then
18836         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18837 echo "$as_me: error: mv required but not found" >&2;}
18838    { (exit 1); exit 1; }; }
18839 fi
18840
18841 # Extract the first word of "dot", so it can be a program name with args.
18842 set dummy dot; ac_word=$2
18843 echo "$as_me:$LINENO: checking for $ac_word" >&5
18844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18845 if test "${ac_cv_path_DOT+set}" = set; then
18846   echo $ECHO_N "(cached) $ECHO_C" >&6
18847 else
18848   case $DOT in
18849   [\\/]* | ?:[\\/]*)
18850   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18851   ;;
18852   *)
18853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18854 for as_dir in $PATH
18855 do
18856   IFS=$as_save_IFS
18857   test -z "$as_dir" && as_dir=.
18858   for ac_exec_ext in '' $ac_executable_extensions; do
18859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18860     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18862     break 2
18863   fi
18864 done
18865 done
18866
18867   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18868   ;;
18869 esac
18870 fi
18871 DOT=$ac_cv_path_DOT
18872
18873 if test -n "$DOT"; then
18874   echo "$as_me:$LINENO: result: $DOT" >&5
18875 echo "${ECHO_T}$DOT" >&6
18876 else
18877   echo "$as_me:$LINENO: result: no" >&5
18878 echo "${ECHO_T}no" >&6
18879 fi
18880
18881
18882 # Extract the first word of "etags", so it can be a program name with args.
18883 set dummy etags; ac_word=$2
18884 echo "$as_me:$LINENO: checking for $ac_word" >&5
18885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18886 if test "${ac_cv_path_ETAGS+set}" = set; then
18887   echo $ECHO_N "(cached) $ECHO_C" >&6
18888 else
18889   case $ETAGS in
18890   [\\/]* | ?:[\\/]*)
18891   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18892   ;;
18893   *)
18894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18895 for as_dir in $PATH
18896 do
18897   IFS=$as_save_IFS
18898   test -z "$as_dir" && as_dir=.
18899   for ac_exec_ext in '' $ac_executable_extensions; do
18900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18901     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18903     break 2
18904   fi
18905 done
18906 done
18907
18908   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18909   ;;
18910 esac
18911 fi
18912 ETAGS=$ac_cv_path_ETAGS
18913
18914 if test -n "$ETAGS"; then
18915   echo "$as_me:$LINENO: result: $ETAGS" >&5
18916 echo "${ECHO_T}$ETAGS" >&6
18917 else
18918   echo "$as_me:$LINENO: result: no" >&5
18919 echo "${ECHO_T}no" >&6
18920 fi
18921
18922
18923 # Extract the first word of "python", so it can be a program name with args.
18924 set dummy python; ac_word=$2
18925 echo "$as_me:$LINENO: checking for $ac_word" >&5
18926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18927 if test "${ac_cv_path_PYTHON+set}" = set; then
18928   echo $ECHO_N "(cached) $ECHO_C" >&6
18929 else
18930   case $PYTHON in
18931   [\\/]* | ?:[\\/]*)
18932   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18933   ;;
18934   *)
18935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18936 for as_dir in $PATH
18937 do
18938   IFS=$as_save_IFS
18939   test -z "$as_dir" && as_dir=.
18940   for ac_exec_ext in '' $ac_executable_extensions; do
18941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18942     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18944     break 2
18945   fi
18946 done
18947 done
18948
18949   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18950   ;;
18951 esac
18952 fi
18953 PYTHON=$ac_cv_path_PYTHON
18954
18955 if test -n "$PYTHON"; then
18956   echo "$as_me:$LINENO: result: $PYTHON" >&5
18957 echo "${ECHO_T}$PYTHON" >&6
18958 else
18959   echo "$as_me:$LINENO: result: no" >&5
18960 echo "${ECHO_T}no" >&6
18961 fi
18962
18963 if test ${PYTHON} = "false"
18964 then
18965         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18966 echo "$as_me: WARNING: python required but not found" >&2;}
18967 fi
18968
18969 # Extract the first word of "qmtest", so it can be a program name with args.
18970 set dummy qmtest; ac_word=$2
18971 echo "$as_me:$LINENO: checking for $ac_word" >&5
18972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18973 if test "${ac_cv_path_QMTEST+set}" = set; then
18974   echo $ECHO_N "(cached) $ECHO_C" >&6
18975 else
18976   case $QMTEST in
18977   [\\/]* | ?:[\\/]*)
18978   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18979   ;;
18980   *)
18981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18982 for as_dir in $PATH
18983 do
18984   IFS=$as_save_IFS
18985   test -z "$as_dir" && as_dir=.
18986   for ac_exec_ext in '' $ac_executable_extensions; do
18987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18988     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18990     break 2
18991   fi
18992 done
18993 done
18994
18995   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18996   ;;
18997 esac
18998 fi
18999 QMTEST=$ac_cv_path_QMTEST
19000
19001 if test -n "$QMTEST"; then
19002   echo "$as_me:$LINENO: result: $QMTEST" >&5
19003 echo "${ECHO_T}$QMTEST" >&6
19004 else
19005   echo "$as_me:$LINENO: result: no" >&5
19006 echo "${ECHO_T}no" >&6
19007 fi
19008
19009 if test ${QMTEST} = "false"
19010 then
19011         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19012 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19013 fi
19014
19015 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19016 pymajor=`echo $pyversion | cut -d. -f1`
19017 pyminor=`echo $pyversion | cut -d. -f2`
19018
19019 if test "$pymajor" -ge "2"
19020 then
19021         if test "$pymajor" -eq "2"
19022         then
19023                 if test "$pyminor" -lt "2"
19024                 then
19025                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19026 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19027    { (exit 1); exit 1; }; }
19028                 fi
19029         fi
19030 else
19031         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19032 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19033    { (exit 1); exit 1; }; }
19034 fi
19035
19036
19037
19038
19039
19040 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19041 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19042 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19043   echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045   ac_check_lib_save_LIBS=$LIBS
19046 LIBS="-lelf  $LIBS"
19047 cat >conftest.$ac_ext <<_ACEOF
19048 #line $LINENO "configure"
19049 /* confdefs.h.  */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h.  */
19054
19055 /* Override any gcc2 internal prototype to avoid an error.  */
19056 #ifdef __cplusplus
19057 extern "C"
19058 #endif
19059 /* We use char because int might match the return type of a gcc2
19060    builtin and then its argument prototype would still apply.  */
19061 char elf_begin ();
19062 int
19063 main ()
19064 {
19065 elf_begin ();
19066   ;
19067   return 0;
19068 }
19069 _ACEOF
19070 rm -f conftest.$ac_objext conftest$ac_exeext
19071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19072   (eval $ac_link) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); } &&
19076          { ac_try='test -s conftest$ac_exeext'
19077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078   (eval $ac_try) 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; }; then
19082   ac_cv_lib_elf_elf_begin=yes
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 ac_cv_lib_elf_elf_begin=no
19088 fi
19089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_check_lib_save_LIBS
19091 fi
19092 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19093 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19094 if test $ac_cv_lib_elf_elf_begin = yes; then
19095   cat >>confdefs.h <<_ACEOF
19096 #define HAVE_LIBELF 1
19097 _ACEOF
19098
19099   LIBS="-lelf $LIBS"
19100
19101 fi
19102
19103
19104 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19105 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19106 if test "${ac_cv_search_dlopen+set}" = set; then
19107   echo $ECHO_N "(cached) $ECHO_C" >&6
19108 else
19109   ac_func_search_save_LIBS=$LIBS
19110 ac_cv_search_dlopen=no
19111 cat >conftest.$ac_ext <<_ACEOF
19112 #line $LINENO "configure"
19113 /* confdefs.h.  */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h.  */
19118
19119 /* Override any gcc2 internal prototype to avoid an error.  */
19120 #ifdef __cplusplus
19121 extern "C"
19122 #endif
19123 /* We use char because int might match the return type of a gcc2
19124    builtin and then its argument prototype would still apply.  */
19125 char dlopen ();
19126 int
19127 main ()
19128 {
19129 dlopen ();
19130   ;
19131   return 0;
19132 }
19133 _ACEOF
19134 rm -f conftest.$ac_objext conftest$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136   (eval $ac_link) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } &&
19140          { ac_try='test -s conftest$ac_exeext'
19141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142   (eval $ac_try) 2>&5
19143   ac_status=$?
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); }; }; then
19146   ac_cv_search_dlopen="none required"
19147 else
19148   echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151 fi
19152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19153 if test "$ac_cv_search_dlopen" = no; then
19154   for ac_lib in dl; do
19155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19156     cat >conftest.$ac_ext <<_ACEOF
19157 #line $LINENO "configure"
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163
19164 /* Override any gcc2 internal prototype to avoid an error.  */
19165 #ifdef __cplusplus
19166 extern "C"
19167 #endif
19168 /* We use char because int might match the return type of a gcc2
19169    builtin and then its argument prototype would still apply.  */
19170 char dlopen ();
19171 int
19172 main ()
19173 {
19174 dlopen ();
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181   (eval $ac_link) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); } &&
19185          { ac_try='test -s conftest$ac_exeext'
19186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187   (eval $ac_try) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; }; then
19191   ac_cv_search_dlopen="-l$ac_lib"
19192 break
19193 else
19194   echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19196
19197 fi
19198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19199   done
19200 fi
19201 LIBS=$ac_func_search_save_LIBS
19202 fi
19203 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19204 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19205 if test "$ac_cv_search_dlopen" != no; then
19206   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19207
19208 cat >>confdefs.h <<\_ACEOF
19209 #define HAVE_DLOPEN 1
19210 _ACEOF
19211
19212 else
19213   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19214 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19215 fi
19216
19217
19218 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19219 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19220 if test "${ac_cv_search_mallinfo+set}" = set; then
19221   echo $ECHO_N "(cached) $ECHO_C" >&6
19222 else
19223   ac_func_search_save_LIBS=$LIBS
19224 ac_cv_search_mallinfo=no
19225 cat >conftest.$ac_ext <<_ACEOF
19226 #line $LINENO "configure"
19227 /* confdefs.h.  */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h.  */
19232
19233 /* Override any gcc2 internal prototype to avoid an error.  */
19234 #ifdef __cplusplus
19235 extern "C"
19236 #endif
19237 /* We use char because int might match the return type of a gcc2
19238    builtin and then its argument prototype would still apply.  */
19239 char mallinfo ();
19240 int
19241 main ()
19242 {
19243 mallinfo ();
19244   ;
19245   return 0;
19246 }
19247 _ACEOF
19248 rm -f conftest.$ac_objext conftest$ac_exeext
19249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19250   (eval $ac_link) 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); } &&
19254          { ac_try='test -s conftest$ac_exeext'
19255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256   (eval $ac_try) 2>&5
19257   ac_status=$?
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); }; }; then
19260   ac_cv_search_mallinfo="none required"
19261 else
19262   echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265 fi
19266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19267 if test "$ac_cv_search_mallinfo" = no; then
19268   for ac_lib in malloc; do
19269     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19270     cat >conftest.$ac_ext <<_ACEOF
19271 #line $LINENO "configure"
19272 /* confdefs.h.  */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h.  */
19277
19278 /* Override any gcc2 internal prototype to avoid an error.  */
19279 #ifdef __cplusplus
19280 extern "C"
19281 #endif
19282 /* We use char because int might match the return type of a gcc2
19283    builtin and then its argument prototype would still apply.  */
19284 char mallinfo ();
19285 int
19286 main ()
19287 {
19288 mallinfo ();
19289   ;
19290   return 0;
19291 }
19292 _ACEOF
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295   (eval $ac_link) 2>&5
19296   ac_status=$?
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } &&
19299          { ac_try='test -s conftest$ac_exeext'
19300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301   (eval $ac_try) 2>&5
19302   ac_status=$?
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); }; }; then
19305   ac_cv_search_mallinfo="-l$ac_lib"
19306 break
19307 else
19308   echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 fi
19312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19313   done
19314 fi
19315 LIBS=$ac_func_search_save_LIBS
19316 fi
19317 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19318 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19319 if test "$ac_cv_search_mallinfo" != no; then
19320   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19321
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE_MALLINFO 1
19324 _ACEOF
19325
19326 fi
19327
19328
19329
19330 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19331 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19332 if test "${ac_cv_header_stdc+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   cat >conftest.$ac_ext <<_ACEOF
19336 #line $LINENO "configure"
19337 /* confdefs.h.  */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h.  */
19342 #include <stdlib.h>
19343 #include <stdarg.h>
19344 #include <string.h>
19345 #include <float.h>
19346
19347 int
19348 main ()
19349 {
19350
19351   ;
19352   return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19357   (eval $ac_compile) 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); } &&
19361          { ac_try='test -s conftest.$ac_objext'
19362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363   (eval $ac_try) 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; }; then
19367   ac_cv_header_stdc=yes
19368 else
19369   echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 ac_cv_header_stdc=no
19373 fi
19374 rm -f conftest.$ac_objext conftest.$ac_ext
19375
19376 if test $ac_cv_header_stdc = yes; then
19377   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19378   cat >conftest.$ac_ext <<_ACEOF
19379 #line $LINENO "configure"
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385 #include <string.h>
19386
19387 _ACEOF
19388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19389   $EGREP "memchr" >/dev/null 2>&1; then
19390   :
19391 else
19392   ac_cv_header_stdc=no
19393 fi
19394 rm -f conftest*
19395
19396 fi
19397
19398 if test $ac_cv_header_stdc = yes; then
19399   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19400   cat >conftest.$ac_ext <<_ACEOF
19401 #line $LINENO "configure"
19402 /* confdefs.h.  */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h.  */
19407 #include <stdlib.h>
19408
19409 _ACEOF
19410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19411   $EGREP "free" >/dev/null 2>&1; then
19412   :
19413 else
19414   ac_cv_header_stdc=no
19415 fi
19416 rm -f conftest*
19417
19418 fi
19419
19420 if test $ac_cv_header_stdc = yes; then
19421   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19422   if test "$cross_compiling" = yes; then
19423   :
19424 else
19425   cat >conftest.$ac_ext <<_ACEOF
19426 #line $LINENO "configure"
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432 #include <ctype.h>
19433 #if ((' ' & 0x0FF) == 0x020)
19434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19436 #else
19437 # define ISLOWER(c) \
19438                    (('a' <= (c) && (c) <= 'i') \
19439                      || ('j' <= (c) && (c) <= 'r') \
19440                      || ('s' <= (c) && (c) <= 'z'))
19441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19442 #endif
19443
19444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19445 int
19446 main ()
19447 {
19448   int i;
19449   for (i = 0; i < 256; i++)
19450     if (XOR (islower (i), ISLOWER (i))
19451         || toupper (i) != TOUPPER (i))
19452       exit(2);
19453   exit (0);
19454 }
19455 _ACEOF
19456 rm -f conftest$ac_exeext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19458   (eval $ac_link) 2>&5
19459   ac_status=$?
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463   (eval $ac_try) 2>&5
19464   ac_status=$?
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); }; }; then
19467   :
19468 else
19469   echo "$as_me: program exited with status $ac_status" >&5
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19472
19473 ( exit $ac_status )
19474 ac_cv_header_stdc=no
19475 fi
19476 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19477 fi
19478 fi
19479 fi
19480 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19482 if test $ac_cv_header_stdc = yes; then
19483
19484 cat >>confdefs.h <<\_ACEOF
19485 #define STDC_HEADERS 1
19486 _ACEOF
19487
19488 fi
19489
19490 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19491 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19492 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19493   echo $ECHO_N "(cached) $ECHO_C" >&6
19494 else
19495   cat >conftest.$ac_ext <<_ACEOF
19496 #line $LINENO "configure"
19497 /* confdefs.h.  */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h.  */
19502 #include <sys/types.h>
19503 #include <sys/wait.h>
19504 #ifndef WEXITSTATUS
19505 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19506 #endif
19507 #ifndef WIFEXITED
19508 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19509 #endif
19510
19511 int
19512 main ()
19513 {
19514   int s;
19515   wait (&s);
19516   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19517   ;
19518   return 0;
19519 }
19520 _ACEOF
19521 rm -f conftest.$ac_objext
19522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19523   (eval $ac_compile) 2>&5
19524   ac_status=$?
19525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); } &&
19527          { ac_try='test -s conftest.$ac_objext'
19528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529   (eval $ac_try) 2>&5
19530   ac_status=$?
19531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); }; }; then
19533   ac_cv_header_sys_wait_h=yes
19534 else
19535   echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538 ac_cv_header_sys_wait_h=no
19539 fi
19540 rm -f conftest.$ac_objext conftest.$ac_ext
19541 fi
19542 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19543 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19544 if test $ac_cv_header_sys_wait_h = yes; then
19545
19546 cat >>confdefs.h <<\_ACEOF
19547 #define HAVE_SYS_WAIT_H 1
19548 _ACEOF
19549
19550 fi
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19562 do
19563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19565   echo "$as_me:$LINENO: checking for $ac_header" >&5
19566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19568   echo $ECHO_N "(cached) $ECHO_C" >&6
19569 fi
19570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19572 else
19573   # Is the header compilable?
19574 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19576 cat >conftest.$ac_ext <<_ACEOF
19577 #line $LINENO "configure"
19578 /* confdefs.h.  */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h.  */
19583 $ac_includes_default
19584 #include <$ac_header>
19585 _ACEOF
19586 rm -f conftest.$ac_objext
19587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19588   (eval $ac_compile) 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } &&
19592          { ac_try='test -s conftest.$ac_objext'
19593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594   (eval $ac_try) 2>&5
19595   ac_status=$?
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); }; }; then
19598   ac_header_compiler=yes
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603 ac_header_compiler=no
19604 fi
19605 rm -f conftest.$ac_objext conftest.$ac_ext
19606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19607 echo "${ECHO_T}$ac_header_compiler" >&6
19608
19609 # Is the header present?
19610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19612 cat >conftest.$ac_ext <<_ACEOF
19613 #line $LINENO "configure"
19614 /* confdefs.h.  */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h.  */
19619 #include <$ac_header>
19620 _ACEOF
19621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } >/dev/null; then
19629   if test -s conftest.err; then
19630     ac_cpp_err=$ac_c_preproc_warn_flag
19631   else
19632     ac_cpp_err=
19633   fi
19634 else
19635   ac_cpp_err=yes
19636 fi
19637 if test -z "$ac_cpp_err"; then
19638   ac_header_preproc=yes
19639 else
19640   echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643   ac_header_preproc=no
19644 fi
19645 rm -f conftest.err conftest.$ac_ext
19646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19647 echo "${ECHO_T}$ac_header_preproc" >&6
19648
19649 # So?  What about this header?
19650 case $ac_header_compiler:$ac_header_preproc in
19651   yes:no )
19652     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19656     (
19657       cat <<\_ASBOX
19658 ## ------------------------------------ ##
19659 ## Report this to bug-autoconf@gnu.org. ##
19660 ## ------------------------------------ ##
19661 _ASBOX
19662     ) |
19663       sed "s/^/$as_me: WARNING:     /" >&2
19664     ;;
19665   no:yes )
19666     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19668     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19672     (
19673       cat <<\_ASBOX
19674 ## ------------------------------------ ##
19675 ## Report this to bug-autoconf@gnu.org. ##
19676 ## ------------------------------------ ##
19677 _ASBOX
19678     ) |
19679       sed "s/^/$as_me: WARNING:     /" >&2
19680     ;;
19681 esac
19682 echo "$as_me:$LINENO: checking for $ac_header" >&5
19683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19685   echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687   eval "$as_ac_Header=$ac_header_preproc"
19688 fi
19689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19691
19692 fi
19693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19694   cat >>confdefs.h <<_ACEOF
19695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19696 _ACEOF
19697
19698 fi
19699
19700 done
19701
19702
19703
19704
19705
19706
19707 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19708 do
19709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19711   echo "$as_me:$LINENO: checking for $ac_header" >&5
19712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19714   echo $ECHO_N "(cached) $ECHO_C" >&6
19715 fi
19716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19718 else
19719   # Is the header compilable?
19720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19722 cat >conftest.$ac_ext <<_ACEOF
19723 #line $LINENO "configure"
19724 /* confdefs.h.  */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h.  */
19729 $ac_includes_default
19730 #include <$ac_header>
19731 _ACEOF
19732 rm -f conftest.$ac_objext
19733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19734   (eval $ac_compile) 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); } &&
19738          { ac_try='test -s conftest.$ac_objext'
19739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740   (eval $ac_try) 2>&5
19741   ac_status=$?
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); }; }; then
19744   ac_header_compiler=yes
19745 else
19746   echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19748
19749 ac_header_compiler=no
19750 fi
19751 rm -f conftest.$ac_objext conftest.$ac_ext
19752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19753 echo "${ECHO_T}$ac_header_compiler" >&6
19754
19755 # Is the header present?
19756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19758 cat >conftest.$ac_ext <<_ACEOF
19759 #line $LINENO "configure"
19760 /* confdefs.h.  */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h.  */
19765 #include <$ac_header>
19766 _ACEOF
19767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19769   ac_status=$?
19770   grep -v '^ *+' conftest.er1 >conftest.err
19771   rm -f conftest.er1
19772   cat conftest.err >&5
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); } >/dev/null; then
19775   if test -s conftest.err; then
19776     ac_cpp_err=$ac_c_preproc_warn_flag
19777   else
19778     ac_cpp_err=
19779   fi
19780 else
19781   ac_cpp_err=yes
19782 fi
19783 if test -z "$ac_cpp_err"; then
19784   ac_header_preproc=yes
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789   ac_header_preproc=no
19790 fi
19791 rm -f conftest.err conftest.$ac_ext
19792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19793 echo "${ECHO_T}$ac_header_preproc" >&6
19794
19795 # So?  What about this header?
19796 case $ac_header_compiler:$ac_header_preproc in
19797   yes:no )
19798     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19802     (
19803       cat <<\_ASBOX
19804 ## ------------------------------------ ##
19805 ## Report this to bug-autoconf@gnu.org. ##
19806 ## ------------------------------------ ##
19807 _ASBOX
19808     ) |
19809       sed "s/^/$as_me: WARNING:     /" >&2
19810     ;;
19811   no:yes )
19812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19814     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19818     (
19819       cat <<\_ASBOX
19820 ## ------------------------------------ ##
19821 ## Report this to bug-autoconf@gnu.org. ##
19822 ## ------------------------------------ ##
19823 _ASBOX
19824     ) |
19825       sed "s/^/$as_me: WARNING:     /" >&2
19826     ;;
19827 esac
19828 echo "$as_me:$LINENO: checking for $ac_header" >&5
19829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   eval "$as_ac_Header=$ac_header_preproc"
19834 fi
19835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19837
19838 fi
19839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19840   cat >>confdefs.h <<_ACEOF
19841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19842 _ACEOF
19843
19844 fi
19845
19846 done
19847
19848
19849
19850
19851 for ac_header in dlfcn.h link.h
19852 do
19853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19855   echo "$as_me:$LINENO: checking for $ac_header" >&5
19856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19858   echo $ECHO_N "(cached) $ECHO_C" >&6
19859 fi
19860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19862 else
19863   # Is the header compilable?
19864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19866 cat >conftest.$ac_ext <<_ACEOF
19867 #line $LINENO "configure"
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873 $ac_includes_default
19874 #include <$ac_header>
19875 _ACEOF
19876 rm -f conftest.$ac_objext
19877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19878   (eval $ac_compile) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); } &&
19882          { ac_try='test -s conftest.$ac_objext'
19883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884   (eval $ac_try) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; }; then
19888   ac_header_compiler=yes
19889 else
19890   echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 ac_header_compiler=no
19894 fi
19895 rm -f conftest.$ac_objext conftest.$ac_ext
19896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19897 echo "${ECHO_T}$ac_header_compiler" >&6
19898
19899 # Is the header present?
19900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19902 cat >conftest.$ac_ext <<_ACEOF
19903 #line $LINENO "configure"
19904 /* confdefs.h.  */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h.  */
19909 #include <$ac_header>
19910 _ACEOF
19911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19913   ac_status=$?
19914   grep -v '^ *+' conftest.er1 >conftest.err
19915   rm -f conftest.er1
19916   cat conftest.err >&5
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); } >/dev/null; then
19919   if test -s conftest.err; then
19920     ac_cpp_err=$ac_c_preproc_warn_flag
19921   else
19922     ac_cpp_err=
19923   fi
19924 else
19925   ac_cpp_err=yes
19926 fi
19927 if test -z "$ac_cpp_err"; then
19928   ac_header_preproc=yes
19929 else
19930   echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19932
19933   ac_header_preproc=no
19934 fi
19935 rm -f conftest.err conftest.$ac_ext
19936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937 echo "${ECHO_T}$ac_header_preproc" >&6
19938
19939 # So?  What about this header?
19940 case $ac_header_compiler:$ac_header_preproc in
19941   yes:no )
19942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19946     (
19947       cat <<\_ASBOX
19948 ## ------------------------------------ ##
19949 ## Report this to bug-autoconf@gnu.org. ##
19950 ## ------------------------------------ ##
19951 _ASBOX
19952     ) |
19953       sed "s/^/$as_me: WARNING:     /" >&2
19954     ;;
19955   no:yes )
19956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19958     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19962     (
19963       cat <<\_ASBOX
19964 ## ------------------------------------ ##
19965 ## Report this to bug-autoconf@gnu.org. ##
19966 ## ------------------------------------ ##
19967 _ASBOX
19968     ) |
19969       sed "s/^/$as_me: WARNING:     /" >&2
19970     ;;
19971 esac
19972 echo "$as_me:$LINENO: checking for $ac_header" >&5
19973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19975   echo $ECHO_N "(cached) $ECHO_C" >&6
19976 else
19977   eval "$as_ac_Header=$ac_header_preproc"
19978 fi
19979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19981
19982 fi
19983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19984   cat >>confdefs.h <<_ACEOF
19985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19986 _ACEOF
19987
19988 fi
19989
19990 done
19991
19992
19993
19994 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19995 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19996 if test "${ac_cv_c_const+set}" = set; then
19997   echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999   cat >conftest.$ac_ext <<_ACEOF
20000 #line $LINENO "configure"
20001 /* confdefs.h.  */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h.  */
20006
20007 int
20008 main ()
20009 {
20010 /* FIXME: Include the comments suggested by Paul. */
20011 #ifndef __cplusplus
20012   /* Ultrix mips cc rejects this.  */
20013   typedef int charset[2];
20014   const charset x;
20015   /* SunOS 4.1.1 cc rejects this.  */
20016   char const *const *ccp;
20017   char **p;
20018   /* NEC SVR4.0.2 mips cc rejects this.  */
20019   struct point {int x, y;};
20020   static struct point const zero = {0,0};
20021   /* AIX XL C 1.02.0.0 rejects this.
20022      It does not let you subtract one const X* pointer from another in
20023      an arm of an if-expression whose if-part is not a constant
20024      expression */
20025   const char *g = "string";
20026   ccp = &g + (g ? g-g : 0);
20027   /* HPUX 7.0 cc rejects these. */
20028   ++ccp;
20029   p = (char**) ccp;
20030   ccp = (char const *const *) p;
20031   { /* SCO 3.2v4 cc rejects this.  */
20032     char *t;
20033     char const *s = 0 ? (char *) 0 : (char const *) 0;
20034
20035     *t++ = 0;
20036   }
20037   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20038     int x[] = {25, 17};
20039     const int *foo = &x[0];
20040     ++foo;
20041   }
20042   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20043     typedef const int *iptr;
20044     iptr p = 0;
20045     ++p;
20046   }
20047   { /* AIX XL C 1.02.0.0 rejects this saying
20048        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20049     struct s { int j; const int *ap[3]; };
20050     struct s *b; b->j = 5;
20051   }
20052   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20053     const int foo = 10;
20054   }
20055 #endif
20056
20057   ;
20058   return 0;
20059 }
20060 _ACEOF
20061 rm -f conftest.$ac_objext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063   (eval $ac_compile) 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); } &&
20067          { ac_try='test -s conftest.$ac_objext'
20068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069   (eval $ac_try) 2>&5
20070   ac_status=$?
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); }; }; then
20073   ac_cv_c_const=yes
20074 else
20075   echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 ac_cv_c_const=no
20079 fi
20080 rm -f conftest.$ac_objext conftest.$ac_ext
20081 fi
20082 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20083 echo "${ECHO_T}$ac_cv_c_const" >&6
20084 if test $ac_cv_c_const = no; then
20085
20086 cat >>confdefs.h <<\_ACEOF
20087 #define const
20088 _ACEOF
20089
20090 fi
20091
20092 echo "$as_me:$LINENO: checking for inline" >&5
20093 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20094 if test "${ac_cv_c_inline+set}" = set; then
20095   echo $ECHO_N "(cached) $ECHO_C" >&6
20096 else
20097   ac_cv_c_inline=no
20098 for ac_kw in inline __inline__ __inline; do
20099   cat >conftest.$ac_ext <<_ACEOF
20100 #line $LINENO "configure"
20101 /* confdefs.h.  */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h.  */
20106 #ifndef __cplusplus
20107 typedef int foo_t;
20108 static $ac_kw foo_t static_foo () {return 0; }
20109 $ac_kw foo_t foo () {return 0; }
20110 #endif
20111
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115   (eval $ac_compile) 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); } &&
20119          { ac_try='test -s conftest.$ac_objext'
20120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121   (eval $ac_try) 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   ac_cv_c_inline=$ac_kw; break
20126 else
20127   echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130 fi
20131 rm -f conftest.$ac_objext conftest.$ac_ext
20132 done
20133
20134 fi
20135 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20136 echo "${ECHO_T}$ac_cv_c_inline" >&6
20137 case $ac_cv_c_inline in
20138   inline | yes) ;;
20139   no)
20140 cat >>confdefs.h <<\_ACEOF
20141 #define inline
20142 _ACEOF
20143  ;;
20144   *)  cat >>confdefs.h <<_ACEOF
20145 #define inline $ac_cv_c_inline
20146 _ACEOF
20147  ;;
20148 esac
20149
20150
20151 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20152 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20153 if test "${ac_cv_c_bigendian+set}" = set; then
20154   echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156   # See if sys/param.h defines the BYTE_ORDER macro.
20157 cat >conftest.$ac_ext <<_ACEOF
20158 #line $LINENO "configure"
20159 /* confdefs.h.  */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h.  */
20164 #include <sys/types.h>
20165 #include <sys/param.h>
20166
20167 int
20168 main ()
20169 {
20170 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20171  bogus endian macros
20172 #endif
20173
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20180   (eval $ac_compile) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); } &&
20184          { ac_try='test -s conftest.$ac_objext'
20185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186   (eval $ac_try) 2>&5
20187   ac_status=$?
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); }; }; then
20190   # It does; now see whether it defined to BIG_ENDIAN or not.
20191 cat >conftest.$ac_ext <<_ACEOF
20192 #line $LINENO "configure"
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 #include <sys/types.h>
20199 #include <sys/param.h>
20200
20201 int
20202 main ()
20203 {
20204 #if BYTE_ORDER != BIG_ENDIAN
20205  not big endian
20206 #endif
20207
20208   ;
20209   return 0;
20210 }
20211 _ACEOF
20212 rm -f conftest.$ac_objext
20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214   (eval $ac_compile) 2>&5
20215   ac_status=$?
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); } &&
20218          { ac_try='test -s conftest.$ac_objext'
20219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220   (eval $ac_try) 2>&5
20221   ac_status=$?
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); }; }; then
20224   ac_cv_c_bigendian=yes
20225 else
20226   echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229 ac_cv_c_bigendian=no
20230 fi
20231 rm -f conftest.$ac_objext conftest.$ac_ext
20232 else
20233   echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236 # It does not; compile a test program.
20237 if test "$cross_compiling" = yes; then
20238   # try to guess the endianness by grepping values into an object file
20239   ac_cv_c_bigendian=unknown
20240   cat >conftest.$ac_ext <<_ACEOF
20241 #line $LINENO "configure"
20242 /* confdefs.h.  */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h.  */
20247 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20248 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20249 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20250 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20251 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20252 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20253 int
20254 main ()
20255 {
20256  _ascii (); _ebcdic ();
20257   ;
20258   return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest.$ac_objext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20263   (eval $ac_compile) 2>&5
20264   ac_status=$?
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); } &&
20267          { ac_try='test -s conftest.$ac_objext'
20268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269   (eval $ac_try) 2>&5
20270   ac_status=$?
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); }; }; then
20273   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20274   ac_cv_c_bigendian=yes
20275 fi
20276 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20277   if test "$ac_cv_c_bigendian" = unknown; then
20278     ac_cv_c_bigendian=no
20279   else
20280     # finding both strings is unlikely to happen, but who knows?
20281     ac_cv_c_bigendian=unknown
20282   fi
20283 fi
20284 else
20285   echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20287
20288 fi
20289 rm -f conftest.$ac_objext conftest.$ac_ext
20290 else
20291   cat >conftest.$ac_ext <<_ACEOF
20292 #line $LINENO "configure"
20293 /* confdefs.h.  */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h.  */
20298 int
20299 main ()
20300 {
20301   /* Are we little or big endian?  From Harbison&Steele.  */
20302   union
20303   {
20304     long l;
20305     char c[sizeof (long)];
20306   } u;
20307   u.l = 1;
20308   exit (u.c[sizeof (long) - 1] == 1);
20309 }
20310 _ACEOF
20311 rm -f conftest$ac_exeext
20312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20313   (eval $ac_link) 2>&5
20314   ac_status=$?
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318   (eval $ac_try) 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); }; }; then
20322   ac_cv_c_bigendian=no
20323 else
20324   echo "$as_me: program exited with status $ac_status" >&5
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ( exit $ac_status )
20329 ac_cv_c_bigendian=yes
20330 fi
20331 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20332 fi
20333 fi
20334 rm -f conftest.$ac_objext conftest.$ac_ext
20335 fi
20336 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20337 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20338 case $ac_cv_c_bigendian in
20339   yes)
20340
20341 cat >>confdefs.h <<\_ACEOF
20342 #define ENDIAN_BIG
20343 _ACEOF
20344  ;;
20345   no)
20346
20347 cat >>confdefs.h <<\_ACEOF
20348 #define ENDIAN_LITTLE
20349 _ACEOF
20350  ;;
20351   *)
20352     { { echo "$as_me:$LINENO: error: unknown endianness
20353 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20354 echo "$as_me: error: unknown endianness
20355 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20356    { (exit 1); exit 1; }; } ;;
20357 esac
20358
20359
20360 echo "$as_me:$LINENO: checking for pid_t" >&5
20361 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20362 if test "${ac_cv_type_pid_t+set}" = set; then
20363   echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365   cat >conftest.$ac_ext <<_ACEOF
20366 #line $LINENO "configure"
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372 $ac_includes_default
20373 int
20374 main ()
20375 {
20376 if ((pid_t *) 0)
20377   return 0;
20378 if (sizeof (pid_t))
20379   return 0;
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext
20385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386   (eval $ac_compile) 2>&5
20387   ac_status=$?
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); } &&
20390          { ac_try='test -s conftest.$ac_objext'
20391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392   (eval $ac_try) 2>&5
20393   ac_status=$?
20394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395   (exit $ac_status); }; }; then
20396   ac_cv_type_pid_t=yes
20397 else
20398   echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20400
20401 ac_cv_type_pid_t=no
20402 fi
20403 rm -f conftest.$ac_objext conftest.$ac_ext
20404 fi
20405 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20406 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20407 if test $ac_cv_type_pid_t = yes; then
20408   :
20409 else
20410
20411 cat >>confdefs.h <<_ACEOF
20412 #define pid_t int
20413 _ACEOF
20414
20415 fi
20416
20417 echo "$as_me:$LINENO: checking for size_t" >&5
20418 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20419 if test "${ac_cv_type_size_t+set}" = set; then
20420   echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422   cat >conftest.$ac_ext <<_ACEOF
20423 #line $LINENO "configure"
20424 /* confdefs.h.  */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h.  */
20429 $ac_includes_default
20430 int
20431 main ()
20432 {
20433 if ((size_t *) 0)
20434   return 0;
20435 if (sizeof (size_t))
20436   return 0;
20437   ;
20438   return 0;
20439 }
20440 _ACEOF
20441 rm -f conftest.$ac_objext
20442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20443   (eval $ac_compile) 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } &&
20447          { ac_try='test -s conftest.$ac_objext'
20448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449   (eval $ac_try) 2>&5
20450   ac_status=$?
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); }; }; then
20453   ac_cv_type_size_t=yes
20454 else
20455   echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458 ac_cv_type_size_t=no
20459 fi
20460 rm -f conftest.$ac_objext conftest.$ac_ext
20461 fi
20462 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20463 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20464 if test $ac_cv_type_size_t = yes; then
20465   :
20466 else
20467
20468 cat >>confdefs.h <<_ACEOF
20469 #define size_t unsigned
20470 _ACEOF
20471
20472 fi
20473
20474 echo "$as_me:$LINENO: checking for int64_t" >&5
20475 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20476 if test "${ac_cv_type_int64_t+set}" = set; then
20477   echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479   cat >conftest.$ac_ext <<_ACEOF
20480 #line $LINENO "configure"
20481 /* confdefs.h.  */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h.  */
20486 $ac_includes_default
20487 int
20488 main ()
20489 {
20490 if ((int64_t *) 0)
20491   return 0;
20492 if (sizeof (int64_t))
20493   return 0;
20494   ;
20495   return 0;
20496 }
20497 _ACEOF
20498 rm -f conftest.$ac_objext
20499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20500   (eval $ac_compile) 2>&5
20501   ac_status=$?
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); } &&
20504          { ac_try='test -s conftest.$ac_objext'
20505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506   (eval $ac_try) 2>&5
20507   ac_status=$?
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); }; }; then
20510   ac_cv_type_int64_t=yes
20511 else
20512   echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 ac_cv_type_int64_t=no
20516 fi
20517 rm -f conftest.$ac_objext conftest.$ac_ext
20518 fi
20519 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20520 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20521 if test $ac_cv_type_int64_t = yes; then
20522
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_INT64_T 1
20525 _ACEOF
20526
20527
20528 else
20529   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20530 echo "$as_me: error: Type int64_t required but not found" >&2;}
20531    { (exit 1); exit 1; }; }
20532 fi
20533
20534 echo "$as_me:$LINENO: checking for uint64_t" >&5
20535 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20536 if test "${ac_cv_type_uint64_t+set}" = set; then
20537   echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539   cat >conftest.$ac_ext <<_ACEOF
20540 #line $LINENO "configure"
20541 /* confdefs.h.  */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h.  */
20546 $ac_includes_default
20547 int
20548 main ()
20549 {
20550 if ((uint64_t *) 0)
20551   return 0;
20552 if (sizeof (uint64_t))
20553   return 0;
20554   ;
20555   return 0;
20556 }
20557 _ACEOF
20558 rm -f conftest.$ac_objext
20559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20560   (eval $ac_compile) 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); } &&
20564          { ac_try='test -s conftest.$ac_objext'
20565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566   (eval $ac_try) 2>&5
20567   ac_status=$?
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); }; }; then
20570   ac_cv_type_uint64_t=yes
20571 else
20572   echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575 ac_cv_type_uint64_t=no
20576 fi
20577 rm -f conftest.$ac_objext conftest.$ac_ext
20578 fi
20579 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20580 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20581 if test $ac_cv_type_uint64_t = yes; then
20582
20583 cat >>confdefs.h <<_ACEOF
20584 #define HAVE_UINT64_T 1
20585 _ACEOF
20586
20587
20588 else
20589   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20590 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20591    { (exit 1); exit 1; }; }
20592 fi
20593
20594 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20595 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20596 if test "${ac_cv_header_time+set}" = set; then
20597   echo $ECHO_N "(cached) $ECHO_C" >&6
20598 else
20599   cat >conftest.$ac_ext <<_ACEOF
20600 #line $LINENO "configure"
20601 /* confdefs.h.  */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h.  */
20606 #include <sys/types.h>
20607 #include <sys/time.h>
20608 #include <time.h>
20609
20610 int
20611 main ()
20612 {
20613 if ((struct tm *) 0)
20614 return 0;
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621   (eval $ac_compile) 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); } &&
20625          { ac_try='test -s conftest.$ac_objext'
20626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627   (eval $ac_try) 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; }; then
20631   ac_cv_header_time=yes
20632 else
20633   echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636 ac_cv_header_time=no
20637 fi
20638 rm -f conftest.$ac_objext conftest.$ac_ext
20639 fi
20640 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20641 echo "${ECHO_T}$ac_cv_header_time" >&6
20642 if test $ac_cv_header_time = yes; then
20643
20644 cat >>confdefs.h <<\_ACEOF
20645 #define TIME_WITH_SYS_TIME 1
20646 _ACEOF
20647
20648 fi
20649
20650 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20651 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20652 if test "${ac_cv_struct_tm+set}" = set; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655   cat >conftest.$ac_ext <<_ACEOF
20656 #line $LINENO "configure"
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662 #include <sys/types.h>
20663 #include <time.h>
20664
20665 int
20666 main ()
20667 {
20668 struct tm *tp; tp->tm_sec;
20669   ;
20670   return 0;
20671 }
20672 _ACEOF
20673 rm -f conftest.$ac_objext
20674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20675   (eval $ac_compile) 2>&5
20676   ac_status=$?
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); } &&
20679          { ac_try='test -s conftest.$ac_objext'
20680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681   (eval $ac_try) 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }; }; then
20685   ac_cv_struct_tm=time.h
20686 else
20687   echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690 ac_cv_struct_tm=sys/time.h
20691 fi
20692 rm -f conftest.$ac_objext conftest.$ac_ext
20693 fi
20694 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20695 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20696 if test $ac_cv_struct_tm = sys/time.h; then
20697
20698 cat >>confdefs.h <<\_ACEOF
20699 #define TM_IN_SYS_TIME 1
20700 _ACEOF
20701
20702 fi
20703
20704
20705 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20706 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20707 if test "${ac_cv_cxx_namespaces+set}" = set; then
20708   echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710
20711
20712  ac_ext=cc
20713 ac_cpp='$CXXCPP $CPPFLAGS'
20714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20717
20718  cat >conftest.$ac_ext <<_ACEOF
20719 #line $LINENO "configure"
20720 /* confdefs.h.  */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h.  */
20725 namespace Outer { namespace Inner { int i = 0; }}
20726 int
20727 main ()
20728 {
20729 using namespace Outer::Inner; return i;
20730   ;
20731   return 0;
20732 }
20733 _ACEOF
20734 rm -f conftest.$ac_objext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20736   (eval $ac_compile) 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); } &&
20740          { ac_try='test -s conftest.$ac_objext'
20741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742   (eval $ac_try) 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; }; then
20746   ac_cv_cxx_namespaces=yes
20747 else
20748   echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 ac_cv_cxx_namespaces=no
20752 fi
20753 rm -f conftest.$ac_objext conftest.$ac_ext
20754  ac_ext=c
20755 ac_cpp='$CPP $CPPFLAGS'
20756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20759
20760
20761 fi
20762 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20763 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20764 if test "$ac_cv_cxx_namespaces" = yes; then
20765
20766 cat >>confdefs.h <<\_ACEOF
20767 #define HAVE_NAMESPACES
20768 _ACEOF
20769
20770 fi
20771
20772 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20773 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20774 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20775   echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777
20778
20779
20780   ac_ext=cc
20781 ac_cpp='$CXXCPP $CPPFLAGS'
20782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20785
20786   cat >conftest.$ac_ext <<_ACEOF
20787 #line $LINENO "configure"
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793 #include <ext/hash_map>
20794 #ifdef HAVE_NAMESPACES
20795 using namespace std;
20796 #endif
20797 int
20798 main ()
20799 {
20800 hash_map<int, int> t; return 0;
20801   ;
20802   return 0;
20803 }
20804 _ACEOF
20805 rm -f conftest.$ac_objext
20806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20807   (eval $ac_compile) 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); } &&
20811          { ac_try='test -s conftest.$ac_objext'
20812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813   (eval $ac_try) 2>&5
20814   ac_status=$?
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); }; }; then
20817   ac_cv_cxx_have_ext_hash_map=std
20818 else
20819   echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20821
20822 ac_cv_cxx_have_ext_hash_map=no
20823 fi
20824 rm -f conftest.$ac_objext conftest.$ac_ext
20825   cat >conftest.$ac_ext <<_ACEOF
20826 #line $LINENO "configure"
20827 /* confdefs.h.  */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h.  */
20832 #include <ext/hash_map>
20833 #ifdef HAVE_NAMESPACES
20834 using namespace __gnu_cxx;
20835 #endif
20836 int
20837 main ()
20838 {
20839 hash_map<int, int> t; return 0;
20840   ;
20841   return 0;
20842 }
20843 _ACEOF
20844 rm -f conftest.$ac_objext
20845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20846   (eval $ac_compile) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); } &&
20850          { ac_try='test -s conftest.$ac_objext'
20851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852   (eval $ac_try) 2>&5
20853   ac_status=$?
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); }; }; then
20856   ac_cv_cxx_have_ext_hash_map=gnu
20857 else
20858   echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20860
20861 ac_cv_cxx_have_ext_hash_map=no
20862 fi
20863 rm -f conftest.$ac_objext conftest.$ac_ext
20864   ac_ext=c
20865 ac_cpp='$CPP $CPPFLAGS'
20866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20869
20870
20871 fi
20872 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20873 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20874 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20875
20876 cat >>confdefs.h <<\_ACEOF
20877 #define HAVE_STD_EXT_HASH_MAP
20878 _ACEOF
20879
20880 fi
20881 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20882
20883 cat >>confdefs.h <<\_ACEOF
20884 #define HAVE_GNU_EXT_HASH_MAP
20885 _ACEOF
20886
20887 fi
20888
20889 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20890 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20891 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20892   echo $ECHO_N "(cached) $ECHO_C" >&6
20893 else
20894
20895
20896
20897   ac_ext=cc
20898 ac_cpp='$CXXCPP $CPPFLAGS'
20899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20902
20903   cat >conftest.$ac_ext <<_ACEOF
20904 #line $LINENO "configure"
20905 /* confdefs.h.  */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h.  */
20910 #include <ext/hash_set>
20911 #ifdef HAVE_NAMESPACES
20912 using namespace std;
20913 #endif
20914 int
20915 main ()
20916 {
20917 hash_set<int> t; return 0;
20918   ;
20919   return 0;
20920 }
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20924   (eval $ac_compile) 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); } &&
20928          { ac_try='test -s conftest.$ac_objext'
20929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930   (eval $ac_try) 2>&5
20931   ac_status=$?
20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933   (exit $ac_status); }; }; then
20934   ac_cv_cxx_have_ext_hash_set=std
20935 else
20936   echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938
20939 ac_cv_cxx_have_ext_hash_set=no
20940 fi
20941 rm -f conftest.$ac_objext conftest.$ac_ext
20942   cat >conftest.$ac_ext <<_ACEOF
20943 #line $LINENO "configure"
20944 /* confdefs.h.  */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h.  */
20949 #include <ext/hash_set>
20950 #ifdef HAVE_NAMESPACES
20951 using namespace __gnu_cxx;
20952 #endif
20953 int
20954 main ()
20955 {
20956 hash_set<int> t; return 0;
20957   ;
20958   return 0;
20959 }
20960 _ACEOF
20961 rm -f conftest.$ac_objext
20962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20963   (eval $ac_compile) 2>&5
20964   ac_status=$?
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); } &&
20967          { ac_try='test -s conftest.$ac_objext'
20968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20969   (eval $ac_try) 2>&5
20970   ac_status=$?
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); }; }; then
20973   ac_cv_cxx_have_ext_hash_set=gnu
20974 else
20975   echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20977
20978 ac_cv_cxx_have_ext_hash_set=no
20979 fi
20980 rm -f conftest.$ac_objext conftest.$ac_ext
20981   ac_ext=c
20982 ac_cpp='$CPP $CPPFLAGS'
20983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20986
20987
20988 fi
20989 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20990 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20991 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20992
20993 cat >>confdefs.h <<\_ACEOF
20994 #define HAVE_STD_EXT_HASH_SET
20995 _ACEOF
20996
20997 fi
20998 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20999
21000 cat >>confdefs.h <<\_ACEOF
21001 #define HAVE_GNU_EXT_HASH_SET
21002 _ACEOF
21003
21004 fi
21005
21006 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21007 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21008 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21009   echo $ECHO_N "(cached) $ECHO_C" >&6
21010 else
21011
21012
21013
21014   ac_ext=cc
21015 ac_cpp='$CXXCPP $CPPFLAGS'
21016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21019
21020   cat >conftest.$ac_ext <<_ACEOF
21021 #line $LINENO "configure"
21022 /* confdefs.h.  */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h.  */
21027 #include <ext/slist>
21028 #ifdef HAVE_NAMESPACES
21029 using namespace std;
21030 #endif
21031 int
21032 main ()
21033 {
21034 slist<int> s; return 0;
21035   ;
21036   return 0;
21037 }
21038 _ACEOF
21039 rm -f conftest.$ac_objext
21040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21041   (eval $ac_compile) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); } &&
21045          { ac_try='test -s conftest.$ac_objext'
21046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047   (eval $ac_try) 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; }; then
21051   ac_cv_cxx_have_ext_slist=std
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056 ac_cv_cxx_have_ext_slist=no
21057 fi
21058 rm -f conftest.$ac_objext conftest.$ac_ext
21059   cat >conftest.$ac_ext <<_ACEOF
21060 #line $LINENO "configure"
21061 /* confdefs.h.  */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h.  */
21066 #include <ext/slist>
21067 #ifdef HAVE_NAMESPACES
21068 using namespace __gnu_cxx;
21069 #endif
21070 int
21071 main ()
21072 {
21073 slist<int> s; return 0;
21074   ;
21075   return 0;
21076 }
21077 _ACEOF
21078 rm -f conftest.$ac_objext
21079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21080   (eval $ac_compile) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); } &&
21084          { ac_try='test -s conftest.$ac_objext'
21085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086   (eval $ac_try) 2>&5
21087   ac_status=$?
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); }; }; then
21090   ac_cv_cxx_have_ext_slist=gnu
21091 else
21092   echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095 ac_cv_cxx_have_ext_slist=no
21096 fi
21097 rm -f conftest.$ac_objext conftest.$ac_ext
21098
21099   ac_ext=c
21100 ac_cpp='$CPP $CPPFLAGS'
21101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21104
21105
21106 fi
21107 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21108 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21109 if test "$ac_cv_cxx_have_ext_slist" = std; then
21110
21111 cat >>confdefs.h <<\_ACEOF
21112 #define HAVE_EXT_SLIST std
21113 _ACEOF
21114
21115 fi
21116 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21117
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_EXT_SLIST gnu
21120 _ACEOF
21121
21122 fi
21123
21124 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21125 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21126 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21127   echo $ECHO_N "(cached) $ECHO_C" >&6
21128 else
21129
21130
21131
21132   ac_ext=cc
21133 ac_cpp='$CXXCPP $CPPFLAGS'
21134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21137
21138   cat >conftest.$ac_ext <<_ACEOF
21139 #line $LINENO "configure"
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145 #include <iterator>
21146 #ifdef HAVE_NAMESPACES
21147 using namespace std;
21148 #endif
21149 int
21150 main ()
21151 {
21152 iterator<int,int,int> t; return 0;
21153   ;
21154   return 0;
21155 }
21156 _ACEOF
21157 rm -f conftest.$ac_objext
21158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21159   (eval $ac_compile) 2>&5
21160   ac_status=$?
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } &&
21163          { ac_try='test -s conftest.$ac_objext'
21164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21165   (eval $ac_try) 2>&5
21166   ac_status=$?
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); }; }; then
21169   ac_cv_cxx_have_std_iterator=yes
21170 else
21171   echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21173
21174 ac_cv_cxx_have_std_iterator=no
21175 fi
21176 rm -f conftest.$ac_objext conftest.$ac_ext
21177   ac_ext=c
21178 ac_cpp='$CPP $CPPFLAGS'
21179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21182
21183
21184 fi
21185 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21186 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21187 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21188
21189 cat >>confdefs.h <<\_ACEOF
21190 #define HAVE_STD_ITERATOR
21191 _ACEOF
21192
21193 fi
21194
21195 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21196 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21197 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21198   echo $ECHO_N "(cached) $ECHO_C" >&6
21199 else
21200
21201
21202
21203   ac_ext=cc
21204 ac_cpp='$CXXCPP $CPPFLAGS'
21205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21208
21209   cat >conftest.$ac_ext <<_ACEOF
21210 #line $LINENO "configure"
21211 /* confdefs.h.  */
21212 _ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h.  */
21216 #include <iterator>
21217 #ifdef HAVE_NAMESPACES
21218 using namespace std;
21219 #endif
21220 int
21221 main ()
21222 {
21223 bidirectional_iterator<int,int> t; return 0;
21224   ;
21225   return 0;
21226 }
21227 _ACEOF
21228 rm -f conftest.$ac_objext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21230   (eval $ac_compile) 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); } &&
21234          { ac_try='test -s conftest.$ac_objext'
21235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236   (eval $ac_try) 2>&5
21237   ac_status=$?
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); }; }; then
21240   ac_cv_cxx_have_bi_iterator=yes
21241 else
21242   echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245 ac_cv_cxx_have_bi_iterator=no
21246 fi
21247 rm -f conftest.$ac_objext conftest.$ac_ext
21248   ac_ext=c
21249 ac_cpp='$CPP $CPPFLAGS'
21250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21253
21254
21255 fi
21256 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21257 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21258 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21259
21260 cat >>confdefs.h <<\_ACEOF
21261 #define HAVE_BI_ITERATOR
21262 _ACEOF
21263
21264 fi
21265
21266 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21267 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21268 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21269   echo $ECHO_N "(cached) $ECHO_C" >&6
21270 else
21271
21272
21273
21274   ac_ext=cc
21275 ac_cpp='$CXXCPP $CPPFLAGS'
21276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21279
21280   cat >conftest.$ac_ext <<_ACEOF
21281 #line $LINENO "configure"
21282 /* confdefs.h.  */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h.  */
21287 #include <iterator>
21288 #ifdef HAVE_NAMESPACES
21289 using namespace std;
21290 #endif
21291 int
21292 main ()
21293 {
21294 forward_iterator<int,int> t; return 0;
21295   ;
21296   return 0;
21297 }
21298 _ACEOF
21299 rm -f conftest.$ac_objext
21300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301   (eval $ac_compile) 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); } &&
21305          { ac_try='test -s conftest.$ac_objext'
21306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307   (eval $ac_try) 2>&5
21308   ac_status=$?
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); }; }; then
21311   ac_cv_cxx_have_fwd_iterator=yes
21312 else
21313   echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316 ac_cv_cxx_have_fwd_iterator=no
21317 fi
21318 rm -f conftest.$ac_objext conftest.$ac_ext
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
21326 fi
21327 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21328 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21329 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21330
21331 cat >>confdefs.h <<\_ACEOF
21332 #define HAVE_FWD_ITERATOR
21333 _ACEOF
21334
21335 fi
21336
21337
21338 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21339 # for constant arguments.  Useless!
21340 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21341 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21342 if test "${ac_cv_working_alloca_h+set}" = set; then
21343   echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345   cat >conftest.$ac_ext <<_ACEOF
21346 #line $LINENO "configure"
21347 /* confdefs.h.  */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h.  */
21352 #include <alloca.h>
21353 int
21354 main ()
21355 {
21356 char *p = (char *) alloca (2 * sizeof (int));
21357   ;
21358   return 0;
21359 }
21360 _ACEOF
21361 rm -f conftest.$ac_objext conftest$ac_exeext
21362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21363   (eval $ac_link) 2>&5
21364   ac_status=$?
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); } &&
21367          { ac_try='test -s conftest$ac_exeext'
21368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369   (eval $ac_try) 2>&5
21370   ac_status=$?
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); }; }; then
21373   ac_cv_working_alloca_h=yes
21374 else
21375   echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21377
21378 ac_cv_working_alloca_h=no
21379 fi
21380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21381 fi
21382 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21383 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21384 if test $ac_cv_working_alloca_h = yes; then
21385
21386 cat >>confdefs.h <<\_ACEOF
21387 #define HAVE_ALLOCA_H 1
21388 _ACEOF
21389
21390 fi
21391
21392 echo "$as_me:$LINENO: checking for alloca" >&5
21393 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21394 if test "${ac_cv_func_alloca_works+set}" = set; then
21395   echo $ECHO_N "(cached) $ECHO_C" >&6
21396 else
21397   cat >conftest.$ac_ext <<_ACEOF
21398 #line $LINENO "configure"
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404 #ifdef __GNUC__
21405 # define alloca __builtin_alloca
21406 #else
21407 # ifdef _MSC_VER
21408 #  include <malloc.h>
21409 #  define alloca _alloca
21410 # else
21411 #  if HAVE_ALLOCA_H
21412 #   include <alloca.h>
21413 #  else
21414 #   ifdef _AIX
21415  #pragma alloca
21416 #   else
21417 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21418 char *alloca ();
21419 #    endif
21420 #   endif
21421 #  endif
21422 # endif
21423 #endif
21424
21425 int
21426 main ()
21427 {
21428 char *p = (char *) alloca (1);
21429   ;
21430   return 0;
21431 }
21432 _ACEOF
21433 rm -f conftest.$ac_objext conftest$ac_exeext
21434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21435   (eval $ac_link) 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); } &&
21439          { ac_try='test -s conftest$ac_exeext'
21440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441   (eval $ac_try) 2>&5
21442   ac_status=$?
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); }; }; then
21445   ac_cv_func_alloca_works=yes
21446 else
21447   echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21449
21450 ac_cv_func_alloca_works=no
21451 fi
21452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21453 fi
21454 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21455 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21456
21457 if test $ac_cv_func_alloca_works = yes; then
21458
21459 cat >>confdefs.h <<\_ACEOF
21460 #define HAVE_ALLOCA 1
21461 _ACEOF
21462
21463 else
21464   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21465 # that cause trouble.  Some versions do not even contain alloca or
21466 # contain a buggy version.  If you still want to use their alloca,
21467 # use ar to extract alloca.o from them instead of compiling alloca.c.
21468
21469 ALLOCA=alloca.$ac_objext
21470
21471 cat >>confdefs.h <<\_ACEOF
21472 #define C_ALLOCA 1
21473 _ACEOF
21474
21475
21476 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21477 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21478 if test "${ac_cv_os_cray+set}" = set; then
21479   echo $ECHO_N "(cached) $ECHO_C" >&6
21480 else
21481   cat >conftest.$ac_ext <<_ACEOF
21482 #line $LINENO "configure"
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488 #if defined(CRAY) && ! defined(CRAY2)
21489 webecray
21490 #else
21491 wenotbecray
21492 #endif
21493
21494 _ACEOF
21495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21496   $EGREP "webecray" >/dev/null 2>&1; then
21497   ac_cv_os_cray=yes
21498 else
21499   ac_cv_os_cray=no
21500 fi
21501 rm -f conftest*
21502
21503 fi
21504 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21505 echo "${ECHO_T}$ac_cv_os_cray" >&6
21506 if test $ac_cv_os_cray = yes; then
21507   for ac_func in _getb67 GETB67 getb67; do
21508     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21509 echo "$as_me:$LINENO: checking for $ac_func" >&5
21510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21511 if eval "test \"\${$as_ac_var+set}\" = set"; then
21512   echo $ECHO_N "(cached) $ECHO_C" >&6
21513 else
21514   cat >conftest.$ac_ext <<_ACEOF
21515 #line $LINENO "configure"
21516 /* confdefs.h.  */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h.  */
21521 /* System header to define __stub macros and hopefully few prototypes,
21522     which can conflict with char $ac_func (); below.
21523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21524     <limits.h> exists even on freestanding compilers.  */
21525 #ifdef __STDC__
21526 # include <limits.h>
21527 #else
21528 # include <assert.h>
21529 #endif
21530 /* Override any gcc2 internal prototype to avoid an error.  */
21531 #ifdef __cplusplus
21532 extern "C"
21533 {
21534 #endif
21535 /* We use char because int might match the return type of a gcc2
21536    builtin and then its argument prototype would still apply.  */
21537 char $ac_func ();
21538 /* The GNU C library defines this for functions which it implements
21539     to always fail with ENOSYS.  Some functions are actually named
21540     something starting with __ and the normal name is an alias.  */
21541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21542 choke me
21543 #else
21544 char (*f) () = $ac_func;
21545 #endif
21546 #ifdef __cplusplus
21547 }
21548 #endif
21549
21550 int
21551 main ()
21552 {
21553 return f != $ac_func;
21554   ;
21555   return 0;
21556 }
21557 _ACEOF
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560   (eval $ac_link) 2>&5
21561   ac_status=$?
21562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); } &&
21564          { ac_try='test -s conftest$ac_exeext'
21565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566   (eval $ac_try) 2>&5
21567   ac_status=$?
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); }; }; then
21570   eval "$as_ac_var=yes"
21571 else
21572   echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21574
21575 eval "$as_ac_var=no"
21576 fi
21577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21578 fi
21579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21581 if test `eval echo '${'$as_ac_var'}'` = yes; then
21582
21583 cat >>confdefs.h <<_ACEOF
21584 #define CRAY_STACKSEG_END $ac_func
21585 _ACEOF
21586
21587     break
21588 fi
21589
21590   done
21591 fi
21592
21593 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21594 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21595 if test "${ac_cv_c_stack_direction+set}" = set; then
21596   echo $ECHO_N "(cached) $ECHO_C" >&6
21597 else
21598   if test "$cross_compiling" = yes; then
21599   ac_cv_c_stack_direction=0
21600 else
21601   cat >conftest.$ac_ext <<_ACEOF
21602 #line $LINENO "configure"
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 int
21609 find_stack_direction ()
21610 {
21611   static char *addr = 0;
21612   auto char dummy;
21613   if (addr == 0)
21614     {
21615       addr = &dummy;
21616       return find_stack_direction ();
21617     }
21618   else
21619     return (&dummy > addr) ? 1 : -1;
21620 }
21621
21622 int
21623 main ()
21624 {
21625   exit (find_stack_direction () < 0);
21626 }
21627 _ACEOF
21628 rm -f conftest$ac_exeext
21629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21630   (eval $ac_link) 2>&5
21631   ac_status=$?
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635   (eval $ac_try) 2>&5
21636   ac_status=$?
21637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638   (exit $ac_status); }; }; then
21639   ac_cv_c_stack_direction=1
21640 else
21641   echo "$as_me: program exited with status $ac_status" >&5
21642 echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21644
21645 ( exit $ac_status )
21646 ac_cv_c_stack_direction=-1
21647 fi
21648 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21649 fi
21650 fi
21651 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21652 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21653
21654 cat >>confdefs.h <<_ACEOF
21655 #define STACK_DIRECTION $ac_cv_c_stack_direction
21656 _ACEOF
21657
21658
21659 fi
21660
21661 if test $ac_cv_c_compiler_gnu = yes; then
21662     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21663 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21664 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21665   echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667     ac_pattern="Autoconf.*'x'"
21668   cat >conftest.$ac_ext <<_ACEOF
21669 #line $LINENO "configure"
21670 /* confdefs.h.  */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h.  */
21675 #include <sgtty.h>
21676 Autoconf TIOCGETP
21677 _ACEOF
21678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21679   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21680   ac_cv_prog_gcc_traditional=yes
21681 else
21682   ac_cv_prog_gcc_traditional=no
21683 fi
21684 rm -f conftest*
21685
21686
21687   if test $ac_cv_prog_gcc_traditional = no; then
21688     cat >conftest.$ac_ext <<_ACEOF
21689 #line $LINENO "configure"
21690 /* confdefs.h.  */
21691 _ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h.  */
21695 #include <termio.h>
21696 Autoconf TCGETA
21697 _ACEOF
21698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21699   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21700   ac_cv_prog_gcc_traditional=yes
21701 fi
21702 rm -f conftest*
21703
21704   fi
21705 fi
21706 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21707 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21708   if test $ac_cv_prog_gcc_traditional = yes; then
21709     CC="$CC -traditional"
21710   fi
21711 fi
21712
21713 echo "$as_me:$LINENO: checking for working memcmp" >&5
21714 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21715 if test "${ac_cv_func_memcmp_working+set}" = set; then
21716   echo $ECHO_N "(cached) $ECHO_C" >&6
21717 else
21718   if test "$cross_compiling" = yes; then
21719   ac_cv_func_memcmp_working=no
21720 else
21721   cat >conftest.$ac_ext <<_ACEOF
21722 #line $LINENO "configure"
21723 /* confdefs.h.  */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h.  */
21728
21729 int
21730 main ()
21731 {
21732
21733   /* Some versions of memcmp are not 8-bit clean.  */
21734   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21735   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21736     exit (1);
21737
21738   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21739      or more and with at least one buffer not starting on a 4-byte boundary.
21740      William Lewis provided this test program.   */
21741   {
21742     char foo[21];
21743     char bar[21];
21744     int i;
21745     for (i = 0; i < 4; i++)
21746       {
21747         char *a = foo + i;
21748         char *b = bar + i;
21749         strcpy (a, "--------01111111");
21750         strcpy (b, "--------10000000");
21751         if (memcmp (a, b, 16) >= 0)
21752           exit (1);
21753       }
21754     exit (0);
21755   }
21756
21757   ;
21758   return 0;
21759 }
21760 _ACEOF
21761 rm -f conftest$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763   (eval $ac_link) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768   (eval $ac_try) 2>&5
21769   ac_status=$?
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); }; }; then
21772   ac_cv_func_memcmp_working=yes
21773 else
21774   echo "$as_me: program exited with status $ac_status" >&5
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778 ( exit $ac_status )
21779 ac_cv_func_memcmp_working=no
21780 fi
21781 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21782 fi
21783 fi
21784 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21785 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21786 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21787
21788
21789
21790 for ac_header in stdlib.h unistd.h
21791 do
21792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21794   echo "$as_me:$LINENO: checking for $ac_header" >&5
21795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21797   echo $ECHO_N "(cached) $ECHO_C" >&6
21798 fi
21799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21801 else
21802   # Is the header compilable?
21803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21805 cat >conftest.$ac_ext <<_ACEOF
21806 #line $LINENO "configure"
21807 /* confdefs.h.  */
21808 _ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h.  */
21812 $ac_includes_default
21813 #include <$ac_header>
21814 _ACEOF
21815 rm -f conftest.$ac_objext
21816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21817   (eval $ac_compile) 2>&5
21818   ac_status=$?
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); } &&
21821          { ac_try='test -s conftest.$ac_objext'
21822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823   (eval $ac_try) 2>&5
21824   ac_status=$?
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); }; }; then
21827   ac_header_compiler=yes
21828 else
21829   echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21831
21832 ac_header_compiler=no
21833 fi
21834 rm -f conftest.$ac_objext conftest.$ac_ext
21835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21836 echo "${ECHO_T}$ac_header_compiler" >&6
21837
21838 # Is the header present?
21839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21841 cat >conftest.$ac_ext <<_ACEOF
21842 #line $LINENO "configure"
21843 /* confdefs.h.  */
21844 _ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h.  */
21848 #include <$ac_header>
21849 _ACEOF
21850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21852   ac_status=$?
21853   grep -v '^ *+' conftest.er1 >conftest.err
21854   rm -f conftest.er1
21855   cat conftest.err >&5
21856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857   (exit $ac_status); } >/dev/null; then
21858   if test -s conftest.err; then
21859     ac_cpp_err=$ac_c_preproc_warn_flag
21860   else
21861     ac_cpp_err=
21862   fi
21863 else
21864   ac_cpp_err=yes
21865 fi
21866 if test -z "$ac_cpp_err"; then
21867   ac_header_preproc=yes
21868 else
21869   echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21871
21872   ac_header_preproc=no
21873 fi
21874 rm -f conftest.err conftest.$ac_ext
21875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21876 echo "${ECHO_T}$ac_header_preproc" >&6
21877
21878 # So?  What about this header?
21879 case $ac_header_compiler:$ac_header_preproc in
21880   yes:no )
21881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21885     (
21886       cat <<\_ASBOX
21887 ## ------------------------------------ ##
21888 ## Report this to bug-autoconf@gnu.org. ##
21889 ## ------------------------------------ ##
21890 _ASBOX
21891     ) |
21892       sed "s/^/$as_me: WARNING:     /" >&2
21893     ;;
21894   no:yes )
21895     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21897     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21901     (
21902       cat <<\_ASBOX
21903 ## ------------------------------------ ##
21904 ## Report this to bug-autoconf@gnu.org. ##
21905 ## ------------------------------------ ##
21906 _ASBOX
21907     ) |
21908       sed "s/^/$as_me: WARNING:     /" >&2
21909     ;;
21910 esac
21911 echo "$as_me:$LINENO: checking for $ac_header" >&5
21912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21914   echo $ECHO_N "(cached) $ECHO_C" >&6
21915 else
21916   eval "$as_ac_Header=$ac_header_preproc"
21917 fi
21918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21920
21921 fi
21922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21923   cat >>confdefs.h <<_ACEOF
21924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21925 _ACEOF
21926
21927 fi
21928
21929 done
21930
21931
21932 for ac_func in getpagesize
21933 do
21934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21935 echo "$as_me:$LINENO: checking for $ac_func" >&5
21936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21937 if eval "test \"\${$as_ac_var+set}\" = set"; then
21938   echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940   cat >conftest.$ac_ext <<_ACEOF
21941 #line $LINENO "configure"
21942 /* confdefs.h.  */
21943 _ACEOF
21944 cat confdefs.h >>conftest.$ac_ext
21945 cat >>conftest.$ac_ext <<_ACEOF
21946 /* end confdefs.h.  */
21947 /* System header to define __stub macros and hopefully few prototypes,
21948     which can conflict with char $ac_func (); below.
21949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21950     <limits.h> exists even on freestanding compilers.  */
21951 #ifdef __STDC__
21952 # include <limits.h>
21953 #else
21954 # include <assert.h>
21955 #endif
21956 /* Override any gcc2 internal prototype to avoid an error.  */
21957 #ifdef __cplusplus
21958 extern "C"
21959 {
21960 #endif
21961 /* We use char because int might match the return type of a gcc2
21962    builtin and then its argument prototype would still apply.  */
21963 char $ac_func ();
21964 /* The GNU C library defines this for functions which it implements
21965     to always fail with ENOSYS.  Some functions are actually named
21966     something starting with __ and the normal name is an alias.  */
21967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21968 choke me
21969 #else
21970 char (*f) () = $ac_func;
21971 #endif
21972 #ifdef __cplusplus
21973 }
21974 #endif
21975
21976 int
21977 main ()
21978 {
21979 return f != $ac_func;
21980   ;
21981   return 0;
21982 }
21983 _ACEOF
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986   (eval $ac_link) 2>&5
21987   ac_status=$?
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); } &&
21990          { ac_try='test -s conftest$ac_exeext'
21991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992   (eval $ac_try) 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); }; }; then
21996   eval "$as_ac_var=yes"
21997 else
21998   echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22000
22001 eval "$as_ac_var=no"
22002 fi
22003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22004 fi
22005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22007 if test `eval echo '${'$as_ac_var'}'` = yes; then
22008   cat >>confdefs.h <<_ACEOF
22009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22010 _ACEOF
22011
22012 fi
22013 done
22014
22015 echo "$as_me:$LINENO: checking for working mmap" >&5
22016 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22017 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22018   echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020   if test "$cross_compiling" = yes; then
22021   ac_cv_func_mmap_fixed_mapped=no
22022 else
22023   cat >conftest.$ac_ext <<_ACEOF
22024 #line $LINENO "configure"
22025 /* confdefs.h.  */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h.  */
22030 $ac_includes_default
22031 /* malloc might have been renamed as rpl_malloc. */
22032 #undef malloc
22033
22034 /* Thanks to Mike Haertel and Jim Avera for this test.
22035    Here is a matrix of mmap possibilities:
22036         mmap private not fixed
22037         mmap private fixed at somewhere currently unmapped
22038         mmap private fixed at somewhere already mapped
22039         mmap shared not fixed
22040         mmap shared fixed at somewhere currently unmapped
22041         mmap shared fixed at somewhere already mapped
22042    For private mappings, we should verify that changes cannot be read()
22043    back from the file, nor mmap's back from the file at a different
22044    address.  (There have been systems where private was not correctly
22045    implemented like the infamous i386 svr4.0, and systems where the
22046    VM page cache was not coherent with the file system buffer cache
22047    like early versions of FreeBSD and possibly contemporary NetBSD.)
22048    For shared mappings, we should conversely verify that changes get
22049    propagated back to all the places they're supposed to be.
22050
22051    Grep wants private fixed already mapped.
22052    The main things grep needs to know about mmap are:
22053    * does it exist and is it safe to write into the mmap'd area
22054    * how to use it (BSD variants)  */
22055
22056 #include <fcntl.h>
22057 #include <sys/mman.h>
22058
22059 #if !STDC_HEADERS && !HAVE_STDLIB_H
22060 char *malloc ();
22061 #endif
22062
22063 /* This mess was copied from the GNU getpagesize.h.  */
22064 #if !HAVE_GETPAGESIZE
22065 /* Assume that all systems that can run configure have sys/param.h.  */
22066 # if !HAVE_SYS_PARAM_H
22067 #  define HAVE_SYS_PARAM_H 1
22068 # endif
22069
22070 # ifdef _SC_PAGESIZE
22071 #  define getpagesize() sysconf(_SC_PAGESIZE)
22072 # else /* no _SC_PAGESIZE */
22073 #  if HAVE_SYS_PARAM_H
22074 #   include <sys/param.h>
22075 #   ifdef EXEC_PAGESIZE
22076 #    define getpagesize() EXEC_PAGESIZE
22077 #   else /* no EXEC_PAGESIZE */
22078 #    ifdef NBPG
22079 #     define getpagesize() NBPG * CLSIZE
22080 #     ifndef CLSIZE
22081 #      define CLSIZE 1
22082 #     endif /* no CLSIZE */
22083 #    else /* no NBPG */
22084 #     ifdef NBPC
22085 #      define getpagesize() NBPC
22086 #     else /* no NBPC */
22087 #      ifdef PAGESIZE
22088 #       define getpagesize() PAGESIZE
22089 #      endif /* PAGESIZE */
22090 #     endif /* no NBPC */
22091 #    endif /* no NBPG */
22092 #   endif /* no EXEC_PAGESIZE */
22093 #  else /* no HAVE_SYS_PARAM_H */
22094 #   define getpagesize() 8192   /* punt totally */
22095 #  endif /* no HAVE_SYS_PARAM_H */
22096 # endif /* no _SC_PAGESIZE */
22097
22098 #endif /* no HAVE_GETPAGESIZE */
22099
22100 int
22101 main ()
22102 {
22103   char *data, *data2, *data3;
22104   int i, pagesize;
22105   int fd;
22106
22107   pagesize = getpagesize ();
22108
22109   /* First, make a file with some known garbage in it. */
22110   data = (char *) malloc (pagesize);
22111   if (!data)
22112     exit (1);
22113   for (i = 0; i < pagesize; ++i)
22114     *(data + i) = rand ();
22115   umask (0);
22116   fd = creat ("conftest.mmap", 0600);
22117   if (fd < 0)
22118     exit (1);
22119   if (write (fd, data, pagesize) != pagesize)
22120     exit (1);
22121   close (fd);
22122
22123   /* Next, try to mmap the file at a fixed address which already has
22124      something else allocated at it.  If we can, also make sure that
22125      we see the same garbage.  */
22126   fd = open ("conftest.mmap", O_RDWR);
22127   if (fd < 0)
22128     exit (1);
22129   data2 = (char *) malloc (2 * pagesize);
22130   if (!data2)
22131     exit (1);
22132   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22133   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22134                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22135     exit (1);
22136   for (i = 0; i < pagesize; ++i)
22137     if (*(data + i) != *(data2 + i))
22138       exit (1);
22139
22140   /* Finally, make sure that changes to the mapped area do not
22141      percolate back to the file as seen by read().  (This is a bug on
22142      some variants of i386 svr4.0.)  */
22143   for (i = 0; i < pagesize; ++i)
22144     *(data2 + i) = *(data2 + i) + 1;
22145   data3 = (char *) malloc (pagesize);
22146   if (!data3)
22147     exit (1);
22148   if (read (fd, data3, pagesize) != pagesize)
22149     exit (1);
22150   for (i = 0; i < pagesize; ++i)
22151     if (*(data + i) != *(data3 + i))
22152       exit (1);
22153   close (fd);
22154   exit (0);
22155 }
22156 _ACEOF
22157 rm -f conftest$ac_exeext
22158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22159   (eval $ac_link) 2>&5
22160   ac_status=$?
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164   (eval $ac_try) 2>&5
22165   ac_status=$?
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); }; }; then
22168   ac_cv_func_mmap_fixed_mapped=yes
22169 else
22170   echo "$as_me: program exited with status $ac_status" >&5
22171 echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22173
22174 ( exit $ac_status )
22175 ac_cv_func_mmap_fixed_mapped=no
22176 fi
22177 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22178 fi
22179 fi
22180 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22181 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22182 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22183
22184 cat >>confdefs.h <<\_ACEOF
22185 #define HAVE_MMAP 1
22186 _ACEOF
22187
22188 fi
22189 rm -f conftest.mmap
22190
22191 echo "$as_me:$LINENO: checking for mmap of files" >&5
22192 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22193 if test "${ac_cv_func_mmap_file+set}" = set; then
22194   echo $ECHO_N "(cached) $ECHO_C" >&6
22195 else
22196
22197
22198   ac_ext=c
22199 ac_cpp='$CPP $CPPFLAGS'
22200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22203
22204   if test "$cross_compiling" = yes; then
22205   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22206 See \`config.log' for more details." >&5
22207 echo "$as_me: error: cannot run test program while cross compiling
22208 See \`config.log' for more details." >&2;}
22209    { (exit 1); exit 1; }; }
22210 else
22211   cat >conftest.$ac_ext <<_ACEOF
22212 #line $LINENO "configure"
22213 /* confdefs.h.  */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h.  */
22218
22219 #ifdef HAVE_SYS_TYPES_H
22220 #include <sys/types.h>
22221 #endif
22222
22223 #ifdef HAVE_SYS_MMAN_H
22224 #include <sys/mman.h>
22225 #endif
22226
22227 #ifdef HAVE_FCNTL_H
22228 #include <fcntl.h>
22229 #endif
22230
22231   int fd;
22232   int main () {
22233   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22234 _ACEOF
22235 rm -f conftest$ac_exeext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22237   (eval $ac_link) 2>&5
22238   ac_status=$?
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242   (eval $ac_try) 2>&5
22243   ac_status=$?
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); }; }; then
22246   ac_cv_func_mmap_file=yes
22247 else
22248   echo "$as_me: program exited with status $ac_status" >&5
22249 echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22251
22252 ( exit $ac_status )
22253 ac_cv_func_mmap_file=no
22254 fi
22255 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22256 fi
22257   ac_ext=c
22258 ac_cpp='$CPP $CPPFLAGS'
22259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22262
22263
22264 fi
22265 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22266 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22267 if test "$ac_cv_func_mmap_file" = yes; then
22268
22269 cat >>confdefs.h <<\_ACEOF
22270 #define HAVE_MMAP_FILE
22271 _ACEOF
22272
22273    MMAP_FILE=yes
22274
22275 fi
22276
22277 if test ${ac_cv_func_mmap_file} = "no"
22278 then
22279         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22280 echo "$as_me: error: mmap() of files required but not found" >&2;}
22281    { (exit 1); exit 1; }; }
22282 fi
22283 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22284 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22285 if test "${ac_cv_header_mmap_anon+set}" = set; then
22286   echo $ECHO_N "(cached) $ECHO_C" >&6
22287 else
22288
22289
22290   ac_ext=c
22291 ac_cpp='$CPP $CPPFLAGS'
22292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22295
22296   cat >conftest.$ac_ext <<_ACEOF
22297 #line $LINENO "configure"
22298 /* confdefs.h.  */
22299 _ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h.  */
22303 #include <sys/mman.h>
22304   #include <unistd.h>
22305   #include <fcntl.h>
22306 int
22307 main ()
22308 {
22309 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22310   ;
22311   return 0;
22312 }
22313 _ACEOF
22314 rm -f conftest.$ac_objext
22315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22316   (eval $ac_compile) 2>&5
22317   ac_status=$?
22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); } &&
22320          { ac_try='test -s conftest.$ac_objext'
22321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322   (eval $ac_try) 2>&5
22323   ac_status=$?
22324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325   (exit $ac_status); }; }; then
22326   ac_cv_header_mmap_anon=yes
22327 else
22328   echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22330
22331 ac_cv_header_mmap_anon=no
22332 fi
22333 rm -f conftest.$ac_objext conftest.$ac_ext
22334   ac_ext=c
22335 ac_cpp='$CPP $CPPFLAGS'
22336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22339
22340
22341 fi
22342 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22343 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22344 if test "$ac_cv_header_mmap_anon" = yes; then
22345
22346 cat >>confdefs.h <<\_ACEOF
22347 #define HAVE_MMAP_ANONYMOUS
22348 _ACEOF
22349
22350 fi
22351
22352 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22353 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22354 if test "${ac_cv_type_signal+set}" = set; then
22355   echo $ECHO_N "(cached) $ECHO_C" >&6
22356 else
22357   cat >conftest.$ac_ext <<_ACEOF
22358 #line $LINENO "configure"
22359 /* confdefs.h.  */
22360 _ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h.  */
22364 #include <sys/types.h>
22365 #include <signal.h>
22366 #ifdef signal
22367 # undef signal
22368 #endif
22369 #ifdef __cplusplus
22370 extern "C" void (*signal (int, void (*)(int)))(int);
22371 #else
22372 void (*signal ()) ();
22373 #endif
22374
22375 int
22376 main ()
22377 {
22378 int i;
22379   ;
22380   return 0;
22381 }
22382 _ACEOF
22383 rm -f conftest.$ac_objext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385   (eval $ac_compile) 2>&5
22386   ac_status=$?
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); } &&
22389          { ac_try='test -s conftest.$ac_objext'
22390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391   (eval $ac_try) 2>&5
22392   ac_status=$?
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); }; }; then
22395   ac_cv_type_signal=void
22396 else
22397   echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22399
22400 ac_cv_type_signal=int
22401 fi
22402 rm -f conftest.$ac_objext conftest.$ac_ext
22403 fi
22404 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22405 echo "${ECHO_T}$ac_cv_type_signal" >&6
22406
22407 cat >>confdefs.h <<_ACEOF
22408 #define RETSIGTYPE $ac_cv_type_signal
22409 _ACEOF
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll strsignal
22425 do
22426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22427 echo "$as_me:$LINENO: checking for $ac_func" >&5
22428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22429 if eval "test \"\${$as_ac_var+set}\" = set"; then
22430   echo $ECHO_N "(cached) $ECHO_C" >&6
22431 else
22432   cat >conftest.$ac_ext <<_ACEOF
22433 #line $LINENO "configure"
22434 /* confdefs.h.  */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h.  */
22439 /* System header to define __stub macros and hopefully few prototypes,
22440     which can conflict with char $ac_func (); below.
22441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22442     <limits.h> exists even on freestanding compilers.  */
22443 #ifdef __STDC__
22444 # include <limits.h>
22445 #else
22446 # include <assert.h>
22447 #endif
22448 /* Override any gcc2 internal prototype to avoid an error.  */
22449 #ifdef __cplusplus
22450 extern "C"
22451 {
22452 #endif
22453 /* We use char because int might match the return type of a gcc2
22454    builtin and then its argument prototype would still apply.  */
22455 char $ac_func ();
22456 /* The GNU C library defines this for functions which it implements
22457     to always fail with ENOSYS.  Some functions are actually named
22458     something starting with __ and the normal name is an alias.  */
22459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22460 choke me
22461 #else
22462 char (*f) () = $ac_func;
22463 #endif
22464 #ifdef __cplusplus
22465 }
22466 #endif
22467
22468 int
22469 main ()
22470 {
22471 return f != $ac_func;
22472   ;
22473   return 0;
22474 }
22475 _ACEOF
22476 rm -f conftest.$ac_objext conftest$ac_exeext
22477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22478   (eval $ac_link) 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); } &&
22482          { ac_try='test -s conftest$ac_exeext'
22483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22484   (eval $ac_try) 2>&5
22485   ac_status=$?
22486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); }; }; then
22488   eval "$as_ac_var=yes"
22489 else
22490   echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22492
22493 eval "$as_ac_var=no"
22494 fi
22495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22496 fi
22497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22499 if test `eval echo '${'$as_ac_var'}'` = yes; then
22500   cat >>confdefs.h <<_ACEOF
22501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22502 _ACEOF
22503
22504 fi
22505 done
22506
22507 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22508 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
22509 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22510   echo $ECHO_N "(cached) $ECHO_C" >&6
22511 else
22512   cat >conftest.$ac_ext <<_ACEOF
22513 #line $LINENO "configure"
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519
22520 #if HAVE_SIGNAL_H
22521 #include <signal.h>
22522 #endif
22523
22524 int
22525 main ()
22526 {
22527 #ifndef sys_siglist
22528   char *p = (char *) sys_siglist;
22529 #endif
22530
22531   ;
22532   return 0;
22533 }
22534 _ACEOF
22535 rm -f conftest.$ac_objext
22536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22537   (eval $ac_compile) 2>&5
22538   ac_status=$?
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); } &&
22541          { ac_try='test -s conftest.$ac_objext'
22542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543   (eval $ac_try) 2>&5
22544   ac_status=$?
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); }; }; then
22547   ac_cv_have_decl_sys_siglist=yes
22548 else
22549   echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22551
22552 ac_cv_have_decl_sys_siglist=no
22553 fi
22554 rm -f conftest.$ac_objext conftest.$ac_ext
22555 fi
22556 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22557 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
22558 if test $ac_cv_have_decl_sys_siglist = yes; then
22559
22560 cat >>confdefs.h <<_ACEOF
22561 #define HAVE_DECL_SYS_SIGLIST 1
22562 _ACEOF
22563
22564
22565 else
22566   cat >>confdefs.h <<_ACEOF
22567 #define HAVE_DECL_SYS_SIGLIST 0
22568 _ACEOF
22569
22570
22571 fi
22572
22573
22574
22575
22576 echo "$as_me:$LINENO: checking for mmap" >&5
22577 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22578 if test "${ac_cv_func_mmap+set}" = set; then
22579   echo $ECHO_N "(cached) $ECHO_C" >&6
22580 else
22581   cat >conftest.$ac_ext <<_ACEOF
22582 #line $LINENO "configure"
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588 /* System header to define __stub macros and hopefully few prototypes,
22589     which can conflict with char mmap (); below.
22590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22591     <limits.h> exists even on freestanding compilers.  */
22592 #ifdef __STDC__
22593 # include <limits.h>
22594 #else
22595 # include <assert.h>
22596 #endif
22597 /* Override any gcc2 internal prototype to avoid an error.  */
22598 #ifdef __cplusplus
22599 extern "C"
22600 {
22601 #endif
22602 /* We use char because int might match the return type of a gcc2
22603    builtin and then its argument prototype would still apply.  */
22604 char mmap ();
22605 /* The GNU C library defines this for functions which it implements
22606     to always fail with ENOSYS.  Some functions are actually named
22607     something starting with __ and the normal name is an alias.  */
22608 #if defined (__stub_mmap) || defined (__stub___mmap)
22609 choke me
22610 #else
22611 char (*f) () = mmap;
22612 #endif
22613 #ifdef __cplusplus
22614 }
22615 #endif
22616
22617 int
22618 main ()
22619 {
22620 return f != mmap;
22621   ;
22622   return 0;
22623 }
22624 _ACEOF
22625 rm -f conftest.$ac_objext conftest$ac_exeext
22626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22627   (eval $ac_link) 2>&5
22628   ac_status=$?
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); } &&
22631          { ac_try='test -s conftest$ac_exeext'
22632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633   (eval $ac_try) 2>&5
22634   ac_status=$?
22635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636   (exit $ac_status); }; }; then
22637   ac_cv_func_mmap=yes
22638 else
22639   echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22641
22642 ac_cv_func_mmap=no
22643 fi
22644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22645 fi
22646 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22647 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22648 if test $ac_cv_func_mmap = yes; then
22649   :
22650 else
22651   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22652 echo "$as_me: error: Function mmap() required but not found" >&2;}
22653    { (exit 1); exit 1; }; }
22654 fi
22655
22656 echo "$as_me:$LINENO: checking for mprotect" >&5
22657 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22658 if test "${ac_cv_func_mprotect+set}" = set; then
22659   echo $ECHO_N "(cached) $ECHO_C" >&6
22660 else
22661   cat >conftest.$ac_ext <<_ACEOF
22662 #line $LINENO "configure"
22663 /* confdefs.h.  */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h.  */
22668 /* System header to define __stub macros and hopefully few prototypes,
22669     which can conflict with char mprotect (); below.
22670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22671     <limits.h> exists even on freestanding compilers.  */
22672 #ifdef __STDC__
22673 # include <limits.h>
22674 #else
22675 # include <assert.h>
22676 #endif
22677 /* Override any gcc2 internal prototype to avoid an error.  */
22678 #ifdef __cplusplus
22679 extern "C"
22680 {
22681 #endif
22682 /* We use char because int might match the return type of a gcc2
22683    builtin and then its argument prototype would still apply.  */
22684 char mprotect ();
22685 /* The GNU C library defines this for functions which it implements
22686     to always fail with ENOSYS.  Some functions are actually named
22687     something starting with __ and the normal name is an alias.  */
22688 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22689 choke me
22690 #else
22691 char (*f) () = mprotect;
22692 #endif
22693 #ifdef __cplusplus
22694 }
22695 #endif
22696
22697 int
22698 main ()
22699 {
22700 return f != mprotect;
22701   ;
22702   return 0;
22703 }
22704 _ACEOF
22705 rm -f conftest.$ac_objext conftest$ac_exeext
22706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22707   (eval $ac_link) 2>&5
22708   ac_status=$?
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); } &&
22711          { ac_try='test -s conftest$ac_exeext'
22712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713   (eval $ac_try) 2>&5
22714   ac_status=$?
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); }; }; then
22717   ac_cv_func_mprotect=yes
22718 else
22719   echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22721
22722 ac_cv_func_mprotect=no
22723 fi
22724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22725 fi
22726 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22727 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22728 if test $ac_cv_func_mprotect = yes; then
22729   :
22730 else
22731   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22732 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22733    { (exit 1); exit 1; }; }
22734 fi
22735
22736
22737
22738 # Check whether --enable-purify or --disable-purify was given.
22739 if test "${enable_purify+set}" = set; then
22740   enableval="$enable_purify"
22741
22742 else
22743   enableval="no"
22744 fi;
22745 if test ${enableval} = "no"
22746 then
22747         ENABLE_PURIFY=
22748
22749 else
22750         ENABLE_PURIFY=ENABLE_PURIFY=1
22751
22752 fi
22753
22754 # Check whether --enable-optimized or --disable-optimized was given.
22755 if test "${enable_optimized+set}" = set; then
22756   enableval="$enable_optimized"
22757
22758 else
22759   enableval=no
22760 fi;
22761 if test ${enableval} = "no"
22762 then
22763         ENABLE_OPTIMIZED=
22764
22765 else
22766         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22767
22768 fi
22769
22770 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22771 if test "${enable_spec2000+set}" = set; then
22772   enableval="$enable_spec2000"
22773
22774 else
22775   enableval=no
22776 fi;
22777 if test ${enableval} = "no"
22778 then
22779         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22780         then
22781                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22782
22783                 USE_SPEC=USE_SPEC=1
22784
22785         else
22786                 USE_SPEC=
22787
22788
22789         fi
22790 else
22791         if test ${enableval} = ""
22792         then
22793                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22794
22795         else
22796                 SPEC_ROOT=${enableval}
22797
22798         fi
22799         USE_SPEC=USE_SPEC=1
22800
22801 fi
22802
22803 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22804 if test "${enable_precompiled_bytecode+set}" = set; then
22805   enableval="$enable_precompiled_bytecode"
22806
22807 else
22808   enableval=no
22809 fi;
22810 if test ${enableval} = "no"
22811 then
22812         UPB=
22813
22814 else
22815         UPB=USE_PRECOMPILED_BYTECODE=1
22816
22817 fi
22818
22819
22820 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22821 if test "${enable_llc_diffs+set}" = set; then
22822   enableval="$enable_llc_diffs"
22823
22824 else
22825   enableval=yes
22826 fi;
22827 if test ${enableval} = "no"
22828 then
22829         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22830
22831 else
22832         DISABLE_LLC_DIFFS=
22833
22834 fi
22835
22836 # Check whether --enable-jit or --disable-jit was given.
22837 if test "${enable_jit+set}" = set; then
22838   enableval="$enable_jit"
22839
22840 else
22841   enableval=default
22842 fi;
22843
22844 if test ${enableval} = "no"
22845 then
22846         JIT=
22847
22848 else
22849         case $target in
22850                 *i*86*)
22851                         JIT=TARGET_HAS_JIT=1
22852
22853                         ;;
22854                 *sparc*)
22855                         JIT=TARGET_HAS_JIT=1
22856
22857                         ;;
22858                 *)
22859                         JIT=
22860
22861                         ;;
22862         esac
22863 fi
22864
22865
22866
22867 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22868 if test "${with_llvmgccdir+set}" = set; then
22869   withval="$with_llvmgccdir"
22870   LLVMGCCDIR=$withval
22871
22872 fi;
22873
22874
22875 # Check whether --with-bcrepos or --without-bcrepos was given.
22876 if test "${with_bcrepos+set}" = set; then
22877   withval="$with_bcrepos"
22878   BCR=$withval
22879
22880 else
22881   BCR=/home/vadve/lattner/LLVMPrograms
22882
22883 fi;
22884
22885
22886 # Check whether --with-papi or --without-papi was given.
22887 if test "${with_papi+set}" = set; then
22888   withval="$with_papi"
22889   PAPIDIR=$withval
22890
22891 else
22892   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22893
22894 fi;
22895
22896
22897 # Check whether --with-purify or --without-purify was given.
22898 if test "${with_purify+set}" = set; then
22899   withval="$with_purify"
22900   PURIFY=$withval
22901
22902 fi;
22903
22904
22905           ac_config_files="$ac_config_files Makefile.config"
22906 cat >confcache <<\_ACEOF
22907 # This file is a shell script that caches the results of configure
22908 # tests run on this system so they can be shared between configure
22909 # scripts and configure runs, see configure's option --config-cache.
22910 # It is not useful on other systems.  If it contains results you don't
22911 # want to keep, you may remove or edit it.
22912 #
22913 # config.status only pays attention to the cache file if you give it
22914 # the --recheck option to rerun configure.
22915 #
22916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22918 # following values.
22919
22920 _ACEOF
22921
22922 # The following way of writing the cache mishandles newlines in values,
22923 # but we know of no workaround that is simple, portable, and efficient.
22924 # So, don't put newlines in cache variables' values.
22925 # Ultrix sh set writes to stderr and can't be redirected directly,
22926 # and sets the high bit in the cache file unless we assign to the vars.
22927 {
22928   (set) 2>&1 |
22929     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22930     *ac_space=\ *)
22931       # `set' does not quote correctly, so add quotes (double-quote
22932       # substitution turns \\\\ into \\, and sed turns \\ into \).
22933       sed -n \
22934         "s/'/'\\\\''/g;
22935           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22936       ;;
22937     *)
22938       # `set' quotes correctly as required by POSIX, so do not add quotes.
22939       sed -n \
22940         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22941       ;;
22942     esac;
22943 } |
22944   sed '
22945      t clear
22946      : clear
22947      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22948      t end
22949      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22950      : end' >>confcache
22951 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22952   if test -w $cache_file; then
22953     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22954     cat confcache >$cache_file
22955   else
22956     echo "not updating unwritable cache $cache_file"
22957   fi
22958 fi
22959 rm -f confcache
22960
22961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22962 # Let make expand exec_prefix.
22963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22964
22965 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22966 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22967 # trailing colons and then remove the whole line if VPATH becomes empty
22968 # (actually we leave an empty line to preserve line numbers).
22969 if test "x$srcdir" = x.; then
22970   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22971 s/:*\$(srcdir):*/:/;
22972 s/:*\${srcdir}:*/:/;
22973 s/:*@srcdir@:*/:/;
22974 s/^\([^=]*=[    ]*\):*/\1/;
22975 s/:*$//;
22976 s/^[^=]*=[      ]*$//;
22977 }'
22978 fi
22979
22980 DEFS=-DHAVE_CONFIG_H
22981
22982 ac_libobjs=
22983 ac_ltlibobjs=
22984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22985   # 1. Remove the extension, and $U if already installed.
22986   ac_i=`echo "$ac_i" |
22987          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22988   # 2. Add them.
22989   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22990   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22991 done
22992 LIBOBJS=$ac_libobjs
22993
22994 LTLIBOBJS=$ac_ltlibobjs
22995
22996
22997
22998 : ${CONFIG_STATUS=./config.status}
22999 ac_clean_files_save=$ac_clean_files
23000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23001 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23002 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23003 cat >$CONFIG_STATUS <<_ACEOF
23004 #! $SHELL
23005 # Generated by $as_me.
23006 # Run this file to recreate the current configuration.
23007 # Compiler output produced by configure, useful for debugging
23008 # configure, is in config.log if it exists.
23009
23010 debug=false
23011 ac_cs_recheck=false
23012 ac_cs_silent=false
23013 SHELL=\${CONFIG_SHELL-$SHELL}
23014 _ACEOF
23015
23016 cat >>$CONFIG_STATUS <<\_ACEOF
23017 ## --------------------- ##
23018 ## M4sh Initialization.  ##
23019 ## --------------------- ##
23020
23021 # Be Bourne compatible
23022 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23023   emulate sh
23024   NULLCMD=:
23025   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23026   # is contrary to our usage.  Disable this feature.
23027   alias -g '${1+"$@"}'='"$@"'
23028 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23029   set -o posix
23030 fi
23031
23032 # Support unset when possible.
23033 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23034   as_unset=unset
23035 else
23036   as_unset=false
23037 fi
23038
23039
23040 # Work around bugs in pre-3.0 UWIN ksh.
23041 $as_unset ENV MAIL MAILPATH
23042 PS1='$ '
23043 PS2='> '
23044 PS4='+ '
23045
23046 # NLS nuisances.
23047 for as_var in \
23048   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23049   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23050   LC_TELEPHONE LC_TIME
23051 do
23052   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23053     eval $as_var=C; export $as_var
23054   else
23055     $as_unset $as_var
23056   fi
23057 done
23058
23059 # Required to use basename.
23060 if expr a : '\(a\)' >/dev/null 2>&1; then
23061   as_expr=expr
23062 else
23063   as_expr=false
23064 fi
23065
23066 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23067   as_basename=basename
23068 else
23069   as_basename=false
23070 fi
23071
23072
23073 # Name of the executable.
23074 as_me=`$as_basename "$0" ||
23075 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23076          X"$0" : 'X\(//\)$' \| \
23077          X"$0" : 'X\(/\)$' \| \
23078          .     : '\(.\)' 2>/dev/null ||
23079 echo X/"$0" |
23080     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23081           /^X\/\(\/\/\)$/{ s//\1/; q; }
23082           /^X\/\(\/\).*/{ s//\1/; q; }
23083           s/.*/./; q'`
23084
23085
23086 # PATH needs CR, and LINENO needs CR and PATH.
23087 # Avoid depending upon Character Ranges.
23088 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23089 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23090 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23091 as_cr_digits='0123456789'
23092 as_cr_alnum=$as_cr_Letters$as_cr_digits
23093
23094 # The user is always right.
23095 if test "${PATH_SEPARATOR+set}" != set; then
23096   echo "#! /bin/sh" >conf$$.sh
23097   echo  "exit 0"   >>conf$$.sh
23098   chmod +x conf$$.sh
23099   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23100     PATH_SEPARATOR=';'
23101   else
23102     PATH_SEPARATOR=:
23103   fi
23104   rm -f conf$$.sh
23105 fi
23106
23107
23108   as_lineno_1=$LINENO
23109   as_lineno_2=$LINENO
23110   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23111   test "x$as_lineno_1" != "x$as_lineno_2" &&
23112   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23113   # Find who we are.  Look in the path if we contain no path at all
23114   # relative or not.
23115   case $0 in
23116     *[\\/]* ) as_myself=$0 ;;
23117     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23118 for as_dir in $PATH
23119 do
23120   IFS=$as_save_IFS
23121   test -z "$as_dir" && as_dir=.
23122   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23123 done
23124
23125        ;;
23126   esac
23127   # We did not find ourselves, most probably we were run as `sh COMMAND'
23128   # in which case we are not to be found in the path.
23129   if test "x$as_myself" = x; then
23130     as_myself=$0
23131   fi
23132   if test ! -f "$as_myself"; then
23133     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23134 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23135    { (exit 1); exit 1; }; }
23136   fi
23137   case $CONFIG_SHELL in
23138   '')
23139     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23140 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23141 do
23142   IFS=$as_save_IFS
23143   test -z "$as_dir" && as_dir=.
23144   for as_base in sh bash ksh sh5; do
23145          case $as_dir in
23146          /*)
23147            if ("$as_dir/$as_base" -c '
23148   as_lineno_1=$LINENO
23149   as_lineno_2=$LINENO
23150   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23151   test "x$as_lineno_1" != "x$as_lineno_2" &&
23152   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23153              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23154              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23155              CONFIG_SHELL=$as_dir/$as_base
23156              export CONFIG_SHELL
23157              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23158            fi;;
23159          esac
23160        done
23161 done
23162 ;;
23163   esac
23164
23165   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23166   # uniformly replaced by the line number.  The first 'sed' inserts a
23167   # line-number line before each line; the second 'sed' does the real
23168   # work.  The second script uses 'N' to pair each line-number line
23169   # with the numbered line, and appends trailing '-' during
23170   # substitution so that $LINENO is not a special case at line end.
23171   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23172   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23173   sed '=' <$as_myself |
23174     sed '
23175       N
23176       s,$,-,
23177       : loop
23178       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23179       t loop
23180       s,-$,,
23181       s,^['$as_cr_digits']*\n,,
23182     ' >$as_me.lineno &&
23183   chmod +x $as_me.lineno ||
23184     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23185 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23186    { (exit 1); exit 1; }; }
23187
23188   # Don't try to exec as it changes $[0], causing all sort of problems
23189   # (the dirname of $[0] is not the place where we might find the
23190   # original and so on.  Autoconf is especially sensible to this).
23191   . ./$as_me.lineno
23192   # Exit status is that of the last command.
23193   exit
23194 }
23195
23196
23197 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23198   *c*,-n*) ECHO_N= ECHO_C='
23199 ' ECHO_T='      ' ;;
23200   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23201   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23202 esac
23203
23204 if expr a : '\(a\)' >/dev/null 2>&1; then
23205   as_expr=expr
23206 else
23207   as_expr=false
23208 fi
23209
23210 rm -f conf$$ conf$$.exe conf$$.file
23211 echo >conf$$.file
23212 if ln -s conf$$.file conf$$ 2>/dev/null; then
23213   # We could just check for DJGPP; but this test a) works b) is more generic
23214   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23215   if test -f conf$$.exe; then
23216     # Don't use ln at all; we don't have any links
23217     as_ln_s='cp -p'
23218   else
23219     as_ln_s='ln -s'
23220   fi
23221 elif ln conf$$.file conf$$ 2>/dev/null; then
23222   as_ln_s=ln
23223 else
23224   as_ln_s='cp -p'
23225 fi
23226 rm -f conf$$ conf$$.exe conf$$.file
23227
23228 if mkdir -p . 2>/dev/null; then
23229   as_mkdir_p=:
23230 else
23231   as_mkdir_p=false
23232 fi
23233
23234 as_executable_p="test -f"
23235
23236 # Sed expression to map a string onto a valid CPP name.
23237 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23238
23239 # Sed expression to map a string onto a valid variable name.
23240 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23241
23242
23243 # IFS
23244 # We need space, tab and new line, in precisely that order.
23245 as_nl='
23246 '
23247 IFS="   $as_nl"
23248
23249 # CDPATH.
23250 $as_unset CDPATH
23251
23252 exec 6>&1
23253
23254 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23255 # report actual input values of CONFIG_FILES etc. instead of their
23256 # values after options handling.  Logging --version etc. is OK.
23257 exec 5>>config.log
23258 {
23259   echo
23260   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23261 ## Running $as_me. ##
23262 _ASBOX
23263 } >&5
23264 cat >&5 <<_CSEOF
23265
23266 This file was extended by [LLVM] $as_me [1.0], which was
23267 generated by GNU Autoconf 2.57.  Invocation command line was
23268
23269   CONFIG_FILES    = $CONFIG_FILES
23270   CONFIG_HEADERS  = $CONFIG_HEADERS
23271   CONFIG_LINKS    = $CONFIG_LINKS
23272   CONFIG_COMMANDS = $CONFIG_COMMANDS
23273   $ $0 $@
23274
23275 _CSEOF
23276 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23277 echo >&5
23278 _ACEOF
23279
23280 # Files that config.status was made for.
23281 if test -n "$ac_config_files"; then
23282   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23283 fi
23284
23285 if test -n "$ac_config_headers"; then
23286   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23287 fi
23288
23289 if test -n "$ac_config_links"; then
23290   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23291 fi
23292
23293 if test -n "$ac_config_commands"; then
23294   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23295 fi
23296
23297 cat >>$CONFIG_STATUS <<\_ACEOF
23298
23299 ac_cs_usage="\
23300 \`$as_me' instantiates files from templates according to the
23301 current configuration.
23302
23303 Usage: $0 [OPTIONS] [FILE]...
23304
23305   -h, --help       print this help, then exit
23306   -V, --version    print version number, then exit
23307   -q, --quiet      do not print progress messages
23308   -d, --debug      don't remove temporary files
23309       --recheck    update $as_me by reconfiguring in the same conditions
23310   --file=FILE[:TEMPLATE]
23311                    instantiate the configuration file FILE
23312   --header=FILE[:TEMPLATE]
23313                    instantiate the configuration header FILE
23314
23315 Configuration files:
23316 $config_files
23317
23318 Configuration headers:
23319 $config_headers
23320
23321 Configuration commands:
23322 $config_commands
23323
23324 Report bugs to <bug-autoconf@gnu.org>."
23325 _ACEOF
23326
23327 cat >>$CONFIG_STATUS <<_ACEOF
23328 ac_cs_version="\\
23329 [LLVM] config.status [1.0]
23330 configured by $0, generated by GNU Autoconf 2.57,
23331   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23332
23333 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23334 Free Software Foundation, Inc.
23335 This config.status script is free software; the Free Software Foundation
23336 gives unlimited permission to copy, distribute and modify it."
23337 srcdir=$srcdir
23338 INSTALL="$INSTALL"
23339 _ACEOF
23340
23341 cat >>$CONFIG_STATUS <<\_ACEOF
23342 # If no file are specified by the user, then we need to provide default
23343 # value.  By we need to know if files were specified by the user.
23344 ac_need_defaults=:
23345 while test $# != 0
23346 do
23347   case $1 in
23348   --*=*)
23349     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23350     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23351     ac_shift=:
23352     ;;
23353   -*)
23354     ac_option=$1
23355     ac_optarg=$2
23356     ac_shift=shift
23357     ;;
23358   *) # This is not an option, so the user has probably given explicit
23359      # arguments.
23360      ac_option=$1
23361      ac_need_defaults=false;;
23362   esac
23363
23364   case $ac_option in
23365   # Handling of the options.
23366 _ACEOF
23367 cat >>$CONFIG_STATUS <<\_ACEOF
23368   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23369     ac_cs_recheck=: ;;
23370   --version | --vers* | -V )
23371     echo "$ac_cs_version"; exit 0 ;;
23372   --he | --h)
23373     # Conflict between --help and --header
23374     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23375 Try \`$0 --help' for more information." >&5
23376 echo "$as_me: error: ambiguous option: $1
23377 Try \`$0 --help' for more information." >&2;}
23378    { (exit 1); exit 1; }; };;
23379   --help | --hel | -h )
23380     echo "$ac_cs_usage"; exit 0 ;;
23381   --debug | --d* | -d )
23382     debug=: ;;
23383   --file | --fil | --fi | --f )
23384     $ac_shift
23385     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23386     ac_need_defaults=false;;
23387   --header | --heade | --head | --hea )
23388     $ac_shift
23389     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23390     ac_need_defaults=false;;
23391   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23392   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23393     ac_cs_silent=: ;;
23394
23395   # This is an error.
23396   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23397 Try \`$0 --help' for more information." >&5
23398 echo "$as_me: error: unrecognized option: $1
23399 Try \`$0 --help' for more information." >&2;}
23400    { (exit 1); exit 1; }; } ;;
23401
23402   *) ac_config_targets="$ac_config_targets $1" ;;
23403
23404   esac
23405   shift
23406 done
23407
23408 ac_configure_extra_args=
23409
23410 if $ac_cs_silent; then
23411   exec 6>/dev/null
23412   ac_configure_extra_args="$ac_configure_extra_args --silent"
23413 fi
23414
23415 _ACEOF
23416 cat >>$CONFIG_STATUS <<_ACEOF
23417 if \$ac_cs_recheck; then
23418   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23419   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23420 fi
23421
23422 _ACEOF
23423
23424 cat >>$CONFIG_STATUS <<_ACEOF
23425 #
23426 # INIT-COMMANDS section.
23427 #
23428
23429 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23544 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23545 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23546 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23547 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23548 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23549 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23550 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23551 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23552 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23553 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23554 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23555 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23556 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23557 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23558 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23559 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23560 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23561 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23562 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23563 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23564 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23565 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23566 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23567 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23568 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23569 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23570 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23571 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23572 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23573 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23574 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23575 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23576 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23577 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23578 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23579 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23580 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23581 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23582 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23583 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23584 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23585 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23586 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23587 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23588 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23589 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23590 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23591 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23592 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23593 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23594 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23595 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23596 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23597 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23598 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23599 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23600 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23601 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23602 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23603 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23604
23605 _ACEOF
23606
23607
23608
23609 cat >>$CONFIG_STATUS <<\_ACEOF
23610 for ac_config_target in $ac_config_targets
23611 do
23612   case "$ac_config_target" in
23613   # Handling of arguments.
23614   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23615   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23616   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23617   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23618   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23619   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23620   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23621   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23622   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23623   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23624   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23625   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23626   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23627   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23628   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23629   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23630   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23631   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23632   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23633   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23634   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23635   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23636   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23637   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23638   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23639   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23640   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23641   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23642   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23643   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23644   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23645   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23646   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23647   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23648   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23649   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23650   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23651   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23652   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23653   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23654   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23655   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23656   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23657   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23658   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23659   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23660   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23661   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23662   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23663   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23664   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23665   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23666   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23667   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23668   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23669   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23670   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23671   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23672   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23673   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23674   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23675   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23676   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23677   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23678   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23679   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23680   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23681   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23682   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23683   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23684   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23685   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23686   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23687   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23688   "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
23689   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23690   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23691   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23692   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23693   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23694   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23695   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23696   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23697   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23698   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23699   "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23700   "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
23701   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23702   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23703   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23704   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23705   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23706   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23707   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23708   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23709   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23710   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23711   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23712   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23713   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23714   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23715   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23716   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23717   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23718   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23719   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23720   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23721   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23722   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23723   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23724   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23725   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23726   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23727   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23728   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23729   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23730   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23731   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23732   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23733   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23734   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23735   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23736   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23737   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23738   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23739   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23740   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23741   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23742   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23743   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23744   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23745   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23746   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23747   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23748   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23749   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23750   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23751   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23752   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23753   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23754   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23755   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23756   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23757   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23758   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23759   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23760   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23761   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23762   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23763   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23764   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23765   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23766   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23767   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23768   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23769   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23770   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23771   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23772   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23773   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23774   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23775   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23776   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23777   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23778   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23779   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23780   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23781   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23782   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23783   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23784   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23785   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23786   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23787   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23788   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23789   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23790   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23791   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23792 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23793    { (exit 1); exit 1; }; };;
23794   esac
23795 done
23796
23797 # If the user did not use the arguments to specify the items to instantiate,
23798 # then the envvar interface is used.  Set only those that are not.
23799 # We use the long form for the default assignment because of an extremely
23800 # bizarre bug on SunOS 4.1.3.
23801 if $ac_need_defaults; then
23802   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23803   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23804   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23805 fi
23806
23807 # Have a temporary directory for convenience.  Make it in the build tree
23808 # simply because there is no reason to put it here, and in addition,
23809 # creating and moving files from /tmp can sometimes cause problems.
23810 # Create a temporary directory, and hook for its removal unless debugging.
23811 $debug ||
23812 {
23813   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23814   trap '{ (exit 1); exit 1; }' 1 2 13 15
23815 }
23816
23817 # Create a (secure) tmp directory for tmp files.
23818
23819 {
23820   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23821   test -n "$tmp" && test -d "$tmp"
23822 }  ||
23823 {
23824   tmp=./confstat$$-$RANDOM
23825   (umask 077 && mkdir $tmp)
23826 } ||
23827 {
23828    echo "$me: cannot create a temporary directory in ." >&2
23829    { (exit 1); exit 1; }
23830 }
23831
23832 _ACEOF
23833
23834 cat >>$CONFIG_STATUS <<_ACEOF
23835
23836 #
23837 # CONFIG_FILES section.
23838 #
23839
23840 # No need to generate the scripts if there are no CONFIG_FILES.
23841 # This happens for instance when ./config.status config.h
23842 if test -n "\$CONFIG_FILES"; then
23843   # Protect against being on the right side of a sed subst in config.status.
23844   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23845    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23846 s,@SHELL@,$SHELL,;t t
23847 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23848 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23849 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23850 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23851 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23852 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23853 s,@exec_prefix@,$exec_prefix,;t t
23854 s,@prefix@,$prefix,;t t
23855 s,@program_transform_name@,$program_transform_name,;t t
23856 s,@bindir@,$bindir,;t t
23857 s,@sbindir@,$sbindir,;t t
23858 s,@libexecdir@,$libexecdir,;t t
23859 s,@datadir@,$datadir,;t t
23860 s,@sysconfdir@,$sysconfdir,;t t
23861 s,@sharedstatedir@,$sharedstatedir,;t t
23862 s,@localstatedir@,$localstatedir,;t t
23863 s,@libdir@,$libdir,;t t
23864 s,@includedir@,$includedir,;t t
23865 s,@oldincludedir@,$oldincludedir,;t t
23866 s,@infodir@,$infodir,;t t
23867 s,@mandir@,$mandir,;t t
23868 s,@build_alias@,$build_alias,;t t
23869 s,@host_alias@,$host_alias,;t t
23870 s,@target_alias@,$target_alias,;t t
23871 s,@DEFS@,$DEFS,;t t
23872 s,@ECHO_C@,$ECHO_C,;t t
23873 s,@ECHO_N@,$ECHO_N,;t t
23874 s,@ECHO_T@,$ECHO_T,;t t
23875 s,@LIBS@,$LIBS,;t t
23876 s,@subdirs@,$subdirs,;t t
23877 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23878 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23879 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23880 s,@build@,$build,;t t
23881 s,@build_cpu@,$build_cpu,;t t
23882 s,@build_vendor@,$build_vendor,;t t
23883 s,@build_os@,$build_os,;t t
23884 s,@host@,$host,;t t
23885 s,@host_cpu@,$host_cpu,;t t
23886 s,@host_vendor@,$host_vendor,;t t
23887 s,@host_os@,$host_os,;t t
23888 s,@target@,$target,;t t
23889 s,@target_cpu@,$target_cpu,;t t
23890 s,@target_vendor@,$target_vendor,;t t
23891 s,@target_os@,$target_os,;t t
23892 s,@OS@,$OS,;t t
23893 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23894 s,@ARCH@,$ARCH,;t t
23895 s,@CXX@,$CXX,;t t
23896 s,@CXXFLAGS@,$CXXFLAGS,;t t
23897 s,@LDFLAGS@,$LDFLAGS,;t t
23898 s,@CPPFLAGS@,$CPPFLAGS,;t t
23899 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23900 s,@EXEEXT@,$EXEEXT,;t t
23901 s,@OBJEXT@,$OBJEXT,;t t
23902 s,@CC@,$CC,;t t
23903 s,@CFLAGS@,$CFLAGS,;t t
23904 s,@ac_ct_CC@,$ac_ct_CC,;t t
23905 s,@CPP@,$CPP,;t t
23906 s,@ifGNUmake@,$ifGNUmake,;t t
23907 s,@LEX@,$LEX,;t t
23908 s,@LEXLIB@,$LEXLIB,;t t
23909 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23910 s,@YACC@,$YACC,;t t
23911 s,@EGREP@,$EGREP,;t t
23912 s,@LN_S@,$LN_S,;t t
23913 s,@ECHO@,$ECHO,;t t
23914 s,@AR@,$AR,;t t
23915 s,@ac_ct_AR@,$ac_ct_AR,;t t
23916 s,@RANLIB@,$RANLIB,;t t
23917 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23918 s,@STRIP@,$STRIP,;t t
23919 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23920 s,@CXXCPP@,$CXXCPP,;t t
23921 s,@F77@,$F77,;t t
23922 s,@FFLAGS@,$FFLAGS,;t t
23923 s,@ac_ct_F77@,$ac_ct_F77,;t t
23924 s,@LIBTOOL@,$LIBTOOL,;t t
23925 s,@RPWD@,$RPWD,;t t
23926 s,@SED@,$SED,;t t
23927 s,@RM@,$RM,;t t
23928 s,@MKDIR@,$MKDIR,;t t
23929 s,@DATE@,$DATE,;t t
23930 s,@MV@,$MV,;t t
23931 s,@DOT@,$DOT,;t t
23932 s,@ETAGS@,$ETAGS,;t t
23933 s,@PYTHON@,$PYTHON,;t t
23934 s,@QMTEST@,$QMTEST,;t t
23935 s,@ALLOCA@,$ALLOCA,;t t
23936 s,@LIBOBJS@,$LIBOBJS,;t t
23937 s,@MMAP_FILE@,$MMAP_FILE,;t t
23938 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23939 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23940 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23941 s,@USE_SPEC@,$USE_SPEC,;t t
23942 s,@UPB@,$UPB,;t t
23943 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23944 s,@JIT@,$JIT,;t t
23945 s,@BCR@,$BCR,;t t
23946 s,@PAPIDIR@,$PAPIDIR,;t t
23947 s,@PURIFY@,$PURIFY,;t t
23948 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23949 CEOF
23950
23951 _ACEOF
23952
23953   cat >>$CONFIG_STATUS <<\_ACEOF
23954   # Split the substitutions into bite-sized pieces for seds with
23955   # small command number limits, like on Digital OSF/1 and HP-UX.
23956   ac_max_sed_lines=48
23957   ac_sed_frag=1 # Number of current file.
23958   ac_beg=1 # First line for current file.
23959   ac_end=$ac_max_sed_lines # Line after last line for current file.
23960   ac_more_lines=:
23961   ac_sed_cmds=
23962   while $ac_more_lines; do
23963     if test $ac_beg -gt 1; then
23964       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23965     else
23966       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23967     fi
23968     if test ! -s $tmp/subs.frag; then
23969       ac_more_lines=false
23970     else
23971       # The purpose of the label and of the branching condition is to
23972       # speed up the sed processing (if there are no `@' at all, there
23973       # is no need to browse any of the substitutions).
23974       # These are the two extra sed commands mentioned above.
23975       (echo ':t
23976   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23977       if test -z "$ac_sed_cmds"; then
23978         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23979       else
23980         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23981       fi
23982       ac_sed_frag=`expr $ac_sed_frag + 1`
23983       ac_beg=$ac_end
23984       ac_end=`expr $ac_end + $ac_max_sed_lines`
23985     fi
23986   done
23987   if test -z "$ac_sed_cmds"; then
23988     ac_sed_cmds=cat
23989   fi
23990 fi # test -n "$CONFIG_FILES"
23991
23992 _ACEOF
23993 cat >>$CONFIG_STATUS <<\_ACEOF
23994 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23995   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23996   case $ac_file in
23997   - | *:- | *:-:* ) # input from stdin
23998         cat >$tmp/stdin
23999         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24000         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24001   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24002         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24003   * )   ac_file_in=$ac_file.in ;;
24004   esac
24005
24006   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24007   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24008 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24009          X"$ac_file" : 'X\(//\)[^/]' \| \
24010          X"$ac_file" : 'X\(//\)$' \| \
24011          X"$ac_file" : 'X\(/\)' \| \
24012          .     : '\(.\)' 2>/dev/null ||
24013 echo X"$ac_file" |
24014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24015           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24016           /^X\(\/\/\)$/{ s//\1/; q; }
24017           /^X\(\/\).*/{ s//\1/; q; }
24018           s/.*/./; q'`
24019   { if $as_mkdir_p; then
24020     mkdir -p "$ac_dir"
24021   else
24022     as_dir="$ac_dir"
24023     as_dirs=
24024     while test ! -d "$as_dir"; do
24025       as_dirs="$as_dir $as_dirs"
24026       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24028          X"$as_dir" : 'X\(//\)[^/]' \| \
24029          X"$as_dir" : 'X\(//\)$' \| \
24030          X"$as_dir" : 'X\(/\)' \| \
24031          .     : '\(.\)' 2>/dev/null ||
24032 echo X"$as_dir" |
24033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24034           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24035           /^X\(\/\/\)$/{ s//\1/; q; }
24036           /^X\(\/\).*/{ s//\1/; q; }
24037           s/.*/./; q'`
24038     done
24039     test ! -n "$as_dirs" || mkdir $as_dirs
24040   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24041 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24042    { (exit 1); exit 1; }; }; }
24043
24044   ac_builddir=.
24045
24046 if test "$ac_dir" != .; then
24047   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24048   # A "../" for each directory in $ac_dir_suffix.
24049   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24050 else
24051   ac_dir_suffix= ac_top_builddir=
24052 fi
24053
24054 case $srcdir in
24055   .)  # No --srcdir option.  We are building in place.
24056     ac_srcdir=.
24057     if test -z "$ac_top_builddir"; then
24058        ac_top_srcdir=.
24059     else
24060        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24061     fi ;;
24062   [\\/]* | ?:[\\/]* )  # Absolute path.
24063     ac_srcdir=$srcdir$ac_dir_suffix;
24064     ac_top_srcdir=$srcdir ;;
24065   *) # Relative path.
24066     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24067     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24068 esac
24069 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24070 # absolute.
24071 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24072 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24073 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24074 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24075
24076
24077   case $INSTALL in
24078   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24079   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24080   esac
24081
24082   if test x"$ac_file" != x-; then
24083     { echo "$as_me:$LINENO: creating $ac_file" >&5
24084 echo "$as_me: creating $ac_file" >&6;}
24085     rm -f "$ac_file"
24086   fi
24087   # Let's still pretend it is `configure' which instantiates (i.e., don't
24088   # use $as_me), people would be surprised to read:
24089   #    /* config.h.  Generated by config.status.  */
24090   if test x"$ac_file" = x-; then
24091     configure_input=
24092   else
24093     configure_input="$ac_file.  "
24094   fi
24095   configure_input=$configure_input"Generated from `echo $ac_file_in |
24096                                      sed 's,.*/,,'` by configure."
24097
24098   # First look for the input files in the build tree, otherwise in the
24099   # src tree.
24100   ac_file_inputs=`IFS=:
24101     for f in $ac_file_in; do
24102       case $f in
24103       -) echo $tmp/stdin ;;
24104       [\\/$]*)
24105          # Absolute (can't be DOS-style, as IFS=:)
24106          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24107 echo "$as_me: error: cannot find input file: $f" >&2;}
24108    { (exit 1); exit 1; }; }
24109          echo $f;;
24110       *) # Relative
24111          if test -f "$f"; then
24112            # Build tree
24113            echo $f
24114          elif test -f "$srcdir/$f"; then
24115            # Source tree
24116            echo $srcdir/$f
24117          else
24118            # /dev/null tree
24119            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24120 echo "$as_me: error: cannot find input file: $f" >&2;}
24121    { (exit 1); exit 1; }; }
24122          fi;;
24123       esac
24124     done` || { (exit 1); exit 1; }
24125 _ACEOF
24126 cat >>$CONFIG_STATUS <<_ACEOF
24127   sed "$ac_vpsub
24128 $extrasub
24129 _ACEOF
24130 cat >>$CONFIG_STATUS <<\_ACEOF
24131 :t
24132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24133 s,@configure_input@,$configure_input,;t t
24134 s,@srcdir@,$ac_srcdir,;t t
24135 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24136 s,@top_srcdir@,$ac_top_srcdir,;t t
24137 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24138 s,@builddir@,$ac_builddir,;t t
24139 s,@abs_builddir@,$ac_abs_builddir,;t t
24140 s,@top_builddir@,$ac_top_builddir,;t t
24141 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24142 s,@INSTALL@,$ac_INSTALL,;t t
24143 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24144   rm -f $tmp/stdin
24145   if test x"$ac_file" != x-; then
24146     mv $tmp/out $ac_file
24147   else
24148     cat $tmp/out
24149     rm -f $tmp/out
24150   fi
24151
24152 done
24153 _ACEOF
24154 cat >>$CONFIG_STATUS <<\_ACEOF
24155
24156 #
24157 # CONFIG_HEADER section.
24158 #
24159
24160 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24161 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24162 #
24163 # ac_d sets the value in "#define NAME VALUE" lines.
24164 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24165 ac_dB='[        ].*$,\1#\2'
24166 ac_dC=' '
24167 ac_dD=',;t'
24168 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24169 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24170 ac_uB='$,\1#\2define\3'
24171 ac_uC=' '
24172 ac_uD=',;t'
24173
24174 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24175   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24176   case $ac_file in
24177   - | *:- | *:-:* ) # input from stdin
24178         cat >$tmp/stdin
24179         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24180         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24181   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24182         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24183   * )   ac_file_in=$ac_file.in ;;
24184   esac
24185
24186   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24187 echo "$as_me: creating $ac_file" >&6;}
24188
24189   # First look for the input files in the build tree, otherwise in the
24190   # src tree.
24191   ac_file_inputs=`IFS=:
24192     for f in $ac_file_in; do
24193       case $f in
24194       -) echo $tmp/stdin ;;
24195       [\\/$]*)
24196          # Absolute (can't be DOS-style, as IFS=:)
24197          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24198 echo "$as_me: error: cannot find input file: $f" >&2;}
24199    { (exit 1); exit 1; }; }
24200          echo $f;;
24201       *) # Relative
24202          if test -f "$f"; then
24203            # Build tree
24204            echo $f
24205          elif test -f "$srcdir/$f"; then
24206            # Source tree
24207            echo $srcdir/$f
24208          else
24209            # /dev/null tree
24210            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24211 echo "$as_me: error: cannot find input file: $f" >&2;}
24212    { (exit 1); exit 1; }; }
24213          fi;;
24214       esac
24215     done` || { (exit 1); exit 1; }
24216   # Remove the trailing spaces.
24217   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24218
24219 _ACEOF
24220
24221 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24222 # `conftest.undefs', that substitutes the proper values into
24223 # config.h.in to produce config.h.  The first handles `#define'
24224 # templates, and the second `#undef' templates.
24225 # And first: Protect against being on the right side of a sed subst in
24226 # config.status.  Protect against being in an unquoted here document
24227 # in config.status.
24228 rm -f conftest.defines conftest.undefs
24229 # Using a here document instead of a string reduces the quoting nightmare.
24230 # Putting comments in sed scripts is not portable.
24231 #
24232 # `end' is used to avoid that the second main sed command (meant for
24233 # 0-ary CPP macros) applies to n-ary macro definitions.
24234 # See the Autoconf documentation for `clear'.
24235 cat >confdef2sed.sed <<\_ACEOF
24236 s/[\\&,]/\\&/g
24237 s,[\\$`],\\&,g
24238 t clear
24239 : clear
24240 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24241 t end
24242 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24243 : end
24244 _ACEOF
24245 # If some macros were called several times there might be several times
24246 # the same #defines, which is useless.  Nevertheless, we may not want to
24247 # sort them, since we want the *last* AC-DEFINE to be honored.
24248 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24249 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24250 rm -f confdef2sed.sed
24251
24252 # This sed command replaces #undef with comments.  This is necessary, for
24253 # example, in the case of _POSIX_SOURCE, which is predefined and required
24254 # on some systems where configure will not decide to define it.
24255 cat >>conftest.undefs <<\_ACEOF
24256 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24257 _ACEOF
24258
24259 # Break up conftest.defines because some shells have a limit on the size
24260 # of here documents, and old seds have small limits too (100 cmds).
24261 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24262 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24263 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24264 echo '  :' >>$CONFIG_STATUS
24265 rm -f conftest.tail
24266 while grep . conftest.defines >/dev/null
24267 do
24268   # Write a limited-size here document to $tmp/defines.sed.
24269   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24270   # Speed up: don't consider the non `#define' lines.
24271   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24272   # Work around the forget-to-reset-the-flag bug.
24273   echo 't clr' >>$CONFIG_STATUS
24274   echo ': clr' >>$CONFIG_STATUS
24275   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24276   echo 'CEOF
24277   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24278   rm -f $tmp/in
24279   mv $tmp/out $tmp/in
24280 ' >>$CONFIG_STATUS
24281   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24282   rm -f conftest.defines
24283   mv conftest.tail conftest.defines
24284 done
24285 rm -f conftest.defines
24286 echo '  fi # grep' >>$CONFIG_STATUS
24287 echo >>$CONFIG_STATUS
24288
24289 # Break up conftest.undefs because some shells have a limit on the size
24290 # of here documents, and old seds have small limits too (100 cmds).
24291 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24292 rm -f conftest.tail
24293 while grep . conftest.undefs >/dev/null
24294 do
24295   # Write a limited-size here document to $tmp/undefs.sed.
24296   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24297   # Speed up: don't consider the non `#undef'
24298   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24299   # Work around the forget-to-reset-the-flag bug.
24300   echo 't clr' >>$CONFIG_STATUS
24301   echo ': clr' >>$CONFIG_STATUS
24302   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24303   echo 'CEOF
24304   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24305   rm -f $tmp/in
24306   mv $tmp/out $tmp/in
24307 ' >>$CONFIG_STATUS
24308   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24309   rm -f conftest.undefs
24310   mv conftest.tail conftest.undefs
24311 done
24312 rm -f conftest.undefs
24313
24314 cat >>$CONFIG_STATUS <<\_ACEOF
24315   # Let's still pretend it is `configure' which instantiates (i.e., don't
24316   # use $as_me), people would be surprised to read:
24317   #    /* config.h.  Generated by config.status.  */
24318   if test x"$ac_file" = x-; then
24319     echo "/* Generated by configure.  */" >$tmp/config.h
24320   else
24321     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24322   fi
24323   cat $tmp/in >>$tmp/config.h
24324   rm -f $tmp/in
24325   if test x"$ac_file" != x-; then
24326     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24327       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24328 echo "$as_me: $ac_file is unchanged" >&6;}
24329     else
24330       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24332          X"$ac_file" : 'X\(//\)[^/]' \| \
24333          X"$ac_file" : 'X\(//\)$' \| \
24334          X"$ac_file" : 'X\(/\)' \| \
24335          .     : '\(.\)' 2>/dev/null ||
24336 echo X"$ac_file" |
24337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24338           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24339           /^X\(\/\/\)$/{ s//\1/; q; }
24340           /^X\(\/\).*/{ s//\1/; q; }
24341           s/.*/./; q'`
24342       { if $as_mkdir_p; then
24343     mkdir -p "$ac_dir"
24344   else
24345     as_dir="$ac_dir"
24346     as_dirs=
24347     while test ! -d "$as_dir"; do
24348       as_dirs="$as_dir $as_dirs"
24349       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24351          X"$as_dir" : 'X\(//\)[^/]' \| \
24352          X"$as_dir" : 'X\(//\)$' \| \
24353          X"$as_dir" : 'X\(/\)' \| \
24354          .     : '\(.\)' 2>/dev/null ||
24355 echo X"$as_dir" |
24356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24357           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24358           /^X\(\/\/\)$/{ s//\1/; q; }
24359           /^X\(\/\).*/{ s//\1/; q; }
24360           s/.*/./; q'`
24361     done
24362     test ! -n "$as_dirs" || mkdir $as_dirs
24363   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24364 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24365    { (exit 1); exit 1; }; }; }
24366
24367       rm -f $ac_file
24368       mv $tmp/config.h $ac_file
24369     fi
24370   else
24371     cat $tmp/config.h
24372     rm -f $tmp/config.h
24373   fi
24374 done
24375 _ACEOF
24376 cat >>$CONFIG_STATUS <<\_ACEOF
24377
24378 #
24379 # CONFIG_COMMANDS section.
24380 #
24381 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24382   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24383   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24384   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24385 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24386          X"$ac_dest" : 'X\(//\)[^/]' \| \
24387          X"$ac_dest" : 'X\(//\)$' \| \
24388          X"$ac_dest" : 'X\(/\)' \| \
24389          .     : '\(.\)' 2>/dev/null ||
24390 echo X"$ac_dest" |
24391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24392           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24393           /^X\(\/\/\)$/{ s//\1/; q; }
24394           /^X\(\/\).*/{ s//\1/; q; }
24395           s/.*/./; q'`
24396   ac_builddir=.
24397
24398 if test "$ac_dir" != .; then
24399   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24400   # A "../" for each directory in $ac_dir_suffix.
24401   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24402 else
24403   ac_dir_suffix= ac_top_builddir=
24404 fi
24405
24406 case $srcdir in
24407   .)  # No --srcdir option.  We are building in place.
24408     ac_srcdir=.
24409     if test -z "$ac_top_builddir"; then
24410        ac_top_srcdir=.
24411     else
24412        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24413     fi ;;
24414   [\\/]* | ?:[\\/]* )  # Absolute path.
24415     ac_srcdir=$srcdir$ac_dir_suffix;
24416     ac_top_srcdir=$srcdir ;;
24417   *) # Relative path.
24418     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24419     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24420 esac
24421 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24422 # absolute.
24423 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24424 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24425 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24426 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24427
24428
24429   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24430 echo "$as_me: executing $ac_dest commands" >&6;}
24431   case $ac_dest in
24432     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24433     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24434     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24435     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24436     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24437     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24438     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24439     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24440     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24441     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24442     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24443     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24444     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24445     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24446     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24447     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24448     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24449     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24450     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24451     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24452     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24453     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24454     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24455     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24456     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24457     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24458     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24459     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24460     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24461     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24462     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24463     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24464     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24465     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24466     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24467     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24468     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24469     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24470     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24471     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24472     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24473     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24474     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24475     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24476     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24477     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24478     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24479     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24480     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24481     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24482     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24483     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24484     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24485     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24486     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24487     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24488     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24489     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24490     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24491     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24492     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24493     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24494     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24495     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24496     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24497     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24498     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24499     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24500     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24501     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24502     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24503     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 ;;
24504     test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
24505     test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/177.mesa/Makefile test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ;;
24506     test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24507     test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24508     test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24509     test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24510     test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24511     test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24512     test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24513     test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24514     test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24515     test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
24516     test/Programs/External/SPEC/CINT2000/252.eon/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/252.eon/Makefile test/Programs/External/SPEC/CINT2000/252.eon/Makefile ;;
24517     test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ;;
24518     test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24519     test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24520     test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24521     test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24522     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24523     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24524     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24525     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24526     test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
24527     test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24528     test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
24529     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24530     test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24531     test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24532     test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24533     test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24534     test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24535     test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24536     test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24537     test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24538     test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24539     test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24540     test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24541     test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24542     test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24543     test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24544     test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24545     test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24546     test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24547     test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24548     test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24549     test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24550     test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24551     test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24552     test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
24553     test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
24554     test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24555     test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24556     test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24557     test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24558     test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24559     test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
24560     test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
24561     test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
24562     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24563     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24564     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24565     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24566     test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24567     test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24568     test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24569     test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
24570     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24571     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24572     test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
24573     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24574     test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24575     test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
24576     test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
24577     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24578     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24579     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24580     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24581     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24582     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24583     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24584     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24585     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24586     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24587     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24588     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24589     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24590     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24591     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24592     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24593     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24594     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24595     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24596     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24597     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24598     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24599     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24600     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24601     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24602     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24603     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24604     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24605     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24606     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24607   esac
24608 done
24609 _ACEOF
24610
24611 cat >>$CONFIG_STATUS <<\_ACEOF
24612
24613 { (exit 0); exit 0; }
24614 _ACEOF
24615 chmod +x $CONFIG_STATUS
24616 ac_clean_files=$ac_clean_files_save
24617
24618
24619 # configure is writing to config.log, and then calls config.status.
24620 # config.status does its own redirection, appending to config.log.
24621 # Unfortunately, on DOS this fails, as config.log is still kept open
24622 # by configure, so config.status won't be able to write to it; its
24623 # output is simply discarded.  So we exec the FD to /dev/null,
24624 # effectively closing config.log, so it can be properly (re)opened and
24625 # appended to by config.status.  When coming back to configure, we
24626 # need to make the FD available again.
24627 if test "$no_create" != yes; then
24628   ac_cs_success=:
24629   ac_config_status_args=
24630   test "$silent" = yes &&
24631     ac_config_status_args="$ac_config_status_args --quiet"
24632   exec 5>/dev/null
24633   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24634   exec 5>>config.log
24635   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24636   # would make configure fail if this is the last instruction.
24637   $ac_cs_success || { (exit 1); exit 1; }
24638 fi
24639
24640 #
24641 # CONFIG_SUBDIRS section.
24642 #
24643 if test "$no_recursion" != yes; then
24644
24645   # Remove --cache-file and --srcdir arguments so they do not pile up.
24646   ac_sub_configure_args=
24647   ac_prev=
24648   for ac_arg in $ac_configure_args; do
24649     if test -n "$ac_prev"; then
24650       ac_prev=
24651       continue
24652     fi
24653     case $ac_arg in
24654     -cache-file | --cache-file | --cache-fil | --cache-fi \
24655     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24656       ac_prev=cache_file ;;
24657     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24658     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24659     | --c=*)
24660       ;;
24661     --config-cache | -C)
24662       ;;
24663     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24664       ac_prev=srcdir ;;
24665     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24666       ;;
24667     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24668       ac_prev=prefix ;;
24669     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24670       ;;
24671     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24672     esac
24673   done
24674
24675   # Always prepend --prefix to ensure using the same prefix
24676   # in subdir configurations.
24677   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24678
24679   ac_popdir=`pwd`
24680   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24681
24682     # Do not complain, so a configure script can configure whichever
24683     # parts of a large source tree are present.
24684     test -d $srcdir/$ac_dir || continue
24685
24686     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24687 echo "$as_me: configuring in $ac_dir" >&6;}
24688     { if $as_mkdir_p; then
24689     mkdir -p "$ac_dir"
24690   else
24691     as_dir="$ac_dir"
24692     as_dirs=
24693     while test ! -d "$as_dir"; do
24694       as_dirs="$as_dir $as_dirs"
24695       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24697          X"$as_dir" : 'X\(//\)[^/]' \| \
24698          X"$as_dir" : 'X\(//\)$' \| \
24699          X"$as_dir" : 'X\(/\)' \| \
24700          .     : '\(.\)' 2>/dev/null ||
24701 echo X"$as_dir" |
24702     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24703           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24704           /^X\(\/\/\)$/{ s//\1/; q; }
24705           /^X\(\/\).*/{ s//\1/; q; }
24706           s/.*/./; q'`
24707     done
24708     test ! -n "$as_dirs" || mkdir $as_dirs
24709   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24710 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24711    { (exit 1); exit 1; }; }; }
24712
24713     ac_builddir=.
24714
24715 if test "$ac_dir" != .; then
24716   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24717   # A "../" for each directory in $ac_dir_suffix.
24718   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24719 else
24720   ac_dir_suffix= ac_top_builddir=
24721 fi
24722
24723 case $srcdir in
24724   .)  # No --srcdir option.  We are building in place.
24725     ac_srcdir=.
24726     if test -z "$ac_top_builddir"; then
24727        ac_top_srcdir=.
24728     else
24729        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24730     fi ;;
24731   [\\/]* | ?:[\\/]* )  # Absolute path.
24732     ac_srcdir=$srcdir$ac_dir_suffix;
24733     ac_top_srcdir=$srcdir ;;
24734   *) # Relative path.
24735     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24736     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24737 esac
24738 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24739 # absolute.
24740 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24741 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24742 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24743 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24744
24745
24746     cd $ac_dir
24747
24748     # Check for guested configure; otherwise get Cygnus style configure.
24749     if test -f $ac_srcdir/configure.gnu; then
24750       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24751     elif test -f $ac_srcdir/configure; then
24752       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24753     elif test -f $ac_srcdir/configure.in; then
24754       ac_sub_configure=$ac_configure
24755     else
24756       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24757 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24758       ac_sub_configure=
24759     fi
24760
24761     # The recursion is here.
24762     if test -n "$ac_sub_configure"; then
24763       # Make the cache file name correct relative to the subdirectory.
24764       case $cache_file in
24765       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24766       *) # Relative path.
24767         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24768       esac
24769
24770       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24771 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24772       # The eval makes quoting arguments work.
24773       eval $ac_sub_configure $ac_sub_configure_args \
24774            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24775         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24776 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24777    { (exit 1); exit 1; }; }
24778     fi
24779
24780     cd $ac_popdir
24781   done
24782 fi
24783