Added the CXXTest test class.
[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 PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR 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 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-spec             Location of SPEC benchmarks
1051   --with-llvmgccdir       Location of LLVM GCC front-end
1052   --with-bcrepos          Location of Bytecode Repository
1053   --with-papi             Location of PAPI
1054   --with-purify           Location of purify program
1055
1056 Some influential environment variables:
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   CPP         C preprocessor
1066   CXXCPP      C++ preprocessor
1067   F77         Fortran 77 compiler command
1068   FFLAGS      Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108 # absolute.
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114     cd $ac_dir
1115     # Check for guested configure; otherwise get Cygnus style configure.
1116     if test -f $ac_srcdir/configure.gnu; then
1117       echo
1118       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119     elif test -f $ac_srcdir/configure; then
1120       echo
1121       $SHELL $ac_srcdir/configure  --help=recursive
1122     elif test -f $ac_srcdir/configure.ac ||
1123            test -f $ac_srcdir/configure.in; then
1124       echo
1125       $ac_configure --help
1126     else
1127       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128     fi
1129     cd $ac_popdir
1130   done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135   cat <<\_ACEOF
1136 [LLVM] configure [1.0]
1137 generated by GNU Autoconf 2.57
1138
1139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144   exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by [LLVM] $as_me [1.0], which was
1152 generated by GNU Autoconf 2.57.  Invocation command line was
1153
1154   $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185   IFS=$as_save_IFS
1186   test -z "$as_dir" && as_dir=.
1187   echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214   for ac_arg
1215   do
1216     case $ac_arg in
1217     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219     | -silent | --silent | --silen | --sile | --sil)
1220       continue ;;
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     esac
1224     case $ac_pass in
1225     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226     2)
1227       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228       if test $ac_must_keep_next = true; then
1229         ac_must_keep_next=false # Got value, back to normal.
1230       else
1231         case $ac_arg in
1232           *=* | --config-cache | -C | -disable-* | --disable-* \
1233           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235           | -with-* | --with-* | -without-* | --without-* | --x)
1236             case "$ac_configure_args0 " in
1237               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238             esac
1239             ;;
1240           -* ) ac_must_keep_next=true ;;
1241         esac
1242       fi
1243       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244       # Get rid of the leading space.
1245       ac_sep=" "
1246       ;;
1247     esac
1248   done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log.  We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259   # Save into config.log some information that might help in debugging.
1260   {
1261     echo
1262
1263     cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268     echo
1269     # The following way of writing the cache mishandles newlines in values,
1270 {
1271   (set) 2>&1 |
1272     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273     *ac_space=\ *)
1274       sed -n \
1275         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277       ;;
1278     *)
1279       sed -n \
1280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281       ;;
1282     esac;
1283 }
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291     echo
1292     for ac_var in $ac_subst_vars
1293     do
1294       eval ac_val=$`echo $ac_var`
1295       echo "$ac_var='"'"'$ac_val'"'"'"
1296     done | sort
1297     echo
1298
1299     if test -n "$ac_subst_files"; then
1300       cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305       echo
1306       for ac_var in $ac_subst_files
1307       do
1308         eval ac_val=$`echo $ac_var`
1309         echo "$ac_var='"'"'$ac_val'"'"'"
1310       done | sort
1311       echo
1312     fi
1313
1314     if test -s confdefs.h; then
1315       cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320       echo
1321       sed "/^$/d" confdefs.h | sort
1322       echo
1323     fi
1324     test "$ac_signal" != 0 &&
1325       echo "$as_me: caught signal $ac_signal"
1326     echo "$as_me: exit $exit_status"
1327   } >&5
1328   rm -f core core.* *.core &&
1329   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330     exit $exit_status
1331      ' 0
1332 for ac_signal in 1 2 13 15; do
1333   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372   if test "x$prefix" != xNONE; then
1373     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374   else
1375     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376   fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379   if test -r "$ac_site_file"; then
1380     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382     sed 's/^/| /' "$ac_site_file" >&5
1383     . "$ac_site_file"
1384   fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388   # Some versions of bash will fail to source /dev/null (special
1389   # files actually), so we avoid doing that.
1390   if test -f "$cache_file"; then
1391     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393     case $cache_file in
1394       [\\/]* | ?:[\\/]* ) . $cache_file;;
1395       *)                      . ./$cache_file;;
1396     esac
1397   fi
1398 else
1399   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401   >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410   eval ac_new_set=\$ac_env_${ac_var}_set
1411   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412   eval ac_new_val="\$ac_env_${ac_var}_value"
1413   case $ac_old_set,$ac_new_set in
1414     set,)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,set)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,);;
1423     *)
1424       if test "x$ac_old_val" != "x$ac_new_val"; then
1425         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1428 echo "$as_me:   former value:  $ac_old_val" >&2;}
1429         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1430 echo "$as_me:   current value: $ac_new_val" >&2;}
1431         ac_cache_corrupted=:
1432       fi;;
1433   esac
1434   # Pass precious variables to config.status.
1435   if test "$ac_new_set" = set; then
1436     case $ac_new_val in
1437     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439     *) ac_arg=$ac_var=$ac_new_val ;;
1440     esac
1441     case " $ac_configure_args " in
1442       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1443       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444     esac
1445   fi
1446 done
1447 if $ac_cache_corrupted; then
1448   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1488 ac_aux_dir=
1489 for ac_dir in autoconf $srcdir/autoconf; do
1490   if test -f $ac_dir/install-sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install-sh -c"
1493     break
1494   elif test -f $ac_dir/install.sh; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/install.sh -c"
1497     break
1498   elif test -f $ac_dir/shtool; then
1499     ac_aux_dir=$ac_dir
1500     ac_install_sh="$ac_aux_dir/shtool install -c"
1501     break
1502   fi
1503 done
1504 if test -z "$ac_aux_dir"; then
1505   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513
1514 if test ${srcdir} != "."
1515 then
1516         if test -f ${srcdir}/include/Config/config.h
1517         then
1518                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1519 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520    { (exit 1); exit 1; }; }
1521         fi
1522 fi
1523
1524 if test -d ${srcdir}/projects/reopt
1525 then
1526
1527
1528 subdirs="$subdirs projects/reopt"
1529
1530 fi
1531
1532 if test -d ${srcdir}/projects/poolalloc
1533 then
1534
1535
1536 subdirs="$subdirs projects/poolalloc"
1537
1538 fi
1539
1540           ac_config_headers="$ac_config_headers include/Config/config.h"
1541
1542           ac_config_commands="$ac_config_commands Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands Makefile.common"
1546
1547
1548           ac_config_commands="$ac_config_commands Makefile.rules"
1549
1550
1551           ac_config_commands="$ac_config_commands lib/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1558
1559
1560           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1561
1562
1563           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1564
1565
1566           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1570
1571
1572           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1573
1574
1575           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands runtime/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1672
1673
1674           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1675
1676
1677           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1678
1679
1680           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1681
1682
1683           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Makefile"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Makefile.tests"
1690
1691
1692           ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1717
1718
1719           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1720
1721
1722           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1723
1724
1725           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1726
1727
1728           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1729
1730
1731           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1732
1733
1734           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1735
1736
1737           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1738
1739
1740           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1741
1742
1743           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1744
1745
1746           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1747
1748
1749           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1750
1751
1752           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1753
1754
1755           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1756
1757
1758           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1759
1760
1761           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1762
1763
1764           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1765
1766
1767           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1768
1769
1770           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1771
1772
1773           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1774
1775
1776           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1777
1778
1779           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1780
1781
1782           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1783
1784
1785           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1786
1787
1788           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1789
1790
1791           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1792
1793
1794           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1795
1796
1797           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1798
1799
1800           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1801
1802
1803           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1804
1805
1806           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1807
1808
1809           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1810
1811
1812           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1813
1814
1815           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1816
1817
1818           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1819
1820
1821           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1822
1823
1824           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1825
1826
1827           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1828
1829
1830           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1831
1832
1833           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1834
1835
1836           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1837
1838
1839           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1840
1841
1842           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1843
1844
1845           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1846
1847
1848           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1849
1850
1851           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1852
1853
1854           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1855
1856
1857           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1858
1859
1860           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1861
1862
1863           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1864
1865
1866           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1867
1868
1869           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1870
1871
1872           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1873
1874
1875           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1876
1877
1878           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1879
1880
1881           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1882
1883
1884           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1885
1886
1887           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1888
1889
1890           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1891
1892
1893           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1894
1895
1896           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1897
1898
1899           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1900
1901
1902           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1903
1904
1905           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1906
1907
1908           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1909
1910
1911           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1912
1913
1914           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1915
1916
1917           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1918
1919
1920           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1921
1922
1923           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1924
1925
1926           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1927
1928
1929           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1930
1931
1932           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1933
1934
1935           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1936
1937
1938           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1939
1940
1941           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1942
1943
1944           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1945
1946
1947           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1948
1949
1950           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1951
1952
1953           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1954
1955
1956           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1957
1958
1959           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1960
1961
1962           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1963
1964
1965           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1966
1967
1968           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1969
1970
1971           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1972
1973
1974           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1975
1976
1977           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1978
1979
1980           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/CompileFail/Makefile"
1981
1982
1983           ac_config_commands="$ac_config_commands tools/Makefile"
1984
1985
1986           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1987
1988
1989           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1990
1991
1992           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1993
1994
1995           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1996
1997
1998           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1999
2000
2001           ac_config_commands="$ac_config_commands tools/llc/Makefile"
2002
2003
2004           ac_config_commands="$ac_config_commands tools/llee/Makefile"
2005
2006
2007           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2008
2009
2010           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2011
2012
2013           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2014
2015
2016           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2017
2018
2019           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2020
2021
2022           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2023
2024
2025           ac_config_commands="$ac_config_commands www/docs/Makefile"
2026
2027
2028           ac_config_commands="$ac_config_commands projects/Makefile"
2029
2030
2031           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2032
2033
2034           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2035
2036
2037           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2038
2039
2040           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2041
2042
2043           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2044
2045
2046           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2047
2048
2049           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2050
2051
2052           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2053
2054
2055           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2056
2057
2058           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2059
2060
2061           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2062
2063
2064           ac_config_commands="$ac_config_commands support/Makefile"
2065
2066
2067           ac_config_commands="$ac_config_commands support/lib/Makefile"
2068
2069
2070           ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2071
2072
2073           ac_config_commands="$ac_config_commands support/tools/Makefile"
2074
2075
2076           ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2077
2078
2079           ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2080
2081
2082           ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2083
2084
2085
2086
2087 # Find a good install program.  We prefer a C program (faster),
2088 # so one script is as good as another.  But avoid the broken or
2089 # incompatible versions:
2090 # SysV /etc/install, /usr/sbin/install
2091 # SunOS /usr/etc/install
2092 # IRIX /sbin/install
2093 # AIX /bin/install
2094 # AmigaOS /C/install, which installs bootblocks on floppy discs
2095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2098 # ./install, which can be erroneously created by make from ./install.sh.
2099 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2100 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2101 if test -z "$INSTALL"; then
2102 if test "${ac_cv_path_install+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   # Account for people who put trailing slashes in PATH elements.
2111 case $as_dir/ in
2112   ./ | .// | /cC/* | \
2113   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2114   /usr/ucb/* ) ;;
2115   *)
2116     # OSF1 and SCO ODT 3.0 have their own names for install.
2117     # Don't use installbsd from OSF since it installs stuff as root
2118     # by default.
2119     for ac_prog in ginstall scoinst install; do
2120       for ac_exec_ext in '' $ac_executable_extensions; do
2121         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2122           if test $ac_prog = install &&
2123             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2124             # AIX install.  It has an incompatible calling convention.
2125             :
2126           elif test $ac_prog = install &&
2127             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2128             # program-specific install script used by HP pwplus--don't use.
2129             :
2130           else
2131             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2132             break 3
2133           fi
2134         fi
2135       done
2136     done
2137     ;;
2138 esac
2139 done
2140
2141
2142 fi
2143   if test "${ac_cv_path_install+set}" = set; then
2144     INSTALL=$ac_cv_path_install
2145   else
2146     # As a last resort, use the slow shell script.  We don't cache a
2147     # path for INSTALL within a source directory, because that will
2148     # break other packages using the cache if that directory is
2149     # removed, or if the path is relative.
2150     INSTALL=$ac_install_sh
2151   fi
2152 fi
2153 echo "$as_me:$LINENO: result: $INSTALL" >&5
2154 echo "${ECHO_T}$INSTALL" >&6
2155
2156 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2157 # It thinks the first close brace ends the variable substitution.
2158 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2159
2160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2161
2162 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2163
2164
2165 # Make sure we can run config.sub.
2166 $ac_config_sub sun4 >/dev/null 2>&1 ||
2167   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2168 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2169    { (exit 1); exit 1; }; }
2170
2171 echo "$as_me:$LINENO: checking build system type" >&5
2172 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2173 if test "${ac_cv_build+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   ac_cv_build_alias=$build_alias
2177 test -z "$ac_cv_build_alias" &&
2178   ac_cv_build_alias=`$ac_config_guess`
2179 test -z "$ac_cv_build_alias" &&
2180   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2181 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2182    { (exit 1); exit 1; }; }
2183 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2184   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2185 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2186    { (exit 1); exit 1; }; }
2187
2188 fi
2189 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2190 echo "${ECHO_T}$ac_cv_build" >&6
2191 build=$ac_cv_build
2192 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2193 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2194 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2195
2196
2197 echo "$as_me:$LINENO: checking host system type" >&5
2198 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2199 if test "${ac_cv_host+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   ac_cv_host_alias=$host_alias
2203 test -z "$ac_cv_host_alias" &&
2204   ac_cv_host_alias=$ac_cv_build_alias
2205 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2206   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2207 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2208    { (exit 1); exit 1; }; }
2209
2210 fi
2211 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2212 echo "${ECHO_T}$ac_cv_host" >&6
2213 host=$ac_cv_host
2214 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2215 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2216 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2217
2218
2219 echo "$as_me:$LINENO: checking target system type" >&5
2220 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2221 if test "${ac_cv_target+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   ac_cv_target_alias=$target_alias
2225 test "x$ac_cv_target_alias" = "x" &&
2226   ac_cv_target_alias=$ac_cv_host_alias
2227 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2228   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2229 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2230    { (exit 1); exit 1; }; }
2231
2232 fi
2233 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2234 echo "${ECHO_T}$ac_cv_target" >&6
2235 target=$ac_cv_target
2236 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2237 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2238 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2239
2240
2241 # The aliases save the names the user supplied, while $host etc.
2242 # will get canonicalized.
2243 test -n "$target_alias" &&
2244   test "$program_prefix$program_suffix$program_transform_name" = \
2245     NONENONEs,x,x, &&
2246   program_prefix=${target_alias}-
2247
2248 case $build in
2249         *i*86*)  OS=Linux
2250
2251                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2252
2253                  ;;
2254
2255         *sparc*) OS=SunOS
2256
2257                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2258
2259                  ;;
2260
2261         *)       OS=Unknown
2262
2263                  ;;
2264 esac
2265
2266 case $target in
2267         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2268
2269                           ;;
2270 esac
2271
2272 case $target in
2273         *i*86*)           ARCH=x86
2274
2275                           ;;
2276         *sparc*solaris*)  ARCH=Sparc
2277
2278                           ;;
2279 esac
2280
2281
2282 ac_ext=cc
2283 ac_cpp='$CXXCPP $CPPFLAGS'
2284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2287 if test -n "$ac_tool_prefix"; then
2288   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2289   do
2290     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2292 echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 if test "${ac_cv_prog_CXX+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   if test -n "$CXX"; then
2298   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303   IFS=$as_save_IFS
2304   test -z "$as_dir" && as_dir=.
2305   for ac_exec_ext in '' $ac_executable_extensions; do
2306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309     break 2
2310   fi
2311 done
2312 done
2313
2314 fi
2315 fi
2316 CXX=$ac_cv_prog_CXX
2317 if test -n "$CXX"; then
2318   echo "$as_me:$LINENO: result: $CXX" >&5
2319 echo "${ECHO_T}$CXX" >&6
2320 else
2321   echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2323 fi
2324
2325     test -n "$CXX" && break
2326   done
2327 fi
2328 if test -z "$CXX"; then
2329   ac_ct_CXX=$CXX
2330   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2331 do
2332   # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   if test -n "$ac_ct_CXX"; then
2340   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347   for ac_exec_ext in '' $ac_executable_extensions; do
2348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349     ac_cv_prog_ac_ct_CXX="$ac_prog"
2350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351     break 2
2352   fi
2353 done
2354 done
2355
2356 fi
2357 fi
2358 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2359 if test -n "$ac_ct_CXX"; then
2360   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2361 echo "${ECHO_T}$ac_ct_CXX" >&6
2362 else
2363   echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2365 fi
2366
2367   test -n "$ac_ct_CXX" && break
2368 done
2369 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2370
2371   CXX=$ac_ct_CXX
2372 fi
2373
2374
2375 # Provide some information about the compiler.
2376 echo "$as_me:$LINENO:" \
2377      "checking for C++ compiler version" >&5
2378 ac_compiler=`set X $ac_compile; echo $2`
2379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2380   (eval $ac_compiler --version </dev/null >&5) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }
2384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2385   (eval $ac_compiler -v </dev/null >&5) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }
2389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2390   (eval $ac_compiler -V </dev/null >&5) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }
2394
2395 cat >conftest.$ac_ext <<_ACEOF
2396 #line $LINENO "configure"
2397 /* confdefs.h.  */
2398 _ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h.  */
2402
2403 int
2404 main ()
2405 {
2406
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 ac_clean_files_save=$ac_clean_files
2412 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2413 # Try to create an executable without -o first, disregard a.out.
2414 # It will help us diagnose broken compilers, and finding out an intuition
2415 # of exeext.
2416 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2417 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2418 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2419 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2420   (eval $ac_link_default) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; then
2424   # Find the output, starting from the most likely.  This scheme is
2425 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2426 # resort.
2427
2428 # Be careful to initialize this variable, since it used to be cached.
2429 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2430 ac_cv_exeext=
2431 # b.out is created by i960 compilers.
2432 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2433 do
2434   test -f "$ac_file" || continue
2435   case $ac_file in
2436     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2437         ;;
2438     conftest.$ac_ext )
2439         # This is the source file.
2440         ;;
2441     [ab].out )
2442         # We found the default executable, but exeext='' is most
2443         # certainly right.
2444         break;;
2445     *.* )
2446         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447         # FIXME: I believe we export ac_cv_exeext for Libtool,
2448         # but it would be cool to find out if it's true.  Does anybody
2449         # maintain Libtool? --akim.
2450         export ac_cv_exeext
2451         break;;
2452     * )
2453         break;;
2454   esac
2455 done
2456 else
2457   echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: C++ compiler cannot create executables
2463 See \`config.log' for more details." >&2;}
2464    { (exit 77); exit 77; }; }
2465 fi
2466
2467 ac_exeext=$ac_cv_exeext
2468 echo "$as_me:$LINENO: result: $ac_file" >&5
2469 echo "${ECHO_T}$ac_file" >&6
2470
2471 # Check the compiler produces executables we can run.  If not, either
2472 # the compiler is broken, or we cross compile.
2473 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2474 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2475 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2476 # If not cross compiling, check that we can run a simple program.
2477 if test "$cross_compiling" != yes; then
2478   if { ac_try='./$ac_file'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; }; then
2484     cross_compiling=no
2485   else
2486     if test "$cross_compiling" = maybe; then
2487         cross_compiling=yes
2488     else
2489         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2490 If you meant to cross compile, use \`--host'.
2491 See \`config.log' for more details." >&5
2492 echo "$as_me: error: cannot run C++ compiled programs.
2493 If you meant to cross compile, use \`--host'.
2494 See \`config.log' for more details." >&2;}
2495    { (exit 1); exit 1; }; }
2496     fi
2497   fi
2498 fi
2499 echo "$as_me:$LINENO: result: yes" >&5
2500 echo "${ECHO_T}yes" >&6
2501
2502 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2503 ac_clean_files=$ac_clean_files_save
2504 # Check the compiler produces executables we can run.  If not, either
2505 # the compiler is broken, or we cross compile.
2506 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2507 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2508 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2509 echo "${ECHO_T}$cross_compiling" >&6
2510
2511 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2512 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2514   (eval $ac_link) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; then
2518   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2519 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2520 # work properly (i.e., refer to `conftest.exe'), while it won't with
2521 # `rm'.
2522 for ac_file in conftest.exe conftest conftest.*; do
2523   test -f "$ac_file" || continue
2524   case $ac_file in
2525     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2526     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2527           export ac_cv_exeext
2528           break;;
2529     * ) break;;
2530   esac
2531 done
2532 else
2533   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2534 See \`config.log' for more details." >&5
2535 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2536 See \`config.log' for more details." >&2;}
2537    { (exit 1); exit 1; }; }
2538 fi
2539
2540 rm -f conftest$ac_cv_exeext
2541 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2542 echo "${ECHO_T}$ac_cv_exeext" >&6
2543
2544 rm -f conftest.$ac_ext
2545 EXEEXT=$ac_cv_exeext
2546 ac_exeext=$EXEEXT
2547 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2548 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2549 if test "${ac_cv_objext+set}" = set; then
2550   echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552   cat >conftest.$ac_ext <<_ACEOF
2553 #line $LINENO "configure"
2554 /* confdefs.h.  */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h.  */
2559
2560 int
2561 main ()
2562 {
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.o conftest.obj
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570   (eval $ac_compile) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; then
2574   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2575   case $ac_file in
2576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2577     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2578        break;;
2579   esac
2580 done
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2588 See \`config.log' for more details." >&2;}
2589    { (exit 1); exit 1; }; }
2590 fi
2591
2592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2593 fi
2594 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2595 echo "${ECHO_T}$ac_cv_objext" >&6
2596 OBJEXT=$ac_cv_objext
2597 ac_objext=$OBJEXT
2598 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2599 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2600 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   cat >conftest.$ac_ext <<_ACEOF
2604 #line $LINENO "configure"
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2610
2611 int
2612 main ()
2613 {
2614 #ifndef __GNUC__
2615        choke me
2616 #endif
2617
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 rm -f conftest.$ac_objext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624   (eval $ac_compile) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); } &&
2628          { ac_try='test -s conftest.$ac_objext'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   ac_compiler_gnu=yes
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 ac_compiler_gnu=no
2640 fi
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2642 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2643
2644 fi
2645 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2646 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2647 GXX=`test $ac_compiler_gnu = yes && echo yes`
2648 ac_test_CXXFLAGS=${CXXFLAGS+set}
2649 ac_save_CXXFLAGS=$CXXFLAGS
2650 CXXFLAGS="-g"
2651 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2652 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2653 if test "${ac_cv_prog_cxx_g+set}" = set; then
2654   echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656   cat >conftest.$ac_ext <<_ACEOF
2657 #line $LINENO "configure"
2658 /* confdefs.h.  */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h.  */
2663
2664 int
2665 main ()
2666 {
2667
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674   (eval $ac_compile) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); } &&
2678          { ac_try='test -s conftest.$ac_objext'
2679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680   (eval $ac_try) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }; }; then
2684   ac_cv_prog_cxx_g=yes
2685 else
2686   echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689 ac_cv_prog_cxx_g=no
2690 fi
2691 rm -f conftest.$ac_objext conftest.$ac_ext
2692 fi
2693 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2694 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2695 if test "$ac_test_CXXFLAGS" = set; then
2696   CXXFLAGS=$ac_save_CXXFLAGS
2697 elif test $ac_cv_prog_cxx_g = yes; then
2698   if test "$GXX" = yes; then
2699     CXXFLAGS="-g -O2"
2700   else
2701     CXXFLAGS="-g"
2702   fi
2703 else
2704   if test "$GXX" = yes; then
2705     CXXFLAGS="-O2"
2706   else
2707     CXXFLAGS=
2708   fi
2709 fi
2710 for ac_declaration in \
2711    ''\
2712    '#include <stdlib.h>' \
2713    'extern "C" void std::exit (int) throw (); using std::exit;' \
2714    'extern "C" void std::exit (int); using std::exit;' \
2715    'extern "C" void exit (int) throw ();' \
2716    'extern "C" void exit (int);' \
2717    'void exit (int);'
2718 do
2719   cat >conftest.$ac_ext <<_ACEOF
2720 #line $LINENO "configure"
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726 #include <stdlib.h>
2727 $ac_declaration
2728 int
2729 main ()
2730 {
2731 exit (42);
2732   ;
2733   return 0;
2734 }
2735 _ACEOF
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738   (eval $ac_compile) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); } &&
2742          { ac_try='test -s conftest.$ac_objext'
2743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744   (eval $ac_try) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; }; then
2748   :
2749 else
2750   echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 continue
2754 fi
2755 rm -f conftest.$ac_objext conftest.$ac_ext
2756   cat >conftest.$ac_ext <<_ACEOF
2757 #line $LINENO "configure"
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 $ac_declaration
2764 int
2765 main ()
2766 {
2767 exit (42);
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); } &&
2778          { ac_try='test -s conftest.$ac_objext'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; }; then
2784   break
2785 else
2786   echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 fi
2790 rm -f conftest.$ac_objext conftest.$ac_ext
2791 done
2792 rm -f conftest*
2793 if test -n "$ac_declaration"; then
2794   echo '#ifdef __cplusplus' >>confdefs.h
2795   echo $ac_declaration      >>confdefs.h
2796   echo '#endif'             >>confdefs.h
2797 fi
2798
2799 ac_ext=c
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804
2805 ac_ext=c
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810 if test -n "$ac_tool_prefix"; then
2811   for ac_prog in gcc
2812   do
2813     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_CC+set}" = set; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   if test -n "$CC"; then
2821   ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836
2837 fi
2838 fi
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841   echo "$as_me:$LINENO: result: $CC" >&5
2842 echo "${ECHO_T}$CC" >&6
2843 else
2844   echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2846 fi
2847
2848     test -n "$CC" && break
2849   done
2850 fi
2851 if test -z "$CC"; then
2852   ac_ct_CC=$CC
2853   for ac_prog in gcc
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   if test -n "$ac_ct_CC"; then
2863   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_exec_ext in '' $ac_executable_extensions; do
2871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872     ac_cv_prog_ac_ct_CC="$ac_prog"
2873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877 done
2878
2879 fi
2880 fi
2881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882 if test -n "$ac_ct_CC"; then
2883   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2884 echo "${ECHO_T}$ac_ct_CC" >&6
2885 else
2886   echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2888 fi
2889
2890   test -n "$ac_ct_CC" && break
2891 done
2892
2893   CC=$ac_ct_CC
2894 fi
2895
2896
2897 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2898 See \`config.log' for more details." >&5
2899 echo "$as_me: error: no acceptable C compiler found in \$PATH
2900 See \`config.log' for more details." >&2;}
2901    { (exit 1); exit 1; }; }
2902
2903 # Provide some information about the compiler.
2904 echo "$as_me:$LINENO:" \
2905      "checking for C compiler version" >&5
2906 ac_compiler=`set X $ac_compile; echo $2`
2907 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2908   (eval $ac_compiler --version </dev/null >&5) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }
2912 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2913   (eval $ac_compiler -v </dev/null >&5) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }
2917 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2918   (eval $ac_compiler -V </dev/null >&5) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }
2922
2923 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2925 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928   cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935
2936 int
2937 main ()
2938 {
2939 #ifndef __GNUC__
2940        choke me
2941 #endif
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949   (eval $ac_compile) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } &&
2953          { ac_try='test -s conftest.$ac_objext'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; }; then
2959   ac_compiler_gnu=yes
2960 else
2961   echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 ac_compiler_gnu=no
2965 fi
2966 rm -f conftest.$ac_objext conftest.$ac_ext
2967 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2968
2969 fi
2970 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2971 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2972 GCC=`test $ac_compiler_gnu = yes && echo yes`
2973 ac_test_CFLAGS=${CFLAGS+set}
2974 ac_save_CFLAGS=$CFLAGS
2975 CFLAGS="-g"
2976 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2977 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2978 if test "${ac_cv_prog_cc_g+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   cat >conftest.$ac_ext <<_ACEOF
2982 #line $LINENO "configure"
2983 /* confdefs.h.  */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h.  */
2988
2989 int
2990 main ()
2991 {
2992
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999   (eval $ac_compile) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } &&
3003          { ac_try='test -s conftest.$ac_objext'
3004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005   (eval $ac_try) 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; }; then
3009   ac_cv_prog_cc_g=yes
3010 else
3011   echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 ac_cv_prog_cc_g=no
3015 fi
3016 rm -f conftest.$ac_objext conftest.$ac_ext
3017 fi
3018 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3019 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3020 if test "$ac_test_CFLAGS" = set; then
3021   CFLAGS=$ac_save_CFLAGS
3022 elif test $ac_cv_prog_cc_g = yes; then
3023   if test "$GCC" = yes; then
3024     CFLAGS="-g -O2"
3025   else
3026     CFLAGS="-g"
3027   fi
3028 else
3029   if test "$GCC" = yes; then
3030     CFLAGS="-O2"
3031   else
3032     CFLAGS=
3033   fi
3034 fi
3035 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3036 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3037 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3038   echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040   ac_cv_prog_cc_stdc=no
3041 ac_save_CC=$CC
3042 cat >conftest.$ac_ext <<_ACEOF
3043 #line $LINENO "configure"
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049 #include <stdarg.h>
3050 #include <stdio.h>
3051 #include <sys/types.h>
3052 #include <sys/stat.h>
3053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3054 struct buf { int x; };
3055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3056 static char *e (p, i)
3057      char **p;
3058      int i;
3059 {
3060   return p[i];
3061 }
3062 static char *f (char * (*g) (char **, int), char **p, ...)
3063 {
3064   char *s;
3065   va_list v;
3066   va_start (v,p);
3067   s = g (p, va_arg (v,int));
3068   va_end (v);
3069   return s;
3070 }
3071 int test (int i, double x);
3072 struct s1 {int (*f) (int a);};
3073 struct s2 {int (*f) (double a);};
3074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3075 int argc;
3076 char **argv;
3077 int
3078 main ()
3079 {
3080 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3081   ;
3082   return 0;
3083 }
3084 _ACEOF
3085 # Don't try gcc -ansi; that turns off useful extensions and
3086 # breaks some systems' header files.
3087 # AIX                   -qlanglvl=ansi
3088 # Ultrix and OSF/1      -std1
3089 # HP-UX 10.20 and later -Ae
3090 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3091 # SVR4                  -Xc -D__EXTENSIONS__
3092 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3093 do
3094   CC="$ac_save_CC $ac_arg"
3095   rm -f conftest.$ac_objext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097   (eval $ac_compile) 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } &&
3101          { ac_try='test -s conftest.$ac_objext'
3102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103   (eval $ac_try) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; }; then
3107   ac_cv_prog_cc_stdc=$ac_arg
3108 break
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 fi
3114 rm -f conftest.$ac_objext
3115 done
3116 rm -f conftest.$ac_ext conftest.$ac_objext
3117 CC=$ac_save_CC
3118
3119 fi
3120
3121 case "x$ac_cv_prog_cc_stdc" in
3122   x|xno)
3123     echo "$as_me:$LINENO: result: none needed" >&5
3124 echo "${ECHO_T}none needed" >&6 ;;
3125   *)
3126     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3127 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3128     CC="$CC $ac_cv_prog_cc_stdc" ;;
3129 esac
3130
3131 # Some people use a C++ compiler to compile C.  Since we use `exit',
3132 # in C++ we need to declare it.  In case someone uses the same compiler
3133 # for both compiling C and C++ we need to have the C++ compiler decide
3134 # the declaration of exit, since it's the most demanding environment.
3135 cat >conftest.$ac_ext <<_ACEOF
3136 #ifndef __cplusplus
3137   choke me
3138 #endif
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142   (eval $ac_compile) 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } &&
3146          { ac_try='test -s conftest.$ac_objext'
3147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148   (eval $ac_try) 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }; }; then
3152   for ac_declaration in \
3153    ''\
3154    '#include <stdlib.h>' \
3155    'extern "C" void std::exit (int) throw (); using std::exit;' \
3156    'extern "C" void std::exit (int); using std::exit;' \
3157    'extern "C" void exit (int) throw ();' \
3158    'extern "C" void exit (int);' \
3159    'void exit (int);'
3160 do
3161   cat >conftest.$ac_ext <<_ACEOF
3162 #line $LINENO "configure"
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168 #include <stdlib.h>
3169 $ac_declaration
3170 int
3171 main ()
3172 {
3173 exit (42);
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180   (eval $ac_compile) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); } &&
3184          { ac_try='test -s conftest.$ac_objext'
3185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186   (eval $ac_try) 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }; }; then
3190   :
3191 else
3192   echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195 continue
3196 fi
3197 rm -f conftest.$ac_objext conftest.$ac_ext
3198   cat >conftest.$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3200 /* confdefs.h.  */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h.  */
3205 $ac_declaration
3206 int
3207 main ()
3208 {
3209 exit (42);
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.$ac_objext
3215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3216   (eval $ac_compile) 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); } &&
3220          { ac_try='test -s conftest.$ac_objext'
3221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222   (eval $ac_try) 2>&5
3223   ac_status=$?
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); }; }; then
3226   break
3227 else
3228   echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 fi
3232 rm -f conftest.$ac_objext conftest.$ac_ext
3233 done
3234 rm -f conftest*
3235 if test -n "$ac_declaration"; then
3236   echo '#ifdef __cplusplus' >>confdefs.h
3237   echo $ac_declaration      >>confdefs.h
3238   echo '#endif'             >>confdefs.h
3239 fi
3240
3241 else
3242   echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 fi
3246 rm -f conftest.$ac_objext conftest.$ac_ext
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3259 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3260 # On Suns, sometimes $CPP names a directory.
3261 if test -n "$CPP" && test -d "$CPP"; then
3262   CPP=
3263 fi
3264 if test -z "$CPP"; then
3265   if test "${ac_cv_prog_CPP+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268       # Double quotes because CPP needs to be expanded
3269     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3270     do
3271       ac_preproc_ok=false
3272 for ac_c_preproc_warn_flag in '' yes
3273 do
3274   # Use a header file that comes with gcc, so configuring glibc
3275   # with a fresh cross-compiler works.
3276   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3277   # <limits.h> exists even on freestanding compilers.
3278   # On the NeXT, cc -E runs the code through the compiler's parser,
3279   # not just through cpp. "Syntax error" is here to catch this case.
3280   cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #ifdef __STDC__
3288 # include <limits.h>
3289 #else
3290 # include <assert.h>
3291 #endif
3292                      Syntax error
3293 _ACEOF
3294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } >/dev/null; then
3302   if test -s conftest.err; then
3303     ac_cpp_err=$ac_c_preproc_warn_flag
3304   else
3305     ac_cpp_err=
3306   fi
3307 else
3308   ac_cpp_err=yes
3309 fi
3310 if test -z "$ac_cpp_err"; then
3311   :
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316   # Broken: fails on valid input.
3317 continue
3318 fi
3319 rm -f conftest.err conftest.$ac_ext
3320
3321   # OK, works on sane cases.  Now check whether non-existent headers
3322   # can be detected and how.
3323   cat >conftest.$ac_ext <<_ACEOF
3324 #line $LINENO "configure"
3325 /* confdefs.h.  */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h.  */
3330 #include <ac_nonexistent.h>
3331 _ACEOF
3332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3334   ac_status=$?
3335   grep -v '^ *+' conftest.er1 >conftest.err
3336   rm -f conftest.er1
3337   cat conftest.err >&5
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); } >/dev/null; then
3340   if test -s conftest.err; then
3341     ac_cpp_err=$ac_c_preproc_warn_flag
3342   else
3343     ac_cpp_err=
3344   fi
3345 else
3346   ac_cpp_err=yes
3347 fi
3348 if test -z "$ac_cpp_err"; then
3349   # Broken: success on invalid input.
3350 continue
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355   # Passes both tests.
3356 ac_preproc_ok=:
3357 break
3358 fi
3359 rm -f conftest.err conftest.$ac_ext
3360
3361 done
3362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363 rm -f conftest.err conftest.$ac_ext
3364 if $ac_preproc_ok; then
3365   break
3366 fi
3367
3368     done
3369     ac_cv_prog_CPP=$CPP
3370
3371 fi
3372   CPP=$ac_cv_prog_CPP
3373 else
3374   ac_cv_prog_CPP=$CPP
3375 fi
3376 echo "$as_me:$LINENO: result: $CPP" >&5
3377 echo "${ECHO_T}$CPP" >&6
3378 ac_preproc_ok=false
3379 for ac_c_preproc_warn_flag in '' yes
3380 do
3381   # Use a header file that comes with gcc, so configuring glibc
3382   # with a fresh cross-compiler works.
3383   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384   # <limits.h> exists even on freestanding compilers.
3385   # On the NeXT, cc -E runs the code through the compiler's parser,
3386   # not just through cpp. "Syntax error" is here to catch this case.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 #line $LINENO "configure"
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #ifdef __STDC__
3395 # include <limits.h>
3396 #else
3397 # include <assert.h>
3398 #endif
3399                      Syntax error
3400 _ACEOF
3401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3403   ac_status=$?
3404   grep -v '^ *+' conftest.er1 >conftest.err
3405   rm -f conftest.er1
3406   cat conftest.err >&5
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); } >/dev/null; then
3409   if test -s conftest.err; then
3410     ac_cpp_err=$ac_c_preproc_warn_flag
3411   else
3412     ac_cpp_err=
3413   fi
3414 else
3415   ac_cpp_err=yes
3416 fi
3417 if test -z "$ac_cpp_err"; then
3418   :
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423   # Broken: fails on valid input.
3424 continue
3425 fi
3426 rm -f conftest.err conftest.$ac_ext
3427
3428   # OK, works on sane cases.  Now check whether non-existent headers
3429   # can be detected and how.
3430   cat >conftest.$ac_ext <<_ACEOF
3431 #line $LINENO "configure"
3432 /* confdefs.h.  */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h.  */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } >/dev/null; then
3447   if test -s conftest.err; then
3448     ac_cpp_err=$ac_c_preproc_warn_flag
3449   else
3450     ac_cpp_err=
3451   fi
3452 else
3453   ac_cpp_err=yes
3454 fi
3455 if test -z "$ac_cpp_err"; then
3456   # Broken: success on invalid input.
3457 continue
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462   # Passes both tests.
3463 ac_preproc_ok=:
3464 break
3465 fi
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   :
3473 else
3474   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478    { (exit 1); exit 1; }; }
3479 fi
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488 if test "$GCC" != "yes"
3489 then
3490         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3491 echo "$as_me: error: gcc required but not found" >&2;}
3492    { (exit 1); exit 1; }; }
3493 fi
3494
3495 if test "$GXX" != "yes"
3496 then
3497         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3498 echo "$as_me: error: g++ required but not found" >&2;}
3499    { (exit 1); exit 1; }; }
3500 fi
3501
3502 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3503 if test "$gccmajor" -lt "3"
3504 then
3505         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3506 echo "$as_me: error: gcc 3.x required" >&2;}
3507    { (exit 1); exit 1; }; }
3508 fi
3509
3510  echo "$as_me:$LINENO: checking for GNU make" >&5
3511 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3512 if test "${_cv_gnu_make_command+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   _cv_gnu_make_command='' ;
3516                 for a in "$MAKE" make gmake gnumake ; do
3517                         if test -z "$a" ; then continue ; fi ;
3518                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3519                                 _cv_gnu_make_command=$a ;
3520                                 break;
3521                         fi
3522                 done ;
3523
3524 fi
3525 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3526 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3527         if test  "x$_cv_gnu_make_command" != "x"  ; then
3528                 ifGNUmake='' ;
3529         else
3530                 ifGNUmake='#' ;
3531                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3532 echo "${ECHO_T}\"Not found\"" >&6;
3533         fi
3534
3535
3536 if test -z "$_cv_gnu_make_command"
3537 then
3538         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3539 echo "$as_me: error: GNU Make required but not found" >&2;}
3540    { (exit 1); exit 1; }; }
3541 fi
3542
3543
3544 echo "$as_me:$LINENO: checking " >&5
3545 echo $ECHO_N "checking ... $ECHO_C" >&6
3546 if test "${ac_cv_has_flex+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   for ac_prog in flex lex
3550 do
3551   # Extract the first word of "$ac_prog", so it can be a program name with args.
3552 set dummy $ac_prog; ac_word=$2
3553 echo "$as_me:$LINENO: checking for $ac_word" >&5
3554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3555 if test "${ac_cv_prog_LEX+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   if test -n "$LEX"; then
3559   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568     ac_cv_prog_LEX="$ac_prog"
3569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573 done
3574
3575 fi
3576 fi
3577 LEX=$ac_cv_prog_LEX
3578 if test -n "$LEX"; then
3579   echo "$as_me:$LINENO: result: $LEX" >&5
3580 echo "${ECHO_T}$LEX" >&6
3581 else
3582   echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3584 fi
3585
3586   test -n "$LEX" && break
3587 done
3588 test -n "$LEX" || LEX=":"
3589
3590 if test -z "$LEXLIB"
3591 then
3592   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3593 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3594 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   ac_check_lib_save_LIBS=$LIBS
3598 LIBS="-lfl  $LIBS"
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line $LINENO "configure"
3601 /* confdefs.h.  */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h.  */
3606
3607 /* Override any gcc2 internal prototype to avoid an error.  */
3608 #ifdef __cplusplus
3609 extern "C"
3610 #endif
3611 /* We use char because int might match the return type of a gcc2
3612    builtin and then its argument prototype would still apply.  */
3613 char yywrap ();
3614 int
3615 main ()
3616 {
3617 yywrap ();
3618   ;
3619   return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.$ac_objext conftest$ac_exeext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3624   (eval $ac_link) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } &&
3628          { ac_try='test -s conftest$ac_exeext'
3629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630   (eval $ac_try) 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; }; then
3634   ac_cv_lib_fl_yywrap=yes
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 ac_cv_lib_fl_yywrap=no
3640 fi
3641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3642 LIBS=$ac_check_lib_save_LIBS
3643 fi
3644 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3645 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3646 if test $ac_cv_lib_fl_yywrap = yes; then
3647   LEXLIB="-lfl"
3648 else
3649   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3650 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3651 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   ac_check_lib_save_LIBS=$LIBS
3655 LIBS="-ll  $LIBS"
3656 cat >conftest.$ac_ext <<_ACEOF
3657 #line $LINENO "configure"
3658 /* confdefs.h.  */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h.  */
3663
3664 /* Override any gcc2 internal prototype to avoid an error.  */
3665 #ifdef __cplusplus
3666 extern "C"
3667 #endif
3668 /* We use char because int might match the return type of a gcc2
3669    builtin and then its argument prototype would still apply.  */
3670 char yywrap ();
3671 int
3672 main ()
3673 {
3674 yywrap ();
3675   ;
3676   return 0;
3677 }
3678 _ACEOF
3679 rm -f conftest.$ac_objext conftest$ac_exeext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3681   (eval $ac_link) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); } &&
3685          { ac_try='test -s conftest$ac_exeext'
3686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687   (eval $ac_try) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; }; then
3691   ac_cv_lib_l_yywrap=yes
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696 ac_cv_lib_l_yywrap=no
3697 fi
3698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3699 LIBS=$ac_check_lib_save_LIBS
3700 fi
3701 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3702 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3703 if test $ac_cv_lib_l_yywrap = yes; then
3704   LEXLIB="-ll"
3705 fi
3706
3707 fi
3708
3709 fi
3710
3711 if test "x$LEX" != "x:"; then
3712   echo "$as_me:$LINENO: checking lex output file root" >&5
3713 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3714 if test "${ac_cv_prog_lex_root+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   # The minimal lex program is just a single line: %%.  But some broken lexes
3718 # (Solaris, I think it was) want two %% lines, so accommodate them.
3719 cat >conftest.l <<_ACEOF
3720 %%
3721 %%
3722 _ACEOF
3723 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3724   (eval $LEX conftest.l) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }
3728 if test -f lex.yy.c; then
3729   ac_cv_prog_lex_root=lex.yy
3730 elif test -f lexyy.c; then
3731   ac_cv_prog_lex_root=lexyy
3732 else
3733   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3734 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3735    { (exit 1); exit 1; }; }
3736 fi
3737 fi
3738 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3739 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3740 rm -f conftest.l
3741 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3742
3743 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3744 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3745 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3746   echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748   # POSIX says lex can declare yytext either as a pointer or an array; the
3749 # default is implementation-dependent. Figure out which it is, since
3750 # not all implementations provide the %pointer and %array declarations.
3751 ac_cv_prog_lex_yytext_pointer=no
3752 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3753 ac_save_LIBS=$LIBS
3754 LIBS="$LIBS $LEXLIB"
3755 cat >conftest.$ac_ext <<_ACEOF
3756 `cat $LEX_OUTPUT_ROOT.c`
3757 _ACEOF
3758 rm -f conftest.$ac_objext conftest$ac_exeext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3760   (eval $ac_link) 2>&5
3761   ac_status=$?
3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763   (exit $ac_status); } &&
3764          { ac_try='test -s conftest$ac_exeext'
3765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766   (eval $ac_try) 2>&5
3767   ac_status=$?
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); }; }; then
3770   ac_cv_prog_lex_yytext_pointer=yes
3771 else
3772   echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3774
3775 fi
3776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3777 LIBS=$ac_save_LIBS
3778 rm -f "${LEX_OUTPUT_ROOT}.c"
3779
3780 fi
3781 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3782 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3783 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3784
3785 cat >>confdefs.h <<\_ACEOF
3786 #define YYTEXT_POINTER 1
3787 _ACEOF
3788
3789 fi
3790
3791 fi
3792
3793 fi
3794 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3795 echo "${ECHO_T}$ac_cv_has_flex" >&6
3796 if test "$LEX" != "flex"; then
3797   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3798 echo "$as_me: error: flex not found but required" >&2;}
3799    { (exit 1); exit 1; }; }
3800 fi
3801
3802 echo "$as_me:$LINENO: checking " >&5
3803 echo $ECHO_N "checking ... $ECHO_C" >&6
3804 if test "${ac_cv_has_bison+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   for ac_prog in 'bison -y' byacc
3808 do
3809   # Extract the first word of "$ac_prog", so it can be a program name with args.
3810 set dummy $ac_prog; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_YACC+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   if test -n "$YACC"; then
3817   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822   IFS=$as_save_IFS
3823   test -z "$as_dir" && as_dir=.
3824   for ac_exec_ext in '' $ac_executable_extensions; do
3825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826     ac_cv_prog_YACC="$ac_prog"
3827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828     break 2
3829   fi
3830 done
3831 done
3832
3833 fi
3834 fi
3835 YACC=$ac_cv_prog_YACC
3836 if test -n "$YACC"; then
3837   echo "$as_me:$LINENO: result: $YACC" >&5
3838 echo "${ECHO_T}$YACC" >&6
3839 else
3840   echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842 fi
3843
3844   test -n "$YACC" && break
3845 done
3846 test -n "$YACC" || YACC="yacc"
3847
3848
3849 fi
3850 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3851 echo "${ECHO_T}$ac_cv_has_bison" >&6
3852 if test "$YACC" != "bison -y"; then
3853   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3854 echo "$as_me: error: bison not found but required" >&2;}
3855    { (exit 1); exit 1; }; }
3856 else
3857   YACC=bison
3858
3859 fi
3860
3861
3862 # Check whether --enable-shared or --disable-shared was given.
3863 if test "${enable_shared+set}" = set; then
3864   enableval="$enable_shared"
3865   p=${PACKAGE-default}
3866     case $enableval in
3867     yes) enable_shared=yes ;;
3868     no) enable_shared=no ;;
3869     *)
3870       enable_shared=no
3871       # Look at the argument we got.  We use all the common list separators.
3872       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3873       for pkg in $enableval; do
3874         IFS="$lt_save_ifs"
3875         if test "X$pkg" = "X$p"; then
3876           enable_shared=yes
3877         fi
3878       done
3879       IFS="$lt_save_ifs"
3880       ;;
3881     esac
3882 else
3883   enable_shared=yes
3884 fi;
3885
3886 # Check whether --enable-static or --disable-static was given.
3887 if test "${enable_static+set}" = set; then
3888   enableval="$enable_static"
3889   p=${PACKAGE-default}
3890     case $enableval in
3891     yes) enable_static=yes ;;
3892     no) enable_static=no ;;
3893     *)
3894      enable_static=no
3895       # Look at the argument we got.  We use all the common list separators.
3896       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3897       for pkg in $enableval; do
3898         IFS="$lt_save_ifs"
3899         if test "X$pkg" = "X$p"; then
3900           enable_static=yes
3901         fi
3902       done
3903       IFS="$lt_save_ifs"
3904       ;;
3905     esac
3906 else
3907   enable_static=yes
3908 fi;
3909
3910 # Check whether --enable-fast-install or --disable-fast-install was given.
3911 if test "${enable_fast_install+set}" = set; then
3912   enableval="$enable_fast_install"
3913   p=${PACKAGE-default}
3914     case $enableval in
3915     yes) enable_fast_install=yes ;;
3916     no) enable_fast_install=no ;;
3917     *)
3918       enable_fast_install=no
3919       # Look at the argument we got.  We use all the common list separators.
3920       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3921       for pkg in $enableval; do
3922         IFS="$lt_save_ifs"
3923         if test "X$pkg" = "X$p"; then
3924           enable_fast_install=yes
3925         fi
3926       done
3927       IFS="$lt_save_ifs"
3928       ;;
3929     esac
3930 else
3931   enable_fast_install=yes
3932 fi;
3933
3934 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3935 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3936 if test "${lt_cv_path_SED+set}" = set; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   # Loop through the user's path and test for sed and gsed.
3940 # Then use that list of sed's as ones to test for truncation.
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944   IFS=$as_save_IFS
3945   test -z "$as_dir" && as_dir=.
3946   for lt_ac_prog in sed gsed; do
3947     for ac_exec_ext in '' $ac_executable_extensions; do
3948       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3949         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3950       fi
3951     done
3952   done
3953 done
3954 lt_ac_max=0
3955 lt_ac_count=0
3956 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3957 # along with /bin/sed that truncates output.
3958 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3959   test ! -f $lt_ac_sed && break
3960   cat /dev/null > conftest.in
3961   lt_ac_count=0
3962   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3963   # Check for GNU sed and select it if it is found.
3964   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3965     lt_cv_path_SED=$lt_ac_sed
3966     break
3967   fi
3968   while true; do
3969     cat conftest.in conftest.in >conftest.tmp
3970     mv conftest.tmp conftest.in
3971     cp conftest.in conftest.nl
3972     echo >>conftest.nl
3973     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3974     cmp -s conftest.out conftest.nl || break
3975     # 10000 chars as input seems more than enough
3976     test $lt_ac_count -gt 10 && break
3977     lt_ac_count=`expr $lt_ac_count + 1`
3978     if test $lt_ac_count -gt $lt_ac_max; then
3979       lt_ac_max=$lt_ac_count
3980       lt_cv_path_SED=$lt_ac_sed
3981     fi
3982   done
3983 done
3984 SED=$lt_cv_path_SED
3985
3986 fi
3987
3988 echo "$as_me:$LINENO: result: $SED" >&5
3989 echo "${ECHO_T}$SED" >&6
3990
3991 echo "$as_me:$LINENO: checking for egrep" >&5
3992 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3993 if test "${ac_cv_prog_egrep+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3997     then ac_cv_prog_egrep='grep -E'
3998     else ac_cv_prog_egrep='egrep'
3999     fi
4000 fi
4001 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4002 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4003  EGREP=$ac_cv_prog_egrep
4004
4005
4006
4007 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4008 if test "${with_gnu_ld+set}" = set; then
4009   withval="$with_gnu_ld"
4010   test "$withval" = no || with_gnu_ld=yes
4011 else
4012   with_gnu_ld=no
4013 fi;
4014 ac_prog=ld
4015 if test "$GCC" = yes; then
4016   # Check if gcc -print-prog-name=ld gives a path.
4017   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4018 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4019   case $host in
4020   *-*-mingw*)
4021     # gcc leaves a trailing carriage return which upsets mingw
4022     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4023   *)
4024     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4025   esac
4026   case $ac_prog in
4027     # Accept absolute paths.
4028     [\\/]* | ?:[\\/]*)
4029       re_direlt='/[^/][^/]*/\.\./'
4030       # Canonicalize the path of ld
4031       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4032       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4033         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4034       done
4035       test -z "$LD" && LD="$ac_prog"
4036       ;;
4037   "")
4038     # If it fails, then pretend we aren't using GCC.
4039     ac_prog=ld
4040     ;;
4041   *)
4042     # If it is relative, then search for the first ld in PATH.
4043     with_gnu_ld=unknown
4044     ;;
4045   esac
4046 elif test "$with_gnu_ld" = yes; then
4047   echo "$as_me:$LINENO: checking for GNU ld" >&5
4048 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4049 else
4050   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4051 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4052 fi
4053 if test "${lt_cv_path_LD+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056   if test -z "$LD"; then
4057   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4058   for ac_dir in $PATH; do
4059     IFS="$lt_save_ifs"
4060     test -z "$ac_dir" && ac_dir=.
4061     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4062       lt_cv_path_LD="$ac_dir/$ac_prog"
4063       # Check to see if the program is GNU ld.  I'd rather use --version,
4064       # but apparently some GNU ld's only accept -v.
4065       # Break only if it was the GNU/non-GNU ld that we prefer.
4066       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4067       *GNU* | *'with BFD'*)
4068         test "$with_gnu_ld" != no && break
4069         ;;
4070       *)
4071         test "$with_gnu_ld" != yes && break
4072         ;;
4073       esac
4074     fi
4075   done
4076   IFS="$lt_save_ifs"
4077 else
4078   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4079 fi
4080 fi
4081
4082 LD="$lt_cv_path_LD"
4083 if test -n "$LD"; then
4084   echo "$as_me:$LINENO: result: $LD" >&5
4085 echo "${ECHO_T}$LD" >&6
4086 else
4087   echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4089 fi
4090 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4091 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4092    { (exit 1); exit 1; }; }
4093 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4094 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4095 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4099 case `"$LD" -v 2>&1 </dev/null` in
4100 *GNU* | *'with BFD'*)
4101   lt_cv_prog_gnu_ld=yes
4102   ;;
4103 *)
4104   lt_cv_prog_gnu_ld=no
4105   ;;
4106 esac
4107 fi
4108 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4109 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4110 with_gnu_ld=$lt_cv_prog_gnu_ld
4111
4112
4113 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4114 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4115 if test "${lt_cv_ld_reload_flag+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   lt_cv_ld_reload_flag='-r'
4119 fi
4120 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4121 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4122 reload_flag=$lt_cv_ld_reload_flag
4123 case $reload_flag in
4124 "" | " "*) ;;
4125 *) reload_flag=" $reload_flag" ;;
4126 esac
4127 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4128
4129 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4130 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4131 if test "${lt_cv_path_NM+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   if test -n "$NM"; then
4135   # Let the user override the test.
4136   lt_cv_path_NM="$NM"
4137 else
4138   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4139   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4140     IFS="$lt_save_ifs"
4141     test -z "$ac_dir" && ac_dir=.
4142     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4143     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4144       # Check to see if the nm accepts a BSD-compat flag.
4145       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4146       #   nm: unknown option "B" ignored
4147       # Tru64's nm complains that /dev/null is an invalid object file
4148       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4149       */dev/null* | *'Invalid file or object type'*)
4150         lt_cv_path_NM="$tmp_nm -B"
4151         break
4152         ;;
4153       *)
4154         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4155         */dev/null*)
4156           lt_cv_path_NM="$tmp_nm -p"
4157           break
4158           ;;
4159         *)
4160           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4161           continue # so that we can try to find one that supports BSD flags
4162           ;;
4163         esac
4164       esac
4165     fi
4166   done
4167   IFS="$lt_save_ifs"
4168   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4169 fi
4170 fi
4171 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4172 echo "${ECHO_T}$lt_cv_path_NM" >&6
4173 NM="$lt_cv_path_NM"
4174
4175 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4176 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4177 LN_S=$as_ln_s
4178 if test "$LN_S" = "ln -s"; then
4179   echo "$as_me:$LINENO: result: yes" >&5
4180 echo "${ECHO_T}yes" >&6
4181 else
4182   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4183 echo "${ECHO_T}no, using $LN_S" >&6
4184 fi
4185
4186 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4187 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4188 if test "${lt_cv_deplibs_check_method+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   lt_cv_file_magic_cmd='$MAGIC_CMD'
4192 lt_cv_file_magic_test_file=
4193 lt_cv_deplibs_check_method='unknown'
4194 # Need to set the preceding variable on all platforms that support
4195 # interlibrary dependencies.
4196 # 'none' -- dependencies not supported.
4197 # `unknown' -- same as none, but documents that we really don't know.
4198 # 'pass_all' -- all dependencies passed with no checks.
4199 # 'test_compile' -- check by making test program.
4200 # 'file_magic [[regex]]' -- check by looking for files in library path
4201 # which responds to the $file_magic_cmd with a given extended regex.
4202 # If you have `file' or equivalent on your system and you're not sure
4203 # whether `pass_all' will *always* work, you probably want this one.
4204
4205 case $host_os in
4206 aix4* | aix5*)
4207   lt_cv_deplibs_check_method=pass_all
4208   ;;
4209
4210 beos*)
4211   lt_cv_deplibs_check_method=pass_all
4212   ;;
4213
4214 bsdi4*)
4215   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4216   lt_cv_file_magic_cmd='/usr/bin/file -L'
4217   lt_cv_file_magic_test_file=/shlib/libc.so
4218   ;;
4219
4220 cygwin* | mingw* | pw32*)
4221   # win32_libid is a shell function defined in ltmain.sh
4222   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4223   lt_cv_file_magic_cmd='win32_libid'
4224   ;;
4225
4226 darwin* | rhapsody*)
4227   # this will be overwritten by pass_all, but leave it in just in case
4228   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4229   lt_cv_file_magic_cmd='/usr/bin/file -L'
4230   case "$host_os" in
4231   rhapsody* | darwin1.[012])
4232     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4233     ;;
4234   *) # Darwin 1.3 on
4235     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4236     ;;
4237   esac
4238   lt_cv_deplibs_check_method=pass_all
4239   ;;
4240
4241 freebsd*)
4242   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4243     case $host_cpu in
4244     i*86 )
4245       # Not sure whether the presence of OpenBSD here was a mistake.
4246       # Let's accept both of them until this is cleared up.
4247       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4248       lt_cv_file_magic_cmd=/usr/bin/file
4249       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4250       ;;
4251     esac
4252   else
4253     lt_cv_deplibs_check_method=pass_all
4254   fi
4255   ;;
4256
4257 gnu*)
4258   lt_cv_deplibs_check_method=pass_all
4259   ;;
4260
4261 hpux10.20* | hpux11*)
4262   lt_cv_file_magic_cmd=/usr/bin/file
4263   case "$host_cpu" in
4264   ia64*)
4265     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4266     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4267     ;;
4268   hppa*64*)
4269     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]'
4270     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4271     ;;
4272   *)
4273     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4274     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4275     ;;
4276   esac
4277   ;;
4278
4279 irix5* | irix6* | nonstopux*)
4280   case $host_os in
4281   irix5* | nonstopux*)
4282     # this will be overridden with pass_all, but let us keep it just in case
4283     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4284     ;;
4285   *)
4286     case $LD in
4287     *-32|*"-32 ") libmagic=32-bit;;
4288     *-n32|*"-n32 ") libmagic=N32;;
4289     *-64|*"-64 ") libmagic=64-bit;;
4290     *) libmagic=never-match;;
4291     esac
4292     # this will be overridden with pass_all, but let us keep it just in case
4293     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4294     ;;
4295   esac
4296   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4297   lt_cv_deplibs_check_method=pass_all
4298   ;;
4299
4300 # This must be Linux ELF.
4301 linux*)
4302   case $host_cpu in
4303   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4304     lt_cv_deplibs_check_method=pass_all ;;
4305   *)
4306     # glibc up to 2.1.1 does not perform some relocations on ARM
4307     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4308   esac
4309   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4310   ;;
4311
4312 netbsd*)
4313   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4314     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4315   else
4316     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4317   fi
4318   ;;
4319
4320 newos6*)
4321   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4322   lt_cv_file_magic_cmd=/usr/bin/file
4323   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4324   ;;
4325
4326 nto-qnx)
4327   lt_cv_deplibs_check_method=unknown
4328   ;;
4329
4330 openbsd*)
4331   lt_cv_file_magic_cmd=/usr/bin/file
4332   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4333   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4334     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4335   else
4336     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4337   fi
4338   ;;
4339
4340 osf3* | osf4* | osf5*)
4341   # this will be overridden with pass_all, but let us keep it just in case
4342   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4343   lt_cv_file_magic_test_file=/shlib/libc.so
4344   lt_cv_deplibs_check_method=pass_all
4345   ;;
4346
4347 sco3.2v5*)
4348   lt_cv_deplibs_check_method=pass_all
4349   ;;
4350
4351 solaris*)
4352   lt_cv_deplibs_check_method=pass_all
4353   lt_cv_file_magic_test_file=/lib/libc.so
4354   ;;
4355
4356 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4357   case $host_vendor in
4358   motorola)
4359     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]'
4360     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4361     ;;
4362   ncr)
4363     lt_cv_deplibs_check_method=pass_all
4364     ;;
4365   sequent)
4366     lt_cv_file_magic_cmd='/bin/file'
4367     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4368     ;;
4369   sni)
4370     lt_cv_file_magic_cmd='/bin/file'
4371     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4372     lt_cv_file_magic_test_file=/lib/libc.so
4373     ;;
4374   siemens)
4375     lt_cv_deplibs_check_method=pass_all
4376     ;;
4377   esac
4378   ;;
4379
4380 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4381   lt_cv_deplibs_check_method=pass_all
4382   ;;
4383 esac
4384
4385 fi
4386 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4387 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4388 file_magic_cmd=$lt_cv_file_magic_cmd
4389 deplibs_check_method=$lt_cv_deplibs_check_method
4390 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4391
4392
4393
4394
4395 # If no C compiler was specified, use CC.
4396 LTCC=${LTCC-"$CC"}
4397
4398 # Allow CC to be a program name with arguments.
4399 compiler=$CC
4400
4401 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4402 if test "${enable_libtool_lock+set}" = set; then
4403   enableval="$enable_libtool_lock"
4404
4405 fi;
4406 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4407
4408 # Some flags need to be propagated to the compiler or linker for good
4409 # libtool support.
4410 case $host in
4411 ia64-*-hpux*)
4412   # Find out which ABI we are using.
4413   echo 'int i;' > 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     case `/usr/bin/file conftest.$ac_objext` in
4420     *ELF-32*)
4421       HPUX_IA64_MODE="32"
4422       ;;
4423     *ELF-64*)
4424       HPUX_IA64_MODE="64"
4425       ;;
4426     esac
4427   fi
4428   rm -rf conftest*
4429   ;;
4430 *-*-irix6*)
4431   # Find out which ABI we are using.
4432   echo '#line 4432 "configure"' > conftest.$ac_ext
4433   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434   (eval $ac_compile) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; then
4438    if test "$lt_cv_prog_gnu_ld" = yes; then
4439     case `/usr/bin/file conftest.$ac_objext` in
4440     *32-bit*)
4441       LD="${LD-ld} -melf32bsmip"
4442       ;;
4443     *N32*)
4444       LD="${LD-ld} -melf32bmipn32"
4445       ;;
4446     *64-bit*)
4447       LD="${LD-ld} -melf64bmip"
4448       ;;
4449     esac
4450    else
4451     case `/usr/bin/file conftest.$ac_objext` in
4452     *32-bit*)
4453       LD="${LD-ld} -32"
4454       ;;
4455     *N32*)
4456       LD="${LD-ld} -n32"
4457       ;;
4458     *64-bit*)
4459       LD="${LD-ld} -64"
4460       ;;
4461     esac
4462    fi
4463   fi
4464   rm -rf conftest*
4465   ;;
4466
4467 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4468   # Find out which ABI we are using.
4469   echo 'int i;' > conftest.$ac_ext
4470   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471   (eval $ac_compile) 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }; then
4475     case "`/usr/bin/file conftest.o`" in
4476     *32-bit*)
4477       case $host in
4478         x86_64-*linux*)
4479           LD="${LD-ld} -m elf_i386"
4480           ;;
4481         ppc64-*linux*)
4482           LD="${LD-ld} -m elf32ppclinux"
4483           ;;
4484         s390x-*linux*)
4485           LD="${LD-ld} -m elf_s390"
4486           ;;
4487         sparc64-*linux*)
4488           LD="${LD-ld} -m elf32_sparc"
4489           ;;
4490       esac
4491       ;;
4492     *64-bit*)
4493       case $host in
4494         x86_64-*linux*)
4495           LD="${LD-ld} -m elf_x86_64"
4496           ;;
4497         ppc*-*linux*|powerpc*-*linux*)
4498           LD="${LD-ld} -m elf64ppc"
4499           ;;
4500         s390*-*linux*)
4501           LD="${LD-ld} -m elf64_s390"
4502           ;;
4503         sparc*-*linux*)
4504           LD="${LD-ld} -m elf64_sparc"
4505           ;;
4506       esac
4507       ;;
4508     esac
4509   fi
4510   rm -rf conftest*
4511   ;;
4512
4513 *-*-sco3.2v5*)
4514   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4515   SAVE_CFLAGS="$CFLAGS"
4516   CFLAGS="$CFLAGS -belf"
4517   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4518 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4519 if test "${lt_cv_cc_needs_belf+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   ac_ext=c
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
4528      cat >conftest.$ac_ext <<_ACEOF
4529 #line $LINENO "configure"
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535
4536 int
4537 main ()
4538 {
4539
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 rm -f conftest.$ac_objext conftest$ac_exeext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4546   (eval $ac_link) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); } &&
4550          { ac_try='test -s conftest$ac_exeext'
4551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552   (eval $ac_try) 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); }; }; then
4556   lt_cv_cc_needs_belf=yes
4557 else
4558   echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561 lt_cv_cc_needs_belf=no
4562 fi
4563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4564      ac_ext=c
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569
4570 fi
4571 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4572 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4573   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4574     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4575     CFLAGS="$SAVE_CFLAGS"
4576   fi
4577   ;;
4578
4579 esac
4580
4581 need_locks="$enable_libtool_lock"
4582
4583
4584
4585 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4586 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4587 if test "${ac_cv_header_stdc+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   cat >conftest.$ac_ext <<_ACEOF
4591 #line $LINENO "configure"
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597 #include <stdlib.h>
4598 #include <stdarg.h>
4599 #include <string.h>
4600 #include <float.h>
4601
4602 int
4603 main ()
4604 {
4605
4606   ;
4607   return 0;
4608 }
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612   (eval $ac_compile) 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); } &&
4616          { ac_try='test -s conftest.$ac_objext'
4617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618   (eval $ac_try) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; }; then
4622   ac_cv_header_stdc=yes
4623 else
4624   echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 ac_cv_header_stdc=no
4628 fi
4629 rm -f conftest.$ac_objext conftest.$ac_ext
4630
4631 if test $ac_cv_header_stdc = yes; then
4632   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4633   cat >conftest.$ac_ext <<_ACEOF
4634 #line $LINENO "configure"
4635 /* confdefs.h.  */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h.  */
4640 #include <string.h>
4641
4642 _ACEOF
4643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4644   $EGREP "memchr" >/dev/null 2>&1; then
4645   :
4646 else
4647   ac_cv_header_stdc=no
4648 fi
4649 rm -f conftest*
4650
4651 fi
4652
4653 if test $ac_cv_header_stdc = yes; then
4654   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4655   cat >conftest.$ac_ext <<_ACEOF
4656 #line $LINENO "configure"
4657 /* confdefs.h.  */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h.  */
4662 #include <stdlib.h>
4663
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666   $EGREP "free" >/dev/null 2>&1; then
4667   :
4668 else
4669   ac_cv_header_stdc=no
4670 fi
4671 rm -f conftest*
4672
4673 fi
4674
4675 if test $ac_cv_header_stdc = yes; then
4676   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677   if test "$cross_compiling" = yes; then
4678   :
4679 else
4680   cat >conftest.$ac_ext <<_ACEOF
4681 #line $LINENO "configure"
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687 #include <ctype.h>
4688 #if ((' ' & 0x0FF) == 0x020)
4689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4691 #else
4692 # define ISLOWER(c) \
4693                    (('a' <= (c) && (c) <= 'i') \
4694                      || ('j' <= (c) && (c) <= 'r') \
4695                      || ('s' <= (c) && (c) <= 'z'))
4696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4697 #endif
4698
4699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4700 int
4701 main ()
4702 {
4703   int i;
4704   for (i = 0; i < 256; i++)
4705     if (XOR (islower (i), ISLOWER (i))
4706         || toupper (i) != TOUPPER (i))
4707       exit(2);
4708   exit (0);
4709 }
4710 _ACEOF
4711 rm -f conftest$ac_exeext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713   (eval $ac_link) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; }; then
4722   :
4723 else
4724   echo "$as_me: program exited with status $ac_status" >&5
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 ( exit $ac_status )
4729 ac_cv_header_stdc=no
4730 fi
4731 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732 fi
4733 fi
4734 fi
4735 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4736 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4737 if test $ac_cv_header_stdc = yes; then
4738
4739 cat >>confdefs.h <<\_ACEOF
4740 #define STDC_HEADERS 1
4741 _ACEOF
4742
4743 fi
4744
4745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4756                   inttypes.h stdint.h unistd.h
4757 do
4758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4759 echo "$as_me:$LINENO: checking for $ac_header" >&5
4760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   cat >conftest.$ac_ext <<_ACEOF
4765 #line $LINENO "configure"
4766 /* confdefs.h.  */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h.  */
4771 $ac_includes_default
4772
4773 #include <$ac_header>
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777   (eval $ac_compile) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } &&
4781          { ac_try='test -s conftest.$ac_objext'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; }; then
4787   eval "$as_ac_Header=yes"
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 eval "$as_ac_Header=no"
4793 fi
4794 rm -f conftest.$ac_objext conftest.$ac_ext
4795 fi
4796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4799   cat >>confdefs.h <<_ACEOF
4800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4801 _ACEOF
4802
4803 fi
4804
4805 done
4806
4807
4808
4809 for ac_header in dlfcn.h
4810 do
4811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4813   echo "$as_me:$LINENO: checking for $ac_header" >&5
4814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 fi
4818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4820 else
4821   # Is the header compilable?
4822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 /* confdefs.h.  */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h.  */
4831 $ac_includes_default
4832 #include <$ac_header>
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836   (eval $ac_compile) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } &&
4840          { ac_try='test -s conftest.$ac_objext'
4841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842   (eval $ac_try) 2>&5
4843   ac_status=$?
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); }; }; then
4846   ac_header_compiler=yes
4847 else
4848   echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 ac_header_compiler=no
4852 fi
4853 rm -f conftest.$ac_objext conftest.$ac_ext
4854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4855 echo "${ECHO_T}$ac_header_compiler" >&6
4856
4857 # Is the header present?
4858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4860 cat >conftest.$ac_ext <<_ACEOF
4861 #line $LINENO "configure"
4862 /* confdefs.h.  */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h.  */
4867 #include <$ac_header>
4868 _ACEOF
4869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4871   ac_status=$?
4872   grep -v '^ *+' conftest.er1 >conftest.err
4873   rm -f conftest.er1
4874   cat conftest.err >&5
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); } >/dev/null; then
4877   if test -s conftest.err; then
4878     ac_cpp_err=$ac_c_preproc_warn_flag
4879   else
4880     ac_cpp_err=
4881   fi
4882 else
4883   ac_cpp_err=yes
4884 fi
4885 if test -z "$ac_cpp_err"; then
4886   ac_header_preproc=yes
4887 else
4888   echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891   ac_header_preproc=no
4892 fi
4893 rm -f conftest.err conftest.$ac_ext
4894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4895 echo "${ECHO_T}$ac_header_preproc" >&6
4896
4897 # So?  What about this header?
4898 case $ac_header_compiler:$ac_header_preproc in
4899   yes:no )
4900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4904     (
4905       cat <<\_ASBOX
4906 ## ------------------------------------ ##
4907 ## Report this to bug-autoconf@gnu.org. ##
4908 ## ------------------------------------ ##
4909 _ASBOX
4910     ) |
4911       sed "s/^/$as_me: WARNING:     /" >&2
4912     ;;
4913   no:yes )
4914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4916     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4920     (
4921       cat <<\_ASBOX
4922 ## ------------------------------------ ##
4923 ## Report this to bug-autoconf@gnu.org. ##
4924 ## ------------------------------------ ##
4925 _ASBOX
4926     ) |
4927       sed "s/^/$as_me: WARNING:     /" >&2
4928     ;;
4929 esac
4930 echo "$as_me:$LINENO: checking for $ac_header" >&5
4931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935   eval "$as_ac_Header=$ac_header_preproc"
4936 fi
4937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4939
4940 fi
4941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4942   cat >>confdefs.h <<_ACEOF
4943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4944 _ACEOF
4945
4946 fi
4947
4948 done
4949
4950 ac_ext=cc
4951 ac_cpp='$CXXCPP $CPPFLAGS'
4952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4955 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4956 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4957 if test -z "$CXXCPP"; then
4958   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961       # Double quotes because CXXCPP needs to be expanded
4962     for CXXCPP in "$CXX -E" "/lib/cpp"
4963     do
4964       ac_preproc_ok=false
4965 for ac_cxx_preproc_warn_flag in '' yes
4966 do
4967   # Use a header file that comes with gcc, so configuring glibc
4968   # with a fresh cross-compiler works.
4969   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970   # <limits.h> exists even on freestanding compilers.
4971   # On the NeXT, cc -E runs the code through the compiler's parser,
4972   # not just through cpp. "Syntax error" is here to catch this case.
4973   cat >conftest.$ac_ext <<_ACEOF
4974 #line $LINENO "configure"
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 #ifdef __STDC__
4981 # include <limits.h>
4982 #else
4983 # include <assert.h>
4984 #endif
4985                      Syntax error
4986 _ACEOF
4987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989   ac_status=$?
4990   grep -v '^ *+' conftest.er1 >conftest.err
4991   rm -f conftest.er1
4992   cat conftest.err >&5
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); } >/dev/null; then
4995   if test -s conftest.err; then
4996     ac_cpp_err=$ac_cxx_preproc_warn_flag
4997   else
4998     ac_cpp_err=
4999   fi
5000 else
5001   ac_cpp_err=yes
5002 fi
5003 if test -z "$ac_cpp_err"; then
5004   :
5005 else
5006   echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009   # Broken: fails on valid input.
5010 continue
5011 fi
5012 rm -f conftest.err conftest.$ac_ext
5013
5014   # OK, works on sane cases.  Now check whether non-existent headers
5015   # can be detected and how.
5016   cat >conftest.$ac_ext <<_ACEOF
5017 #line $LINENO "configure"
5018 /* confdefs.h.  */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h.  */
5023 #include <ac_nonexistent.h>
5024 _ACEOF
5025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027   ac_status=$?
5028   grep -v '^ *+' conftest.er1 >conftest.err
5029   rm -f conftest.er1
5030   cat conftest.err >&5
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } >/dev/null; then
5033   if test -s conftest.err; then
5034     ac_cpp_err=$ac_cxx_preproc_warn_flag
5035   else
5036     ac_cpp_err=
5037   fi
5038 else
5039   ac_cpp_err=yes
5040 fi
5041 if test -z "$ac_cpp_err"; then
5042   # Broken: success on invalid input.
5043 continue
5044 else
5045   echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048   # Passes both tests.
5049 ac_preproc_ok=:
5050 break
5051 fi
5052 rm -f conftest.err conftest.$ac_ext
5053
5054 done
5055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5056 rm -f conftest.err conftest.$ac_ext
5057 if $ac_preproc_ok; then
5058   break
5059 fi
5060
5061     done
5062     ac_cv_prog_CXXCPP=$CXXCPP
5063
5064 fi
5065   CXXCPP=$ac_cv_prog_CXXCPP
5066 else
5067   ac_cv_prog_CXXCPP=$CXXCPP
5068 fi
5069 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5070 echo "${ECHO_T}$CXXCPP" >&6
5071 ac_preproc_ok=false
5072 for ac_cxx_preproc_warn_flag in '' yes
5073 do
5074   # Use a header file that comes with gcc, so configuring glibc
5075   # with a fresh cross-compiler works.
5076   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5077   # <limits.h> exists even on freestanding compilers.
5078   # On the NeXT, cc -E runs the code through the compiler's parser,
5079   # not just through cpp. "Syntax error" is here to catch this case.
5080   cat >conftest.$ac_ext <<_ACEOF
5081 #line $LINENO "configure"
5082 /* confdefs.h.  */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h.  */
5087 #ifdef __STDC__
5088 # include <limits.h>
5089 #else
5090 # include <assert.h>
5091 #endif
5092                      Syntax error
5093 _ACEOF
5094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096   ac_status=$?
5097   grep -v '^ *+' conftest.er1 >conftest.err
5098   rm -f conftest.er1
5099   cat conftest.err >&5
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } >/dev/null; then
5102   if test -s conftest.err; then
5103     ac_cpp_err=$ac_cxx_preproc_warn_flag
5104   else
5105     ac_cpp_err=
5106   fi
5107 else
5108   ac_cpp_err=yes
5109 fi
5110 if test -z "$ac_cpp_err"; then
5111   :
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116   # Broken: fails on valid input.
5117 continue
5118 fi
5119 rm -f conftest.err conftest.$ac_ext
5120
5121   # OK, works on sane cases.  Now check whether non-existent headers
5122   # can be detected and how.
5123   cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5125 /* confdefs.h.  */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h.  */
5130 #include <ac_nonexistent.h>
5131 _ACEOF
5132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5134   ac_status=$?
5135   grep -v '^ *+' conftest.er1 >conftest.err
5136   rm -f conftest.er1
5137   cat conftest.err >&5
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } >/dev/null; then
5140   if test -s conftest.err; then
5141     ac_cpp_err=$ac_cxx_preproc_warn_flag
5142   else
5143     ac_cpp_err=
5144   fi
5145 else
5146   ac_cpp_err=yes
5147 fi
5148 if test -z "$ac_cpp_err"; then
5149   # Broken: success on invalid input.
5150 continue
5151 else
5152   echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155   # Passes both tests.
5156 ac_preproc_ok=:
5157 break
5158 fi
5159 rm -f conftest.err conftest.$ac_ext
5160
5161 done
5162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5163 rm -f conftest.err conftest.$ac_ext
5164 if $ac_preproc_ok; then
5165   :
5166 else
5167   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5168 See \`config.log' for more details." >&5
5169 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5170 See \`config.log' for more details." >&2;}
5171    { (exit 1); exit 1; }; }
5172 fi
5173
5174 ac_ext=cc
5175 ac_cpp='$CXXCPP $CPPFLAGS'
5176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5179
5180
5181 ac_ext=f
5182 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5183 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5185 if test -n "$ac_tool_prefix"; then
5186   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5187   do
5188     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5190 echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192 if test "${ac_cv_prog_F77+set}" = set; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195   if test -n "$F77"; then
5196   ac_cv_prog_F77="$F77" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203   for ac_exec_ext in '' $ac_executable_extensions; do
5204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210 done
5211
5212 fi
5213 fi
5214 F77=$ac_cv_prog_F77
5215 if test -n "$F77"; then
5216   echo "$as_me:$LINENO: result: $F77" >&5
5217 echo "${ECHO_T}$F77" >&6
5218 else
5219   echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5221 fi
5222
5223     test -n "$F77" && break
5224   done
5225 fi
5226 if test -z "$F77"; then
5227   ac_ct_F77=$F77
5228   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5229 do
5230   # Extract the first word of "$ac_prog", so it can be a program name with args.
5231 set dummy $ac_prog; ac_word=$2
5232 echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   if test -n "$ac_ct_F77"; then
5238   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245   for ac_exec_ext in '' $ac_executable_extensions; do
5246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247     ac_cv_prog_ac_ct_F77="$ac_prog"
5248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249     break 2
5250   fi
5251 done
5252 done
5253
5254 fi
5255 fi
5256 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5257 if test -n "$ac_ct_F77"; then
5258   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5259 echo "${ECHO_T}$ac_ct_F77" >&6
5260 else
5261   echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6
5263 fi
5264
5265   test -n "$ac_ct_F77" && break
5266 done
5267
5268   F77=$ac_ct_F77
5269 fi
5270
5271
5272 # Provide some information about the compiler.
5273 echo "$as_me:5273:" \
5274      "checking for Fortran 77 compiler version" >&5
5275 ac_compiler=`set X $ac_compile; echo $2`
5276 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5277   (eval $ac_compiler --version </dev/null >&5) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }
5281 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5282   (eval $ac_compiler -v </dev/null >&5) 2>&5
5283   ac_status=$?
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); }
5286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5287   (eval $ac_compiler -V </dev/null >&5) 2>&5
5288   ac_status=$?
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); }
5291
5292 # If we don't use `.F' as extension, the preprocessor is not run on the
5293 # input file.
5294 ac_save_ext=$ac_ext
5295 ac_ext=F
5296 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5297 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5298 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5299   echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301   cat >conftest.$ac_ext <<_ACEOF
5302       program main
5303 #ifndef __GNUC__
5304        choke me
5305 #endif
5306
5307       end
5308 _ACEOF
5309 rm -f conftest.$ac_objext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5311   (eval $ac_compile) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); } &&
5315          { ac_try='test -s conftest.$ac_objext'
5316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317   (eval $ac_try) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   ac_compiler_gnu=yes
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 ac_compiler_gnu=no
5327 fi
5328 rm -f conftest.$ac_objext conftest.$ac_ext
5329 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5330
5331 fi
5332 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5333 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5334 ac_ext=$ac_save_ext
5335 G77=`test $ac_compiler_gnu = yes && echo yes`
5336 ac_test_FFLAGS=${FFLAGS+set}
5337 ac_save_FFLAGS=$FFLAGS
5338 FFLAGS=
5339 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5340 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5341 if test "${ac_cv_prog_f77_g+set}" = set; then
5342   echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344   FFLAGS=-g
5345 cat >conftest.$ac_ext <<_ACEOF
5346       program main
5347
5348       end
5349 _ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352   (eval $ac_compile) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); } &&
5356          { ac_try='test -s conftest.$ac_objext'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; }; then
5362   ac_cv_prog_f77_g=yes
5363 else
5364   echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 ac_cv_prog_f77_g=no
5368 fi
5369 rm -f conftest.$ac_objext conftest.$ac_ext
5370
5371 fi
5372 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5373 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5374 if test "$ac_test_FFLAGS" = set; then
5375   FFLAGS=$ac_save_FFLAGS
5376 elif test $ac_cv_prog_f77_g = yes; then
5377   if test "$G77" = yes; then
5378     FFLAGS="-g -O2"
5379   else
5380     FFLAGS="-g"
5381   fi
5382 else
5383   if test "$G77" = yes; then
5384     FFLAGS="-O2"
5385   else
5386     FFLAGS=
5387   fi
5388 fi
5389 ac_ext=c
5390 ac_cpp='$CPP $CPPFLAGS'
5391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394
5395
5396
5397 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5398
5399 # find the maximum length of command line arguments
5400 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5401 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5402 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405     i=0
5406   testring="ABCD"
5407
5408   case $build_os in
5409   msdosdjgpp*)
5410     # On DJGPP, this test can blow up pretty badly due to problems in libc
5411     # (any single argument exceeding 2000 bytes causes a buffer overrun
5412     # during glob expansion).  Even if it were fixed, the result of this
5413     # check would be larger than it should be.
5414     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5415     ;;
5416
5417   gnu*)
5418     # Under GNU Hurd, this test is not required because there is
5419     # no limit to the length of command line arguments.
5420     # Libtool will interpret -1 as no limit whatsoever
5421     lt_cv_sys_max_cmd_len=-1;
5422     ;;
5423
5424   cygwin* | mingw*)
5425     # On Win9x/ME, this test blows up -- it succeeds, but takes
5426     # about 5 minutes as the teststring grows exponentially.
5427     # Worse, since 9x/ME are not pre-emptively multitasking,
5428     # you end up with a "frozen" computer, even though with patience
5429     # the test eventually succeeds (with a max line length of 256k).
5430     # Instead, let's just punt: use the minimum linelength reported by
5431     # all of the supported platforms: 8192 (on NT/2K/XP).
5432     lt_cv_sys_max_cmd_len=8192;
5433     ;;
5434
5435  *)
5436     # If test is not a shell built-in, we'll probably end up computing a
5437     # maximum length that is only half of the actual maximum length, but
5438     # we can't tell.
5439     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5440                = "XX$testring") >/dev/null 2>&1 &&
5441             new_result=`expr "X$testring" : ".*" 2>&1` &&
5442             lt_cv_sys_max_cmd_len=$new_result &&
5443             test $i != 17 # 1/2 MB should be enough
5444     do
5445       i=`expr $i + 1`
5446       testring=$testring$testring
5447     done
5448     testring=
5449     # Add a significant safety factor because C++ compilers can tack on massive
5450     # amounts of additional arguments before passing them to the linker.
5451     # It appears as though 1/2 is a usable value.
5452     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5453     ;;
5454   esac
5455
5456 fi
5457
5458 if test -n $lt_cv_sys_max_cmd_len ; then
5459   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5460 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5461 else
5462   echo "$as_me:$LINENO: result: none" >&5
5463 echo "${ECHO_T}none" >&6
5464 fi
5465
5466
5467
5468
5469 # Check for command to grab the raw symbol name followed by C symbol from nm.
5470 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5471 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5472 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475
5476 # These are sane defaults that work on at least a few old systems.
5477 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5478
5479 # Character class describing NM global symbol codes.
5480 symcode='[BCDEGRST]'
5481
5482 # Regexp to match symbols that can be accessed directly from C.
5483 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5484
5485 # Transform the above into a raw symbol and a C symbol.
5486 symxfrm='\1 \2\3 \3'
5487
5488 # Transform an extracted symbol line into a proper C declaration
5489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5490
5491 # Transform an extracted symbol line into symbol name and symbol address
5492 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'"
5493
5494 # Define system-specific variables.
5495 case $host_os in
5496 aix*)
5497   symcode='[BCDT]'
5498   ;;
5499 cygwin* | mingw* | pw32*)
5500   symcode='[ABCDGISTW]'
5501   ;;
5502 hpux*) # Its linker distinguishes data from code symbols
5503   if test "$host_cpu" = ia64; then
5504     symcode='[ABCDEGRST]'
5505   fi
5506   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5507   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'"
5508   ;;
5509 irix* | nonstopux*)
5510   symcode='[BCDEGRST]'
5511   ;;
5512 osf*)
5513   symcode='[BCDEGQRST]'
5514   ;;
5515 solaris* | sysv5*)
5516   symcode='[BDT]'
5517   ;;
5518 sysv4)
5519   symcode='[DFNSTU]'
5520   ;;
5521 esac
5522
5523 # Handle CRLF in mingw tool chain
5524 opt_cr=
5525 case $build_os in
5526 mingw*)
5527   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5528   ;;
5529 esac
5530
5531 # If we're using GNU nm, then use its standard symbol codes.
5532 case `$NM -V 2>&1` in
5533 *GNU* | *'with BFD'*)
5534   symcode='[ABCDGISTW]' ;;
5535 esac
5536
5537 # Try without a prefix undercore, then with it.
5538 for ac_symprfx in "" "_"; do
5539
5540   # Write the raw and C identifiers.
5541   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5542
5543   # Check to see that the pipe works correctly.
5544   pipe_works=no
5545
5546   rm -f conftest*
5547   cat > conftest.$ac_ext <<EOF
5548 #ifdef __cplusplus
5549 extern "C" {
5550 #endif
5551 char nm_test_var;
5552 void nm_test_func(){}
5553 #ifdef __cplusplus
5554 }
5555 #endif
5556 int main(){nm_test_var='a';nm_test_func();return(0);}
5557 EOF
5558
5559   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560   (eval $ac_compile) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); }; then
5564     # Now try to grab the symbols.
5565     nlist=conftest.nm
5566     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5567   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } && test -s "$nlist"; then
5571       # Try sorting and uniquifying the output.
5572       if sort "$nlist" | uniq > "$nlist"T; then
5573         mv -f "$nlist"T "$nlist"
5574       else
5575         rm -f "$nlist"T
5576       fi
5577
5578       # Make sure that we snagged all the symbols we need.
5579       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5580         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5581           cat <<EOF > conftest.$ac_ext
5582 #ifdef __cplusplus
5583 extern "C" {
5584 #endif
5585
5586 EOF
5587           # Now generate the symbol file.
5588           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5589
5590           cat <<EOF >> conftest.$ac_ext
5591 #if defined (__STDC__) && __STDC__
5592 # define lt_ptr_t void *
5593 #else
5594 # define lt_ptr_t char *
5595 # define const
5596 #endif
5597
5598 /* The mapping between symbol names and symbols. */
5599 const struct {
5600   const char *name;
5601   lt_ptr_t address;
5602 }
5603 lt_preloaded_symbols[] =
5604 {
5605 EOF
5606           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5607           cat <<\EOF >> conftest.$ac_ext
5608   {0, (lt_ptr_t) 0}
5609 };
5610
5611 #ifdef __cplusplus
5612 }
5613 #endif
5614 EOF
5615           # Now try linking the two files.
5616           mv conftest.$ac_objext conftstm.$ac_objext
5617           lt_save_LIBS="$LIBS"
5618           lt_save_CFLAGS="$CFLAGS"
5619           LIBS="conftstm.$ac_objext"
5620           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5621           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5622   (eval $ac_link) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5626             pipe_works=yes
5627           fi
5628           LIBS="$lt_save_LIBS"
5629           CFLAGS="$lt_save_CFLAGS"
5630         else
5631           echo "cannot find nm_test_func in $nlist" >&5
5632         fi
5633       else
5634         echo "cannot find nm_test_var in $nlist" >&5
5635       fi
5636     else
5637       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5638     fi
5639   else
5640     echo "$progname: failed program was:" >&5
5641     cat conftest.$ac_ext >&5
5642   fi
5643   rm -f conftest* conftst*
5644
5645   # Do not use the global_symbol_pipe unless it works.
5646   if test "$pipe_works" = yes; then
5647     break
5648   else
5649     lt_cv_sys_global_symbol_pipe=
5650   fi
5651 done
5652
5653 fi
5654
5655 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5656   lt_cv_sys_global_symbol_to_cdecl=
5657 fi
5658 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5659   echo "$as_me:$LINENO: result: failed" >&5
5660 echo "${ECHO_T}failed" >&6
5661 else
5662   echo "$as_me:$LINENO: result: ok" >&5
5663 echo "${ECHO_T}ok" >&6
5664 fi
5665
5666 echo "$as_me:$LINENO: checking for objdir" >&5
5667 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5668 if test "${lt_cv_objdir+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   rm -f .libs 2>/dev/null
5672 mkdir .libs 2>/dev/null
5673 if test -d .libs; then
5674   lt_cv_objdir=.libs
5675 else
5676   # MS-DOS does not allow filenames that begin with a dot.
5677   lt_cv_objdir=_libs
5678 fi
5679 rmdir .libs 2>/dev/null
5680 fi
5681 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5682 echo "${ECHO_T}$lt_cv_objdir" >&6
5683 objdir=$lt_cv_objdir
5684
5685
5686
5687
5688
5689 case $host_os in
5690 aix3*)
5691   # AIX sometimes has problems with the GCC collect2 program.  For some
5692   # reason, if we set the COLLECT_NAMES environment variable, the problems
5693   # vanish in a puff of smoke.
5694   if test "X${COLLECT_NAMES+set}" != Xset; then
5695     COLLECT_NAMES=
5696     export COLLECT_NAMES
5697   fi
5698   ;;
5699 esac
5700
5701 # Sed substitution that helps us do robust quoting.  It backslashifies
5702 # metacharacters that are still active within double-quoted strings.
5703 Xsed='sed -e s/^X//'
5704 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5705
5706 # Same as above, but do not quote variable references.
5707 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5708
5709 # Sed substitution to delay expansion of an escaped shell variable in a
5710 # double_quote_subst'ed string.
5711 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5712
5713 # Sed substitution to avoid accidental globbing in evaled expressions
5714 no_glob_subst='s/\*/\\\*/g'
5715
5716 # Constants:
5717 rm="rm -f"
5718
5719 # Global variables:
5720 default_ofile=mklib
5721 can_build_shared=yes
5722
5723 # All known linkers require a `.a' archive for static linking (except M$VC,
5724 # which needs '.lib').
5725 libext=a
5726 ltmain="$ac_aux_dir/ltmain.sh"
5727 ofile="$default_ofile"
5728 with_gnu_ld="$lt_cv_prog_gnu_ld"
5729
5730 if test -n "$ac_tool_prefix"; then
5731   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5732 set dummy ${ac_tool_prefix}ar; ac_word=$2
5733 echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735 if test "${ac_cv_prog_AR+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   if test -n "$AR"; then
5739   ac_cv_prog_AR="$AR" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746   for ac_exec_ext in '' $ac_executable_extensions; do
5747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748     ac_cv_prog_AR="${ac_tool_prefix}ar"
5749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753 done
5754
5755 fi
5756 fi
5757 AR=$ac_cv_prog_AR
5758 if test -n "$AR"; then
5759   echo "$as_me:$LINENO: result: $AR" >&5
5760 echo "${ECHO_T}$AR" >&6
5761 else
5762   echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6
5764 fi
5765
5766 fi
5767 if test -z "$ac_cv_prog_AR"; then
5768   ac_ct_AR=$AR
5769   # Extract the first word of "ar", so it can be a program name with args.
5770 set dummy ar; ac_word=$2
5771 echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776   if test -n "$ac_ct_AR"; then
5777   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782   IFS=$as_save_IFS
5783   test -z "$as_dir" && as_dir=.
5784   for ac_exec_ext in '' $ac_executable_extensions; do
5785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786     ac_cv_prog_ac_ct_AR="ar"
5787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788     break 2
5789   fi
5790 done
5791 done
5792
5793   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5794 fi
5795 fi
5796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5797 if test -n "$ac_ct_AR"; then
5798   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5799 echo "${ECHO_T}$ac_ct_AR" >&6
5800 else
5801   echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6
5803 fi
5804
5805   AR=$ac_ct_AR
5806 else
5807   AR="$ac_cv_prog_AR"
5808 fi
5809
5810 if test -n "$ac_tool_prefix"; then
5811   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813 echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815 if test "${ac_cv_prog_RANLIB+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   if test -n "$RANLIB"; then
5819   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826   for ac_exec_ext in '' $ac_executable_extensions; do
5827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833 done
5834
5835 fi
5836 fi
5837 RANLIB=$ac_cv_prog_RANLIB
5838 if test -n "$RANLIB"; then
5839   echo "$as_me:$LINENO: result: $RANLIB" >&5
5840 echo "${ECHO_T}$RANLIB" >&6
5841 else
5842   echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5844 fi
5845
5846 fi
5847 if test -z "$ac_cv_prog_RANLIB"; then
5848   ac_ct_RANLIB=$RANLIB
5849   # Extract the first word of "ranlib", so it can be a program name with args.
5850 set dummy ranlib; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   if test -n "$ac_ct_RANLIB"; then
5857   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866     ac_cv_prog_ac_ct_RANLIB="ranlib"
5867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5872
5873   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5874 fi
5875 fi
5876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5877 if test -n "$ac_ct_RANLIB"; then
5878   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5879 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5880 else
5881   echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5883 fi
5884
5885   RANLIB=$ac_ct_RANLIB
5886 else
5887   RANLIB="$ac_cv_prog_RANLIB"
5888 fi
5889
5890 if test -n "$ac_tool_prefix"; then
5891   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}strip; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_STRIP+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$STRIP"; then
5899   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914
5915 fi
5916 fi
5917 STRIP=$ac_cv_prog_STRIP
5918 if test -n "$STRIP"; then
5919   echo "$as_me:$LINENO: result: $STRIP" >&5
5920 echo "${ECHO_T}$STRIP" >&6
5921 else
5922   echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5924 fi
5925
5926 fi
5927 if test -z "$ac_cv_prog_STRIP"; then
5928   ac_ct_STRIP=$STRIP
5929   # Extract the first word of "strip", so it can be a program name with args.
5930 set dummy strip; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   if test -n "$ac_ct_STRIP"; then
5937   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942   IFS=$as_save_IFS
5943   test -z "$as_dir" && as_dir=.
5944   for ac_exec_ext in '' $ac_executable_extensions; do
5945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946     ac_cv_prog_ac_ct_STRIP="strip"
5947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948     break 2
5949   fi
5950 done
5951 done
5952
5953   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5954 fi
5955 fi
5956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5957 if test -n "$ac_ct_STRIP"; then
5958   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5959 echo "${ECHO_T}$ac_ct_STRIP" >&6
5960 else
5961   echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6
5963 fi
5964
5965   STRIP=$ac_ct_STRIP
5966 else
5967   STRIP="$ac_cv_prog_STRIP"
5968 fi
5969
5970
5971 old_CC="$CC"
5972 old_CFLAGS="$CFLAGS"
5973
5974 # Set sane defaults for various variables
5975 test -z "$AR" && AR=ar
5976 test -z "$AR_FLAGS" && AR_FLAGS=cru
5977 test -z "$AS" && AS=as
5978 test -z "$CC" && CC=cc
5979 test -z "$LTCC" && LTCC=$CC
5980 test -z "$DLLTOOL" && DLLTOOL=dlltool
5981 test -z "$LD" && LD=ld
5982 test -z "$LN_S" && LN_S="ln -s"
5983 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5984 test -z "$NM" && NM=nm
5985 test -z "$SED" && SED=sed
5986 test -z "$OBJDUMP" && OBJDUMP=objdump
5987 test -z "$RANLIB" && RANLIB=:
5988 test -z "$STRIP" && STRIP=:
5989 test -z "$ac_objext" && ac_objext=o
5990
5991 # Determine commands to create old-style static archives.
5992 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5993 old_postinstall_cmds='chmod 644 $oldlib'
5994 old_postuninstall_cmds=
5995
5996 if test -n "$RANLIB"; then
5997   case $host_os in
5998   openbsd*)
5999     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6000     ;;
6001   *)
6002     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6003     ;;
6004   esac
6005   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6006 fi
6007
6008 # Only perform the check for file, if the check method requires it
6009 case $deplibs_check_method in
6010 file_magic*)
6011   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6012     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6013 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6014 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   case $MAGIC_CMD in
6018 [\\/*] |  ?:[\\/]*)
6019   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6020   ;;
6021 *)
6022   lt_save_MAGIC_CMD="$MAGIC_CMD"
6023   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6024   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6025   for ac_dir in $ac_dummy; do
6026     IFS="$lt_save_ifs"
6027     test -z "$ac_dir" && ac_dir=.
6028     if test -f $ac_dir/${ac_tool_prefix}file; then
6029       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6030       if test -n "$file_magic_test_file"; then
6031         case $deplibs_check_method in
6032         "file_magic "*)
6033           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6034           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6036             $EGREP "$file_magic_regex" > /dev/null; then
6037             :
6038           else
6039             cat <<EOF 1>&2
6040
6041 *** Warning: the command libtool uses to detect shared libraries,
6042 *** $file_magic_cmd, produces output that libtool cannot recognize.
6043 *** The result is that libtool may fail to recognize shared libraries
6044 *** as such.  This will affect the creation of libtool libraries that
6045 *** depend on shared libraries, but programs linked with such libtool
6046 *** libraries will work regardless of this problem.  Nevertheless, you
6047 *** may want to report the problem to your system manager and/or to
6048 *** bug-libtool@gnu.org
6049
6050 EOF
6051           fi ;;
6052         esac
6053       fi
6054       break
6055     fi
6056   done
6057   IFS="$lt_save_ifs"
6058   MAGIC_CMD="$lt_save_MAGIC_CMD"
6059   ;;
6060 esac
6061 fi
6062
6063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064 if test -n "$MAGIC_CMD"; then
6065   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6066 echo "${ECHO_T}$MAGIC_CMD" >&6
6067 else
6068   echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6070 fi
6071
6072 if test -z "$lt_cv_path_MAGIC_CMD"; then
6073   if test -n "$ac_tool_prefix"; then
6074     echo "$as_me:$LINENO: checking for file" >&5
6075 echo $ECHO_N "checking for file... $ECHO_C" >&6
6076 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   case $MAGIC_CMD in
6080 [\\/*] |  ?:[\\/]*)
6081   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6082   ;;
6083 *)
6084   lt_save_MAGIC_CMD="$MAGIC_CMD"
6085   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6086   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6087   for ac_dir in $ac_dummy; do
6088     IFS="$lt_save_ifs"
6089     test -z "$ac_dir" && ac_dir=.
6090     if test -f $ac_dir/file; then
6091       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6092       if test -n "$file_magic_test_file"; then
6093         case $deplibs_check_method in
6094         "file_magic "*)
6095           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6096           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6098             $EGREP "$file_magic_regex" > /dev/null; then
6099             :
6100           else
6101             cat <<EOF 1>&2
6102
6103 *** Warning: the command libtool uses to detect shared libraries,
6104 *** $file_magic_cmd, produces output that libtool cannot recognize.
6105 *** The result is that libtool may fail to recognize shared libraries
6106 *** as such.  This will affect the creation of libtool libraries that
6107 *** depend on shared libraries, but programs linked with such libtool
6108 *** libraries will work regardless of this problem.  Nevertheless, you
6109 *** may want to report the problem to your system manager and/or to
6110 *** bug-libtool@gnu.org
6111
6112 EOF
6113           fi ;;
6114         esac
6115       fi
6116       break
6117     fi
6118   done
6119   IFS="$lt_save_ifs"
6120   MAGIC_CMD="$lt_save_MAGIC_CMD"
6121   ;;
6122 esac
6123 fi
6124
6125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126 if test -n "$MAGIC_CMD"; then
6127   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6128 echo "${ECHO_T}$MAGIC_CMD" >&6
6129 else
6130   echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6132 fi
6133
6134   else
6135     MAGIC_CMD=:
6136   fi
6137 fi
6138
6139   fi
6140   ;;
6141 esac
6142
6143 enable_dlopen=no
6144 enable_win32_dll=no
6145
6146 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6147 if test "${enable_libtool_lock+set}" = set; then
6148   enableval="$enable_libtool_lock"
6149
6150 fi;
6151 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6152
6153
6154 # Check whether --with-pic or --without-pic was given.
6155 if test "${with_pic+set}" = set; then
6156   withval="$with_pic"
6157   pic_mode="$withval"
6158 else
6159   pic_mode=default
6160 fi;
6161 test -z "$pic_mode" && pic_mode=default
6162
6163 # Use C for the default configuration in the libtool script
6164 tagname=
6165 lt_save_CC="$CC"
6166 ac_ext=c
6167 ac_cpp='$CPP $CPPFLAGS'
6168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171
6172
6173 # Source file extension for C test sources.
6174 ac_ext=c
6175
6176 # Object file extension for compiled C test sources.
6177 objext=o
6178 objext=$objext
6179
6180 # Code to be used in simple compile tests
6181 lt_simple_compile_test_code="int some_variable = 0;\n"
6182
6183 # Code to be used in simple link tests
6184 lt_simple_link_test_code='int main(){return(0);}\n'
6185
6186
6187 # If no C compiler was specified, use CC.
6188 LTCC=${LTCC-"$CC"}
6189
6190 # Allow CC to be a program name with arguments.
6191 compiler=$CC
6192
6193
6194 #
6195 # Check for any special shared library compilation flags.
6196 #
6197 lt_prog_cc_shlib=
6198 if test "$GCC" = no; then
6199   case $host_os in
6200   sco3.2v5*)
6201     lt_prog_cc_shlib='-belf'
6202     ;;
6203   esac
6204 fi
6205 if test -n "$lt_prog_cc_shlib"; then
6206   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6207 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6208   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6209   else
6210     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6211 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6212     lt_cv_prog_cc_can_build_shared=no
6213   fi
6214 fi
6215
6216
6217 #
6218 # Check to make sure the static flag actually works.
6219 #
6220 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6221 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6222 if test "${lt_prog_compiler_static_works+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   lt_prog_compiler_static_works=no
6226    save_LDFLAGS="$LDFLAGS"
6227    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6228    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6229    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6230      # The compiler can only warn and ignore the option if not recognized
6231      # So say no if there are warnings
6232      if test -s conftest.err; then
6233        # Append any errors to the config.log.
6234        cat conftest.err 1>&5
6235      else
6236        lt_prog_compiler_static_works=yes
6237      fi
6238    fi
6239    $rm conftest*
6240    LDFLAGS="$save_LDFLAGS"
6241
6242 fi
6243 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6244 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6245
6246 if test x"$lt_prog_compiler_static_works" = xyes; then
6247     :
6248 else
6249     lt_prog_compiler_static=
6250 fi
6251
6252
6253
6254 ## CAVEAT EMPTOR:
6255 ## There is no encapsulation within the following macros, do not change
6256 ## the running order or otherwise move them around unless you know exactly
6257 ## what you are doing...
6258
6259 lt_prog_compiler_no_builtin_flag=
6260
6261 if test "$GCC" = yes; then
6262   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6263
6264   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6265 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6266 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6267   echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269   lt_cv_prog_compiler_rtti_exceptions=no
6270   ac_outfile=conftest.$ac_objext
6271    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6272    lt_compiler_flag="-fno-rtti -fno-exceptions"
6273    # Insert the option either (1) after the last *FLAGS variable, or
6274    # (2) before a word containing "conftest.", or (3) at the end.
6275    # Note that $ac_compile itself does not contain backslashes and begins
6276    # with a dollar sign (not a hyphen), so the echo should work correctly.
6277    # The option is referenced via a variable to avoid confusing sed.
6278    lt_compile=`echo "$ac_compile" | $SED \
6279    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6280    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6281    -e 's:$: $lt_compiler_flag:'`
6282    (eval echo "\"\$as_me:6282: $lt_compile\"" >&5)
6283    (eval "$lt_compile" 2>conftest.err)
6284    ac_status=$?
6285    cat conftest.err >&5
6286    echo "$as_me:6286: \$? = $ac_status" >&5
6287    if (exit $ac_status) && test -s "$ac_outfile"; then
6288      # The compiler can only warn and ignore the option if not recognized
6289      # So say no if there are warnings
6290      if test ! -s conftest.err; then
6291        lt_cv_prog_compiler_rtti_exceptions=yes
6292      fi
6293    fi
6294    $rm conftest*
6295
6296 fi
6297 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6298 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6299
6300 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6301     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6302 else
6303     :
6304 fi
6305
6306 fi
6307
6308 lt_prog_compiler_wl=
6309 lt_prog_compiler_pic=
6310 lt_prog_compiler_static=
6311
6312 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6313 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6314
6315   if test "$GCC" = yes; then
6316     lt_prog_compiler_wl='-Wl,'
6317     lt_prog_compiler_static='-static'
6318
6319     case $host_os in
6320       aix*)
6321       # All AIX code is PIC.
6322       if test "$host_cpu" = ia64; then
6323         # AIX 5 now supports IA64 processor
6324         lt_prog_compiler_static='-Bstatic'
6325       fi
6326       ;;
6327
6328     amigaos*)
6329       # FIXME: we need at least 68020 code to build shared libraries, but
6330       # adding the `-m68020' flag to GCC prevents building anything better,
6331       # like `-m68040'.
6332       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6333       ;;
6334
6335     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6336       # PIC is the default for these OSes.
6337       ;;
6338
6339     mingw* | pw32* | os2*)
6340       # This hack is so that the source file can tell whether it is being
6341       # built for inclusion in a dll (and should export symbols for example).
6342       lt_prog_compiler_pic='-DDLL_EXPORT'
6343       ;;
6344
6345     darwin* | rhapsody*)
6346       # PIC is the default on this platform
6347       # Common symbols not allowed in MH_DYLIB files
6348       lt_prog_compiler_pic='-fno-common'
6349       ;;
6350
6351     msdosdjgpp*)
6352       # Just because we use GCC doesn't mean we suddenly get shared libraries
6353       # on systems that don't support them.
6354       lt_prog_compiler_can_build_shared=no
6355       enable_shared=no
6356       ;;
6357
6358     sysv4*MP*)
6359       if test -d /usr/nec; then
6360         lt_prog_compiler_pic=-Kconform_pic
6361       fi
6362       ;;
6363
6364     hpux*)
6365       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6366       # not for PA HP-UX.
6367       case "$host_cpu" in
6368       hppa*64*|ia64*)
6369         # +Z the default
6370         ;;
6371       *)
6372         lt_prog_compiler_pic='-fPIC'
6373         ;;
6374       esac
6375       ;;
6376
6377     *)
6378       lt_prog_compiler_pic='-fPIC'
6379       ;;
6380     esac
6381   else
6382     # PORTME Check for flag to pass linker flags through the system compiler.
6383     case $host_os in
6384     aix*)
6385       lt_prog_compiler_wl='-Wl,'
6386       if test "$host_cpu" = ia64; then
6387         # AIX 5 now supports IA64 processor
6388         lt_prog_compiler_static='-Bstatic'
6389       else
6390         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6391       fi
6392       ;;
6393
6394     mingw* | pw32* | os2*)
6395       # This hack is so that the source file can tell whether it is being
6396       # built for inclusion in a dll (and should export symbols for example).
6397       lt_prog_compiler_pic='-DDLL_EXPORT'
6398       ;;
6399
6400     hpux9* | hpux10* | hpux11*)
6401       lt_prog_compiler_wl='-Wl,'
6402       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6403       # not for PA HP-UX.
6404       case "$host_cpu" in
6405       hppa*64*|ia64*)
6406         # +Z the default
6407         ;;
6408       *)
6409         lt_prog_compiler_pic='+Z'
6410         ;;
6411       esac
6412       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6413       lt_prog_compiler_static='${wl}-a ${wl}archive'
6414       ;;
6415
6416     irix5* | irix6* | nonstopux*)
6417       lt_prog_compiler_wl='-Wl,'
6418       # PIC (with -KPIC) is the default.
6419       lt_prog_compiler_static='-non_shared'
6420       ;;
6421
6422     newsos6)
6423       lt_prog_compiler_pic='-KPIC'
6424       lt_prog_compiler_static='-Bstatic'
6425       ;;
6426
6427     linux*)
6428       case $CC in
6429       icc|ecc)
6430         lt_prog_compiler_wl='-Wl,'
6431         lt_prog_compiler_pic='-KPIC'
6432         lt_prog_compiler_static='-static'
6433         ;;
6434       ccc)
6435         lt_prog_compiler_wl='-Wl,'
6436         # All Alpha code is PIC.
6437         lt_prog_compiler_static='-non_shared'
6438         ;;
6439       esac
6440       ;;
6441
6442     osf3* | osf4* | osf5*)
6443       lt_prog_compiler_wl='-Wl,'
6444       # All OSF/1 code is PIC.
6445       lt_prog_compiler_static='-non_shared'
6446       ;;
6447
6448     sco3.2v5*)
6449       lt_prog_compiler_pic='-Kpic'
6450       lt_prog_compiler_static='-dn'
6451       ;;
6452
6453     solaris*)
6454       lt_prog_compiler_wl='-Wl,'
6455       lt_prog_compiler_pic='-KPIC'
6456       lt_prog_compiler_static='-Bstatic'
6457       ;;
6458
6459     sunos4*)
6460       lt_prog_compiler_wl='-Qoption ld '
6461       lt_prog_compiler_pic='-PIC'
6462       lt_prog_compiler_static='-Bstatic'
6463       ;;
6464
6465     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6466       lt_prog_compiler_wl='-Wl,'
6467       lt_prog_compiler_pic='-KPIC'
6468       lt_prog_compiler_static='-Bstatic'
6469       ;;
6470
6471     sysv4*MP*)
6472       if test -d /usr/nec ;then
6473         lt_prog_compiler_pic='-Kconform_pic'
6474         lt_prog_compiler_static='-Bstatic'
6475       fi
6476       ;;
6477
6478     uts4*)
6479       lt_prog_compiler_pic='-pic'
6480       lt_prog_compiler_static='-Bstatic'
6481       ;;
6482
6483     *)
6484       lt_prog_compiler_can_build_shared=no
6485       ;;
6486     esac
6487   fi
6488
6489 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6490 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6491
6492 #
6493 # Check to make sure the PIC flag actually works.
6494 #
6495 if test -n "$lt_prog_compiler_pic"; then
6496   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6497 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6498 if test "${lt_prog_compiler_pic_works+set}" = set; then
6499   echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501   lt_prog_compiler_pic_works=no
6502   ac_outfile=conftest.$ac_objext
6503    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6504    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6505    # Insert the option either (1) after the last *FLAGS variable, or
6506    # (2) before a word containing "conftest.", or (3) at the end.
6507    # Note that $ac_compile itself does not contain backslashes and begins
6508    # with a dollar sign (not a hyphen), so the echo should work correctly.
6509    # The option is referenced via a variable to avoid confusing sed.
6510    lt_compile=`echo "$ac_compile" | $SED \
6511    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6512    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6513    -e 's:$: $lt_compiler_flag:'`
6514    (eval echo "\"\$as_me:6514: $lt_compile\"" >&5)
6515    (eval "$lt_compile" 2>conftest.err)
6516    ac_status=$?
6517    cat conftest.err >&5
6518    echo "$as_me:6518: \$? = $ac_status" >&5
6519    if (exit $ac_status) && test -s "$ac_outfile"; then
6520      # The compiler can only warn and ignore the option if not recognized
6521      # So say no if there are warnings
6522      if test ! -s conftest.err; then
6523        lt_prog_compiler_pic_works=yes
6524      fi
6525    fi
6526    $rm conftest*
6527
6528 fi
6529 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6530 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6531
6532 if test x"$lt_prog_compiler_pic_works" = xyes; then
6533     case $lt_prog_compiler_pic in
6534      "" | " "*) ;;
6535      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6536      esac
6537 else
6538     lt_prog_compiler_pic=
6539      lt_prog_compiler_can_build_shared=no
6540 fi
6541
6542 fi
6543 case "$host_os" in
6544   # For platforms which do not support PIC, -DPIC is meaningless:
6545   *djgpp*)
6546     lt_prog_compiler_pic=
6547     ;;
6548   *)
6549     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6550     ;;
6551 esac
6552
6553 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6554 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6555 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   lt_cv_prog_compiler_c_o=no
6559    $rm -r conftest 2>/dev/null
6560    mkdir conftest
6561    cd conftest
6562    mkdir out
6563    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6564
6565    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6566    # that will create temporary files in the current directory regardless of
6567    # the output directory.  Thus, making CWD read-only will cause this test
6568    # to fail, enabling locking or at least warning the user not to do parallel
6569    # builds.
6570    chmod -w .
6571
6572    lt_compiler_flag="-o out/conftest2.$ac_objext"
6573    # Insert the option either (1) after the last *FLAGS variable, or
6574    # (2) before a word containing "conftest.", or (3) at the end.
6575    # Note that $ac_compile itself does not contain backslashes and begins
6576    # with a dollar sign (not a hyphen), so the echo should work correctly.
6577    lt_compile=`echo "$ac_compile" | $SED \
6578    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6579    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6580    -e 's:$: $lt_compiler_flag:'`
6581    (eval echo "\"\$as_me:6581: $lt_compile\"" >&5)
6582    (eval "$lt_compile" 2>out/conftest.err)
6583    ac_status=$?
6584    cat out/conftest.err >&5
6585    echo "$as_me:6585: \$? = $ac_status" >&5
6586    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6587    then
6588      # The compiler can only warn and ignore the option if not recognized
6589      # So say no if there are warnings
6590      if test ! -s out/conftest.err; then
6591        lt_cv_prog_compiler_c_o=yes
6592      fi
6593    fi
6594    chmod u+w .
6595    $rm conftest* out/*
6596    rmdir out
6597    cd ..
6598    rmdir conftest
6599    $rm conftest*
6600
6601 fi
6602 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6603 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6604
6605
6606 hard_links="nottested"
6607 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6608   # do not overwrite the value of need_locks provided by the user
6609   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6610 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6611   hard_links=yes
6612   $rm conftest*
6613   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6614   touch conftest.a
6615   ln conftest.a conftest.b 2>&5 || hard_links=no
6616   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6617   echo "$as_me:$LINENO: result: $hard_links" >&5
6618 echo "${ECHO_T}$hard_links" >&6
6619   if test "$hard_links" = no; then
6620     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6621 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6622     need_locks=warn
6623   fi
6624 else
6625   need_locks=no
6626 fi
6627
6628 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6629 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6630
6631   runpath_var=
6632   allow_undefined_flag=
6633   enable_shared_with_static_runtimes=no
6634   archive_cmds=
6635   archive_expsym_cmds=
6636   old_archive_From_new_cmds=
6637   old_archive_from_expsyms_cmds=
6638   export_dynamic_flag_spec=
6639   whole_archive_flag_spec=
6640   thread_safe_flag_spec=
6641   hardcode_libdir_flag_spec=
6642   hardcode_libdir_flag_spec_ld=
6643   hardcode_libdir_separator=
6644   hardcode_direct=no
6645   hardcode_minus_L=no
6646   hardcode_shlibpath_var=unsupported
6647   link_all_deplibs=unknown
6648   hardcode_automatic=no
6649   module_cmds=
6650   module_expsym_cmds=
6651   always_export_symbols=no
6652   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6653   # include_expsyms should be a list of space-separated symbols to be *always*
6654   # included in the symbol list
6655   include_expsyms=
6656   # exclude_expsyms can be an extended regexp of symbols to exclude
6657   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6658   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6659   # as well as any symbol that contains `d'.
6660   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6661   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6662   # platforms (ab)use it in PIC code, but their linkers get confused if
6663   # the symbol is explicitly referenced.  Since portable code cannot
6664   # rely on this symbol name, it's probably fine to never include it in
6665   # preloaded symbol tables.
6666   extract_expsyms_cmds=
6667
6668   case $host_os in
6669   cygwin* | mingw* | pw32*)
6670     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6671     # When not using gcc, we currently assume that we are using
6672     # Microsoft Visual C++.
6673     if test "$GCC" != yes; then
6674       with_gnu_ld=no
6675     fi
6676     ;;
6677   openbsd*)
6678     with_gnu_ld=no
6679     ;;
6680   esac
6681
6682   ld_shlibs=yes
6683   if test "$with_gnu_ld" = yes; then
6684     # If archive_cmds runs LD, not CC, wlarc should be empty
6685     wlarc='${wl}'
6686
6687     # See if GNU ld supports shared libraries.
6688     case $host_os in
6689     aix3* | aix4* | aix5*)
6690       # On AIX/PPC, the GNU linker is very broken
6691       if test "$host_cpu" != ia64; then
6692         ld_shlibs=no
6693         cat <<EOF 1>&2
6694
6695 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6696 *** to be unable to reliably create shared libraries on AIX.
6697 *** Therefore, libtool is disabling shared libraries support.  If you
6698 *** really care for shared libraries, you may want to modify your PATH
6699 *** so that a non-GNU linker is found, and then restart.
6700
6701 EOF
6702       fi
6703       ;;
6704
6705     amigaos*)
6706       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)'
6707       hardcode_libdir_flag_spec='-L$libdir'
6708       hardcode_minus_L=yes
6709
6710       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6711       # that the semantics of dynamic libraries on AmigaOS, at least up
6712       # to version 4, is to share data among multiple programs linked
6713       # with the same dynamic library.  Since this doesn't match the
6714       # behavior of shared libraries on other platforms, we can't use
6715       # them.
6716       ld_shlibs=no
6717       ;;
6718
6719     beos*)
6720       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6721         allow_undefined_flag=unsupported
6722         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6723         # support --undefined.  This deserves some investigation.  FIXME
6724         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6725       else
6726         ld_shlibs=no
6727       fi
6728       ;;
6729
6730     cygwin* | mingw* | pw32*)
6731       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6732       # as there is no search path for DLLs.
6733       hardcode_libdir_flag_spec='-L$libdir'
6734       allow_undefined_flag=unsupported
6735       always_export_symbols=no
6736       enable_shared_with_static_runtimes=yes
6737       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6738
6739       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6740         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6741         # If the export-symbols file already is a .def file (1st line
6742         # is EXPORTS), use it as is; otherwise, prepend...
6743         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6744           cp $export_symbols $output_objdir/$soname.def;
6745         else
6746           echo EXPORTS > $output_objdir/$soname.def;
6747           cat $export_symbols >> $output_objdir/$soname.def;
6748         fi~
6749         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6750       else
6751         ld_shlibs=no
6752       fi
6753       ;;
6754
6755     netbsd*)
6756       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6757         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6758         wlarc=
6759       else
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       fi
6763       ;;
6764
6765     solaris* | sysv5*)
6766       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6767         ld_shlibs=no
6768         cat <<EOF 1>&2
6769
6770 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6771 *** create shared libraries on Solaris systems.  Therefore, libtool
6772 *** is disabling shared libraries support.  We urge you to upgrade GNU
6773 *** binutils to release 2.9.1 or newer.  Another option is to modify
6774 *** your PATH or compiler configuration so that the native linker is
6775 *** used, and then restart.
6776
6777 EOF
6778       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6779         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6780         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6781       else
6782         ld_shlibs=no
6783       fi
6784       ;;
6785
6786     sunos4*)
6787       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6788       wlarc=
6789       hardcode_direct=yes
6790       hardcode_shlibpath_var=no
6791       ;;
6792
6793     *)
6794       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6795         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6797       else
6798         ld_shlibs=no
6799       fi
6800       ;;
6801     esac
6802
6803     if test "$ld_shlibs" = yes; then
6804       runpath_var=LD_RUN_PATH
6805       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6806       export_dynamic_flag_spec='${wl}--export-dynamic'
6807       # ancient GNU ld didn't support --whole-archive et. al.
6808       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6809         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6810       else
6811         whole_archive_flag_spec=
6812       fi
6813     fi
6814   else
6815     # PORTME fill in a description of your system's linker (not GNU ld)
6816     case $host_os in
6817     aix3*)
6818       allow_undefined_flag=unsupported
6819       always_export_symbols=yes
6820       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'
6821       # Note: this linker hardcodes the directories in LIBPATH if there
6822       # are no directories specified by -L.
6823       hardcode_minus_L=yes
6824       if test "$GCC" = yes && test -z "$link_static_flag"; then
6825         # Neither direct hardcoding nor static linking is supported with a
6826         # broken collect2.
6827         hardcode_direct=unsupported
6828       fi
6829       ;;
6830
6831     aix4* | aix5*)
6832       if test "$host_cpu" = ia64; then
6833         # On IA64, the linker does run time linking by default, so we don't
6834         # have to do anything special.
6835         aix_use_runtimelinking=no
6836         exp_sym_flag='-Bexport'
6837         no_entry_flag=""
6838       else
6839         # If we're using GNU nm, then we don't want the "-C" option.
6840         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6841         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6842           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'
6843         else
6844           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'
6845         fi
6846         aix_use_runtimelinking=no
6847
6848         # Test if we are trying to use run time linking or normal
6849         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6850         # need to do runtime linking.
6851         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6852           for ld_flag in $LDFLAGS; do
6853           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6854             aix_use_runtimelinking=yes
6855             break
6856           fi
6857           done
6858         esac
6859
6860         exp_sym_flag='-bexport'
6861         no_entry_flag='-bnoentry'
6862       fi
6863
6864       # When large executables or shared objects are built, AIX ld can
6865       # have problems creating the table of contents.  If linking a library
6866       # or program results in "error TOC overflow" add -mminimal-toc to
6867       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6868       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6869
6870       archive_cmds=''
6871       hardcode_direct=yes
6872       hardcode_libdir_separator=':'
6873       link_all_deplibs=yes
6874
6875       if test "$GCC" = yes; then
6876         case $host_os in aix4.012|aix4.012.*)
6877         # We only want to do this on AIX 4.2 and lower, the check
6878         # below for broken collect2 doesn't work under 4.3+
6879           collect2name=`${CC} -print-prog-name=collect2`
6880           if test -f "$collect2name" && \
6881            strings "$collect2name" | grep resolve_lib_name >/dev/null
6882           then
6883           # We have reworked collect2
6884           hardcode_direct=yes
6885           else
6886           # We have old collect2
6887           hardcode_direct=unsupported
6888           # It fails to find uninstalled libraries when the uninstalled
6889           # path is not listed in the libpath.  Setting hardcode_minus_L
6890           # to unsupported forces relinking
6891           hardcode_minus_L=yes
6892           hardcode_libdir_flag_spec='-L$libdir'
6893           hardcode_libdir_separator=
6894           fi
6895         esac
6896         shared_flag='-shared'
6897       else
6898         # not using gcc
6899         if test "$host_cpu" = ia64; then
6900         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6901         # chokes on -Wl,-G. The following line is correct:
6902           shared_flag='-G'
6903         else
6904         if test "$aix_use_runtimelinking" = yes; then
6905             shared_flag='${wl}-G'
6906           else
6907             shared_flag='${wl}-bM:SRE'
6908         fi
6909         fi
6910       fi
6911
6912       # It seems that -bexpall does not export symbols beginning with
6913       # underscore (_), so it is better to generate a list of symbols to export.
6914       always_export_symbols=yes
6915       if test "$aix_use_runtimelinking" = yes; then
6916         # Warning - without using the other runtime loading flags (-brtl),
6917         # -berok will link without error, but may produce a broken library.
6918         allow_undefined_flag='-berok'
6919        # Determine the default libpath from the value encoded in an empty executable.
6920        cat >conftest.$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927
6928 int
6929 main ()
6930 {
6931
6932   ;
6933   return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938   (eval $ac_link) 2>&5
6939   ac_status=$?
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); } &&
6942          { ac_try='test -s conftest$ac_exeext'
6943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944   (eval $ac_try) 2>&5
6945   ac_status=$?
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); }; }; then
6948
6949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6950 }'`
6951 # Check for a 64-bit object if we didn't find anything.
6952 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; }
6953 }'`; fi
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 fi
6959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6961
6962        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6963         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"
6964        else
6965         if test "$host_cpu" = ia64; then
6966           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6967           allow_undefined_flag="-z nodefs"
6968           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"
6969         else
6970          # Determine the default libpath from the value encoded in an empty executable.
6971          cat >conftest.$ac_ext <<_ACEOF
6972 #line $LINENO "configure"
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978
6979 int
6980 main ()
6981 {
6982
6983   ;
6984   return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989   (eval $ac_link) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } &&
6993          { ac_try='test -s conftest$ac_exeext'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; }; then
6999
7000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7001 }'`
7002 # Check for a 64-bit object if we didn't find anything.
7003 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; }
7004 }'`; fi
7005 else
7006   echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 fi
7010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7012
7013          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7014           # Warning - without using the other run time loading flags,
7015           # -berok will link without error, but may produce a broken library.
7016           no_undefined_flag=' ${wl}-bernotok'
7017           allow_undefined_flag=' ${wl}-berok'
7018           # -bexpall does not export symbols beginning with underscore (_)
7019           always_export_symbols=yes
7020           # Exported symbols can be pulled into shared objects from archives
7021           whole_archive_flag_spec=' '
7022           archive_cmds_need_lc=yes
7023           # This is similar to how AIX traditionally builds it's shared libraries.
7024           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'
7025         fi
7026       fi
7027       ;;
7028
7029     amigaos*)
7030       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)'
7031       hardcode_libdir_flag_spec='-L$libdir'
7032       hardcode_minus_L=yes
7033       # see comment about different semantics on the GNU ld section
7034       ld_shlibs=no
7035       ;;
7036
7037     bsdi4*)
7038       export_dynamic_flag_spec=-rdynamic
7039       ;;
7040
7041     cygwin* | mingw* | pw32*)
7042       # When not using gcc, we currently assume that we are using
7043       # Microsoft Visual C++.
7044       # hardcode_libdir_flag_spec is actually meaningless, as there is
7045       # no search path for DLLs.
7046       hardcode_libdir_flag_spec=' '
7047       allow_undefined_flag=unsupported
7048       # Tell ltmain to make .lib files, not .a files.
7049       libext=lib
7050       # Tell ltmain to make .dll files, not .so files.
7051       shrext=".dll"
7052       # FIXME: Setting linknames here is a bad hack.
7053       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7054       # The linker will automatically build a .lib file if we build a DLL.
7055       old_archive_From_new_cmds='true'
7056       # FIXME: Should let the user specify the lib program.
7057       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7058       fix_srcfile_path='`cygpath -w "$srcfile"`'
7059       enable_shared_with_static_runtimes=yes
7060       ;;
7061
7062     darwin* | rhapsody*)
7063     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7064       archive_cmds_need_lc=no
7065       case "$host_os" in
7066       rhapsody* | darwin1.[012])
7067         allow_undefined_flag='-undefined suppress'
7068         ;;
7069       *) # Darwin 1.3 on
7070         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7071         ;;
7072       esac
7073       # FIXME: Relying on posixy $() will cause problems for
7074       #        cross-compilation, but unfortunately the echo tests do not
7075       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7076       #        `"' quotes if we put them in here... so don't!
7077         lt_int_apple_cc_single_mod=no
7078         output_verbose_link_cmd='echo'
7079         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7080           lt_int_apple_cc_single_mod=yes
7081         fi
7082         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7083           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7084         else
7085         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'
7086       fi
7087       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7088       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7089         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7090           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}'
7091         else
7092           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}'
7093         fi
7094           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}'
7095       hardcode_direct=no
7096       hardcode_automatic=yes
7097       hardcode_shlibpath_var=unsupported
7098       whole_archive_flag_spec='-all_load $convenience'
7099       link_all_deplibs=yes
7100     fi
7101       ;;
7102
7103     dgux*)
7104       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7105       hardcode_libdir_flag_spec='-L$libdir'
7106       hardcode_shlibpath_var=no
7107       ;;
7108
7109     freebsd1*)
7110       ld_shlibs=no
7111       ;;
7112
7113     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7114     # support.  Future versions do this automatically, but an explicit c++rt0.o
7115     # does not break anything, and helps significantly (at the cost of a little
7116     # extra space).
7117     freebsd2.2*)
7118       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7119       hardcode_libdir_flag_spec='-R$libdir'
7120       hardcode_direct=yes
7121       hardcode_shlibpath_var=no
7122       ;;
7123
7124     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7125     freebsd2*)
7126       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7127       hardcode_direct=yes
7128       hardcode_minus_L=yes
7129       hardcode_shlibpath_var=no
7130       ;;
7131
7132     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7133     freebsd*)
7134       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7135       hardcode_libdir_flag_spec='-R$libdir'
7136       hardcode_direct=yes
7137       hardcode_shlibpath_var=no
7138       ;;
7139
7140     hpux9*)
7141       if test "$GCC" = yes; then
7142         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'
7143       else
7144         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'
7145       fi
7146       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7147       hardcode_libdir_separator=:
7148       hardcode_direct=yes
7149
7150       # hardcode_minus_L: Not really in the search PATH,
7151       # but as the default location of the library.
7152       hardcode_minus_L=yes
7153       export_dynamic_flag_spec='${wl}-E'
7154       ;;
7155
7156     hpux10* | hpux11*)
7157       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7158         case "$host_cpu" in
7159         hppa*64*|ia64*)
7160           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7161           ;;
7162         *)
7163           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7164           ;;
7165         esac
7166       else
7167         case "$host_cpu" in
7168         hppa*64*|ia64*)
7169           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7170           ;;
7171         *)
7172           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7173           ;;
7174         esac
7175       fi
7176       if test "$with_gnu_ld" = no; then
7177         case "$host_cpu" in
7178         hppa*64*)
7179           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7180           hardcode_libdir_flag_spec_ld='+b $libdir'
7181           hardcode_libdir_separator=:
7182           hardcode_direct=no
7183           hardcode_shlibpath_var=no
7184           ;;
7185         ia64*)
7186           hardcode_libdir_flag_spec='-L$libdir'
7187           hardcode_direct=no
7188           hardcode_shlibpath_var=no
7189
7190           # hardcode_minus_L: Not really in the search PATH,
7191           # but as the default location of the library.
7192           hardcode_minus_L=yes
7193           ;;
7194         *)
7195           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7196           hardcode_libdir_separator=:
7197           hardcode_direct=yes
7198           export_dynamic_flag_spec='${wl}-E'
7199
7200           # hardcode_minus_L: Not really in the search PATH,
7201           # but as the default location of the library.
7202           hardcode_minus_L=yes
7203           ;;
7204         esac
7205       fi
7206       ;;
7207
7208     irix5* | irix6* | nonstopux*)
7209       if test "$GCC" = yes; then
7210         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'
7211       else
7212         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'
7213         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7214       fi
7215       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7216       hardcode_libdir_separator=:
7217       link_all_deplibs=yes
7218       ;;
7219
7220     netbsd*)
7221       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7222         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7223       else
7224         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7225       fi
7226       hardcode_libdir_flag_spec='-R$libdir'
7227       hardcode_direct=yes
7228       hardcode_shlibpath_var=no
7229       ;;
7230
7231     newsos6)
7232       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7233       hardcode_direct=yes
7234       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7235       hardcode_libdir_separator=:
7236       hardcode_shlibpath_var=no
7237       ;;
7238
7239     openbsd*)
7240       hardcode_direct=yes
7241       hardcode_shlibpath_var=no
7242       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7243         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7244         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7245         export_dynamic_flag_spec='${wl}-E'
7246       else
7247        case $host_os in
7248          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7249            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7250            hardcode_libdir_flag_spec='-R$libdir'
7251            ;;
7252          *)
7253            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7254            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7255            ;;
7256        esac
7257       fi
7258       ;;
7259
7260     os2*)
7261       hardcode_libdir_flag_spec='-L$libdir'
7262       hardcode_minus_L=yes
7263       allow_undefined_flag=unsupported
7264       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'
7265       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7266       ;;
7267
7268     osf3*)
7269       if test "$GCC" = yes; then
7270         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7271         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'
7272       else
7273         allow_undefined_flag=' -expect_unresolved \*'
7274         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'
7275       fi
7276       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7277       hardcode_libdir_separator=:
7278       ;;
7279
7280     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7281       if test "$GCC" = yes; then
7282         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7283         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'
7284         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7285       else
7286         allow_undefined_flag=' -expect_unresolved \*'
7287         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'
7288         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7289         $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'
7290
7291         # Both c and cxx compiler support -rpath directly
7292         hardcode_libdir_flag_spec='-rpath $libdir'
7293       fi
7294       hardcode_libdir_separator=:
7295       ;;
7296
7297     sco3.2v5*)
7298       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7299       hardcode_shlibpath_var=no
7300       export_dynamic_flag_spec='${wl}-Bexport'
7301       runpath_var=LD_RUN_PATH
7302       hardcode_runpath_var=yes
7303       ;;
7304
7305     solaris*)
7306       no_undefined_flag=' -z text'
7307       if test "$GCC" = yes; then
7308         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7309         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7310           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7311       else
7312         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7313         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7314         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7315       fi
7316       hardcode_libdir_flag_spec='-R$libdir'
7317       hardcode_shlibpath_var=no
7318       case $host_os in
7319       solaris2.[0-5] | solaris2.[0-5].*) ;;
7320       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7321         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7322       esac
7323       link_all_deplibs=yes
7324       ;;
7325
7326     sunos4*)
7327       if test "x$host_vendor" = xsequent; then
7328         # Use $CC to link under sequent, because it throws in some extra .o
7329         # files that make .init and .fini sections work.
7330         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7331       else
7332         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7333       fi
7334       hardcode_libdir_flag_spec='-L$libdir'
7335       hardcode_direct=yes
7336       hardcode_minus_L=yes
7337       hardcode_shlibpath_var=no
7338       ;;
7339
7340     sysv4)
7341       case $host_vendor in
7342         sni)
7343           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7344           hardcode_direct=yes # is this really true???
7345         ;;
7346         siemens)
7347           ## LD is ld it makes a PLAMLIB
7348           ## CC just makes a GrossModule.
7349           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7350           reload_cmds='$CC -r -o $output$reload_objs'
7351           hardcode_direct=no
7352         ;;
7353         motorola)
7354           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7356         ;;
7357       esac
7358       runpath_var='LD_RUN_PATH'
7359       hardcode_shlibpath_var=no
7360       ;;
7361
7362     sysv4.3*)
7363       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7364       hardcode_shlibpath_var=no
7365       export_dynamic_flag_spec='-Bexport'
7366       ;;
7367
7368     sysv4*MP*)
7369       if test -d /usr/nec; then
7370         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7371         hardcode_shlibpath_var=no
7372         runpath_var=LD_RUN_PATH
7373         hardcode_runpath_var=yes
7374         ld_shlibs=yes
7375       fi
7376       ;;
7377
7378     sysv4.2uw2*)
7379       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7380       hardcode_direct=yes
7381       hardcode_minus_L=no
7382       hardcode_shlibpath_var=no
7383       hardcode_runpath_var=yes
7384       runpath_var=LD_RUN_PATH
7385       ;;
7386
7387    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7388       no_undefined_flag='${wl}-z ${wl}text'
7389       if test "$GCC" = yes; then
7390         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7391       else
7392         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7393       fi
7394       runpath_var='LD_RUN_PATH'
7395       hardcode_shlibpath_var=no
7396       ;;
7397
7398     sysv5*)
7399       no_undefined_flag=' -z text'
7400       # $CC -shared without GNU ld will not create a library from C++
7401       # object files and a static libstdc++, better avoid it by now
7402       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7404                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7405       hardcode_libdir_flag_spec=
7406       hardcode_shlibpath_var=no
7407       runpath_var='LD_RUN_PATH'
7408       ;;
7409
7410     uts4*)
7411       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7412       hardcode_libdir_flag_spec='-L$libdir'
7413       hardcode_shlibpath_var=no
7414       ;;
7415
7416     *)
7417       ld_shlibs=no
7418       ;;
7419     esac
7420   fi
7421
7422 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7423 echo "${ECHO_T}$ld_shlibs" >&6
7424 test "$ld_shlibs" = no && can_build_shared=no
7425
7426 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7427 if test "$GCC" = yes; then
7428   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7429 fi
7430
7431 #
7432 # Do we need to explicitly link libc?
7433 #
7434 case "x$archive_cmds_need_lc" in
7435 x|xyes)
7436   # Assume -lc should be added
7437   archive_cmds_need_lc=yes
7438
7439   if test "$enable_shared" = yes && test "$GCC" = yes; then
7440     case $archive_cmds in
7441     *'~'*)
7442       # FIXME: we may have to deal with multi-command sequences.
7443       ;;
7444     '$CC '*)
7445       # Test whether the compiler implicitly links with -lc since on some
7446       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7447       # to ld, don't add -lc before -lgcc.
7448       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7450       $rm conftest*
7451       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7452
7453       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454   (eval $ac_compile) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); } 2>conftest.err; then
7458         soname=conftest
7459         lib=conftest
7460         libobjs=conftest.$ac_objext
7461         deplibs=
7462         wl=$lt_prog_compiler_wl
7463         compiler_flags=-v
7464         linker_flags=-v
7465         verstring=
7466         output_objdir=.
7467         libname=conftest
7468         lt_save_allow_undefined_flag=$allow_undefined_flag
7469         allow_undefined_flag=
7470         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7471   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7472   ac_status=$?
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); }
7475         then
7476           archive_cmds_need_lc=no
7477         else
7478           archive_cmds_need_lc=yes
7479         fi
7480         allow_undefined_flag=$lt_save_allow_undefined_flag
7481       else
7482         cat conftest.err 1>&5
7483       fi
7484       $rm conftest*
7485       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7486 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7487       ;;
7488     esac
7489   fi
7490   ;;
7491 esac
7492
7493 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7494 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7495 hardcode_action=
7496 if test -n "$hardcode_libdir_flag_spec" || \
7497    test -n "$runpath_var " || \
7498    test "X$hardcode_automatic"="Xyes" ; then
7499
7500   # We can hardcode non-existant directories.
7501   if test "$hardcode_direct" != no &&
7502      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7503      # have to relink, otherwise we might link with an installed library
7504      # when we should be linking with a yet-to-be-installed one
7505      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7506      test "$hardcode_minus_L" != no; then
7507     # Linking always hardcodes the temporary library directory.
7508     hardcode_action=relink
7509   else
7510     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7511     hardcode_action=immediate
7512   fi
7513 else
7514   # We cannot hardcode anything, or else we can only hardcode existing
7515   # directories.
7516   hardcode_action=unsupported
7517 fi
7518 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7519 echo "${ECHO_T}$hardcode_action" >&6
7520
7521 if test "$hardcode_action" = relink; then
7522   # Fast installation is not supported
7523   enable_fast_install=no
7524 elif test "$shlibpath_overrides_runpath" = yes ||
7525      test "$enable_shared" = no; then
7526   # Fast installation is not necessary
7527   enable_fast_install=needless
7528 fi
7529
7530 striplib=
7531 old_striplib=
7532 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7533 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7534 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7535   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7536   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7537   echo "$as_me:$LINENO: result: yes" >&5
7538 echo "${ECHO_T}yes" >&6
7539 else
7540 # FIXME - insert some real tests, host_os isn't really good enough
7541   case $host_os in
7542    darwin*)
7543        if test -n "$STRIP" ; then
7544          striplib="$STRIP -x"
7545          echo "$as_me:$LINENO: result: yes" >&5
7546 echo "${ECHO_T}yes" >&6
7547        else
7548   echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6
7550 fi
7551        ;;
7552    *)
7553   echo "$as_me:$LINENO: result: no" >&5
7554 echo "${ECHO_T}no" >&6
7555     ;;
7556   esac
7557 fi
7558
7559 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7560 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7561 library_names_spec=
7562 libname_spec='lib$name'
7563 soname_spec=
7564 shrext=".so"
7565 postinstall_cmds=
7566 postuninstall_cmds=
7567 finish_cmds=
7568 finish_eval=
7569 shlibpath_var=
7570 shlibpath_overrides_runpath=unknown
7571 version_type=none
7572 dynamic_linker="$host_os ld.so"
7573 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7574 if test "$GCC" = yes; then
7575   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7576   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7577     # if the path contains ";" then we assume it to be the separator
7578     # otherwise default to the standard path separator (i.e. ":") - it is
7579     # assumed that no part of a normal pathname contains ";" but that should
7580     # okay in the real world where ";" in dirpaths is itself problematic.
7581     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7582   else
7583     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7584   fi
7585 else
7586   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7587 fi
7588 need_lib_prefix=unknown
7589 hardcode_into_libs=no
7590
7591 # when you set need_version to no, make sure it does not cause -set_version
7592 # flags to be left without arguments
7593 need_version=unknown
7594
7595 case $host_os in
7596 aix3*)
7597   version_type=linux
7598   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7599   shlibpath_var=LIBPATH
7600
7601   # AIX 3 has no versioning support, so we append a major version to the name.
7602   soname_spec='${libname}${release}${shared_ext}$major'
7603   ;;
7604
7605 aix4* | aix5*)
7606   version_type=linux
7607   need_lib_prefix=no
7608   need_version=no
7609   hardcode_into_libs=yes
7610   if test "$host_cpu" = ia64; then
7611     # AIX 5 supports IA64
7612     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7613     shlibpath_var=LD_LIBRARY_PATH
7614   else
7615     # With GCC up to 2.95.x, collect2 would create an import file
7616     # for dependence libraries.  The import file would start with
7617     # the line `#! .'.  This would cause the generated library to
7618     # depend on `.', always an invalid library.  This was fixed in
7619     # development snapshots of GCC prior to 3.0.
7620     case $host_os in
7621       aix4 | aix4.[01] | aix4.[01].*)
7622       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7623            echo ' yes '
7624            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7625         :
7626       else
7627         can_build_shared=no
7628       fi
7629       ;;
7630     esac
7631     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7632     # soname into executable. Probably we can add versioning support to
7633     # collect2, so additional links can be useful in future.
7634     if test "$aix_use_runtimelinking" = yes; then
7635       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7636       # instead of lib<name>.a to let people know that these are not
7637       # typical AIX shared libraries.
7638       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7639     else
7640       # We preserve .a as extension for shared libraries through AIX4.2
7641       # and later when we are not doing run time linking.
7642       library_names_spec='${libname}${release}.a $libname.a'
7643       soname_spec='${libname}${release}${shared_ext}$major'
7644     fi
7645     shlibpath_var=LIBPATH
7646   fi
7647   ;;
7648
7649 amigaos*)
7650   library_names_spec='$libname.ixlibrary $libname.a'
7651   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7652   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'
7653   ;;
7654
7655 beos*)
7656   library_names_spec='${libname}${shared_ext}'
7657   dynamic_linker="$host_os ld.so"
7658   shlibpath_var=LIBRARY_PATH
7659   ;;
7660
7661 bsdi4*)
7662   version_type=linux
7663   need_version=no
7664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7665   soname_spec='${libname}${release}${shared_ext}$major'
7666   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7667   shlibpath_var=LD_LIBRARY_PATH
7668   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7669   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7670   # the default ld.so.conf also contains /usr/contrib/lib and
7671   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7672   # libtool to hard-code these into programs
7673   ;;
7674
7675 cygwin* | mingw* | pw32*)
7676   version_type=windows
7677   shrext=".dll"
7678   need_version=no
7679   need_lib_prefix=no
7680
7681   case $GCC,$host_os in
7682   yes,cygwin* | yes,mingw* | yes,pw32*)
7683     library_names_spec='$libname.dll.a'
7684     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7685     postinstall_cmds='base_file=`basename \${file}`~
7686       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7687       dldir=$destdir/`dirname \$dlpath`~
7688       test -d \$dldir || mkdir -p \$dldir~
7689       $install_prog $dir/$dlname \$dldir/$dlname'
7690     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7691       dlpath=$dir/\$dldll~
7692        $rm \$dlpath'
7693     shlibpath_overrides_runpath=yes
7694
7695     case $host_os in
7696     cygwin*)
7697       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7698       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7699       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7700       ;;
7701     mingw*)
7702       # MinGW DLLs use traditional 'lib' prefix
7703       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7704       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7705       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7706         # It is most probably a Windows format PATH printed by
7707         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7708         # path with ; separators, and with drive letters. We can handle the
7709         # drive letters (cygwin fileutils understands them), so leave them,
7710         # especially as we might pass files found there to a mingw objdump,
7711         # which wouldn't understand a cygwinified path. Ahh.
7712         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7713       else
7714         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7715       fi
7716       ;;
7717     pw32*)
7718       # pw32 DLLs use 'pw' prefix rather than 'lib'
7719       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7720       ;;
7721     esac
7722     ;;
7723
7724   *)
7725     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7726     ;;
7727   esac
7728   dynamic_linker='Win32 ld.exe'
7729   # FIXME: first we should search . and the directory the executable is in
7730   shlibpath_var=PATH
7731   ;;
7732
7733 darwin* | rhapsody*)
7734   dynamic_linker="$host_os dyld"
7735   version_type=darwin
7736   need_lib_prefix=no
7737   need_version=no
7738   # FIXME: Relying on posixy $() will cause problems for
7739   #        cross-compilation, but unfortunately the echo tests do not
7740   #        yet detect zsh echo's removal of \ escapes.
7741   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7742   soname_spec='${libname}${release}${major}$shared_ext'
7743   shlibpath_overrides_runpath=yes
7744   shlibpath_var=DYLD_LIBRARY_PATH
7745   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7746   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7747   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7748   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"`
7749   fi
7750   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7751   ;;
7752
7753 dgux*)
7754   version_type=linux
7755   need_lib_prefix=no
7756   need_version=no
7757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7758   soname_spec='${libname}${release}${shared_ext}$major'
7759   shlibpath_var=LD_LIBRARY_PATH
7760   ;;
7761
7762 freebsd1*)
7763   dynamic_linker=no
7764   ;;
7765
7766 freebsd*)
7767   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7768   version_type=freebsd-$objformat
7769   case $version_type in
7770     freebsd-elf*)
7771       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7772       need_version=no
7773       need_lib_prefix=no
7774       ;;
7775     freebsd-*)
7776       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7777       need_version=yes
7778       ;;
7779   esac
7780   shlibpath_var=LD_LIBRARY_PATH
7781   case $host_os in
7782   freebsd2*)
7783     shlibpath_overrides_runpath=yes
7784     ;;
7785   freebsd3.01* | freebsdelf3.01*)
7786     shlibpath_overrides_runpath=yes
7787     hardcode_into_libs=yes
7788     ;;
7789   *) # from 3.2 on
7790     shlibpath_overrides_runpath=no
7791     hardcode_into_libs=yes
7792     ;;
7793   esac
7794   ;;
7795
7796 gnu*)
7797   version_type=linux
7798   need_lib_prefix=no
7799   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
7803   hardcode_into_libs=yes
7804   ;;
7805
7806 hpux9* | hpux10* | hpux11*)
7807   # Give a soname corresponding to the major version so that dld.sl refuses to
7808   # link against other versions.
7809   version_type=sunos
7810   need_lib_prefix=no
7811   need_version=no
7812   case "$host_cpu" in
7813   ia64*)
7814     shrext='.so'
7815     hardcode_into_libs=yes
7816     dynamic_linker="$host_os dld.so"
7817     shlibpath_var=LD_LIBRARY_PATH
7818     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7820     soname_spec='${libname}${release}${shared_ext}$major'
7821     if test "X$HPUX_IA64_MODE" = X32; then
7822       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7823     else
7824       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7825     fi
7826     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7827     ;;
7828    hppa*64*)
7829      shrext='.sl'
7830      hardcode_into_libs=yes
7831      dynamic_linker="$host_os dld.sl"
7832      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7833      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7834      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835      soname_spec='${libname}${release}${shared_ext}$major'
7836      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7837      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7838      ;;
7839    *)
7840     shrext='.sl'
7841     dynamic_linker="$host_os dld.sl"
7842     shlibpath_var=SHLIB_PATH
7843     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7845     soname_spec='${libname}${release}${shared_ext}$major'
7846     ;;
7847   esac
7848   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7849   postinstall_cmds='chmod 555 $lib'
7850   ;;
7851
7852 irix5* | irix6* | nonstopux*)
7853   case $host_os in
7854     nonstopux*) version_type=nonstopux ;;
7855     *)
7856         if test "$lt_cv_prog_gnu_ld" = yes; then
7857                 version_type=linux
7858         else
7859                 version_type=irix
7860         fi ;;
7861   esac
7862   need_lib_prefix=no
7863   need_version=no
7864   soname_spec='${libname}${release}${shared_ext}$major'
7865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7866   case $host_os in
7867   irix5* | nonstopux*)
7868     libsuff= shlibsuff=
7869     ;;
7870   *)
7871     case $LD in # libtool.m4 will add one of these switches to LD
7872     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7873       libsuff= shlibsuff= libmagic=32-bit;;
7874     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7875       libsuff=32 shlibsuff=N32 libmagic=N32;;
7876     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7877       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7878     *) libsuff= shlibsuff= libmagic=never-match;;
7879     esac
7880     ;;
7881   esac
7882   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7883   shlibpath_overrides_runpath=no
7884   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7885   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7886   hardcode_into_libs=yes
7887   ;;
7888
7889 # No shared lib support for Linux oldld, aout, or coff.
7890 linux*oldld* | linux*aout* | linux*coff*)
7891   dynamic_linker=no
7892   ;;
7893
7894 # This must be Linux ELF.
7895 linux*)
7896   version_type=linux
7897   need_lib_prefix=no
7898   need_version=no
7899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900   soname_spec='${libname}${release}${shared_ext}$major'
7901   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7902   shlibpath_var=LD_LIBRARY_PATH
7903   shlibpath_overrides_runpath=no
7904   # This implies no fast_install, which is unacceptable.
7905   # Some rework will be needed to allow for fast_install
7906   # before this can be enabled.
7907   hardcode_into_libs=yes
7908
7909   # We used to test for /lib/ld.so.1 and disable shared libraries on
7910   # powerpc, because MkLinux only supported shared libraries with the
7911   # GNU dynamic linker.  Since this was broken with cross compilers,
7912   # most powerpc-linux boxes support dynamic linking these days and
7913   # people can always --disable-shared, the test was removed, and we
7914   # assume the GNU/Linux dynamic linker is in use.
7915   dynamic_linker='GNU/Linux ld.so'
7916   ;;
7917
7918 netbsd*)
7919   version_type=sunos
7920   need_lib_prefix=no
7921   need_version=no
7922   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7924     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7925     dynamic_linker='NetBSD (a.out) ld.so'
7926   else
7927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7928     soname_spec='${libname}${release}${shared_ext}$major'
7929     dynamic_linker='NetBSD ld.elf_so'
7930   fi
7931   shlibpath_var=LD_LIBRARY_PATH
7932   shlibpath_overrides_runpath=yes
7933   hardcode_into_libs=yes
7934   ;;
7935
7936 newsos6)
7937   version_type=linux
7938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7939   shlibpath_var=LD_LIBRARY_PATH
7940   shlibpath_overrides_runpath=yes
7941   ;;
7942
7943 nto-qnx)
7944   version_type=linux
7945   need_lib_prefix=no
7946   need_version=no
7947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7948   soname_spec='${libname}${release}${shared_ext}$major'
7949   shlibpath_var=LD_LIBRARY_PATH
7950   shlibpath_overrides_runpath=yes
7951   ;;
7952
7953 openbsd*)
7954   version_type=sunos
7955   need_lib_prefix=no
7956   need_version=no
7957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7958   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7959   shlibpath_var=LD_LIBRARY_PATH
7960   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7961     case $host_os in
7962       openbsd2.[89] | openbsd2.[89].*)
7963         shlibpath_overrides_runpath=no
7964         ;;
7965       *)
7966         shlibpath_overrides_runpath=yes
7967         ;;
7968       esac
7969   else
7970     shlibpath_overrides_runpath=yes
7971   fi
7972   ;;
7973
7974 os2*)
7975   libname_spec='$name'
7976   shrext=".dll"
7977   need_lib_prefix=no
7978   library_names_spec='$libname${shared_ext} $libname.a'
7979   dynamic_linker='OS/2 ld.exe'
7980   shlibpath_var=LIBPATH
7981   ;;
7982
7983 osf3* | osf4* | osf5*)
7984   version_type=osf
7985   need_lib_prefix=no
7986   need_version=no
7987   soname_spec='${libname}${release}${shared_ext}$major'
7988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7989   shlibpath_var=LD_LIBRARY_PATH
7990   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7991   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7992   ;;
7993
7994 sco3.2v5*)
7995   version_type=osf
7996   soname_spec='${libname}${release}${shared_ext}$major'
7997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998   shlibpath_var=LD_LIBRARY_PATH
7999   ;;
8000
8001 solaris*)
8002   version_type=linux
8003   need_lib_prefix=no
8004   need_version=no
8005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8006   soname_spec='${libname}${release}${shared_ext}$major'
8007   shlibpath_var=LD_LIBRARY_PATH
8008   shlibpath_overrides_runpath=yes
8009   hardcode_into_libs=yes
8010   # ldd complains unless libraries are executable
8011   postinstall_cmds='chmod +x $lib'
8012   ;;
8013
8014 sunos4*)
8015   version_type=sunos
8016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8017   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8018   shlibpath_var=LD_LIBRARY_PATH
8019   shlibpath_overrides_runpath=yes
8020   if test "$with_gnu_ld" = yes; then
8021     need_lib_prefix=no
8022   fi
8023   need_version=yes
8024   ;;
8025
8026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8027   version_type=linux
8028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8029   soname_spec='${libname}${release}${shared_ext}$major'
8030   shlibpath_var=LD_LIBRARY_PATH
8031   case $host_vendor in
8032     sni)
8033       shlibpath_overrides_runpath=no
8034       need_lib_prefix=no
8035       export_dynamic_flag_spec='${wl}-Blargedynsym'
8036       runpath_var=LD_RUN_PATH
8037       ;;
8038     siemens)
8039       need_lib_prefix=no
8040       ;;
8041     motorola)
8042       need_lib_prefix=no
8043       need_version=no
8044       shlibpath_overrides_runpath=no
8045       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8046       ;;
8047   esac
8048   ;;
8049
8050 sysv4*MP*)
8051   if test -d /usr/nec ;then
8052     version_type=linux
8053     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8054     soname_spec='$libname${shared_ext}.$major'
8055     shlibpath_var=LD_LIBRARY_PATH
8056   fi
8057   ;;
8058
8059 uts4*)
8060   version_type=linux
8061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8062   soname_spec='${libname}${release}${shared_ext}$major'
8063   shlibpath_var=LD_LIBRARY_PATH
8064   ;;
8065
8066 *)
8067   dynamic_linker=no
8068   ;;
8069 esac
8070 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8071 echo "${ECHO_T}$dynamic_linker" >&6
8072 test "$dynamic_linker" = no && can_build_shared=no
8073
8074 if test "x$enable_dlopen" != xyes; then
8075   enable_dlopen=unknown
8076   enable_dlopen_self=unknown
8077   enable_dlopen_self_static=unknown
8078 else
8079   lt_cv_dlopen=no
8080   lt_cv_dlopen_libs=
8081
8082   case $host_os in
8083   beos*)
8084     lt_cv_dlopen="load_add_on"
8085     lt_cv_dlopen_libs=
8086     lt_cv_dlopen_self=yes
8087     ;;
8088
8089   mingw* | pw32*)
8090     lt_cv_dlopen="LoadLibrary"
8091     lt_cv_dlopen_libs=
8092    ;;
8093
8094   cygwin*)
8095     lt_cv_dlopen="dlopen"
8096     lt_cv_dlopen_libs=
8097    ;;
8098
8099   darwin*)
8100   # if libdl is installed we need to link against it
8101     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8102 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8103 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8104   echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106   ac_check_lib_save_LIBS=$LIBS
8107 LIBS="-ldl  $LIBS"
8108 cat >conftest.$ac_ext <<_ACEOF
8109 #line $LINENO "configure"
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115
8116 /* Override any gcc2 internal prototype to avoid an error.  */
8117 #ifdef __cplusplus
8118 extern "C"
8119 #endif
8120 /* We use char because int might match the return type of a gcc2
8121    builtin and then its argument prototype would still apply.  */
8122 char dlopen ();
8123 int
8124 main ()
8125 {
8126 dlopen ();
8127   ;
8128   return 0;
8129 }
8130 _ACEOF
8131 rm -f conftest.$ac_objext conftest$ac_exeext
8132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133   (eval $ac_link) 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); } &&
8137          { ac_try='test -s conftest$ac_exeext'
8138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139   (eval $ac_try) 2>&5
8140   ac_status=$?
8141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142   (exit $ac_status); }; }; then
8143   ac_cv_lib_dl_dlopen=yes
8144 else
8145   echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8147
8148 ac_cv_lib_dl_dlopen=no
8149 fi
8150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8151 LIBS=$ac_check_lib_save_LIBS
8152 fi
8153 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8154 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8155 if test $ac_cv_lib_dl_dlopen = yes; then
8156   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8157 else
8158
8159     lt_cv_dlopen="dyld"
8160     lt_cv_dlopen_libs=
8161     lt_cv_dlopen_self=yes
8162
8163 fi
8164
8165    ;;
8166
8167   *)
8168     echo "$as_me:$LINENO: checking for shl_load" >&5
8169 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8170 if test "${ac_cv_func_shl_load+set}" = set; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173   cat >conftest.$ac_ext <<_ACEOF
8174 #line $LINENO "configure"
8175 /* confdefs.h.  */
8176 _ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h.  */
8180 /* System header to define __stub macros and hopefully few prototypes,
8181     which can conflict with char shl_load (); below.
8182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8183     <limits.h> exists even on freestanding compilers.  */
8184 #ifdef __STDC__
8185 # include <limits.h>
8186 #else
8187 # include <assert.h>
8188 #endif
8189 /* Override any gcc2 internal prototype to avoid an error.  */
8190 #ifdef __cplusplus
8191 extern "C"
8192 {
8193 #endif
8194 /* We use char because int might match the return type of a gcc2
8195    builtin and then its argument prototype would still apply.  */
8196 char shl_load ();
8197 /* The GNU C library defines this for functions which it implements
8198     to always fail with ENOSYS.  Some functions are actually named
8199     something starting with __ and the normal name is an alias.  */
8200 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8201 choke me
8202 #else
8203 char (*f) () = shl_load;
8204 #endif
8205 #ifdef __cplusplus
8206 }
8207 #endif
8208
8209 int
8210 main ()
8211 {
8212 return f != shl_load;
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 rm -f conftest.$ac_objext conftest$ac_exeext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8219   (eval $ac_link) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } &&
8223          { ac_try='test -s conftest$ac_exeext'
8224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225   (eval $ac_try) 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; }; then
8229   ac_cv_func_shl_load=yes
8230 else
8231   echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8233
8234 ac_cv_func_shl_load=no
8235 fi
8236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8237 fi
8238 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8239 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8240 if test $ac_cv_func_shl_load = yes; then
8241   lt_cv_dlopen="shl_load"
8242 else
8243   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8244 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8245 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8246   echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248   ac_check_lib_save_LIBS=$LIBS
8249 LIBS="-ldld  $LIBS"
8250 cat >conftest.$ac_ext <<_ACEOF
8251 #line $LINENO "configure"
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257
8258 /* Override any gcc2 internal prototype to avoid an error.  */
8259 #ifdef __cplusplus
8260 extern "C"
8261 #endif
8262 /* We use char because int might match the return type of a gcc2
8263    builtin and then its argument prototype would still apply.  */
8264 char shl_load ();
8265 int
8266 main ()
8267 {
8268 shl_load ();
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8275   (eval $ac_link) 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); } &&
8279          { ac_try='test -s conftest$ac_exeext'
8280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281   (eval $ac_try) 2>&5
8282   ac_status=$?
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); }; }; then
8285   ac_cv_lib_dld_shl_load=yes
8286 else
8287   echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8289
8290 ac_cv_lib_dld_shl_load=no
8291 fi
8292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8293 LIBS=$ac_check_lib_save_LIBS
8294 fi
8295 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8296 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8297 if test $ac_cv_lib_dld_shl_load = yes; then
8298   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8299 else
8300   echo "$as_me:$LINENO: checking for dlopen" >&5
8301 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8302 if test "${ac_cv_func_dlopen+set}" = set; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   cat >conftest.$ac_ext <<_ACEOF
8306 #line $LINENO "configure"
8307 /* confdefs.h.  */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h.  */
8312 /* System header to define __stub macros and hopefully few prototypes,
8313     which can conflict with char dlopen (); below.
8314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8315     <limits.h> exists even on freestanding compilers.  */
8316 #ifdef __STDC__
8317 # include <limits.h>
8318 #else
8319 # include <assert.h>
8320 #endif
8321 /* Override any gcc2 internal prototype to avoid an error.  */
8322 #ifdef __cplusplus
8323 extern "C"
8324 {
8325 #endif
8326 /* We use char because int might match the return type of a gcc2
8327    builtin and then its argument prototype would still apply.  */
8328 char dlopen ();
8329 /* The GNU C library defines this for functions which it implements
8330     to always fail with ENOSYS.  Some functions are actually named
8331     something starting with __ and the normal name is an alias.  */
8332 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8333 choke me
8334 #else
8335 char (*f) () = dlopen;
8336 #endif
8337 #ifdef __cplusplus
8338 }
8339 #endif
8340
8341 int
8342 main ()
8343 {
8344 return f != dlopen;
8345   ;
8346   return 0;
8347 }
8348 _ACEOF
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8351   (eval $ac_link) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } &&
8355          { ac_try='test -s conftest$ac_exeext'
8356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357   (eval $ac_try) 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); }; }; then
8361   ac_cv_func_dlopen=yes
8362 else
8363   echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366 ac_cv_func_dlopen=no
8367 fi
8368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8369 fi
8370 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8371 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8372 if test $ac_cv_func_dlopen = yes; then
8373   lt_cv_dlopen="dlopen"
8374 else
8375   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8376 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8377 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380   ac_check_lib_save_LIBS=$LIBS
8381 LIBS="-ldl  $LIBS"
8382 cat >conftest.$ac_ext <<_ACEOF
8383 #line $LINENO "configure"
8384 /* confdefs.h.  */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h.  */
8389
8390 /* Override any gcc2 internal prototype to avoid an error.  */
8391 #ifdef __cplusplus
8392 extern "C"
8393 #endif
8394 /* We use char because int might match the return type of a gcc2
8395    builtin and then its argument prototype would still apply.  */
8396 char dlopen ();
8397 int
8398 main ()
8399 {
8400 dlopen ();
8401   ;
8402   return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407   (eval $ac_link) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } &&
8411          { ac_try='test -s conftest$ac_exeext'
8412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413   (eval $ac_try) 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; }; then
8417   ac_cv_lib_dl_dlopen=yes
8418 else
8419   echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8421
8422 ac_cv_lib_dl_dlopen=no
8423 fi
8424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8425 LIBS=$ac_check_lib_save_LIBS
8426 fi
8427 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8428 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8429 if test $ac_cv_lib_dl_dlopen = yes; then
8430   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8431 else
8432   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8433 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8434 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   ac_check_lib_save_LIBS=$LIBS
8438 LIBS="-lsvld  $LIBS"
8439 cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446
8447 /* Override any gcc2 internal prototype to avoid an error.  */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 /* We use char because int might match the return type of a gcc2
8452    builtin and then its argument prototype would still apply.  */
8453 char dlopen ();
8454 int
8455 main ()
8456 {
8457 dlopen ();
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464   (eval $ac_link) 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } &&
8468          { ac_try='test -s conftest$ac_exeext'
8469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470   (eval $ac_try) 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; }; then
8474   ac_cv_lib_svld_dlopen=yes
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479 ac_cv_lib_svld_dlopen=no
8480 fi
8481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8482 LIBS=$ac_check_lib_save_LIBS
8483 fi
8484 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8485 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8486 if test $ac_cv_lib_svld_dlopen = yes; then
8487   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8488 else
8489   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8490 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8491 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   ac_check_lib_save_LIBS=$LIBS
8495 LIBS="-ldld  $LIBS"
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503
8504 /* Override any gcc2 internal prototype to avoid an error.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 /* We use char because int might match the return type of a gcc2
8509    builtin and then its argument prototype would still apply.  */
8510 char dld_link ();
8511 int
8512 main ()
8513 {
8514 dld_link ();
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521   (eval $ac_link) 2>&5
8522   ac_status=$?
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } &&
8525          { ac_try='test -s conftest$ac_exeext'
8526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527   (eval $ac_try) 2>&5
8528   ac_status=$?
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); }; }; then
8531   ac_cv_lib_dld_dld_link=yes
8532 else
8533   echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536 ac_cv_lib_dld_dld_link=no
8537 fi
8538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8539 LIBS=$ac_check_lib_save_LIBS
8540 fi
8541 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8542 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8543 if test $ac_cv_lib_dld_dld_link = yes; then
8544   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8545 fi
8546
8547
8548 fi
8549
8550
8551 fi
8552
8553
8554 fi
8555
8556
8557 fi
8558
8559
8560 fi
8561
8562     ;;
8563   esac
8564
8565   if test "x$lt_cv_dlopen" != xno; then
8566     enable_dlopen=yes
8567   else
8568     enable_dlopen=no
8569   fi
8570
8571   case $lt_cv_dlopen in
8572   dlopen)
8573     save_CPPFLAGS="$CPPFLAGS"
8574     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8575
8576     save_LDFLAGS="$LDFLAGS"
8577     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8578
8579     save_LIBS="$LIBS"
8580     LIBS="$lt_cv_dlopen_libs $LIBS"
8581
8582     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8583 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8584 if test "${lt_cv_dlopen_self+set}" = set; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587           if test "$cross_compiling" = yes; then :
8588   lt_cv_dlopen_self=cross
8589 else
8590   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8591   lt_status=$lt_dlunknown
8592   cat > conftest.$ac_ext <<EOF
8593 #line 8593 "configure"
8594 #include "confdefs.h"
8595
8596 #if HAVE_DLFCN_H
8597 #include <dlfcn.h>
8598 #endif
8599
8600 #include <stdio.h>
8601
8602 #ifdef RTLD_GLOBAL
8603 #  define LT_DLGLOBAL           RTLD_GLOBAL
8604 #else
8605 #  ifdef DL_GLOBAL
8606 #    define LT_DLGLOBAL         DL_GLOBAL
8607 #  else
8608 #    define LT_DLGLOBAL         0
8609 #  endif
8610 #endif
8611
8612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8613    find out it does not work in some platform. */
8614 #ifndef LT_DLLAZY_OR_NOW
8615 #  ifdef RTLD_LAZY
8616 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8617 #  else
8618 #    ifdef DL_LAZY
8619 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8620 #    else
8621 #      ifdef RTLD_NOW
8622 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8623 #      else
8624 #        ifdef DL_NOW
8625 #          define LT_DLLAZY_OR_NOW      DL_NOW
8626 #        else
8627 #          define LT_DLLAZY_OR_NOW      0
8628 #        endif
8629 #      endif
8630 #    endif
8631 #  endif
8632 #endif
8633
8634 #ifdef __cplusplus
8635 extern "C" void exit (int);
8636 #endif
8637
8638 void fnord() { int i=42;}
8639 int main ()
8640 {
8641   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8642   int status = $lt_dlunknown;
8643
8644   if (self)
8645     {
8646       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8647       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8648       /* dlclose (self); */
8649     }
8650
8651     exit (status);
8652 }
8653 EOF
8654   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655   (eval $ac_link) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8659     (./conftest; exit; ) 2>/dev/null
8660     lt_status=$?
8661     case x$lt_status in
8662       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8663       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8664       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8665     esac
8666   else :
8667     # compilation failed
8668     lt_cv_dlopen_self=no
8669   fi
8670 fi
8671 rm -fr conftest*
8672
8673
8674 fi
8675 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8676 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8677
8678     if test "x$lt_cv_dlopen_self" = xyes; then
8679       LDFLAGS="$LDFLAGS $link_static_flag"
8680       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8681 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8682 if test "${lt_cv_dlopen_self_static+set}" = set; then
8683   echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685           if test "$cross_compiling" = yes; then :
8686   lt_cv_dlopen_self_static=cross
8687 else
8688   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8689   lt_status=$lt_dlunknown
8690   cat > conftest.$ac_ext <<EOF
8691 #line 8691 "configure"
8692 #include "confdefs.h"
8693
8694 #if HAVE_DLFCN_H
8695 #include <dlfcn.h>
8696 #endif
8697
8698 #include <stdio.h>
8699
8700 #ifdef RTLD_GLOBAL
8701 #  define LT_DLGLOBAL           RTLD_GLOBAL
8702 #else
8703 #  ifdef DL_GLOBAL
8704 #    define LT_DLGLOBAL         DL_GLOBAL
8705 #  else
8706 #    define LT_DLGLOBAL         0
8707 #  endif
8708 #endif
8709
8710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8711    find out it does not work in some platform. */
8712 #ifndef LT_DLLAZY_OR_NOW
8713 #  ifdef RTLD_LAZY
8714 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8715 #  else
8716 #    ifdef DL_LAZY
8717 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8718 #    else
8719 #      ifdef RTLD_NOW
8720 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8721 #      else
8722 #        ifdef DL_NOW
8723 #          define LT_DLLAZY_OR_NOW      DL_NOW
8724 #        else
8725 #          define LT_DLLAZY_OR_NOW      0
8726 #        endif
8727 #      endif
8728 #    endif
8729 #  endif
8730 #endif
8731
8732 #ifdef __cplusplus
8733 extern "C" void exit (int);
8734 #endif
8735
8736 void fnord() { int i=42;}
8737 int main ()
8738 {
8739   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8740   int status = $lt_dlunknown;
8741
8742   if (self)
8743     {
8744       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8745       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8746       /* dlclose (self); */
8747     }
8748
8749     exit (status);
8750 }
8751 EOF
8752   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753   (eval $ac_link) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8757     (./conftest; exit; ) 2>/dev/null
8758     lt_status=$?
8759     case x$lt_status in
8760       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8761       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8762       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8763     esac
8764   else :
8765     # compilation failed
8766     lt_cv_dlopen_self_static=no
8767   fi
8768 fi
8769 rm -fr conftest*
8770
8771
8772 fi
8773 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8774 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8775     fi
8776
8777     CPPFLAGS="$save_CPPFLAGS"
8778     LDFLAGS="$save_LDFLAGS"
8779     LIBS="$save_LIBS"
8780     ;;
8781   esac
8782
8783   case $lt_cv_dlopen_self in
8784   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8785   *) enable_dlopen_self=unknown ;;
8786   esac
8787
8788   case $lt_cv_dlopen_self_static in
8789   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8790   *) enable_dlopen_self_static=unknown ;;
8791   esac
8792 fi
8793
8794
8795 # Report which librarie types wil actually be built
8796 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8797 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8798 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8799 echo "${ECHO_T}$can_build_shared" >&6
8800
8801 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8802 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8803 test "$can_build_shared" = "no" && enable_shared=no
8804
8805 # On AIX, shared libraries and static libraries use the same namespace, and
8806 # are all built from PIC.
8807 case "$host_os" in
8808 aix3*)
8809   test "$enable_shared" = yes && enable_static=no
8810   if test -n "$RANLIB"; then
8811     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8812     postinstall_cmds='$RANLIB $lib'
8813   fi
8814   ;;
8815
8816 aix4*)
8817   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8818     test "$enable_shared" = yes && enable_static=no
8819   fi
8820   ;;
8821   darwin* | rhapsody*)
8822   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8823     archive_cmds_need_lc=no
8824     case "$host_os" in
8825     rhapsody* | darwin1.[012])
8826       allow_undefined_flag='-undefined suppress'
8827       ;;
8828     *) # Darwin 1.3 on
8829       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8830       ;;
8831     esac
8832     # FIXME: Relying on posixy $() will cause problems for
8833     #        cross-compilation, but unfortunately the echo tests do not
8834     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8835     #          `"' quotes if we put them in here... so don't!
8836                 output_verbose_link_cmd='echo'
8837     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8838     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8839     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8840                   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}'
8841                   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}'
8842     hardcode_direct=no
8843     hardcode_automatic=yes
8844     hardcode_shlibpath_var=unsupported
8845     whole_archive_flag_spec='-all_load $convenience'
8846     link_all_deplibs=yes
8847     fi
8848     ;;
8849 esac
8850 echo "$as_me:$LINENO: result: $enable_shared" >&5
8851 echo "${ECHO_T}$enable_shared" >&6
8852
8853 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8854 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8855 # Make sure either enable_shared or enable_static is yes.
8856 test "$enable_shared" = yes || enable_static=yes
8857 echo "$as_me:$LINENO: result: $enable_static" >&5
8858 echo "${ECHO_T}$enable_static" >&6
8859
8860 # The else clause should only fire when bootstrapping the
8861 # libtool distribution, otherwise you forgot to ship ltmain.sh
8862 # with your package, and you will get complaints that there are
8863 # no rules to generate ltmain.sh.
8864 if test -f "$ltmain"; then
8865   # See if we are running on zsh, and set the options which allow our commands through
8866   # without removal of \ escapes.
8867   if test -n "${ZSH_VERSION+set}" ; then
8868     setopt NO_GLOB_SUBST
8869   fi
8870   # Now quote all the things that may contain metacharacters while being
8871   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8872   # variables and quote the copies for generation of the libtool script.
8873   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8874     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8875     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8876     deplibs_check_method reload_flag reload_cmds need_locks \
8877     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8878     lt_cv_sys_global_symbol_to_c_name_address \
8879     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8880     old_postinstall_cmds old_postuninstall_cmds \
8881     compiler \
8882     CC \
8883     LD \
8884     lt_prog_compiler_wl \
8885     lt_prog_compiler_pic \
8886     lt_prog_compiler_static \
8887     lt_prog_compiler_no_builtin_flag \
8888     export_dynamic_flag_spec \
8889     thread_safe_flag_spec \
8890     whole_archive_flag_spec \
8891     enable_shared_with_static_runtimes \
8892     old_archive_cmds \
8893     old_archive_from_new_cmds \
8894     predep_objects \
8895     postdep_objects \
8896     predeps \
8897     postdeps \
8898     compiler_lib_search_path \
8899     archive_cmds \
8900     archive_expsym_cmds \
8901     postinstall_cmds \
8902     postuninstall_cmds \
8903     old_archive_from_expsyms_cmds \
8904     allow_undefined_flag \
8905     no_undefined_flag \
8906     export_symbols_cmds \
8907     hardcode_libdir_flag_spec \
8908     hardcode_libdir_flag_spec_ld \
8909     hardcode_libdir_separator \
8910     hardcode_automatic \
8911     module_cmds \
8912     module_expsym_cmds \
8913     lt_cv_prog_compiler_c_o \
8914     exclude_expsyms \
8915     include_expsyms; do
8916
8917     case $var in
8918     old_archive_cmds | \
8919     old_archive_from_new_cmds | \
8920     archive_cmds | \
8921     archive_expsym_cmds | \
8922     module_cmds | \
8923     module_expsym_cmds | \
8924     old_archive_from_expsyms_cmds | \
8925     export_symbols_cmds | \
8926     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8927     postinstall_cmds | postuninstall_cmds | \
8928     old_postinstall_cmds | old_postuninstall_cmds | \
8929     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8930       # Double-quote double-evaled strings.
8931       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8932       ;;
8933     *)
8934       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8935       ;;
8936     esac
8937   done
8938
8939   case $lt_echo in
8940   *'\$0 --fallback-echo"')
8941     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8942     ;;
8943   esac
8944
8945 cfgfile="${ofile}T"
8946   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8947   $rm -f "$cfgfile"
8948   { echo "$as_me:$LINENO: creating $ofile" >&5
8949 echo "$as_me: creating $ofile" >&6;}
8950
8951   cat <<__EOF__ >> "$cfgfile"
8952 #! $SHELL
8953
8954 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8955 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8956 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8957 #
8958 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8959 # Free Software Foundation, Inc.
8960 #
8961 # This file is part of GNU Libtool:
8962 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8963 #
8964 # This program is free software; you can redistribute it and/or modify
8965 # it under the terms of the GNU General Public License as published by
8966 # the Free Software Foundation; either version 2 of the License, or
8967 # (at your option) any later version.
8968 #
8969 # This program is distributed in the hope that it will be useful, but
8970 # WITHOUT ANY WARRANTY; without even the implied warranty of
8971 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8972 # General Public License for more details.
8973 #
8974 # You should have received a copy of the GNU General Public License
8975 # along with this program; if not, write to the Free Software
8976 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8977 #
8978 # As a special exception to the GNU General Public License, if you
8979 # distribute this file as part of a program that contains a
8980 # configuration script generated by Autoconf, you may include it under
8981 # the same distribution terms that you use for the rest of that program.
8982
8983 # A sed program that does not truncate output.
8984 SED=$lt_SED
8985
8986 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8987 Xsed="$SED -e s/^X//"
8988
8989 # The HP-UX ksh and POSIX shell print the target directory to stdout
8990 # if CDPATH is set.
8991 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8992
8993 # The names of the tagged configurations supported by this script.
8994 available_tags=
8995
8996 # ### BEGIN LIBTOOL CONFIG
8997
8998 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8999
9000 # Shell to use when invoking shell scripts.
9001 SHELL=$lt_SHELL
9002
9003 # Whether or not to build shared libraries.
9004 build_libtool_libs=$enable_shared
9005
9006 # Whether or not to build static libraries.
9007 build_old_libs=$enable_static
9008
9009 # Whether or not to add -lc for building shared libraries.
9010 build_libtool_need_lc=$archive_cmds_need_lc
9011
9012 # Whether or not to disallow shared libs when runtime libs are static
9013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9014
9015 # Whether or not to optimize for fast installation.
9016 fast_install=$enable_fast_install
9017
9018 # The host system.
9019 host_alias=$host_alias
9020 host=$host
9021
9022 # An echo program that does not interpret backslashes.
9023 echo=$lt_echo
9024
9025 # The archiver.
9026 AR=$lt_AR
9027 AR_FLAGS=$lt_AR_FLAGS
9028
9029 # A C compiler.
9030 LTCC=$lt_LTCC
9031
9032 # A language-specific compiler.
9033 CC=$lt_compiler
9034
9035 # Is the compiler the GNU C compiler?
9036 with_gcc=$GCC
9037
9038 # An ERE matcher.
9039 EGREP=$lt_EGREP
9040
9041 # The linker used to build libraries.
9042 LD=$lt_LD
9043
9044 # Whether we need hard or soft links.
9045 LN_S=$lt_LN_S
9046
9047 # A BSD-compatible nm program.
9048 NM=$lt_NM
9049
9050 # A symbol stripping program
9051 STRIP=$STRIP
9052
9053 # Used to examine libraries when file_magic_cmd begins "file"
9054 MAGIC_CMD=$MAGIC_CMD
9055
9056 # Used on cygwin: DLL creation program.
9057 DLLTOOL="$DLLTOOL"
9058
9059 # Used on cygwin: object dumper.
9060 OBJDUMP="$OBJDUMP"
9061
9062 # Used on cygwin: assembler.
9063 AS="$AS"
9064
9065 # The name of the directory that contains temporary libtool files.
9066 objdir=$objdir
9067
9068 # How to create reloadable object files.
9069 reload_flag=$lt_reload_flag
9070 reload_cmds=$lt_reload_cmds
9071
9072 # How to pass a linker flag through the compiler.
9073 wl=$lt_lt_prog_compiler_wl
9074
9075 # Object file suffix (normally "o").
9076 objext="$ac_objext"
9077
9078 # Old archive suffix (normally "a").
9079 libext="$libext"
9080
9081 # Shared library suffix (normally ".so").
9082 shrext='$shrext'
9083
9084 # Executable file suffix (normally "").
9085 exeext="$exeext"
9086
9087 # Additional compiler flags for building library objects.
9088 pic_flag=$lt_lt_prog_compiler_pic
9089 pic_mode=$pic_mode
9090
9091 # What is the maximum length of a command?
9092 max_cmd_len=$lt_cv_sys_max_cmd_len
9093
9094 # Does compiler simultaneously support -c and -o options?
9095 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9096
9097 # Must we lock files when doing compilation ?
9098 need_locks=$lt_need_locks
9099
9100 # Do we need the lib prefix for modules?
9101 need_lib_prefix=$need_lib_prefix
9102
9103 # Do we need a version for libraries?
9104 need_version=$need_version
9105
9106 # Whether dlopen is supported.
9107 dlopen_support=$enable_dlopen
9108
9109 # Whether dlopen of programs is supported.
9110 dlopen_self=$enable_dlopen_self
9111
9112 # Whether dlopen of statically linked programs is supported.
9113 dlopen_self_static=$enable_dlopen_self_static
9114
9115 # Compiler flag to prevent dynamic linking.
9116 link_static_flag=$lt_lt_prog_compiler_static
9117
9118 # Compiler flag to turn off builtin functions.
9119 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9120
9121 # Compiler flag to allow reflexive dlopens.
9122 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9123
9124 # Compiler flag to generate shared objects directly from archives.
9125 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9126
9127 # Compiler flag to generate thread-safe objects.
9128 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9129
9130 # Library versioning type.
9131 version_type=$version_type
9132
9133 # Format of library name prefix.
9134 libname_spec=$lt_libname_spec
9135
9136 # List of archive names.  First name is the real one, the rest are links.
9137 # The last name is the one that the linker finds with -lNAME.
9138 library_names_spec=$lt_library_names_spec
9139
9140 # The coded name of the library, if different from the real name.
9141 soname_spec=$lt_soname_spec
9142
9143 # Commands used to build and install an old-style archive.
9144 RANLIB=$lt_RANLIB
9145 old_archive_cmds=$lt_old_archive_cmds
9146 old_postinstall_cmds=$lt_old_postinstall_cmds
9147 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9148
9149 # Create an old-style archive from a shared archive.
9150 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9151
9152 # Create a temporary old-style archive to link instead of a shared archive.
9153 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9154
9155 # Commands used to build and install a shared archive.
9156 archive_cmds=$lt_archive_cmds
9157 archive_expsym_cmds=$lt_archive_expsym_cmds
9158 postinstall_cmds=$lt_postinstall_cmds
9159 postuninstall_cmds=$lt_postuninstall_cmds
9160
9161 # Commands used to build a loadable module (assumed same as above if empty)
9162 module_cmds=$lt_module_cmds
9163 module_expsym_cmds=$lt_module_expsym_cmds
9164
9165 # Commands to strip libraries.
9166 old_striplib=$lt_old_striplib
9167 striplib=$lt_striplib
9168
9169 # Dependencies to place before the objects being linked to create a
9170 # shared library.
9171 predep_objects=$lt_predep_objects
9172
9173 # Dependencies to place after the objects being linked to create a
9174 # shared library.
9175 postdep_objects=$lt_postdep_objects
9176
9177 # Dependencies to place before the objects being linked to create a
9178 # shared library.
9179 predeps=$lt_predeps
9180
9181 # Dependencies to place after the objects being linked to create a
9182 # shared library.
9183 postdeps=$lt_postdeps
9184
9185 # The library search path used internally by the compiler when linking
9186 # a shared library.
9187 compiler_lib_search_path=$lt_compiler_lib_search_path
9188
9189 # Method to check whether dependent libraries are shared objects.
9190 deplibs_check_method=$lt_deplibs_check_method
9191
9192 # Command to use when deplibs_check_method == file_magic.
9193 file_magic_cmd=$lt_file_magic_cmd
9194
9195 # Flag that allows shared libraries with undefined symbols to be built.
9196 allow_undefined_flag=$lt_allow_undefined_flag
9197
9198 # Flag that forces no undefined symbols.
9199 no_undefined_flag=$lt_no_undefined_flag
9200
9201 # Commands used to finish a libtool library installation in a directory.
9202 finish_cmds=$lt_finish_cmds
9203
9204 # Same as above, but a single script fragment to be evaled but not shown.
9205 finish_eval=$lt_finish_eval
9206
9207 # Take the output of nm and produce a listing of raw symbols and C names.
9208 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9209
9210 # Transform the output of nm in a proper C declaration
9211 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9212
9213 # Transform the output of nm in a C name address pair
9214 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9215
9216 # This is the shared library runtime path variable.
9217 runpath_var=$runpath_var
9218
9219 # This is the shared library path variable.
9220 shlibpath_var=$shlibpath_var
9221
9222 # Is shlibpath searched before the hard-coded library search path?
9223 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9224
9225 # How to hardcode a shared library path into an executable.
9226 hardcode_action=$hardcode_action
9227
9228 # Whether we should hardcode library paths into libraries.
9229 hardcode_into_libs=$hardcode_into_libs
9230
9231 # Flag to hardcode \$libdir into a binary during linking.
9232 # This must work even if \$libdir does not exist.
9233 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9234
9235 # If ld is used when linking, flag to hardcode \$libdir into
9236 # a binary during linking. This must work even if \$libdir does
9237 # not exist.
9238 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9239
9240 # Whether we need a single -rpath flag with a separated argument.
9241 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9242
9243 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9244 # resulting binary.
9245 hardcode_direct=$hardcode_direct
9246
9247 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9248 # resulting binary.
9249 hardcode_minus_L=$hardcode_minus_L
9250
9251 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9252 # the resulting binary.
9253 hardcode_shlibpath_var=$hardcode_shlibpath_var
9254
9255 # Set to yes if building a shared library automatically hardcodes DIR into the library
9256 # and all subsequent libraries and executables linked against it.
9257 hardcode_automatic=$hardcode_automatic
9258
9259 # Variables whose values should be saved in libtool wrapper scripts and
9260 # restored at relink time.
9261 variables_saved_for_relink="$variables_saved_for_relink"
9262
9263 # Whether libtool must link a program against all its dependency libraries.
9264 link_all_deplibs=$link_all_deplibs
9265
9266 # Compile-time system search path for libraries
9267 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9268
9269 # Run-time system search path for libraries
9270 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9271
9272 # Fix the shell variable \$srcfile for the compiler.
9273 fix_srcfile_path="$fix_srcfile_path"
9274
9275 # Set to yes if exported symbols are required.
9276 always_export_symbols=$always_export_symbols
9277
9278 # The commands to list exported symbols.
9279 export_symbols_cmds=$lt_export_symbols_cmds
9280
9281 # The commands to extract the exported symbol list from a shared archive.
9282 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9283
9284 # Symbols that should not be listed in the preloaded symbols.
9285 exclude_expsyms=$lt_exclude_expsyms
9286
9287 # Symbols that must always be exported.
9288 include_expsyms=$lt_include_expsyms
9289
9290 # ### END LIBTOOL CONFIG
9291
9292 __EOF__
9293
9294
9295   case $host_os in
9296   aix3*)
9297     cat <<\EOF >> "$cfgfile"
9298
9299 # AIX sometimes has problems with the GCC collect2 program.  For some
9300 # reason, if we set the COLLECT_NAMES environment variable, the problems
9301 # vanish in a puff of smoke.
9302 if test "X${COLLECT_NAMES+set}" != Xset; then
9303   COLLECT_NAMES=
9304   export COLLECT_NAMES
9305 fi
9306 EOF
9307     ;;
9308   esac
9309
9310   # We use sed instead of cat because bash on DJGPP gets confused if
9311   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9312   # text mode, it properly converts lines to CR/LF.  This bash problem
9313   # is reportedly fixed, but why not run on old versions too?
9314   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9315
9316   mv -f "$cfgfile" "$ofile" || \
9317     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9318   chmod +x "$ofile"
9319
9320 else
9321   # If there is no Makefile yet, we rely on a make rule to execute
9322   # `config.status --recheck' to rerun these tests and create the
9323   # libtool script then.
9324   test -f Makefile && make "$ltmain"
9325 fi
9326
9327
9328 ac_ext=c
9329 ac_cpp='$CPP $CPPFLAGS'
9330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9333
9334 CC="$lt_save_CC"
9335
9336
9337 # Check whether --with-tags or --without-tags was given.
9338 if test "${with_tags+set}" = set; then
9339   withval="$with_tags"
9340   tagnames="$withval"
9341 fi;
9342
9343 if test -f "$ltmain" && test -n "$tagnames"; then
9344   if test ! -f "${ofile}"; then
9345     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9346 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9347   fi
9348
9349   if test -z "$LTCC"; then
9350     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9351     if test -z "$LTCC"; then
9352       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9353 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9354     else
9355       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9356 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9357     fi
9358   fi
9359
9360   # Extract list of available tagged configurations in $ofile.
9361   # Note that this assumes the entire list is on one line.
9362   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9363
9364   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9365   for tagname in $tagnames; do
9366     IFS="$lt_save_ifs"
9367     # Check whether tagname contains only valid characters
9368     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9369     "") ;;
9370     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9371 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9372    { (exit 1); exit 1; }; }
9373         ;;
9374     esac
9375
9376     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9377     then
9378       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9379 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9380    { (exit 1); exit 1; }; }
9381     fi
9382
9383     # Update the list of available tags.
9384     if test -n "$tagname"; then
9385       echo appending configuration tag \"$tagname\" to $ofile
9386
9387       case $tagname in
9388       CXX)
9389         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9390           ac_ext=cc
9391 ac_cpp='$CXXCPP $CPPFLAGS'
9392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9395
9396
9397
9398
9399 archive_cmds_need_lc_CXX=no
9400 allow_undefined_flag_CXX=
9401 always_export_symbols_CXX=no
9402 archive_expsym_cmds_CXX=
9403 export_dynamic_flag_spec_CXX=
9404 hardcode_direct_CXX=no
9405 hardcode_libdir_flag_spec_CXX=
9406 hardcode_libdir_flag_spec_ld_CXX=
9407 hardcode_libdir_separator_CXX=
9408 hardcode_minus_L_CXX=no
9409 hardcode_automatic_CXX=no
9410 module_cmds_CXX=
9411 module_expsym_cmds_CXX=
9412 link_all_deplibs_CXX=unknown
9413 old_archive_cmds_CXX=$old_archive_cmds
9414 no_undefined_flag_CXX=
9415 whole_archive_flag_spec_CXX=
9416 enable_shared_with_static_runtimes_CXX=no
9417
9418 # Dependencies to place before and after the object being linked:
9419 predep_objects_CXX=
9420 postdep_objects_CXX=
9421 predeps_CXX=
9422 postdeps_CXX=
9423 compiler_lib_search_path_CXX=
9424
9425 # Source file extension for C++ test sources.
9426 ac_ext=cc
9427
9428 # Object file extension for compiled C++ test sources.
9429 objext=o
9430 objext_CXX=$objext
9431
9432 # Code to be used in simple compile tests
9433 lt_simple_compile_test_code="int some_variable = 0;\n"
9434
9435 # Code to be used in simple link tests
9436 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9437
9438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9439
9440 # If no C compiler was specified, use CC.
9441 LTCC=${LTCC-"$CC"}
9442
9443 # Allow CC to be a program name with arguments.
9444 compiler=$CC
9445
9446
9447 # Allow CC to be a program name with arguments.
9448 lt_save_CC=$CC
9449 lt_save_LD=$LD
9450 lt_save_GCC=$GCC
9451 GCC=$GXX
9452 lt_save_with_gnu_ld=$with_gnu_ld
9453 lt_save_path_LD=$lt_cv_path_LD
9454 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9455   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9456 else
9457   unset lt_cv_prog_gnu_ld
9458 fi
9459 if test -n "${lt_cv_path_LDCXX+set}"; then
9460   lt_cv_path_LD=$lt_cv_path_LDCXX
9461 else
9462   unset lt_cv_path_LD
9463 fi
9464 test -z "${LDCXX+set}" || LD=$LDCXX
9465 CC=${CXX-"c++"}
9466 compiler=$CC
9467 compiler_CXX=$CC
9468 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9469
9470 # We don't want -fno-exception wen compiling C++ code, so set the
9471 # no_builtin_flag separately
9472 if test "$GXX" = yes; then
9473   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9474 else
9475   lt_prog_compiler_no_builtin_flag_CXX=
9476 fi
9477
9478 if test "$GXX" = yes; then
9479   # Set up default GNU C++ configuration
9480
9481
9482 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9483 if test "${with_gnu_ld+set}" = set; then
9484   withval="$with_gnu_ld"
9485   test "$withval" = no || with_gnu_ld=yes
9486 else
9487   with_gnu_ld=no
9488 fi;
9489 ac_prog=ld
9490 if test "$GCC" = yes; then
9491   # Check if gcc -print-prog-name=ld gives a path.
9492   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9493 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9494   case $host in
9495   *-*-mingw*)
9496     # gcc leaves a trailing carriage return which upsets mingw
9497     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9498   *)
9499     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9500   esac
9501   case $ac_prog in
9502     # Accept absolute paths.
9503     [\\/]* | ?:[\\/]*)
9504       re_direlt='/[^/][^/]*/\.\./'
9505       # Canonicalize the path of ld
9506       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9507       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9508         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9509       done
9510       test -z "$LD" && LD="$ac_prog"
9511       ;;
9512   "")
9513     # If it fails, then pretend we aren't using GCC.
9514     ac_prog=ld
9515     ;;
9516   *)
9517     # If it is relative, then search for the first ld in PATH.
9518     with_gnu_ld=unknown
9519     ;;
9520   esac
9521 elif test "$with_gnu_ld" = yes; then
9522   echo "$as_me:$LINENO: checking for GNU ld" >&5
9523 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9524 else
9525   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9526 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9527 fi
9528 if test "${lt_cv_path_LD+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   if test -z "$LD"; then
9532   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9533   for ac_dir in $PATH; do
9534     IFS="$lt_save_ifs"
9535     test -z "$ac_dir" && ac_dir=.
9536     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9537       lt_cv_path_LD="$ac_dir/$ac_prog"
9538       # Check to see if the program is GNU ld.  I'd rather use --version,
9539       # but apparently some GNU ld's only accept -v.
9540       # Break only if it was the GNU/non-GNU ld that we prefer.
9541       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9542       *GNU* | *'with BFD'*)
9543         test "$with_gnu_ld" != no && break
9544         ;;
9545       *)
9546         test "$with_gnu_ld" != yes && break
9547         ;;
9548       esac
9549     fi
9550   done
9551   IFS="$lt_save_ifs"
9552 else
9553   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9554 fi
9555 fi
9556
9557 LD="$lt_cv_path_LD"
9558 if test -n "$LD"; then
9559   echo "$as_me:$LINENO: result: $LD" >&5
9560 echo "${ECHO_T}$LD" >&6
9561 else
9562   echo "$as_me:$LINENO: result: no" >&5
9563 echo "${ECHO_T}no" >&6
9564 fi
9565 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9566 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9567    { (exit 1); exit 1; }; }
9568 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9569 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9570 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9571   echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9574 case `"$LD" -v 2>&1 </dev/null` in
9575 *GNU* | *'with BFD'*)
9576   lt_cv_prog_gnu_ld=yes
9577   ;;
9578 *)
9579   lt_cv_prog_gnu_ld=no
9580   ;;
9581 esac
9582 fi
9583 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9584 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9585 with_gnu_ld=$lt_cv_prog_gnu_ld
9586
9587
9588
9589   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9590   # archiving commands below assume that GNU ld is being used.
9591   if test "$with_gnu_ld" = yes; then
9592     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9593     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'
9594
9595     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9596     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9597
9598     # If archive_cmds runs LD, not CC, wlarc should be empty
9599     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9600     #     investigate it a little bit more. (MM)
9601     wlarc='${wl}'
9602
9603     # ancient GNU ld didn't support --whole-archive et. al.
9604     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9605         grep 'no-whole-archive' > /dev/null; then
9606       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9607     else
9608       whole_archive_flag_spec_CXX=
9609     fi
9610   else
9611     with_gnu_ld=no
9612     wlarc=
9613
9614     # A generic and very simple default shared library creation
9615     # command for GNU C++ for the case where it uses the native
9616     # linker, instead of GNU ld.  If possible, this setting should
9617     # overridden to take advantage of the native linker features on
9618     # the platform it is being used on.
9619     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9620   fi
9621
9622   # Commands to make compiler produce verbose output that lists
9623   # what "hidden" libraries, object files and flags are used when
9624   # linking a shared library.
9625   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9626
9627 else
9628   GXX=no
9629   with_gnu_ld=no
9630   wlarc=
9631 fi
9632
9633 # PORTME: fill in a description of your system's C++ link characteristics
9634 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9635 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9636 ld_shlibs_CXX=yes
9637 case $host_os in
9638   aix3*)
9639     # FIXME: insert proper C++ library support
9640     ld_shlibs_CXX=no
9641     ;;
9642   aix4* | aix5*)
9643     if test "$host_cpu" = ia64; then
9644       # On IA64, the linker does run time linking by default, so we don't
9645       # have to do anything special.
9646       aix_use_runtimelinking=no
9647       exp_sym_flag='-Bexport'
9648       no_entry_flag=""
9649     else
9650       aix_use_runtimelinking=no
9651
9652       # Test if we are trying to use run time linking or normal
9653       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9654       # need to do runtime linking.
9655       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9656         for ld_flag in $LDFLAGS; do
9657           case $ld_flag in
9658           *-brtl*)
9659             aix_use_runtimelinking=yes
9660             break
9661             ;;
9662           esac
9663         done
9664       esac
9665
9666       exp_sym_flag='-bexport'
9667       no_entry_flag='-bnoentry'
9668     fi
9669
9670     # When large executables or shared objects are built, AIX ld can
9671     # have problems creating the table of contents.  If linking a library
9672     # or program results in "error TOC overflow" add -mminimal-toc to
9673     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9674     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9675
9676     archive_cmds_CXX=''
9677     hardcode_direct_CXX=yes
9678     hardcode_libdir_separator_CXX=':'
9679     link_all_deplibs_CXX=yes
9680
9681     if test "$GXX" = yes; then
9682       case $host_os in aix4.012|aix4.012.*)
9683       # We only want to do this on AIX 4.2 and lower, the check
9684       # below for broken collect2 doesn't work under 4.3+
9685         collect2name=`${CC} -print-prog-name=collect2`
9686         if test -f "$collect2name" && \
9687            strings "$collect2name" | grep resolve_lib_name >/dev/null
9688         then
9689           # We have reworked collect2
9690           hardcode_direct_CXX=yes
9691         else
9692           # We have old collect2
9693           hardcode_direct_CXX=unsupported
9694           # It fails to find uninstalled libraries when the uninstalled
9695           # path is not listed in the libpath.  Setting hardcode_minus_L
9696           # to unsupported forces relinking
9697           hardcode_minus_L_CXX=yes
9698           hardcode_libdir_flag_spec_CXX='-L$libdir'
9699           hardcode_libdir_separator_CXX=
9700         fi
9701       esac
9702       shared_flag='-shared'
9703     else
9704       # not using gcc
9705       if test "$host_cpu" = ia64; then
9706         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9707         # chokes on -Wl,-G. The following line is correct:
9708         shared_flag='-G'
9709       else
9710         if test "$aix_use_runtimelinking" = yes; then
9711           shared_flag='${wl}-G'
9712         else
9713           shared_flag='${wl}-bM:SRE'
9714         fi
9715       fi
9716     fi
9717
9718     # It seems that -bexpall does not export symbols beginning with
9719     # underscore (_), so it is better to generate a list of symbols to export.
9720     always_export_symbols_CXX=yes
9721     if test "$aix_use_runtimelinking" = yes; then
9722       # Warning - without using the other runtime loading flags (-brtl),
9723       # -berok will link without error, but may produce a broken library.
9724       allow_undefined_flag_CXX='-berok'
9725       # Determine the default libpath from the value encoded in an empty executable.
9726       cat >conftest.$ac_ext <<_ACEOF
9727 #line $LINENO "configure"
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733
9734 int
9735 main ()
9736 {
9737
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744   (eval $ac_link) 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } &&
9748          { ac_try='test -s conftest$ac_exeext'
9749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750   (eval $ac_try) 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; }; then
9754
9755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9756 }'`
9757 # Check for a 64-bit object if we didn't find anything.
9758 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; }
9759 }'`; fi
9760 else
9761   echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764 fi
9765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9767
9768       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9769
9770       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"
9771      else
9772       if test "$host_cpu" = ia64; then
9773         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9774         allow_undefined_flag_CXX="-z nodefs"
9775         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"
9776       else
9777         # Determine the default libpath from the value encoded in an empty executable.
9778         cat >conftest.$ac_ext <<_ACEOF
9779 #line $LINENO "configure"
9780 /* confdefs.h.  */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h.  */
9785
9786 int
9787 main ()
9788 {
9789
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9796   (eval $ac_link) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } &&
9800          { ac_try='test -s conftest$ac_exeext'
9801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802   (eval $ac_try) 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; }; then
9806
9807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9808 }'`
9809 # Check for a 64-bit object if we didn't find anything.
9810 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; }
9811 }'`; fi
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 fi
9817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9819
9820         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9821         # Warning - without using the other run time loading flags,
9822         # -berok will link without error, but may produce a broken library.
9823         no_undefined_flag_CXX=' ${wl}-bernotok'
9824         allow_undefined_flag_CXX=' ${wl}-berok'
9825         # -bexpall does not export symbols beginning with underscore (_)
9826         always_export_symbols_CXX=yes
9827         # Exported symbols can be pulled into shared objects from archives
9828         whole_archive_flag_spec_CXX=' '
9829         archive_cmds_need_lc_CXX=yes
9830         # This is similar to how AIX traditionally builds it's shared libraries.
9831         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'
9832       fi
9833     fi
9834     ;;
9835   chorus*)
9836     case $cc_basename in
9837       *)
9838         # FIXME: insert proper C++ library support
9839         ld_shlibs_CXX=no
9840         ;;
9841     esac
9842     ;;
9843
9844   cygwin* | mingw* | pw32*)
9845     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9846     # as there is no search path for DLLs.
9847     hardcode_libdir_flag_spec_CXX='-L$libdir'
9848     allow_undefined_flag_CXX=unsupported
9849     always_export_symbols_CXX=no
9850     enable_shared_with_static_runtimes_CXX=yes
9851
9852     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9853       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'
9854       # If the export-symbols file already is a .def file (1st line
9855       # is EXPORTS), use it as is; otherwise, prepend...
9856       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857         cp $export_symbols $output_objdir/$soname.def;
9858       else
9859         echo EXPORTS > $output_objdir/$soname.def;
9860         cat $export_symbols >> $output_objdir/$soname.def;
9861       fi~
9862       $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'
9863     else
9864       ld_shlibs_CXX=no
9865     fi
9866   ;;
9867
9868   darwin* | rhapsody*)
9869    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9870     archive_cmds_need_lc_CXX=no
9871     case "$host_os" in
9872     rhapsody* | darwin1.[012])
9873       allow_undefined_flag_CXX='-undefined suppress'
9874       ;;
9875     *) # Darwin 1.3 on
9876       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9877       ;;
9878     esac
9879         lt_int_apple_cc_single_mod=no
9880         output_verbose_link_cmd='echo'
9881         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9882           lt_int_apple_cc_single_mod=yes
9883         fi
9884         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9885           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9886         else
9887         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'
9888       fi
9889       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9890
9891     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9892       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9893         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}'
9894       else
9895         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}'
9896       fi
9897         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}'
9898     hardcode_direct_CXX=no
9899     hardcode_automatic_CXX=yes
9900     hardcode_shlibpath_var_CXX=unsupported
9901     whole_archive_flag_spec_CXX='-all_load $convenience'
9902     link_all_deplibs_CXX=yes
9903    fi
9904     ;;
9905
9906   dgux*)
9907     case $cc_basename in
9908       ec++)
9909         # FIXME: insert proper C++ library support
9910         ld_shlibs_CXX=no
9911         ;;
9912       ghcx)
9913         # Green Hills C++ Compiler
9914         # FIXME: insert proper C++ library support
9915         ld_shlibs_CXX=no
9916         ;;
9917       *)
9918         # FIXME: insert proper C++ library support
9919         ld_shlibs_CXX=no
9920         ;;
9921     esac
9922     ;;
9923   freebsd12*)
9924     # C++ shared libraries reported to be fairly broken before switch to ELF
9925     ld_shlibs_CXX=no
9926     ;;
9927   freebsd-elf*)
9928     archive_cmds_need_lc_CXX=no
9929     ;;
9930   freebsd*)
9931     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9932     # conventions
9933     ld_shlibs_CXX=yes
9934     ;;
9935   gnu*)
9936     ;;
9937   hpux9*)
9938     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9939     hardcode_libdir_separator_CXX=:
9940     export_dynamic_flag_spec_CXX='${wl}-E'
9941     hardcode_direct_CXX=yes
9942     hardcode_minus_L_CXX=yes # Not in the search PATH,
9943                                 # but as the default
9944                                 # location of the library.
9945
9946     case $cc_basename in
9947     CC)
9948       # FIXME: insert proper C++ library support
9949       ld_shlibs_CXX=no
9950       ;;
9951     aCC)
9952       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'
9953       # Commands to make compiler produce verbose output that lists
9954       # what "hidden" libraries, object files and flags are used when
9955       # linking a shared library.
9956       #
9957       # There doesn't appear to be a way to prevent this compiler from
9958       # explicitly linking system object files so we need to strip them
9959       # from the output so that they don't get included in the library
9960       # dependencies.
9961       output_verbose_link_cmd='templist=`($CC -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'
9962       ;;
9963     *)
9964       if test "$GXX" = yes; then
9965         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'
9966       else
9967         # FIXME: insert proper C++ library support
9968         ld_shlibs_CXX=no
9969       fi
9970       ;;
9971     esac
9972     ;;
9973   hpux10*|hpux11*)
9974     if test $with_gnu_ld = no; then
9975       case "$host_cpu" in
9976       hppa*64*)
9977         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9978         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9979         hardcode_libdir_separator_CXX=:
9980         ;;
9981       ia64*)
9982         hardcode_libdir_flag_spec_CXX='-L$libdir'
9983         ;;
9984       *)
9985         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9986         hardcode_libdir_separator_CXX=:
9987         export_dynamic_flag_spec_CXX='${wl}-E'
9988         ;;
9989       esac
9990     fi
9991     case "$host_cpu" in
9992     hppa*64*)
9993       hardcode_direct_CXX=no
9994       hardcode_shlibpath_var_CXX=no
9995       ;;
9996     ia64*)
9997       hardcode_direct_CXX=no
9998       hardcode_shlibpath_var_CXX=no
9999       hardcode_minus_L_CXX=yes # Not in the search PATH,
10000                                               # but as the default
10001                                               # location of the library.
10002       ;;
10003     *)
10004       hardcode_direct_CXX=yes
10005       hardcode_minus_L_CXX=yes # Not in the search PATH,
10006                                               # but as the default
10007                                               # location of the library.
10008       ;;
10009     esac
10010
10011     case $cc_basename in
10012       CC)
10013         # FIXME: insert proper C++ library support
10014         ld_shlibs_CXX=no
10015         ;;
10016       aCC)
10017         case "$host_cpu" in
10018         hppa*64*|ia64*)
10019           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10020           ;;
10021         *)
10022           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10023           ;;
10024         esac
10025         # Commands to make compiler produce verbose output that lists
10026         # what "hidden" libraries, object files and flags are used when
10027         # linking a shared library.
10028         #
10029         # There doesn't appear to be a way to prevent this compiler from
10030         # explicitly linking system object files so we need to strip them
10031         # from the output so that they don't get included in the library
10032         # dependencies.
10033         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'
10034         ;;
10035       *)
10036         if test "$GXX" = yes; then
10037           if test $with_gnu_ld = no; then
10038             case "$host_cpu" in
10039             ia64*|hppa*64*)
10040               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10041               ;;
10042             *)
10043               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'
10044               ;;
10045             esac
10046           fi
10047         else
10048           # FIXME: insert proper C++ library support
10049           ld_shlibs_CXX=no
10050         fi
10051         ;;
10052     esac
10053     ;;
10054   irix5* | irix6*)
10055     case $cc_basename in
10056       CC)
10057         # SGI C++
10058         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'
10059
10060         # Archives containing C++ object files must be created using
10061         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10062         # necessary to make sure instantiated templates are included
10063         # in the archive.
10064         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10065         ;;
10066       *)
10067         if test "$GXX" = yes; then
10068           if test "$with_gnu_ld" = no; then
10069             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'
10070           else
10071             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'
10072           fi
10073         fi
10074         link_all_deplibs_CXX=yes
10075         ;;
10076     esac
10077     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10078     hardcode_libdir_separator_CXX=:
10079     ;;
10080   linux*)
10081     case $cc_basename in
10082       KCC)
10083         # Kuck and Associates, Inc. (KAI) C++ Compiler
10084
10085         # KCC will only create a shared library if the output file
10086         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10087         # to its proper name (with version) after linking.
10088         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'
10089         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'
10090         # Commands to make compiler produce verbose output that lists
10091         # what "hidden" libraries, object files and flags are used when
10092         # linking a shared library.
10093         #
10094         # There doesn't appear to be a way to prevent this compiler from
10095         # explicitly linking system object files so we need to strip them
10096         # from the output so that they don't get included in the library
10097         # dependencies.
10098         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'
10099
10100         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10101         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10102
10103         # Archives containing C++ object files must be created using
10104         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10105         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10106         ;;
10107       icpc)
10108         # Intel C++
10109         with_gnu_ld=yes
10110         archive_cmds_need_lc_CXX=no
10111         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112         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'
10113         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10114         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10115         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10116         ;;
10117       cxx)
10118         # Compaq C++
10119         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120         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'
10121
10122         runpath_var=LD_RUN_PATH
10123         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10124         hardcode_libdir_separator_CXX=:
10125
10126         # Commands to make compiler produce verbose output that lists
10127         # what "hidden" libraries, object files and flags are used when
10128         # linking a shared library.
10129         #
10130         # There doesn't appear to be a way to prevent this compiler from
10131         # explicitly linking system object files so we need to strip them
10132         # from the output so that they don't get included in the library
10133         # dependencies.
10134         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'
10135         ;;
10136     esac
10137     ;;
10138   lynxos*)
10139     # FIXME: insert proper C++ library support
10140     ld_shlibs_CXX=no
10141     ;;
10142   m88k*)
10143     # FIXME: insert proper C++ library support
10144     ld_shlibs_CXX=no
10145     ;;
10146   mvs*)
10147     case $cc_basename in
10148       cxx)
10149         # FIXME: insert proper C++ library support
10150         ld_shlibs_CXX=no
10151         ;;
10152       *)
10153         # FIXME: insert proper C++ library support
10154         ld_shlibs_CXX=no
10155         ;;
10156     esac
10157     ;;
10158   netbsd*)
10159     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10160       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10161       wlarc=
10162       hardcode_libdir_flag_spec_CXX='-R$libdir'
10163       hardcode_direct_CXX=yes
10164       hardcode_shlibpath_var_CXX=no
10165     fi
10166     # Workaround some broken pre-1.5 toolchains
10167     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10168     ;;
10169   osf3*)
10170     case $cc_basename in
10171       KCC)
10172         # Kuck and Associates, Inc. (KAI) C++ Compiler
10173
10174         # KCC will only create a shared library if the output file
10175         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10176         # to its proper name (with version) after linking.
10177         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'
10178
10179         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10180         hardcode_libdir_separator_CXX=:
10181
10182         # Archives containing C++ object files must be created using
10183         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10184         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10185
10186         ;;
10187       RCC)
10188         # Rational C++ 2.4.1
10189         # FIXME: insert proper C++ library support
10190         ld_shlibs_CXX=no
10191         ;;
10192       cxx)
10193         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10194         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'
10195
10196         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10197         hardcode_libdir_separator_CXX=:
10198
10199         # Commands to make compiler produce verbose output that lists
10200         # what "hidden" libraries, object files and flags are used when
10201         # linking a shared library.
10202         #
10203         # There doesn't appear to be a way to prevent this compiler from
10204         # explicitly linking system object files so we need to strip them
10205         # from the output so that they don't get included in the library
10206         # dependencies.
10207         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'
10208         ;;
10209       *)
10210         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10211           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10212           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'
10213
10214           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10215           hardcode_libdir_separator_CXX=:
10216
10217           # Commands to make compiler produce verbose output that lists
10218           # what "hidden" libraries, object files and flags are used when
10219           # linking a shared library.
10220           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10221
10222         else
10223           # FIXME: insert proper C++ library support
10224           ld_shlibs_CXX=no
10225         fi
10226         ;;
10227     esac
10228     ;;
10229   osf4* | osf5*)
10230     case $cc_basename in
10231       KCC)
10232         # Kuck and Associates, Inc. (KAI) C++ Compiler
10233
10234         # KCC will only create a shared library if the output file
10235         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10236         # to its proper name (with version) after linking.
10237         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'
10238
10239         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10240         hardcode_libdir_separator_CXX=:
10241
10242         # Archives containing C++ object files must be created using
10243         # the KAI C++ compiler.
10244         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10245         ;;
10246       RCC)
10247         # Rational C++ 2.4.1
10248         # FIXME: insert proper C++ library support
10249         ld_shlibs_CXX=no
10250         ;;
10251       cxx)
10252         allow_undefined_flag_CXX=' -expect_unresolved \*'
10253         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'
10254         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10255           echo "-hidden">> $lib.exp~
10256           $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~
10257           $rm $lib.exp'
10258
10259         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10260         hardcode_libdir_separator_CXX=:
10261
10262         # Commands to make compiler produce verbose output that lists
10263         # what "hidden" libraries, object files and flags are used when
10264         # linking a shared library.
10265         #
10266         # There doesn't appear to be a way to prevent this compiler from
10267         # explicitly linking system object files so we need to strip them
10268         # from the output so that they don't get included in the library
10269         # dependencies.
10270         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'
10271         ;;
10272       *)
10273         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10274           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10275          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'
10276
10277           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10278           hardcode_libdir_separator_CXX=:
10279
10280           # Commands to make compiler produce verbose output that lists
10281           # what "hidden" libraries, object files and flags are used when
10282           # linking a shared library.
10283           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10284
10285         else
10286           # FIXME: insert proper C++ library support
10287           ld_shlibs_CXX=no
10288         fi
10289         ;;
10290     esac
10291     ;;
10292   psos*)
10293     # FIXME: insert proper C++ library support
10294     ld_shlibs_CXX=no
10295     ;;
10296   sco*)
10297     archive_cmds_need_lc_CXX=no
10298     case $cc_basename in
10299       CC)
10300         # FIXME: insert proper C++ library support
10301         ld_shlibs_CXX=no
10302         ;;
10303       *)
10304         # FIXME: insert proper C++ library support
10305         ld_shlibs_CXX=no
10306         ;;
10307     esac
10308     ;;
10309   sunos4*)
10310     case $cc_basename in
10311       CC)
10312         # Sun C++ 4.x
10313         # FIXME: insert proper C++ library support
10314         ld_shlibs_CXX=no
10315         ;;
10316       lcc)
10317         # Lucid
10318         # FIXME: insert proper C++ library support
10319         ld_shlibs_CXX=no
10320         ;;
10321       *)
10322         # FIXME: insert proper C++ library support
10323         ld_shlibs_CXX=no
10324         ;;
10325     esac
10326     ;;
10327   solaris*)
10328     case $cc_basename in
10329       CC)
10330         # Sun C++ 4.2, 5.x and Centerline C++
10331         no_undefined_flag_CXX=' -zdefs'
10332         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10333         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10334         $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'
10335
10336         hardcode_libdir_flag_spec_CXX='-R$libdir'
10337         hardcode_shlibpath_var_CXX=no
10338         case $host_os in
10339           solaris2.0-5 | solaris2.0-5.*) ;;
10340           *)
10341             # The C++ compiler is used as linker so we must use $wl
10342             # flag to pass the commands to the underlying system
10343             # linker.
10344             # Supported since Solaris 2.6 (maybe 2.5.1?)
10345             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10346             ;;
10347         esac
10348         link_all_deplibs_CXX=yes
10349
10350         # Commands to make compiler produce verbose output that lists
10351         # what "hidden" libraries, object files and flags are used when
10352         # linking a shared library.
10353         #
10354         # There doesn't appear to be a way to prevent this compiler from
10355         # explicitly linking system object files so we need to strip them
10356         # from the output so that they don't get included in the library
10357         # dependencies.
10358         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'
10359
10360         # Archives containing C++ object files must be created using
10361         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10362         # necessary to make sure instantiated templates are included
10363         # in the archive.
10364         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10365         ;;
10366       gcx)
10367         # Green Hills C++ Compiler
10368         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10369
10370         # The C++ compiler must be used to create the archive.
10371         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10372         ;;
10373       *)
10374         # GNU C++ compiler with Solaris linker
10375         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10376           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10377           if $CC --version | grep -v '^2\.7' > /dev/null; then
10378             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10379             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10380                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10381
10382             # Commands to make compiler produce verbose output that lists
10383             # what "hidden" libraries, object files and flags are used when
10384             # linking a shared library.
10385             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10386           else
10387             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10388             # platform.
10389             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10390             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10391                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10392
10393             # Commands to make compiler produce verbose output that lists
10394             # what "hidden" libraries, object files and flags are used when
10395             # linking a shared library.
10396             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10397           fi
10398
10399           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10400         fi
10401         ;;
10402     esac
10403     ;;
10404   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10405     archive_cmds_need_lc_CXX=no
10406     ;;
10407   tandem*)
10408     case $cc_basename in
10409       NCC)
10410         # NonStop-UX NCC 3.20
10411         # FIXME: insert proper C++ library support
10412         ld_shlibs_CXX=no
10413         ;;
10414       *)
10415         # FIXME: insert proper C++ library support
10416         ld_shlibs_CXX=no
10417         ;;
10418     esac
10419     ;;
10420   vxworks*)
10421     # FIXME: insert proper C++ library support
10422     ld_shlibs_CXX=no
10423     ;;
10424   *)
10425     # FIXME: insert proper C++ library support
10426     ld_shlibs_CXX=no
10427     ;;
10428 esac
10429 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10430 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10431 test "$ld_shlibs_CXX" = no && can_build_shared=no
10432
10433 GCC_CXX="$GXX"
10434 LD_CXX="$LD"
10435
10436 ## CAVEAT EMPTOR:
10437 ## There is no encapsulation within the following macros, do not change
10438 ## the running order or otherwise move them around unless you know exactly
10439 ## what you are doing...
10440
10441 cat > conftest.$ac_ext <<EOF
10442 class Foo
10443 {
10444 public:
10445   Foo (void) { a = 0; }
10446 private:
10447   int a;
10448 };
10449 EOF
10450
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452   (eval $ac_compile) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); }; then
10456   # Parse the compiler output and extract the necessary
10457   # objects, libraries and library flags.
10458
10459   # Sentinel used to keep track of whether or not we are before
10460   # the conftest object file.
10461   pre_test_object_deps_done=no
10462
10463   # The `*' in the case matches for architectures that use `case' in
10464   # $output_verbose_cmd can trigger glob expansion during the loop
10465   # eval without this substitution.
10466   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10467
10468   for p in `eval $output_verbose_link_cmd`; do
10469     case $p in
10470
10471     -L* | -R* | -l*)
10472        # Some compilers place space between "-{L,R}" and the path.
10473        # Remove the space.
10474        if test $p = "-L" \
10475           || test $p = "-R"; then
10476          prev=$p
10477          continue
10478        else
10479          prev=
10480        fi
10481
10482        if test "$pre_test_object_deps_done" = no; then
10483          case $p in
10484          -L* | -R*)
10485            # Internal compiler library paths should come after those
10486            # provided the user.  The postdeps already come after the
10487            # user supplied libs so there is no need to process them.
10488            if test -z "$compiler_lib_search_path_CXX"; then
10489              compiler_lib_search_path_CXX="${prev}${p}"
10490            else
10491              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10492            fi
10493            ;;
10494          # The "-l" case would never come before the object being
10495          # linked, so don't bother handling this case.
10496          esac
10497        else
10498          if test -z "$postdeps_CXX"; then
10499            postdeps_CXX="${prev}${p}"
10500          else
10501            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10502          fi
10503        fi
10504        ;;
10505
10506     *.$objext)
10507        # This assumes that the test object file only shows up
10508        # once in the compiler output.
10509        if test "$p" = "conftest.$objext"; then
10510          pre_test_object_deps_done=yes
10511          continue
10512        fi
10513
10514        if test "$pre_test_object_deps_done" = no; then
10515          if test -z "$predep_objects_CXX"; then
10516            predep_objects_CXX="$p"
10517          else
10518            predep_objects_CXX="$predep_objects_CXX $p"
10519          fi
10520        else
10521          if test -z "$postdep_objects_CXX"; then
10522            postdep_objects_CXX="$p"
10523          else
10524            postdep_objects_CXX="$postdep_objects_CXX $p"
10525          fi
10526        fi
10527        ;;
10528
10529     *) ;; # Ignore the rest.
10530
10531     esac
10532   done
10533
10534   # Clean up.
10535   rm -f a.out a.exe
10536 else
10537   echo "libtool.m4: error: problem compiling CXX test program"
10538 fi
10539
10540 $rm -f confest.$objext
10541
10542 case " $postdeps_CXX " in
10543 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10544 esac
10545
10546 lt_prog_compiler_wl_CXX=
10547 lt_prog_compiler_pic_CXX=
10548 lt_prog_compiler_static_CXX=
10549
10550 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10551 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10552
10553   # C++ specific cases for pic, static, wl, etc.
10554   if test "$GXX" = yes; then
10555     lt_prog_compiler_wl_CXX='-Wl,'
10556     lt_prog_compiler_static_CXX='-static'
10557
10558     case $host_os in
10559     aix*)
10560       # All AIX code is PIC.
10561       if test "$host_cpu" = ia64; then
10562         # AIX 5 now supports IA64 processor
10563         lt_prog_compiler_static_CXX='-Bstatic'
10564       fi
10565       ;;
10566     amigaos*)
10567       # FIXME: we need at least 68020 code to build shared libraries, but
10568       # adding the `-m68020' flag to GCC prevents building anything better,
10569       # like `-m68040'.
10570       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10571       ;;
10572     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10573       # PIC is the default for these OSes.
10574       ;;
10575     mingw* | os2* | pw32*)
10576       # This hack is so that the source file can tell whether it is being
10577       # built for inclusion in a dll (and should export symbols for example).
10578       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10579       ;;
10580     darwin* | rhapsody*)
10581       # PIC is the default on this platform
10582       # Common symbols not allowed in MH_DYLIB files
10583       lt_prog_compiler_pic_CXX='-fno-common'
10584       ;;
10585     *djgpp*)
10586       # DJGPP does not support shared libraries at all
10587       lt_prog_compiler_pic_CXX=
10588       ;;
10589     sysv4*MP*)
10590       if test -d /usr/nec; then
10591         lt_prog_compiler_pic_CXX=-Kconform_pic
10592       fi
10593       ;;
10594     hpux*)
10595       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10596       # not for PA HP-UX.
10597       case "$host_cpu" in
10598       hppa*64*|ia64*)
10599         ;;
10600       *)
10601         lt_prog_compiler_pic_CXX='-fPIC'
10602         ;;
10603       esac
10604       ;;
10605     *)
10606       lt_prog_compiler_pic_CXX='-fPIC'
10607       ;;
10608     esac
10609   else
10610     case $host_os in
10611       aix4* | aix5*)
10612         # All AIX code is PIC.
10613         if test "$host_cpu" = ia64; then
10614           # AIX 5 now supports IA64 processor
10615           lt_prog_compiler_static_CXX='-Bstatic'
10616         else
10617           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10618         fi
10619         ;;
10620       chorus*)
10621         case $cc_basename in
10622         cxch68)
10623           # Green Hills C++ Compiler
10624           # _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"
10625           ;;
10626         esac
10627         ;;
10628       dgux*)
10629         case $cc_basename in
10630           ec++)
10631             lt_prog_compiler_pic_CXX='-KPIC'
10632             ;;
10633           ghcx)
10634             # Green Hills C++ Compiler
10635             lt_prog_compiler_pic_CXX='-pic'
10636             ;;
10637           *)
10638             ;;
10639         esac
10640         ;;
10641       freebsd*)
10642         # FreeBSD uses GNU C++
10643         ;;
10644       hpux9* | hpux10* | hpux11*)
10645         case $cc_basename in
10646           CC)
10647             lt_prog_compiler_wl_CXX='-Wl,'
10648             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10649             if test "$host_cpu" != ia64; then
10650               lt_prog_compiler_pic_CXX='+Z'
10651             fi
10652             ;;
10653           aCC)
10654             lt_prog_compiler_wl_CXX='-Wl,'
10655             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10656             case "$host_cpu" in
10657             hppa*64*|ia64*)
10658               # +Z the default
10659               ;;
10660             *)
10661               lt_prog_compiler_pic_CXX='+Z'
10662               ;;
10663             esac
10664             ;;
10665           *)
10666             ;;
10667         esac
10668         ;;
10669       irix5* | irix6* | nonstopux*)
10670         case $cc_basename in
10671           CC)
10672             lt_prog_compiler_wl_CXX='-Wl,'
10673             lt_prog_compiler_static_CXX='-non_shared'
10674             # CC pic flag -KPIC is the default.
10675             ;;
10676           *)
10677             ;;
10678         esac
10679         ;;
10680       linux*)
10681         case $cc_basename in
10682           KCC)
10683             # KAI C++ Compiler
10684             lt_prog_compiler_wl_CXX='--backend -Wl,'
10685             lt_prog_compiler_pic_CXX='-fPIC'
10686             ;;
10687           icpc)
10688             # Intel C++
10689             lt_prog_compiler_wl_CXX='-Wl,'
10690             lt_prog_compiler_pic_CXX='-KPIC'
10691             lt_prog_compiler_static_CXX='-static'
10692             ;;
10693           cxx)
10694             # Compaq C++
10695             # Make sure the PIC flag is empty.  It appears that all Alpha
10696             # Linux and Compaq Tru64 Unix objects are PIC.
10697             lt_prog_compiler_pic_CXX=
10698             lt_prog_compiler_static_CXX='-non_shared'
10699             ;;
10700           *)
10701             ;;
10702         esac
10703         ;;
10704       lynxos*)
10705         ;;
10706       m88k*)
10707         ;;
10708       mvs*)
10709         case $cc_basename in
10710           cxx)
10711             lt_prog_compiler_pic_CXX='-W c,exportall'
10712             ;;
10713           *)
10714             ;;
10715         esac
10716         ;;
10717       netbsd*)
10718         ;;
10719       osf3* | osf4* | osf5*)
10720         case $cc_basename in
10721           KCC)
10722             lt_prog_compiler_wl_CXX='--backend -Wl,'
10723             ;;
10724           RCC)
10725             # Rational C++ 2.4.1
10726             lt_prog_compiler_pic_CXX='-pic'
10727             ;;
10728           cxx)
10729             # Digital/Compaq C++
10730             lt_prog_compiler_wl_CXX='-Wl,'
10731             # Make sure the PIC flag is empty.  It appears that all Alpha
10732             # Linux and Compaq Tru64 Unix objects are PIC.
10733             lt_prog_compiler_pic_CXX=
10734             lt_prog_compiler_static_CXX='-non_shared'
10735             ;;
10736           *)
10737             ;;
10738         esac
10739         ;;
10740       psos*)
10741         ;;
10742       sco*)
10743         case $cc_basename in
10744           CC)
10745             lt_prog_compiler_pic_CXX='-fPIC'
10746             ;;
10747           *)
10748             ;;
10749         esac
10750         ;;
10751       solaris*)
10752         case $cc_basename in
10753           CC)
10754             # Sun C++ 4.2, 5.x and Centerline C++
10755             lt_prog_compiler_pic_CXX='-KPIC'
10756             lt_prog_compiler_static_CXX='-Bstatic'
10757             lt_prog_compiler_wl_CXX='-Qoption ld '
10758             ;;
10759           gcx)
10760             # Green Hills C++ Compiler
10761             lt_prog_compiler_pic_CXX='-PIC'
10762             ;;
10763           *)
10764             ;;
10765         esac
10766         ;;
10767       sunos4*)
10768         case $cc_basename in
10769           CC)
10770             # Sun C++ 4.x
10771             lt_prog_compiler_pic_CXX='-pic'
10772             lt_prog_compiler_static_CXX='-Bstatic'
10773             ;;
10774           lcc)
10775             # Lucid
10776             lt_prog_compiler_pic_CXX='-pic'
10777             ;;
10778           *)
10779             ;;
10780         esac
10781         ;;
10782       tandem*)
10783         case $cc_basename in
10784           NCC)
10785             # NonStop-UX NCC 3.20
10786             lt_prog_compiler_pic_CXX='-KPIC'
10787             ;;
10788           *)
10789             ;;
10790         esac
10791         ;;
10792       unixware*)
10793         ;;
10794       vxworks*)
10795         ;;
10796       *)
10797         lt_prog_compiler_can_build_shared_CXX=no
10798         ;;
10799     esac
10800   fi
10801
10802 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10803 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10804
10805 #
10806 # Check to make sure the PIC flag actually works.
10807 #
10808 if test -n "$lt_prog_compiler_pic_CXX"; then
10809   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10810 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10811 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10812   echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814   lt_prog_compiler_pic_works_CXX=no
10815   ac_outfile=conftest.$ac_objext
10816    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10817    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10818    # Insert the option either (1) after the last *FLAGS variable, or
10819    # (2) before a word containing "conftest.", or (3) at the end.
10820    # Note that $ac_compile itself does not contain backslashes and begins
10821    # with a dollar sign (not a hyphen), so the echo should work correctly.
10822    # The option is referenced via a variable to avoid confusing sed.
10823    lt_compile=`echo "$ac_compile" | $SED \
10824    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10825    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10826    -e 's:$: $lt_compiler_flag:'`
10827    (eval echo "\"\$as_me:10827: $lt_compile\"" >&5)
10828    (eval "$lt_compile" 2>conftest.err)
10829    ac_status=$?
10830    cat conftest.err >&5
10831    echo "$as_me:10831: \$? = $ac_status" >&5
10832    if (exit $ac_status) && test -s "$ac_outfile"; then
10833      # The compiler can only warn and ignore the option if not recognized
10834      # So say no if there are warnings
10835      if test ! -s conftest.err; then
10836        lt_prog_compiler_pic_works_CXX=yes
10837      fi
10838    fi
10839    $rm conftest*
10840
10841 fi
10842 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10843 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10844
10845 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10846     case $lt_prog_compiler_pic_CXX in
10847      "" | " "*) ;;
10848      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10849      esac
10850 else
10851     lt_prog_compiler_pic_CXX=
10852      lt_prog_compiler_can_build_shared_CXX=no
10853 fi
10854
10855 fi
10856 case "$host_os" in
10857   # For platforms which do not support PIC, -DPIC is meaningless:
10858   *djgpp*)
10859     lt_prog_compiler_pic_CXX=
10860     ;;
10861   *)
10862     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10863     ;;
10864 esac
10865
10866 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10868 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   lt_cv_prog_compiler_c_o_CXX=no
10872    $rm -r conftest 2>/dev/null
10873    mkdir conftest
10874    cd conftest
10875    mkdir out
10876    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10877
10878    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10879    # that will create temporary files in the current directory regardless of
10880    # the output directory.  Thus, making CWD read-only will cause this test
10881    # to fail, enabling locking or at least warning the user not to do parallel
10882    # builds.
10883    chmod -w .
10884
10885    lt_compiler_flag="-o out/conftest2.$ac_objext"
10886    # Insert the option either (1) after the last *FLAGS variable, or
10887    # (2) before a word containing "conftest.", or (3) at the end.
10888    # Note that $ac_compile itself does not contain backslashes and begins
10889    # with a dollar sign (not a hyphen), so the echo should work correctly.
10890    lt_compile=`echo "$ac_compile" | $SED \
10891    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10892    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10893    -e 's:$: $lt_compiler_flag:'`
10894    (eval echo "\"\$as_me:10894: $lt_compile\"" >&5)
10895    (eval "$lt_compile" 2>out/conftest.err)
10896    ac_status=$?
10897    cat out/conftest.err >&5
10898    echo "$as_me:10898: \$? = $ac_status" >&5
10899    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10900    then
10901      # The compiler can only warn and ignore the option if not recognized
10902      # So say no if there are warnings
10903      if test ! -s out/conftest.err; then
10904        lt_cv_prog_compiler_c_o_CXX=yes
10905      fi
10906    fi
10907    chmod u+w .
10908    $rm conftest* out/*
10909    rmdir out
10910    cd ..
10911    rmdir conftest
10912    $rm conftest*
10913
10914 fi
10915 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10916 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10917
10918
10919 hard_links="nottested"
10920 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10921   # do not overwrite the value of need_locks provided by the user
10922   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10923 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10924   hard_links=yes
10925   $rm conftest*
10926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10927   touch conftest.a
10928   ln conftest.a conftest.b 2>&5 || hard_links=no
10929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10930   echo "$as_me:$LINENO: result: $hard_links" >&5
10931 echo "${ECHO_T}$hard_links" >&6
10932   if test "$hard_links" = no; then
10933     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10934 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10935     need_locks=warn
10936   fi
10937 else
10938   need_locks=no
10939 fi
10940
10941 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10942 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10943
10944   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10945   case $host_os in
10946   aix4* | aix5*)
10947     # If we're using GNU nm, then we don't want the "-C" option.
10948     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10949     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10950       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'
10951     else
10952       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'
10953     fi
10954     ;;
10955   pw32*)
10956     export_symbols_cmds_CXX="$ltdll_cmds"
10957   ;;
10958   cygwin* | mingw*)
10959     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10960   ;;
10961   *)
10962     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10963   ;;
10964   esac
10965
10966 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10967 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10968 test "$ld_shlibs_CXX" = no && can_build_shared=no
10969
10970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10971 if test "$GCC" = yes; then
10972   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10973 fi
10974
10975 #
10976 # Do we need to explicitly link libc?
10977 #
10978 case "x$archive_cmds_need_lc_CXX" in
10979 x|xyes)
10980   # Assume -lc should be added
10981   archive_cmds_need_lc_CXX=yes
10982
10983   if test "$enable_shared" = yes && test "$GCC" = yes; then
10984     case $archive_cmds_CXX in
10985     *'~'*)
10986       # FIXME: we may have to deal with multi-command sequences.
10987       ;;
10988     '$CC '*)
10989       # Test whether the compiler implicitly links with -lc since on some
10990       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10991       # to ld, don't add -lc before -lgcc.
10992       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10994       $rm conftest*
10995       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10996
10997       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10998   (eval $ac_compile) 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); } 2>conftest.err; then
11002         soname=conftest
11003         lib=conftest
11004         libobjs=conftest.$ac_objext
11005         deplibs=
11006         wl=$lt_prog_compiler_wl_CXX
11007         compiler_flags=-v
11008         linker_flags=-v
11009         verstring=
11010         output_objdir=.
11011         libname=conftest
11012         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11013         allow_undefined_flag_CXX=
11014         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11015   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }
11019         then
11020           archive_cmds_need_lc_CXX=no
11021         else
11022           archive_cmds_need_lc_CXX=yes
11023         fi
11024         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11025       else
11026         cat conftest.err 1>&5
11027       fi
11028       $rm conftest*
11029       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11030 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11031       ;;
11032     esac
11033   fi
11034   ;;
11035 esac
11036
11037 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11038 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11039 hardcode_action_CXX=
11040 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11041    test -n "$runpath_var CXX" || \
11042    test "X$hardcode_automatic_CXX"="Xyes" ; then
11043
11044   # We can hardcode non-existant directories.
11045   if test "$hardcode_direct_CXX" != no &&
11046      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11047      # have to relink, otherwise we might link with an installed library
11048      # when we should be linking with a yet-to-be-installed one
11049      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11050      test "$hardcode_minus_L_CXX" != no; then
11051     # Linking always hardcodes the temporary library directory.
11052     hardcode_action_CXX=relink
11053   else
11054     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11055     hardcode_action_CXX=immediate
11056   fi
11057 else
11058   # We cannot hardcode anything, or else we can only hardcode existing
11059   # directories.
11060   hardcode_action_CXX=unsupported
11061 fi
11062 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11063 echo "${ECHO_T}$hardcode_action_CXX" >&6
11064
11065 if test "$hardcode_action_CXX" = relink; then
11066   # Fast installation is not supported
11067   enable_fast_install=no
11068 elif test "$shlibpath_overrides_runpath" = yes ||
11069      test "$enable_shared" = no; then
11070   # Fast installation is not necessary
11071   enable_fast_install=needless
11072 fi
11073
11074 striplib=
11075 old_striplib=
11076 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11077 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11078 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11079   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11080   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11081   echo "$as_me:$LINENO: result: yes" >&5
11082 echo "${ECHO_T}yes" >&6
11083 else
11084 # FIXME - insert some real tests, host_os isn't really good enough
11085   case $host_os in
11086    darwin*)
11087        if test -n "$STRIP" ; then
11088          striplib="$STRIP -x"
11089          echo "$as_me:$LINENO: result: yes" >&5
11090 echo "${ECHO_T}yes" >&6
11091        else
11092   echo "$as_me:$LINENO: result: no" >&5
11093 echo "${ECHO_T}no" >&6
11094 fi
11095        ;;
11096    *)
11097   echo "$as_me:$LINENO: result: no" >&5
11098 echo "${ECHO_T}no" >&6
11099     ;;
11100   esac
11101 fi
11102
11103 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11104 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11105 library_names_spec=
11106 libname_spec='lib$name'
11107 soname_spec=
11108 shrext=".so"
11109 postinstall_cmds=
11110 postuninstall_cmds=
11111 finish_cmds=
11112 finish_eval=
11113 shlibpath_var=
11114 shlibpath_overrides_runpath=unknown
11115 version_type=none
11116 dynamic_linker="$host_os ld.so"
11117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11118 if test "$GCC" = yes; then
11119   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11120   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11121     # if the path contains ";" then we assume it to be the separator
11122     # otherwise default to the standard path separator (i.e. ":") - it is
11123     # assumed that no part of a normal pathname contains ";" but that should
11124     # okay in the real world where ";" in dirpaths is itself problematic.
11125     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11126   else
11127     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11128   fi
11129 else
11130   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11131 fi
11132 need_lib_prefix=unknown
11133 hardcode_into_libs=no
11134
11135 # when you set need_version to no, make sure it does not cause -set_version
11136 # flags to be left without arguments
11137 need_version=unknown
11138
11139 case $host_os in
11140 aix3*)
11141   version_type=linux
11142   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11143   shlibpath_var=LIBPATH
11144
11145   # AIX 3 has no versioning support, so we append a major version to the name.
11146   soname_spec='${libname}${release}${shared_ext}$major'
11147   ;;
11148
11149 aix4* | aix5*)
11150   version_type=linux
11151   need_lib_prefix=no
11152   need_version=no
11153   hardcode_into_libs=yes
11154   if test "$host_cpu" = ia64; then
11155     # AIX 5 supports IA64
11156     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11157     shlibpath_var=LD_LIBRARY_PATH
11158   else
11159     # With GCC up to 2.95.x, collect2 would create an import file
11160     # for dependence libraries.  The import file would start with
11161     # the line `#! .'.  This would cause the generated library to
11162     # depend on `.', always an invalid library.  This was fixed in
11163     # development snapshots of GCC prior to 3.0.
11164     case $host_os in
11165       aix4 | aix4.[01] | aix4.[01].*)
11166       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11167            echo ' yes '
11168            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11169         :
11170       else
11171         can_build_shared=no
11172       fi
11173       ;;
11174     esac
11175     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11176     # soname into executable. Probably we can add versioning support to
11177     # collect2, so additional links can be useful in future.
11178     if test "$aix_use_runtimelinking" = yes; then
11179       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11180       # instead of lib<name>.a to let people know that these are not
11181       # typical AIX shared libraries.
11182       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183     else
11184       # We preserve .a as extension for shared libraries through AIX4.2
11185       # and later when we are not doing run time linking.
11186       library_names_spec='${libname}${release}.a $libname.a'
11187       soname_spec='${libname}${release}${shared_ext}$major'
11188     fi
11189     shlibpath_var=LIBPATH
11190   fi
11191   ;;
11192
11193 amigaos*)
11194   library_names_spec='$libname.ixlibrary $libname.a'
11195   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11196   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'
11197   ;;
11198
11199 beos*)
11200   library_names_spec='${libname}${shared_ext}'
11201   dynamic_linker="$host_os ld.so"
11202   shlibpath_var=LIBRARY_PATH
11203   ;;
11204
11205 bsdi4*)
11206   version_type=linux
11207   need_version=no
11208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209   soname_spec='${libname}${release}${shared_ext}$major'
11210   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11211   shlibpath_var=LD_LIBRARY_PATH
11212   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11213   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11214   # the default ld.so.conf also contains /usr/contrib/lib and
11215   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11216   # libtool to hard-code these into programs
11217   ;;
11218
11219 cygwin* | mingw* | pw32*)
11220   version_type=windows
11221   shrext=".dll"
11222   need_version=no
11223   need_lib_prefix=no
11224
11225   case $GCC,$host_os in
11226   yes,cygwin* | yes,mingw* | yes,pw32*)
11227     library_names_spec='$libname.dll.a'
11228     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11229     postinstall_cmds='base_file=`basename \${file}`~
11230       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11231       dldir=$destdir/`dirname \$dlpath`~
11232       test -d \$dldir || mkdir -p \$dldir~
11233       $install_prog $dir/$dlname \$dldir/$dlname'
11234     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11235       dlpath=$dir/\$dldll~
11236        $rm \$dlpath'
11237     shlibpath_overrides_runpath=yes
11238
11239     case $host_os in
11240     cygwin*)
11241       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11242       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11243       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11244       ;;
11245     mingw*)
11246       # MinGW DLLs use traditional 'lib' prefix
11247       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11248       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11249       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11250         # It is most probably a Windows format PATH printed by
11251         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11252         # path with ; separators, and with drive letters. We can handle the
11253         # drive letters (cygwin fileutils understands them), so leave them,
11254         # especially as we might pass files found there to a mingw objdump,
11255         # which wouldn't understand a cygwinified path. Ahh.
11256         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11257       else
11258         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11259       fi
11260       ;;
11261     pw32*)
11262       # pw32 DLLs use 'pw' prefix rather than 'lib'
11263       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11264       ;;
11265     esac
11266     ;;
11267
11268   *)
11269     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11270     ;;
11271   esac
11272   dynamic_linker='Win32 ld.exe'
11273   # FIXME: first we should search . and the directory the executable is in
11274   shlibpath_var=PATH
11275   ;;
11276
11277 darwin* | rhapsody*)
11278   dynamic_linker="$host_os dyld"
11279   version_type=darwin
11280   need_lib_prefix=no
11281   need_version=no
11282   # FIXME: Relying on posixy $() will cause problems for
11283   #        cross-compilation, but unfortunately the echo tests do not
11284   #        yet detect zsh echo's removal of \ escapes.
11285   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11286   soname_spec='${libname}${release}${major}$shared_ext'
11287   shlibpath_overrides_runpath=yes
11288   shlibpath_var=DYLD_LIBRARY_PATH
11289   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11290   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11291   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11292   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"`
11293   fi
11294   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11295   ;;
11296
11297 dgux*)
11298   version_type=linux
11299   need_lib_prefix=no
11300   need_version=no
11301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11302   soname_spec='${libname}${release}${shared_ext}$major'
11303   shlibpath_var=LD_LIBRARY_PATH
11304   ;;
11305
11306 freebsd1*)
11307   dynamic_linker=no
11308   ;;
11309
11310 freebsd*)
11311   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11312   version_type=freebsd-$objformat
11313   case $version_type in
11314     freebsd-elf*)
11315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11316       need_version=no
11317       need_lib_prefix=no
11318       ;;
11319     freebsd-*)
11320       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11321       need_version=yes
11322       ;;
11323   esac
11324   shlibpath_var=LD_LIBRARY_PATH
11325   case $host_os in
11326   freebsd2*)
11327     shlibpath_overrides_runpath=yes
11328     ;;
11329   freebsd3.01* | freebsdelf3.01*)
11330     shlibpath_overrides_runpath=yes
11331     hardcode_into_libs=yes
11332     ;;
11333   *) # from 3.2 on
11334     shlibpath_overrides_runpath=no
11335     hardcode_into_libs=yes
11336     ;;
11337   esac
11338   ;;
11339
11340 gnu*)
11341   version_type=linux
11342   need_lib_prefix=no
11343   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
11347   hardcode_into_libs=yes
11348   ;;
11349
11350 hpux9* | hpux10* | hpux11*)
11351   # Give a soname corresponding to the major version so that dld.sl refuses to
11352   # link against other versions.
11353   version_type=sunos
11354   need_lib_prefix=no
11355   need_version=no
11356   case "$host_cpu" in
11357   ia64*)
11358     shrext='.so'
11359     hardcode_into_libs=yes
11360     dynamic_linker="$host_os dld.so"
11361     shlibpath_var=LD_LIBRARY_PATH
11362     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364     soname_spec='${libname}${release}${shared_ext}$major'
11365     if test "X$HPUX_IA64_MODE" = X32; then
11366       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11367     else
11368       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11369     fi
11370     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371     ;;
11372    hppa*64*)
11373      shrext='.sl'
11374      hardcode_into_libs=yes
11375      dynamic_linker="$host_os dld.sl"
11376      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11377      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11378      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379      soname_spec='${libname}${release}${shared_ext}$major'
11380      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11381      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11382      ;;
11383    *)
11384     shrext='.sl'
11385     dynamic_linker="$host_os dld.sl"
11386     shlibpath_var=SHLIB_PATH
11387     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389     soname_spec='${libname}${release}${shared_ext}$major'
11390     ;;
11391   esac
11392   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11393   postinstall_cmds='chmod 555 $lib'
11394   ;;
11395
11396 irix5* | irix6* | nonstopux*)
11397   case $host_os in
11398     nonstopux*) version_type=nonstopux ;;
11399     *)
11400         if test "$lt_cv_prog_gnu_ld" = yes; then
11401                 version_type=linux
11402         else
11403                 version_type=irix
11404         fi ;;
11405   esac
11406   need_lib_prefix=no
11407   need_version=no
11408   soname_spec='${libname}${release}${shared_ext}$major'
11409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11410   case $host_os in
11411   irix5* | nonstopux*)
11412     libsuff= shlibsuff=
11413     ;;
11414   *)
11415     case $LD in # libtool.m4 will add one of these switches to LD
11416     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11417       libsuff= shlibsuff= libmagic=32-bit;;
11418     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11419       libsuff=32 shlibsuff=N32 libmagic=N32;;
11420     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11421       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11422     *) libsuff= shlibsuff= libmagic=never-match;;
11423     esac
11424     ;;
11425   esac
11426   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11427   shlibpath_overrides_runpath=no
11428   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11429   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11430   hardcode_into_libs=yes
11431   ;;
11432
11433 # No shared lib support for Linux oldld, aout, or coff.
11434 linux*oldld* | linux*aout* | linux*coff*)
11435   dynamic_linker=no
11436   ;;
11437
11438 # This must be Linux ELF.
11439 linux*)
11440   version_type=linux
11441   need_lib_prefix=no
11442   need_version=no
11443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444   soname_spec='${libname}${release}${shared_ext}$major'
11445   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11446   shlibpath_var=LD_LIBRARY_PATH
11447   shlibpath_overrides_runpath=no
11448   # This implies no fast_install, which is unacceptable.
11449   # Some rework will be needed to allow for fast_install
11450   # before this can be enabled.
11451   hardcode_into_libs=yes
11452
11453   # We used to test for /lib/ld.so.1 and disable shared libraries on
11454   # powerpc, because MkLinux only supported shared libraries with the
11455   # GNU dynamic linker.  Since this was broken with cross compilers,
11456   # most powerpc-linux boxes support dynamic linking these days and
11457   # people can always --disable-shared, the test was removed, and we
11458   # assume the GNU/Linux dynamic linker is in use.
11459   dynamic_linker='GNU/Linux ld.so'
11460   ;;
11461
11462 netbsd*)
11463   version_type=sunos
11464   need_lib_prefix=no
11465   need_version=no
11466   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11468     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11469     dynamic_linker='NetBSD (a.out) ld.so'
11470   else
11471     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11472     soname_spec='${libname}${release}${shared_ext}$major'
11473     dynamic_linker='NetBSD ld.elf_so'
11474   fi
11475   shlibpath_var=LD_LIBRARY_PATH
11476   shlibpath_overrides_runpath=yes
11477   hardcode_into_libs=yes
11478   ;;
11479
11480 newsos6)
11481   version_type=linux
11482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483   shlibpath_var=LD_LIBRARY_PATH
11484   shlibpath_overrides_runpath=yes
11485   ;;
11486
11487 nto-qnx)
11488   version_type=linux
11489   need_lib_prefix=no
11490   need_version=no
11491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492   soname_spec='${libname}${release}${shared_ext}$major'
11493   shlibpath_var=LD_LIBRARY_PATH
11494   shlibpath_overrides_runpath=yes
11495   ;;
11496
11497 openbsd*)
11498   version_type=sunos
11499   need_lib_prefix=no
11500   need_version=no
11501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11503   shlibpath_var=LD_LIBRARY_PATH
11504   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11505     case $host_os in
11506       openbsd2.[89] | openbsd2.[89].*)
11507         shlibpath_overrides_runpath=no
11508         ;;
11509       *)
11510         shlibpath_overrides_runpath=yes
11511         ;;
11512       esac
11513   else
11514     shlibpath_overrides_runpath=yes
11515   fi
11516   ;;
11517
11518 os2*)
11519   libname_spec='$name'
11520   shrext=".dll"
11521   need_lib_prefix=no
11522   library_names_spec='$libname${shared_ext} $libname.a'
11523   dynamic_linker='OS/2 ld.exe'
11524   shlibpath_var=LIBPATH
11525   ;;
11526
11527 osf3* | osf4* | osf5*)
11528   version_type=osf
11529   need_lib_prefix=no
11530   need_version=no
11531   soname_spec='${libname}${release}${shared_ext}$major'
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533   shlibpath_var=LD_LIBRARY_PATH
11534   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11535   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11536   ;;
11537
11538 sco3.2v5*)
11539   version_type=osf
11540   soname_spec='${libname}${release}${shared_ext}$major'
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   ;;
11544
11545 solaris*)
11546   version_type=linux
11547   need_lib_prefix=no
11548   need_version=no
11549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550   soname_spec='${libname}${release}${shared_ext}$major'
11551   shlibpath_var=LD_LIBRARY_PATH
11552   shlibpath_overrides_runpath=yes
11553   hardcode_into_libs=yes
11554   # ldd complains unless libraries are executable
11555   postinstall_cmds='chmod +x $lib'
11556   ;;
11557
11558 sunos4*)
11559   version_type=sunos
11560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11562   shlibpath_var=LD_LIBRARY_PATH
11563   shlibpath_overrides_runpath=yes
11564   if test "$with_gnu_ld" = yes; then
11565     need_lib_prefix=no
11566   fi
11567   need_version=yes
11568   ;;
11569
11570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11571   version_type=linux
11572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573   soname_spec='${libname}${release}${shared_ext}$major'
11574   shlibpath_var=LD_LIBRARY_PATH
11575   case $host_vendor in
11576     sni)
11577       shlibpath_overrides_runpath=no
11578       need_lib_prefix=no
11579       export_dynamic_flag_spec='${wl}-Blargedynsym'
11580       runpath_var=LD_RUN_PATH
11581       ;;
11582     siemens)
11583       need_lib_prefix=no
11584       ;;
11585     motorola)
11586       need_lib_prefix=no
11587       need_version=no
11588       shlibpath_overrides_runpath=no
11589       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11590       ;;
11591   esac
11592   ;;
11593
11594 sysv4*MP*)
11595   if test -d /usr/nec ;then
11596     version_type=linux
11597     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11598     soname_spec='$libname${shared_ext}.$major'
11599     shlibpath_var=LD_LIBRARY_PATH
11600   fi
11601   ;;
11602
11603 uts4*)
11604   version_type=linux
11605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606   soname_spec='${libname}${release}${shared_ext}$major'
11607   shlibpath_var=LD_LIBRARY_PATH
11608   ;;
11609
11610 *)
11611   dynamic_linker=no
11612   ;;
11613 esac
11614 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11615 echo "${ECHO_T}$dynamic_linker" >&6
11616 test "$dynamic_linker" = no && can_build_shared=no
11617
11618 if test "x$enable_dlopen" != xyes; then
11619   enable_dlopen=unknown
11620   enable_dlopen_self=unknown
11621   enable_dlopen_self_static=unknown
11622 else
11623   lt_cv_dlopen=no
11624   lt_cv_dlopen_libs=
11625
11626   case $host_os in
11627   beos*)
11628     lt_cv_dlopen="load_add_on"
11629     lt_cv_dlopen_libs=
11630     lt_cv_dlopen_self=yes
11631     ;;
11632
11633   mingw* | pw32*)
11634     lt_cv_dlopen="LoadLibrary"
11635     lt_cv_dlopen_libs=
11636    ;;
11637
11638   cygwin*)
11639     lt_cv_dlopen="dlopen"
11640     lt_cv_dlopen_libs=
11641    ;;
11642
11643   darwin*)
11644   # if libdl is installed we need to link against it
11645     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11646 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-ldl  $LIBS"
11652 cat >conftest.$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659
11660 /* Override any gcc2 internal prototype to avoid an error.  */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 /* We use char because int might match the return type of a gcc2
11665    builtin and then its argument prototype would still apply.  */
11666 char dlopen ();
11667 int
11668 main ()
11669 {
11670 dlopen ();
11671   ;
11672   return 0;
11673 }
11674 _ACEOF
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11677   (eval $ac_link) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); } &&
11681          { ac_try='test -s conftest$ac_exeext'
11682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683   (eval $ac_try) 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; }; then
11687   ac_cv_lib_dl_dlopen=yes
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 ac_cv_lib_dl_dlopen=no
11693 fi
11694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11696 fi
11697 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11698 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11699 if test $ac_cv_lib_dl_dlopen = yes; then
11700   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11701 else
11702
11703     lt_cv_dlopen="dyld"
11704     lt_cv_dlopen_libs=
11705     lt_cv_dlopen_self=yes
11706
11707 fi
11708
11709    ;;
11710
11711   *)
11712     echo "$as_me:$LINENO: checking for shl_load" >&5
11713 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11714 if test "${ac_cv_func_shl_load+set}" = set; then
11715   echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717   cat >conftest.$ac_ext <<_ACEOF
11718 #line $LINENO "configure"
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724 /* System header to define __stub macros and hopefully few prototypes,
11725     which can conflict with char shl_load (); below.
11726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11727     <limits.h> exists even on freestanding compilers.  */
11728 #ifdef __STDC__
11729 # include <limits.h>
11730 #else
11731 # include <assert.h>
11732 #endif
11733 /* Override any gcc2 internal prototype to avoid an error.  */
11734 #ifdef __cplusplus
11735 extern "C"
11736 {
11737 #endif
11738 /* We use char because int might match the return type of a gcc2
11739    builtin and then its argument prototype would still apply.  */
11740 char shl_load ();
11741 /* The GNU C library defines this for functions which it implements
11742     to always fail with ENOSYS.  Some functions are actually named
11743     something starting with __ and the normal name is an alias.  */
11744 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11745 choke me
11746 #else
11747 char (*f) () = shl_load;
11748 #endif
11749 #ifdef __cplusplus
11750 }
11751 #endif
11752
11753 int
11754 main ()
11755 {
11756 return f != shl_load;
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763   (eval $ac_link) 2>&5
11764   ac_status=$?
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); } &&
11767          { ac_try='test -s conftest$ac_exeext'
11768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769   (eval $ac_try) 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); }; }; then
11773   ac_cv_func_shl_load=yes
11774 else
11775   echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11777
11778 ac_cv_func_shl_load=no
11779 fi
11780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11781 fi
11782 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11783 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11784 if test $ac_cv_func_shl_load = yes; then
11785   lt_cv_dlopen="shl_load"
11786 else
11787   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11788 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11789 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792   ac_check_lib_save_LIBS=$LIBS
11793 LIBS="-ldld  $LIBS"
11794 cat >conftest.$ac_ext <<_ACEOF
11795 #line $LINENO "configure"
11796 /* confdefs.h.  */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h.  */
11801
11802 /* Override any gcc2 internal prototype to avoid an error.  */
11803 #ifdef __cplusplus
11804 extern "C"
11805 #endif
11806 /* We use char because int might match the return type of a gcc2
11807    builtin and then its argument prototype would still apply.  */
11808 char shl_load ();
11809 int
11810 main ()
11811 {
11812 shl_load ();
11813   ;
11814   return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819   (eval $ac_link) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } &&
11823          { ac_try='test -s conftest$ac_exeext'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; }; then
11829   ac_cv_lib_dld_shl_load=yes
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834 ac_cv_lib_dld_shl_load=no
11835 fi
11836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11838 fi
11839 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11840 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11841 if test $ac_cv_lib_dld_shl_load = yes; then
11842   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11843 else
11844   echo "$as_me:$LINENO: checking for dlopen" >&5
11845 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11846 if test "${ac_cv_func_dlopen+set}" = set; then
11847   echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849   cat >conftest.$ac_ext <<_ACEOF
11850 #line $LINENO "configure"
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856 /* System header to define __stub macros and hopefully few prototypes,
11857     which can conflict with char dlopen (); below.
11858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11859     <limits.h> exists even on freestanding compilers.  */
11860 #ifdef __STDC__
11861 # include <limits.h>
11862 #else
11863 # include <assert.h>
11864 #endif
11865 /* Override any gcc2 internal prototype to avoid an error.  */
11866 #ifdef __cplusplus
11867 extern "C"
11868 {
11869 #endif
11870 /* We use char because int might match the return type of a gcc2
11871    builtin and then its argument prototype would still apply.  */
11872 char dlopen ();
11873 /* The GNU C library defines this for functions which it implements
11874     to always fail with ENOSYS.  Some functions are actually named
11875     something starting with __ and the normal name is an alias.  */
11876 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11877 choke me
11878 #else
11879 char (*f) () = dlopen;
11880 #endif
11881 #ifdef __cplusplus
11882 }
11883 #endif
11884
11885 int
11886 main ()
11887 {
11888 return f != dlopen;
11889   ;
11890   return 0;
11891 }
11892 _ACEOF
11893 rm -f conftest.$ac_objext conftest$ac_exeext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895   (eval $ac_link) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); } &&
11899          { ac_try='test -s conftest$ac_exeext'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; }; then
11905   ac_cv_func_dlopen=yes
11906 else
11907   echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 ac_cv_func_dlopen=no
11911 fi
11912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11913 fi
11914 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11915 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11916 if test $ac_cv_func_dlopen = yes; then
11917   lt_cv_dlopen="dlopen"
11918 else
11919   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11920 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11922   echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924   ac_check_lib_save_LIBS=$LIBS
11925 LIBS="-ldl  $LIBS"
11926 cat >conftest.$ac_ext <<_ACEOF
11927 #line $LINENO "configure"
11928 /* confdefs.h.  */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h.  */
11933
11934 /* Override any gcc2 internal prototype to avoid an error.  */
11935 #ifdef __cplusplus
11936 extern "C"
11937 #endif
11938 /* We use char because int might match the return type of a gcc2
11939    builtin and then its argument prototype would still apply.  */
11940 char dlopen ();
11941 int
11942 main ()
11943 {
11944 dlopen ();
11945   ;
11946   return 0;
11947 }
11948 _ACEOF
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11951   (eval $ac_link) 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); } &&
11955          { ac_try='test -s conftest$ac_exeext'
11956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957   (eval $ac_try) 2>&5
11958   ac_status=$?
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); }; }; then
11961   ac_cv_lib_dl_dlopen=yes
11962 else
11963   echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 ac_cv_lib_dl_dlopen=no
11967 fi
11968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11970 fi
11971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11973 if test $ac_cv_lib_dl_dlopen = yes; then
11974   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11975 else
11976   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11977 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11978 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 else
11981   ac_check_lib_save_LIBS=$LIBS
11982 LIBS="-lsvld  $LIBS"
11983 cat >conftest.$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990
11991 /* Override any gcc2 internal prototype to avoid an error.  */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 /* We use char because int might match the return type of a gcc2
11996    builtin and then its argument prototype would still apply.  */
11997 char dlopen ();
11998 int
11999 main ()
12000 {
12001 dlopen ();
12002   ;
12003   return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008   (eval $ac_link) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } &&
12012          { ac_try='test -s conftest$ac_exeext'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; }; then
12018   ac_cv_lib_svld_dlopen=yes
12019 else
12020   echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ac_cv_lib_svld_dlopen=no
12024 fi
12025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12026 LIBS=$ac_check_lib_save_LIBS
12027 fi
12028 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12029 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12030 if test $ac_cv_lib_svld_dlopen = yes; then
12031   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12032 else
12033   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12034 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12035 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12036   echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038   ac_check_lib_save_LIBS=$LIBS
12039 LIBS="-ldld  $LIBS"
12040 cat >conftest.$ac_ext <<_ACEOF
12041 #line $LINENO "configure"
12042 /* confdefs.h.  */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h.  */
12047
12048 /* Override any gcc2 internal prototype to avoid an error.  */
12049 #ifdef __cplusplus
12050 extern "C"
12051 #endif
12052 /* We use char because int might match the return type of a gcc2
12053    builtin and then its argument prototype would still apply.  */
12054 char dld_link ();
12055 int
12056 main ()
12057 {
12058 dld_link ();
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065   (eval $ac_link) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } &&
12069          { ac_try='test -s conftest$ac_exeext'
12070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071   (eval $ac_try) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; }; then
12075   ac_cv_lib_dld_dld_link=yes
12076 else
12077   echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 ac_cv_lib_dld_dld_link=no
12081 fi
12082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12083 LIBS=$ac_check_lib_save_LIBS
12084 fi
12085 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12086 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12087 if test $ac_cv_lib_dld_dld_link = yes; then
12088   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12089 fi
12090
12091
12092 fi
12093
12094
12095 fi
12096
12097
12098 fi
12099
12100
12101 fi
12102
12103
12104 fi
12105
12106     ;;
12107   esac
12108
12109   if test "x$lt_cv_dlopen" != xno; then
12110     enable_dlopen=yes
12111   else
12112     enable_dlopen=no
12113   fi
12114
12115   case $lt_cv_dlopen in
12116   dlopen)
12117     save_CPPFLAGS="$CPPFLAGS"
12118     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12119
12120     save_LDFLAGS="$LDFLAGS"
12121     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12122
12123     save_LIBS="$LIBS"
12124     LIBS="$lt_cv_dlopen_libs $LIBS"
12125
12126     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12127 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12128 if test "${lt_cv_dlopen_self+set}" = set; then
12129   echo $ECHO_N "(cached) $ECHO_C" >&6
12130 else
12131           if test "$cross_compiling" = yes; then :
12132   lt_cv_dlopen_self=cross
12133 else
12134   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12135   lt_status=$lt_dlunknown
12136   cat > conftest.$ac_ext <<EOF
12137 #line 12137 "configure"
12138 #include "confdefs.h"
12139
12140 #if HAVE_DLFCN_H
12141 #include <dlfcn.h>
12142 #endif
12143
12144 #include <stdio.h>
12145
12146 #ifdef RTLD_GLOBAL
12147 #  define LT_DLGLOBAL           RTLD_GLOBAL
12148 #else
12149 #  ifdef DL_GLOBAL
12150 #    define LT_DLGLOBAL         DL_GLOBAL
12151 #  else
12152 #    define LT_DLGLOBAL         0
12153 #  endif
12154 #endif
12155
12156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12157    find out it does not work in some platform. */
12158 #ifndef LT_DLLAZY_OR_NOW
12159 #  ifdef RTLD_LAZY
12160 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12161 #  else
12162 #    ifdef DL_LAZY
12163 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12164 #    else
12165 #      ifdef RTLD_NOW
12166 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12167 #      else
12168 #        ifdef DL_NOW
12169 #          define LT_DLLAZY_OR_NOW      DL_NOW
12170 #        else
12171 #          define LT_DLLAZY_OR_NOW      0
12172 #        endif
12173 #      endif
12174 #    endif
12175 #  endif
12176 #endif
12177
12178 #ifdef __cplusplus
12179 extern "C" void exit (int);
12180 #endif
12181
12182 void fnord() { int i=42;}
12183 int main ()
12184 {
12185   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12186   int status = $lt_dlunknown;
12187
12188   if (self)
12189     {
12190       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12191       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12192       /* dlclose (self); */
12193     }
12194
12195     exit (status);
12196 }
12197 EOF
12198   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12199   (eval $ac_link) 2>&5
12200   ac_status=$?
12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12203     (./conftest; exit; ) 2>/dev/null
12204     lt_status=$?
12205     case x$lt_status in
12206       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12207       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12208       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12209     esac
12210   else :
12211     # compilation failed
12212     lt_cv_dlopen_self=no
12213   fi
12214 fi
12215 rm -fr conftest*
12216
12217
12218 fi
12219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12220 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12221
12222     if test "x$lt_cv_dlopen_self" = xyes; then
12223       LDFLAGS="$LDFLAGS $link_static_flag"
12224       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12225 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12226 if test "${lt_cv_dlopen_self_static+set}" = set; then
12227   echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229           if test "$cross_compiling" = yes; then :
12230   lt_cv_dlopen_self_static=cross
12231 else
12232   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233   lt_status=$lt_dlunknown
12234   cat > conftest.$ac_ext <<EOF
12235 #line 12235 "configure"
12236 #include "confdefs.h"
12237
12238 #if HAVE_DLFCN_H
12239 #include <dlfcn.h>
12240 #endif
12241
12242 #include <stdio.h>
12243
12244 #ifdef RTLD_GLOBAL
12245 #  define LT_DLGLOBAL           RTLD_GLOBAL
12246 #else
12247 #  ifdef DL_GLOBAL
12248 #    define LT_DLGLOBAL         DL_GLOBAL
12249 #  else
12250 #    define LT_DLGLOBAL         0
12251 #  endif
12252 #endif
12253
12254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255    find out it does not work in some platform. */
12256 #ifndef LT_DLLAZY_OR_NOW
12257 #  ifdef RTLD_LAZY
12258 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12259 #  else
12260 #    ifdef DL_LAZY
12261 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12262 #    else
12263 #      ifdef RTLD_NOW
12264 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12265 #      else
12266 #        ifdef DL_NOW
12267 #          define LT_DLLAZY_OR_NOW      DL_NOW
12268 #        else
12269 #          define LT_DLLAZY_OR_NOW      0
12270 #        endif
12271 #      endif
12272 #    endif
12273 #  endif
12274 #endif
12275
12276 #ifdef __cplusplus
12277 extern "C" void exit (int);
12278 #endif
12279
12280 void fnord() { int i=42;}
12281 int main ()
12282 {
12283   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12284   int status = $lt_dlunknown;
12285
12286   if (self)
12287     {
12288       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12289       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12290       /* dlclose (self); */
12291     }
12292
12293     exit (status);
12294 }
12295 EOF
12296   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297   (eval $ac_link) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12301     (./conftest; exit; ) 2>/dev/null
12302     lt_status=$?
12303     case x$lt_status in
12304       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12305       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12306       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12307     esac
12308   else :
12309     # compilation failed
12310     lt_cv_dlopen_self_static=no
12311   fi
12312 fi
12313 rm -fr conftest*
12314
12315
12316 fi
12317 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12318 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12319     fi
12320
12321     CPPFLAGS="$save_CPPFLAGS"
12322     LDFLAGS="$save_LDFLAGS"
12323     LIBS="$save_LIBS"
12324     ;;
12325   esac
12326
12327   case $lt_cv_dlopen_self in
12328   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12329   *) enable_dlopen_self=unknown ;;
12330   esac
12331
12332   case $lt_cv_dlopen_self_static in
12333   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12334   *) enable_dlopen_self_static=unknown ;;
12335   esac
12336 fi
12337
12338
12339 # The else clause should only fire when bootstrapping the
12340 # libtool distribution, otherwise you forgot to ship ltmain.sh
12341 # with your package, and you will get complaints that there are
12342 # no rules to generate ltmain.sh.
12343 if test -f "$ltmain"; then
12344   # See if we are running on zsh, and set the options which allow our commands through
12345   # without removal of \ escapes.
12346   if test -n "${ZSH_VERSION+set}" ; then
12347     setopt NO_GLOB_SUBST
12348   fi
12349   # Now quote all the things that may contain metacharacters while being
12350   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12351   # variables and quote the copies for generation of the libtool script.
12352   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12353     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12354     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12355     deplibs_check_method reload_flag reload_cmds need_locks \
12356     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12357     lt_cv_sys_global_symbol_to_c_name_address \
12358     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12359     old_postinstall_cmds old_postuninstall_cmds \
12360     compiler_CXX \
12361     CC_CXX \
12362     LD_CXX \
12363     lt_prog_compiler_wl_CXX \
12364     lt_prog_compiler_pic_CXX \
12365     lt_prog_compiler_static_CXX \
12366     lt_prog_compiler_no_builtin_flag_CXX \
12367     export_dynamic_flag_spec_CXX \
12368     thread_safe_flag_spec_CXX \
12369     whole_archive_flag_spec_CXX \
12370     enable_shared_with_static_runtimes_CXX \
12371     old_archive_cmds_CXX \
12372     old_archive_from_new_cmds_CXX \
12373     predep_objects_CXX \
12374     postdep_objects_CXX \
12375     predeps_CXX \
12376     postdeps_CXX \
12377     compiler_lib_search_path_CXX \
12378     archive_cmds_CXX \
12379     archive_expsym_cmds_CXX \
12380     postinstall_cmds_CXX \
12381     postuninstall_cmds_CXX \
12382     old_archive_from_expsyms_cmds_CXX \
12383     allow_undefined_flag_CXX \
12384     no_undefined_flag_CXX \
12385     export_symbols_cmds_CXX \
12386     hardcode_libdir_flag_spec_CXX \
12387     hardcode_libdir_flag_spec_ld_CXX \
12388     hardcode_libdir_separator_CXX \
12389     hardcode_automatic_CXX \
12390     module_cmds_CXX \
12391     module_expsym_cmds_CXX \
12392     lt_cv_prog_compiler_c_o_CXX \
12393     exclude_expsyms_CXX \
12394     include_expsyms_CXX; do
12395
12396     case $var in
12397     old_archive_cmds_CXX | \
12398     old_archive_from_new_cmds_CXX | \
12399     archive_cmds_CXX | \
12400     archive_expsym_cmds_CXX | \
12401     module_cmds_CXX | \
12402     module_expsym_cmds_CXX | \
12403     old_archive_from_expsyms_cmds_CXX | \
12404     export_symbols_cmds_CXX | \
12405     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12406     postinstall_cmds | postuninstall_cmds | \
12407     old_postinstall_cmds | old_postuninstall_cmds | \
12408     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12409       # Double-quote double-evaled strings.
12410       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12411       ;;
12412     *)
12413       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12414       ;;
12415     esac
12416   done
12417
12418   case $lt_echo in
12419   *'\$0 --fallback-echo"')
12420     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12421     ;;
12422   esac
12423
12424 cfgfile="$ofile"
12425
12426   cat <<__EOF__ >> "$cfgfile"
12427 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12428
12429 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12430
12431 # Shell to use when invoking shell scripts.
12432 SHELL=$lt_SHELL
12433
12434 # Whether or not to build shared libraries.
12435 build_libtool_libs=$enable_shared
12436
12437 # Whether or not to build static libraries.
12438 build_old_libs=$enable_static
12439
12440 # Whether or not to add -lc for building shared libraries.
12441 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12442
12443 # Whether or not to disallow shared libs when runtime libs are static
12444 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12445
12446 # Whether or not to optimize for fast installation.
12447 fast_install=$enable_fast_install
12448
12449 # The host system.
12450 host_alias=$host_alias
12451 host=$host
12452
12453 # An echo program that does not interpret backslashes.
12454 echo=$lt_echo
12455
12456 # The archiver.
12457 AR=$lt_AR
12458 AR_FLAGS=$lt_AR_FLAGS
12459
12460 # A C compiler.
12461 LTCC=$lt_LTCC
12462
12463 # A language-specific compiler.
12464 CC=$lt_compiler_CXX
12465
12466 # Is the compiler the GNU C compiler?
12467 with_gcc=$GCC_CXX
12468
12469 # An ERE matcher.
12470 EGREP=$lt_EGREP
12471
12472 # The linker used to build libraries.
12473 LD=$lt_LD_CXX
12474
12475 # Whether we need hard or soft links.
12476 LN_S=$lt_LN_S
12477
12478 # A BSD-compatible nm program.
12479 NM=$lt_NM
12480
12481 # A symbol stripping program
12482 STRIP=$STRIP
12483
12484 # Used to examine libraries when file_magic_cmd begins "file"
12485 MAGIC_CMD=$MAGIC_CMD
12486
12487 # Used on cygwin: DLL creation program.
12488 DLLTOOL="$DLLTOOL"
12489
12490 # Used on cygwin: object dumper.
12491 OBJDUMP="$OBJDUMP"
12492
12493 # Used on cygwin: assembler.
12494 AS="$AS"
12495
12496 # The name of the directory that contains temporary libtool files.
12497 objdir=$objdir
12498
12499 # How to create reloadable object files.
12500 reload_flag=$lt_reload_flag
12501 reload_cmds=$lt_reload_cmds
12502
12503 # How to pass a linker flag through the compiler.
12504 wl=$lt_lt_prog_compiler_wl_CXX
12505
12506 # Object file suffix (normally "o").
12507 objext="$ac_objext"
12508
12509 # Old archive suffix (normally "a").
12510 libext="$libext"
12511
12512 # Shared library suffix (normally ".so").
12513 shrext='$shrext'
12514
12515 # Executable file suffix (normally "").
12516 exeext="$exeext"
12517
12518 # Additional compiler flags for building library objects.
12519 pic_flag=$lt_lt_prog_compiler_pic_CXX
12520 pic_mode=$pic_mode
12521
12522 # What is the maximum length of a command?
12523 max_cmd_len=$lt_cv_sys_max_cmd_len
12524
12525 # Does compiler simultaneously support -c and -o options?
12526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12527
12528 # Must we lock files when doing compilation ?
12529 need_locks=$lt_need_locks
12530
12531 # Do we need the lib prefix for modules?
12532 need_lib_prefix=$need_lib_prefix
12533
12534 # Do we need a version for libraries?
12535 need_version=$need_version
12536
12537 # Whether dlopen is supported.
12538 dlopen_support=$enable_dlopen
12539
12540 # Whether dlopen of programs is supported.
12541 dlopen_self=$enable_dlopen_self
12542
12543 # Whether dlopen of statically linked programs is supported.
12544 dlopen_self_static=$enable_dlopen_self_static
12545
12546 # Compiler flag to prevent dynamic linking.
12547 link_static_flag=$lt_lt_prog_compiler_static_CXX
12548
12549 # Compiler flag to turn off builtin functions.
12550 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12551
12552 # Compiler flag to allow reflexive dlopens.
12553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12554
12555 # Compiler flag to generate shared objects directly from archives.
12556 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12557
12558 # Compiler flag to generate thread-safe objects.
12559 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12560
12561 # Library versioning type.
12562 version_type=$version_type
12563
12564 # Format of library name prefix.
12565 libname_spec=$lt_libname_spec
12566
12567 # List of archive names.  First name is the real one, the rest are links.
12568 # The last name is the one that the linker finds with -lNAME.
12569 library_names_spec=$lt_library_names_spec
12570
12571 # The coded name of the library, if different from the real name.
12572 soname_spec=$lt_soname_spec
12573
12574 # Commands used to build and install an old-style archive.
12575 RANLIB=$lt_RANLIB
12576 old_archive_cmds=$lt_old_archive_cmds_CXX
12577 old_postinstall_cmds=$lt_old_postinstall_cmds
12578 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12579
12580 # Create an old-style archive from a shared archive.
12581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12582
12583 # Create a temporary old-style archive to link instead of a shared archive.
12584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12585
12586 # Commands used to build and install a shared archive.
12587 archive_cmds=$lt_archive_cmds_CXX
12588 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12589 postinstall_cmds=$lt_postinstall_cmds
12590 postuninstall_cmds=$lt_postuninstall_cmds
12591
12592 # Commands used to build a loadable module (assumed same as above if empty)
12593 module_cmds=$lt_module_cmds_CXX
12594 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12595
12596 # Commands to strip libraries.
12597 old_striplib=$lt_old_striplib
12598 striplib=$lt_striplib
12599
12600 # Dependencies to place before the objects being linked to create a
12601 # shared library.
12602 predep_objects=$lt_predep_objects_CXX
12603
12604 # Dependencies to place after the objects being linked to create a
12605 # shared library.
12606 postdep_objects=$lt_postdep_objects_CXX
12607
12608 # Dependencies to place before the objects being linked to create a
12609 # shared library.
12610 predeps=$lt_predeps_CXX
12611
12612 # Dependencies to place after the objects being linked to create a
12613 # shared library.
12614 postdeps=$lt_postdeps_CXX
12615
12616 # The library search path used internally by the compiler when linking
12617 # a shared library.
12618 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12619
12620 # Method to check whether dependent libraries are shared objects.
12621 deplibs_check_method=$lt_deplibs_check_method
12622
12623 # Command to use when deplibs_check_method == file_magic.
12624 file_magic_cmd=$lt_file_magic_cmd
12625
12626 # Flag that allows shared libraries with undefined symbols to be built.
12627 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12628
12629 # Flag that forces no undefined symbols.
12630 no_undefined_flag=$lt_no_undefined_flag_CXX
12631
12632 # Commands used to finish a libtool library installation in a directory.
12633 finish_cmds=$lt_finish_cmds
12634
12635 # Same as above, but a single script fragment to be evaled but not shown.
12636 finish_eval=$lt_finish_eval
12637
12638 # Take the output of nm and produce a listing of raw symbols and C names.
12639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12640
12641 # Transform the output of nm in a proper C declaration
12642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12643
12644 # Transform the output of nm in a C name address pair
12645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12646
12647 # This is the shared library runtime path variable.
12648 runpath_var=$runpath_var
12649
12650 # This is the shared library path variable.
12651 shlibpath_var=$shlibpath_var
12652
12653 # Is shlibpath searched before the hard-coded library search path?
12654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12655
12656 # How to hardcode a shared library path into an executable.
12657 hardcode_action=$hardcode_action_CXX
12658
12659 # Whether we should hardcode library paths into libraries.
12660 hardcode_into_libs=$hardcode_into_libs
12661
12662 # Flag to hardcode \$libdir into a binary during linking.
12663 # This must work even if \$libdir does not exist.
12664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12665
12666 # If ld is used when linking, flag to hardcode \$libdir into
12667 # a binary during linking. This must work even if \$libdir does
12668 # not exist.
12669 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12670
12671 # Whether we need a single -rpath flag with a separated argument.
12672 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12673
12674 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12675 # resulting binary.
12676 hardcode_direct=$hardcode_direct_CXX
12677
12678 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12679 # resulting binary.
12680 hardcode_minus_L=$hardcode_minus_L_CXX
12681
12682 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12683 # the resulting binary.
12684 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12685
12686 # Set to yes if building a shared library automatically hardcodes DIR into the library
12687 # and all subsequent libraries and executables linked against it.
12688 hardcode_automatic=$hardcode_automatic_CXX
12689
12690 # Variables whose values should be saved in libtool wrapper scripts and
12691 # restored at relink time.
12692 variables_saved_for_relink="$variables_saved_for_relink"
12693
12694 # Whether libtool must link a program against all its dependency libraries.
12695 link_all_deplibs=$link_all_deplibs_CXX
12696
12697 # Compile-time system search path for libraries
12698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12699
12700 # Run-time system search path for libraries
12701 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12702
12703 # Fix the shell variable \$srcfile for the compiler.
12704 fix_srcfile_path="$fix_srcfile_path_CXX"
12705
12706 # Set to yes if exported symbols are required.
12707 always_export_symbols=$always_export_symbols_CXX
12708
12709 # The commands to list exported symbols.
12710 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12711
12712 # The commands to extract the exported symbol list from a shared archive.
12713 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12714
12715 # Symbols that should not be listed in the preloaded symbols.
12716 exclude_expsyms=$lt_exclude_expsyms_CXX
12717
12718 # Symbols that must always be exported.
12719 include_expsyms=$lt_include_expsyms_CXX
12720
12721 # ### END LIBTOOL TAG CONFIG: $tagname
12722
12723 __EOF__
12724
12725
12726 else
12727   # If there is no Makefile yet, we rely on a make rule to execute
12728   # `config.status --recheck' to rerun these tests and create the
12729   # libtool script then.
12730   test -f Makefile && make "$ltmain"
12731 fi
12732
12733
12734 ac_ext=c
12735 ac_cpp='$CPP $CPPFLAGS'
12736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12739
12740 CC=$lt_save_CC
12741 LDCXX=$LD
12742 LD=$lt_save_LD
12743 GCC=$lt_save_GCC
12744 with_gnu_ldcxx=$with_gnu_ld
12745 with_gnu_ld=$lt_save_with_gnu_ld
12746 lt_cv_path_LDCXX=$lt_cv_path_LD
12747 lt_cv_path_LD=$lt_save_path_LD
12748 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12749 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12750
12751         else
12752           tagname=""
12753         fi
12754         ;;
12755
12756       F77)
12757         if test -n "$F77" && test "X$F77" != "Xno"; then
12758
12759 ac_ext=f
12760 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12761 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12762 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12763
12764
12765 archive_cmds_need_lc_F77=no
12766 allow_undefined_flag_F77=
12767 always_export_symbols_F77=no
12768 archive_expsym_cmds_F77=
12769 export_dynamic_flag_spec_F77=
12770 hardcode_direct_F77=no
12771 hardcode_libdir_flag_spec_F77=
12772 hardcode_libdir_flag_spec_ld_F77=
12773 hardcode_libdir_separator_F77=
12774 hardcode_minus_L_F77=no
12775 hardcode_automatic_F77=no
12776 module_cmds_F77=
12777 module_expsym_cmds_F77=
12778 link_all_deplibs_F77=unknown
12779 old_archive_cmds_F77=$old_archive_cmds
12780 no_undefined_flag_F77=
12781 whole_archive_flag_spec_F77=
12782 enable_shared_with_static_runtimes_F77=no
12783
12784 # Source file extension for f77 test sources.
12785 ac_ext=f
12786
12787 # Object file extension for compiled f77 test sources.
12788 objext=o
12789 objext_F77=$objext
12790
12791 # Code to be used in simple compile tests
12792 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12793
12794 # Code to be used in simple link tests
12795 lt_simple_link_test_code="      program t\n      end\n"
12796
12797 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12798
12799 # If no C compiler was specified, use CC.
12800 LTCC=${LTCC-"$CC"}
12801
12802 # Allow CC to be a program name with arguments.
12803 compiler=$CC
12804
12805
12806 # Allow CC to be a program name with arguments.
12807 lt_save_CC="$CC"
12808 CC=${F77-"f77"}
12809 compiler=$CC
12810 compiler_F77=$CC
12811 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12812
12813 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12814 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12815 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12816 echo "${ECHO_T}$can_build_shared" >&6
12817
12818 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12819 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12820 test "$can_build_shared" = "no" && enable_shared=no
12821
12822 # On AIX, shared libraries and static libraries use the same namespace, and
12823 # are all built from PIC.
12824 case "$host_os" in
12825 aix3*)
12826   test "$enable_shared" = yes && enable_static=no
12827   if test -n "$RANLIB"; then
12828     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12829     postinstall_cmds='$RANLIB $lib'
12830   fi
12831   ;;
12832 aix4*)
12833   test "$enable_shared" = yes && enable_static=no
12834   ;;
12835 esac
12836 echo "$as_me:$LINENO: result: $enable_shared" >&5
12837 echo "${ECHO_T}$enable_shared" >&6
12838
12839 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12840 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12841 # Make sure either enable_shared or enable_static is yes.
12842 test "$enable_shared" = yes || enable_static=yes
12843 echo "$as_me:$LINENO: result: $enable_static" >&5
12844 echo "${ECHO_T}$enable_static" >&6
12845
12846 test "$ld_shlibs_F77" = no && can_build_shared=no
12847
12848 GCC_F77="$G77"
12849 LD_F77="$LD"
12850
12851 lt_prog_compiler_wl_F77=
12852 lt_prog_compiler_pic_F77=
12853 lt_prog_compiler_static_F77=
12854
12855 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12856 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12857
12858   if test "$GCC" = yes; then
12859     lt_prog_compiler_wl_F77='-Wl,'
12860     lt_prog_compiler_static_F77='-static'
12861
12862     case $host_os in
12863       aix*)
12864       # All AIX code is PIC.
12865       if test "$host_cpu" = ia64; then
12866         # AIX 5 now supports IA64 processor
12867         lt_prog_compiler_static_F77='-Bstatic'
12868       fi
12869       ;;
12870
12871     amigaos*)
12872       # FIXME: we need at least 68020 code to build shared libraries, but
12873       # adding the `-m68020' flag to GCC prevents building anything better,
12874       # like `-m68040'.
12875       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12876       ;;
12877
12878     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12879       # PIC is the default for these OSes.
12880       ;;
12881
12882     mingw* | pw32* | os2*)
12883       # This hack is so that the source file can tell whether it is being
12884       # built for inclusion in a dll (and should export symbols for example).
12885       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12886       ;;
12887
12888     darwin* | rhapsody*)
12889       # PIC is the default on this platform
12890       # Common symbols not allowed in MH_DYLIB files
12891       lt_prog_compiler_pic_F77='-fno-common'
12892       ;;
12893
12894     msdosdjgpp*)
12895       # Just because we use GCC doesn't mean we suddenly get shared libraries
12896       # on systems that don't support them.
12897       lt_prog_compiler_can_build_shared_F77=no
12898       enable_shared=no
12899       ;;
12900
12901     sysv4*MP*)
12902       if test -d /usr/nec; then
12903         lt_prog_compiler_pic_F77=-Kconform_pic
12904       fi
12905       ;;
12906
12907     hpux*)
12908       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12909       # not for PA HP-UX.
12910       case "$host_cpu" in
12911       hppa*64*|ia64*)
12912         # +Z the default
12913         ;;
12914       *)
12915         lt_prog_compiler_pic_F77='-fPIC'
12916         ;;
12917       esac
12918       ;;
12919
12920     *)
12921       lt_prog_compiler_pic_F77='-fPIC'
12922       ;;
12923     esac
12924   else
12925     # PORTME Check for flag to pass linker flags through the system compiler.
12926     case $host_os in
12927     aix*)
12928       lt_prog_compiler_wl_F77='-Wl,'
12929       if test "$host_cpu" = ia64; then
12930         # AIX 5 now supports IA64 processor
12931         lt_prog_compiler_static_F77='-Bstatic'
12932       else
12933         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12934       fi
12935       ;;
12936
12937     mingw* | pw32* | os2*)
12938       # This hack is so that the source file can tell whether it is being
12939       # built for inclusion in a dll (and should export symbols for example).
12940       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12941       ;;
12942
12943     hpux9* | hpux10* | hpux11*)
12944       lt_prog_compiler_wl_F77='-Wl,'
12945       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12946       # not for PA HP-UX.
12947       case "$host_cpu" in
12948       hppa*64*|ia64*)
12949         # +Z the default
12950         ;;
12951       *)
12952         lt_prog_compiler_pic_F77='+Z'
12953         ;;
12954       esac
12955       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12956       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12957       ;;
12958
12959     irix5* | irix6* | nonstopux*)
12960       lt_prog_compiler_wl_F77='-Wl,'
12961       # PIC (with -KPIC) is the default.
12962       lt_prog_compiler_static_F77='-non_shared'
12963       ;;
12964
12965     newsos6)
12966       lt_prog_compiler_pic_F77='-KPIC'
12967       lt_prog_compiler_static_F77='-Bstatic'
12968       ;;
12969
12970     linux*)
12971       case $CC in
12972       icc|ecc)
12973         lt_prog_compiler_wl_F77='-Wl,'
12974         lt_prog_compiler_pic_F77='-KPIC'
12975         lt_prog_compiler_static_F77='-static'
12976         ;;
12977       ccc)
12978         lt_prog_compiler_wl_F77='-Wl,'
12979         # All Alpha code is PIC.
12980         lt_prog_compiler_static_F77='-non_shared'
12981         ;;
12982       esac
12983       ;;
12984
12985     osf3* | osf4* | osf5*)
12986       lt_prog_compiler_wl_F77='-Wl,'
12987       # All OSF/1 code is PIC.
12988       lt_prog_compiler_static_F77='-non_shared'
12989       ;;
12990
12991     sco3.2v5*)
12992       lt_prog_compiler_pic_F77='-Kpic'
12993       lt_prog_compiler_static_F77='-dn'
12994       ;;
12995
12996     solaris*)
12997       lt_prog_compiler_wl_F77='-Wl,'
12998       lt_prog_compiler_pic_F77='-KPIC'
12999       lt_prog_compiler_static_F77='-Bstatic'
13000       ;;
13001
13002     sunos4*)
13003       lt_prog_compiler_wl_F77='-Qoption ld '
13004       lt_prog_compiler_pic_F77='-PIC'
13005       lt_prog_compiler_static_F77='-Bstatic'
13006       ;;
13007
13008     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13009       lt_prog_compiler_wl_F77='-Wl,'
13010       lt_prog_compiler_pic_F77='-KPIC'
13011       lt_prog_compiler_static_F77='-Bstatic'
13012       ;;
13013
13014     sysv4*MP*)
13015       if test -d /usr/nec ;then
13016         lt_prog_compiler_pic_F77='-Kconform_pic'
13017         lt_prog_compiler_static_F77='-Bstatic'
13018       fi
13019       ;;
13020
13021     uts4*)
13022       lt_prog_compiler_pic_F77='-pic'
13023       lt_prog_compiler_static_F77='-Bstatic'
13024       ;;
13025
13026     *)
13027       lt_prog_compiler_can_build_shared_F77=no
13028       ;;
13029     esac
13030   fi
13031
13032 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13033 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13034
13035 #
13036 # Check to make sure the PIC flag actually works.
13037 #
13038 if test -n "$lt_prog_compiler_pic_F77"; then
13039   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13040 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13041 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13042   echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044   lt_prog_compiler_pic_works_F77=no
13045   ac_outfile=conftest.$ac_objext
13046    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13047    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13048    # Insert the option either (1) after the last *FLAGS variable, or
13049    # (2) before a word containing "conftest.", or (3) at the end.
13050    # Note that $ac_compile itself does not contain backslashes and begins
13051    # with a dollar sign (not a hyphen), so the echo should work correctly.
13052    # The option is referenced via a variable to avoid confusing sed.
13053    lt_compile=`echo "$ac_compile" | $SED \
13054    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13056    -e 's:$: $lt_compiler_flag:'`
13057    (eval echo "\"\$as_me:13057: $lt_compile\"" >&5)
13058    (eval "$lt_compile" 2>conftest.err)
13059    ac_status=$?
13060    cat conftest.err >&5
13061    echo "$as_me:13061: \$? = $ac_status" >&5
13062    if (exit $ac_status) && test -s "$ac_outfile"; then
13063      # The compiler can only warn and ignore the option if not recognized
13064      # So say no if there are warnings
13065      if test ! -s conftest.err; then
13066        lt_prog_compiler_pic_works_F77=yes
13067      fi
13068    fi
13069    $rm conftest*
13070
13071 fi
13072 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13073 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13074
13075 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13076     case $lt_prog_compiler_pic_F77 in
13077      "" | " "*) ;;
13078      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13079      esac
13080 else
13081     lt_prog_compiler_pic_F77=
13082      lt_prog_compiler_can_build_shared_F77=no
13083 fi
13084
13085 fi
13086 case "$host_os" in
13087   # For platforms which do not support PIC, -DPIC is meaningless:
13088   *djgpp*)
13089     lt_prog_compiler_pic_F77=
13090     ;;
13091   *)
13092     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13093     ;;
13094 esac
13095
13096 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13097 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13098 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13099   echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101   lt_cv_prog_compiler_c_o_F77=no
13102    $rm -r conftest 2>/dev/null
13103    mkdir conftest
13104    cd conftest
13105    mkdir out
13106    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13107
13108    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13109    # that will create temporary files in the current directory regardless of
13110    # the output directory.  Thus, making CWD read-only will cause this test
13111    # to fail, enabling locking or at least warning the user not to do parallel
13112    # builds.
13113    chmod -w .
13114
13115    lt_compiler_flag="-o out/conftest2.$ac_objext"
13116    # Insert the option either (1) after the last *FLAGS variable, or
13117    # (2) before a word containing "conftest.", or (3) at the end.
13118    # Note that $ac_compile itself does not contain backslashes and begins
13119    # with a dollar sign (not a hyphen), so the echo should work correctly.
13120    lt_compile=`echo "$ac_compile" | $SED \
13121    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13123    -e 's:$: $lt_compiler_flag:'`
13124    (eval echo "\"\$as_me:13124: $lt_compile\"" >&5)
13125    (eval "$lt_compile" 2>out/conftest.err)
13126    ac_status=$?
13127    cat out/conftest.err >&5
13128    echo "$as_me:13128: \$? = $ac_status" >&5
13129    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13130    then
13131      # The compiler can only warn and ignore the option if not recognized
13132      # So say no if there are warnings
13133      if test ! -s out/conftest.err; then
13134        lt_cv_prog_compiler_c_o_F77=yes
13135      fi
13136    fi
13137    chmod u+w .
13138    $rm conftest* out/*
13139    rmdir out
13140    cd ..
13141    rmdir conftest
13142    $rm conftest*
13143
13144 fi
13145 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13146 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13147
13148
13149 hard_links="nottested"
13150 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13151   # do not overwrite the value of need_locks provided by the user
13152   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13153 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13154   hard_links=yes
13155   $rm conftest*
13156   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13157   touch conftest.a
13158   ln conftest.a conftest.b 2>&5 || hard_links=no
13159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13160   echo "$as_me:$LINENO: result: $hard_links" >&5
13161 echo "${ECHO_T}$hard_links" >&6
13162   if test "$hard_links" = no; then
13163     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13164 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13165     need_locks=warn
13166   fi
13167 else
13168   need_locks=no
13169 fi
13170
13171 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13172 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13173
13174   runpath_var=
13175   allow_undefined_flag_F77=
13176   enable_shared_with_static_runtimes_F77=no
13177   archive_cmds_F77=
13178   archive_expsym_cmds_F77=
13179   old_archive_From_new_cmds_F77=
13180   old_archive_from_expsyms_cmds_F77=
13181   export_dynamic_flag_spec_F77=
13182   whole_archive_flag_spec_F77=
13183   thread_safe_flag_spec_F77=
13184   hardcode_libdir_flag_spec_F77=
13185   hardcode_libdir_flag_spec_ld_F77=
13186   hardcode_libdir_separator_F77=
13187   hardcode_direct_F77=no
13188   hardcode_minus_L_F77=no
13189   hardcode_shlibpath_var_F77=unsupported
13190   link_all_deplibs_F77=unknown
13191   hardcode_automatic_F77=no
13192   module_cmds_F77=
13193   module_expsym_cmds_F77=
13194   always_export_symbols_F77=no
13195   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13196   # include_expsyms should be a list of space-separated symbols to be *always*
13197   # included in the symbol list
13198   include_expsyms_F77=
13199   # exclude_expsyms can be an extended regexp of symbols to exclude
13200   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13201   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13202   # as well as any symbol that contains `d'.
13203   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13204   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13205   # platforms (ab)use it in PIC code, but their linkers get confused if
13206   # the symbol is explicitly referenced.  Since portable code cannot
13207   # rely on this symbol name, it's probably fine to never include it in
13208   # preloaded symbol tables.
13209   extract_expsyms_cmds=
13210
13211   case $host_os in
13212   cygwin* | mingw* | pw32*)
13213     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13214     # When not using gcc, we currently assume that we are using
13215     # Microsoft Visual C++.
13216     if test "$GCC" != yes; then
13217       with_gnu_ld=no
13218     fi
13219     ;;
13220   openbsd*)
13221     with_gnu_ld=no
13222     ;;
13223   esac
13224
13225   ld_shlibs_F77=yes
13226   if test "$with_gnu_ld" = yes; then
13227     # If archive_cmds runs LD, not CC, wlarc should be empty
13228     wlarc='${wl}'
13229
13230     # See if GNU ld supports shared libraries.
13231     case $host_os in
13232     aix3* | aix4* | aix5*)
13233       # On AIX/PPC, the GNU linker is very broken
13234       if test "$host_cpu" != ia64; then
13235         ld_shlibs_F77=no
13236         cat <<EOF 1>&2
13237
13238 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13239 *** to be unable to reliably create shared libraries on AIX.
13240 *** Therefore, libtool is disabling shared libraries support.  If you
13241 *** really care for shared libraries, you may want to modify your PATH
13242 *** so that a non-GNU linker is found, and then restart.
13243
13244 EOF
13245       fi
13246       ;;
13247
13248     amigaos*)
13249       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)'
13250       hardcode_libdir_flag_spec_F77='-L$libdir'
13251       hardcode_minus_L_F77=yes
13252
13253       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13254       # that the semantics of dynamic libraries on AmigaOS, at least up
13255       # to version 4, is to share data among multiple programs linked
13256       # with the same dynamic library.  Since this doesn't match the
13257       # behavior of shared libraries on other platforms, we can't use
13258       # them.
13259       ld_shlibs_F77=no
13260       ;;
13261
13262     beos*)
13263       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13264         allow_undefined_flag_F77=unsupported
13265         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13266         # support --undefined.  This deserves some investigation.  FIXME
13267         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13268       else
13269         ld_shlibs_F77=no
13270       fi
13271       ;;
13272
13273     cygwin* | mingw* | pw32*)
13274       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13275       # as there is no search path for DLLs.
13276       hardcode_libdir_flag_spec_F77='-L$libdir'
13277       allow_undefined_flag_F77=unsupported
13278       always_export_symbols_F77=no
13279       enable_shared_with_static_runtimes_F77=yes
13280       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13281
13282       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13283         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13284         # If the export-symbols file already is a .def file (1st line
13285         # is EXPORTS), use it as is; otherwise, prepend...
13286         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13287           cp $export_symbols $output_objdir/$soname.def;
13288         else
13289           echo EXPORTS > $output_objdir/$soname.def;
13290           cat $export_symbols >> $output_objdir/$soname.def;
13291         fi~
13292         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13293       else
13294         ld_shlibs=no
13295       fi
13296       ;;
13297
13298     netbsd*)
13299       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13300         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13301         wlarc=
13302       else
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       fi
13306       ;;
13307
13308     solaris* | sysv5*)
13309       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13310         ld_shlibs_F77=no
13311         cat <<EOF 1>&2
13312
13313 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13314 *** create shared libraries on Solaris systems.  Therefore, libtool
13315 *** is disabling shared libraries support.  We urge you to upgrade GNU
13316 *** binutils to release 2.9.1 or newer.  Another option is to modify
13317 *** your PATH or compiler configuration so that the native linker is
13318 *** used, and then restart.
13319
13320 EOF
13321       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13322         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13323         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13324       else
13325         ld_shlibs_F77=no
13326       fi
13327       ;;
13328
13329     sunos4*)
13330       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13331       wlarc=
13332       hardcode_direct_F77=yes
13333       hardcode_shlibpath_var_F77=no
13334       ;;
13335
13336     *)
13337       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13338         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13339         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13340       else
13341         ld_shlibs_F77=no
13342       fi
13343       ;;
13344     esac
13345
13346     if test "$ld_shlibs_F77" = yes; then
13347       runpath_var=LD_RUN_PATH
13348       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13349       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13350       # ancient GNU ld didn't support --whole-archive et. al.
13351       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13352         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13353       else
13354         whole_archive_flag_spec_F77=
13355       fi
13356     fi
13357   else
13358     # PORTME fill in a description of your system's linker (not GNU ld)
13359     case $host_os in
13360     aix3*)
13361       allow_undefined_flag_F77=unsupported
13362       always_export_symbols_F77=yes
13363       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'
13364       # Note: this linker hardcodes the directories in LIBPATH if there
13365       # are no directories specified by -L.
13366       hardcode_minus_L_F77=yes
13367       if test "$GCC" = yes && test -z "$link_static_flag"; then
13368         # Neither direct hardcoding nor static linking is supported with a
13369         # broken collect2.
13370         hardcode_direct_F77=unsupported
13371       fi
13372       ;;
13373
13374     aix4* | aix5*)
13375       if test "$host_cpu" = ia64; then
13376         # On IA64, the linker does run time linking by default, so we don't
13377         # have to do anything special.
13378         aix_use_runtimelinking=no
13379         exp_sym_flag='-Bexport'
13380         no_entry_flag=""
13381       else
13382         # If we're using GNU nm, then we don't want the "-C" option.
13383         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13384         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13385           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'
13386         else
13387           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'
13388         fi
13389         aix_use_runtimelinking=no
13390
13391         # Test if we are trying to use run time linking or normal
13392         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13393         # need to do runtime linking.
13394         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13395           for ld_flag in $LDFLAGS; do
13396           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13397             aix_use_runtimelinking=yes
13398             break
13399           fi
13400           done
13401         esac
13402
13403         exp_sym_flag='-bexport'
13404         no_entry_flag='-bnoentry'
13405       fi
13406
13407       # When large executables or shared objects are built, AIX ld can
13408       # have problems creating the table of contents.  If linking a library
13409       # or program results in "error TOC overflow" add -mminimal-toc to
13410       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13411       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13412
13413       archive_cmds_F77=''
13414       hardcode_direct_F77=yes
13415       hardcode_libdir_separator_F77=':'
13416       link_all_deplibs_F77=yes
13417
13418       if test "$GCC" = yes; then
13419         case $host_os in aix4.012|aix4.012.*)
13420         # We only want to do this on AIX 4.2 and lower, the check
13421         # below for broken collect2 doesn't work under 4.3+
13422           collect2name=`${CC} -print-prog-name=collect2`
13423           if test -f "$collect2name" && \
13424            strings "$collect2name" | grep resolve_lib_name >/dev/null
13425           then
13426           # We have reworked collect2
13427           hardcode_direct_F77=yes
13428           else
13429           # We have old collect2
13430           hardcode_direct_F77=unsupported
13431           # It fails to find uninstalled libraries when the uninstalled
13432           # path is not listed in the libpath.  Setting hardcode_minus_L
13433           # to unsupported forces relinking
13434           hardcode_minus_L_F77=yes
13435           hardcode_libdir_flag_spec_F77='-L$libdir'
13436           hardcode_libdir_separator_F77=
13437           fi
13438         esac
13439         shared_flag='-shared'
13440       else
13441         # not using gcc
13442         if test "$host_cpu" = ia64; then
13443         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13444         # chokes on -Wl,-G. The following line is correct:
13445           shared_flag='-G'
13446         else
13447         if test "$aix_use_runtimelinking" = yes; then
13448             shared_flag='${wl}-G'
13449           else
13450             shared_flag='${wl}-bM:SRE'
13451         fi
13452         fi
13453       fi
13454
13455       # It seems that -bexpall does not export symbols beginning with
13456       # underscore (_), so it is better to generate a list of symbols to export.
13457       always_export_symbols_F77=yes
13458       if test "$aix_use_runtimelinking" = yes; then
13459         # Warning - without using the other runtime loading flags (-brtl),
13460         # -berok will link without error, but may produce a broken library.
13461         allow_undefined_flag_F77='-berok'
13462        # Determine the default libpath from the value encoded in an empty executable.
13463        cat >conftest.$ac_ext <<_ACEOF
13464       program main
13465
13466       end
13467 _ACEOF
13468 rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13470   (eval $ac_link) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); } &&
13474          { ac_try='test -s conftest$ac_exeext'
13475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476   (eval $ac_try) 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; }; then
13480
13481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13482 }'`
13483 # Check for a 64-bit object if we didn't find anything.
13484 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; }
13485 }'`; fi
13486 else
13487   echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490 fi
13491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13493
13494        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13495         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"
13496        else
13497         if test "$host_cpu" = ia64; then
13498           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13499           allow_undefined_flag_F77="-z nodefs"
13500           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"
13501         else
13502          # Determine the default libpath from the value encoded in an empty executable.
13503          cat >conftest.$ac_ext <<_ACEOF
13504       program main
13505
13506       end
13507 _ACEOF
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510   (eval $ac_link) 2>&5
13511   ac_status=$?
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } &&
13514          { ac_try='test -s conftest$ac_exeext'
13515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516   (eval $ac_try) 2>&5
13517   ac_status=$?
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); }; }; then
13520
13521 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13522 }'`
13523 # Check for a 64-bit object if we didn't find anything.
13524 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; }
13525 }'`; fi
13526 else
13527   echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530 fi
13531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13533
13534          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13535           # Warning - without using the other run time loading flags,
13536           # -berok will link without error, but may produce a broken library.
13537           no_undefined_flag_F77=' ${wl}-bernotok'
13538           allow_undefined_flag_F77=' ${wl}-berok'
13539           # -bexpall does not export symbols beginning with underscore (_)
13540           always_export_symbols_F77=yes
13541           # Exported symbols can be pulled into shared objects from archives
13542           whole_archive_flag_spec_F77=' '
13543           archive_cmds_need_lc_F77=yes
13544           # This is similar to how AIX traditionally builds it's shared libraries.
13545           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'
13546         fi
13547       fi
13548       ;;
13549
13550     amigaos*)
13551       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)'
13552       hardcode_libdir_flag_spec_F77='-L$libdir'
13553       hardcode_minus_L_F77=yes
13554       # see comment about different semantics on the GNU ld section
13555       ld_shlibs_F77=no
13556       ;;
13557
13558     bsdi4*)
13559       export_dynamic_flag_spec_F77=-rdynamic
13560       ;;
13561
13562     cygwin* | mingw* | pw32*)
13563       # When not using gcc, we currently assume that we are using
13564       # Microsoft Visual C++.
13565       # hardcode_libdir_flag_spec is actually meaningless, as there is
13566       # no search path for DLLs.
13567       hardcode_libdir_flag_spec_F77=' '
13568       allow_undefined_flag_F77=unsupported
13569       # Tell ltmain to make .lib files, not .a files.
13570       libext=lib
13571       # Tell ltmain to make .dll files, not .so files.
13572       shrext=".dll"
13573       # FIXME: Setting linknames here is a bad hack.
13574       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13575       # The linker will automatically build a .lib file if we build a DLL.
13576       old_archive_From_new_cmds_F77='true'
13577       # FIXME: Should let the user specify the lib program.
13578       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13579       fix_srcfile_path='`cygpath -w "$srcfile"`'
13580       enable_shared_with_static_runtimes_F77=yes
13581       ;;
13582
13583     darwin* | rhapsody*)
13584     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13585       archive_cmds_need_lc_F77=no
13586       case "$host_os" in
13587       rhapsody* | darwin1.[012])
13588         allow_undefined_flag_F77='-undefined suppress'
13589         ;;
13590       *) # Darwin 1.3 on
13591         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13592         ;;
13593       esac
13594       # FIXME: Relying on posixy $() will cause problems for
13595       #        cross-compilation, but unfortunately the echo tests do not
13596       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13597       #        `"' quotes if we put them in here... so don't!
13598         lt_int_apple_cc_single_mod=no
13599         output_verbose_link_cmd='echo'
13600         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13601           lt_int_apple_cc_single_mod=yes
13602         fi
13603         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13604           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13605         else
13606         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'
13607       fi
13608       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13609       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13610         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13611           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}'
13612         else
13613           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}'
13614         fi
13615           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}'
13616       hardcode_direct_F77=no
13617       hardcode_automatic_F77=yes
13618       hardcode_shlibpath_var_F77=unsupported
13619       whole_archive_flag_spec_F77='-all_load $convenience'
13620       link_all_deplibs_F77=yes
13621     fi
13622       ;;
13623
13624     dgux*)
13625       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13626       hardcode_libdir_flag_spec_F77='-L$libdir'
13627       hardcode_shlibpath_var_F77=no
13628       ;;
13629
13630     freebsd1*)
13631       ld_shlibs_F77=no
13632       ;;
13633
13634     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13635     # support.  Future versions do this automatically, but an explicit c++rt0.o
13636     # does not break anything, and helps significantly (at the cost of a little
13637     # extra space).
13638     freebsd2.2*)
13639       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13640       hardcode_libdir_flag_spec_F77='-R$libdir'
13641       hardcode_direct_F77=yes
13642       hardcode_shlibpath_var_F77=no
13643       ;;
13644
13645     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13646     freebsd2*)
13647       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13648       hardcode_direct_F77=yes
13649       hardcode_minus_L_F77=yes
13650       hardcode_shlibpath_var_F77=no
13651       ;;
13652
13653     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13654     freebsd*)
13655       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13656       hardcode_libdir_flag_spec_F77='-R$libdir'
13657       hardcode_direct_F77=yes
13658       hardcode_shlibpath_var_F77=no
13659       ;;
13660
13661     hpux9*)
13662       if test "$GCC" = yes; then
13663         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'
13664       else
13665         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'
13666       fi
13667       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13668       hardcode_libdir_separator_F77=:
13669       hardcode_direct_F77=yes
13670
13671       # hardcode_minus_L: Not really in the search PATH,
13672       # but as the default location of the library.
13673       hardcode_minus_L_F77=yes
13674       export_dynamic_flag_spec_F77='${wl}-E'
13675       ;;
13676
13677     hpux10* | hpux11*)
13678       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13679         case "$host_cpu" in
13680         hppa*64*|ia64*)
13681           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13682           ;;
13683         *)
13684           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13685           ;;
13686         esac
13687       else
13688         case "$host_cpu" in
13689         hppa*64*|ia64*)
13690           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13691           ;;
13692         *)
13693           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13694           ;;
13695         esac
13696       fi
13697       if test "$with_gnu_ld" = no; then
13698         case "$host_cpu" in
13699         hppa*64*)
13700           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13701           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13702           hardcode_libdir_separator_F77=:
13703           hardcode_direct_F77=no
13704           hardcode_shlibpath_var_F77=no
13705           ;;
13706         ia64*)
13707           hardcode_libdir_flag_spec_F77='-L$libdir'
13708           hardcode_direct_F77=no
13709           hardcode_shlibpath_var_F77=no
13710
13711           # hardcode_minus_L: Not really in the search PATH,
13712           # but as the default location of the library.
13713           hardcode_minus_L_F77=yes
13714           ;;
13715         *)
13716           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13717           hardcode_libdir_separator_F77=:
13718           hardcode_direct_F77=yes
13719           export_dynamic_flag_spec_F77='${wl}-E'
13720
13721           # hardcode_minus_L: Not really in the search PATH,
13722           # but as the default location of the library.
13723           hardcode_minus_L_F77=yes
13724           ;;
13725         esac
13726       fi
13727       ;;
13728
13729     irix5* | irix6* | nonstopux*)
13730       if test "$GCC" = yes; then
13731         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'
13732       else
13733         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'
13734         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13735       fi
13736       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13737       hardcode_libdir_separator_F77=:
13738       link_all_deplibs_F77=yes
13739       ;;
13740
13741     netbsd*)
13742       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13743         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13744       else
13745         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13746       fi
13747       hardcode_libdir_flag_spec_F77='-R$libdir'
13748       hardcode_direct_F77=yes
13749       hardcode_shlibpath_var_F77=no
13750       ;;
13751
13752     newsos6)
13753       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13754       hardcode_direct_F77=yes
13755       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13756       hardcode_libdir_separator_F77=:
13757       hardcode_shlibpath_var_F77=no
13758       ;;
13759
13760     openbsd*)
13761       hardcode_direct_F77=yes
13762       hardcode_shlibpath_var_F77=no
13763       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13764         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13765         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13766         export_dynamic_flag_spec_F77='${wl}-E'
13767       else
13768        case $host_os in
13769          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13770            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13771            hardcode_libdir_flag_spec_F77='-R$libdir'
13772            ;;
13773          *)
13774            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13775            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13776            ;;
13777        esac
13778       fi
13779       ;;
13780
13781     os2*)
13782       hardcode_libdir_flag_spec_F77='-L$libdir'
13783       hardcode_minus_L_F77=yes
13784       allow_undefined_flag_F77=unsupported
13785       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'
13786       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13787       ;;
13788
13789     osf3*)
13790       if test "$GCC" = yes; then
13791         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13792         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'
13793       else
13794         allow_undefined_flag_F77=' -expect_unresolved \*'
13795         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'
13796       fi
13797       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13798       hardcode_libdir_separator_F77=:
13799       ;;
13800
13801     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13802       if test "$GCC" = yes; then
13803         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13804         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'
13805         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13806       else
13807         allow_undefined_flag_F77=' -expect_unresolved \*'
13808         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'
13809         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~
13810         $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'
13811
13812         # Both c and cxx compiler support -rpath directly
13813         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13814       fi
13815       hardcode_libdir_separator_F77=:
13816       ;;
13817
13818     sco3.2v5*)
13819       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13820       hardcode_shlibpath_var_F77=no
13821       export_dynamic_flag_spec_F77='${wl}-Bexport'
13822       runpath_var=LD_RUN_PATH
13823       hardcode_runpath_var=yes
13824       ;;
13825
13826     solaris*)
13827       no_undefined_flag_F77=' -z text'
13828       if test "$GCC" = yes; then
13829         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13830         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13831           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13832       else
13833         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13834         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13835         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13836       fi
13837       hardcode_libdir_flag_spec_F77='-R$libdir'
13838       hardcode_shlibpath_var_F77=no
13839       case $host_os in
13840       solaris2.[0-5] | solaris2.[0-5].*) ;;
13841       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13842         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13843       esac
13844       link_all_deplibs_F77=yes
13845       ;;
13846
13847     sunos4*)
13848       if test "x$host_vendor" = xsequent; then
13849         # Use $CC to link under sequent, because it throws in some extra .o
13850         # files that make .init and .fini sections work.
13851         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13852       else
13853         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13854       fi
13855       hardcode_libdir_flag_spec_F77='-L$libdir'
13856       hardcode_direct_F77=yes
13857       hardcode_minus_L_F77=yes
13858       hardcode_shlibpath_var_F77=no
13859       ;;
13860
13861     sysv4)
13862       case $host_vendor in
13863         sni)
13864           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13865           hardcode_direct_F77=yes # is this really true???
13866         ;;
13867         siemens)
13868           ## LD is ld it makes a PLAMLIB
13869           ## CC just makes a GrossModule.
13870           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13871           reload_cmds_F77='$CC -r -o $output$reload_objs'
13872           hardcode_direct_F77=no
13873         ;;
13874         motorola)
13875           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13877         ;;
13878       esac
13879       runpath_var='LD_RUN_PATH'
13880       hardcode_shlibpath_var_F77=no
13881       ;;
13882
13883     sysv4.3*)
13884       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13885       hardcode_shlibpath_var_F77=no
13886       export_dynamic_flag_spec_F77='-Bexport'
13887       ;;
13888
13889     sysv4*MP*)
13890       if test -d /usr/nec; then
13891         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13892         hardcode_shlibpath_var_F77=no
13893         runpath_var=LD_RUN_PATH
13894         hardcode_runpath_var=yes
13895         ld_shlibs_F77=yes
13896       fi
13897       ;;
13898
13899     sysv4.2uw2*)
13900       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13901       hardcode_direct_F77=yes
13902       hardcode_minus_L_F77=no
13903       hardcode_shlibpath_var_F77=no
13904       hardcode_runpath_var=yes
13905       runpath_var=LD_RUN_PATH
13906       ;;
13907
13908    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13909       no_undefined_flag_F77='${wl}-z ${wl}text'
13910       if test "$GCC" = yes; then
13911         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13912       else
13913         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13914       fi
13915       runpath_var='LD_RUN_PATH'
13916       hardcode_shlibpath_var_F77=no
13917       ;;
13918
13919     sysv5*)
13920       no_undefined_flag_F77=' -z text'
13921       # $CC -shared without GNU ld will not create a library from C++
13922       # object files and a static libstdc++, better avoid it by now
13923       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13924       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13925                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13926       hardcode_libdir_flag_spec_F77=
13927       hardcode_shlibpath_var_F77=no
13928       runpath_var='LD_RUN_PATH'
13929       ;;
13930
13931     uts4*)
13932       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13933       hardcode_libdir_flag_spec_F77='-L$libdir'
13934       hardcode_shlibpath_var_F77=no
13935       ;;
13936
13937     *)
13938       ld_shlibs_F77=no
13939       ;;
13940     esac
13941   fi
13942
13943 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13944 echo "${ECHO_T}$ld_shlibs_F77" >&6
13945 test "$ld_shlibs_F77" = no && can_build_shared=no
13946
13947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13948 if test "$GCC" = yes; then
13949   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13950 fi
13951
13952 #
13953 # Do we need to explicitly link libc?
13954 #
13955 case "x$archive_cmds_need_lc_F77" in
13956 x|xyes)
13957   # Assume -lc should be added
13958   archive_cmds_need_lc_F77=yes
13959
13960   if test "$enable_shared" = yes && test "$GCC" = yes; then
13961     case $archive_cmds_F77 in
13962     *'~'*)
13963       # FIXME: we may have to deal with multi-command sequences.
13964       ;;
13965     '$CC '*)
13966       # Test whether the compiler implicitly links with -lc since on some
13967       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13968       # to ld, don't add -lc before -lgcc.
13969       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13970 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13971       $rm conftest*
13972       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13973
13974       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13975   (eval $ac_compile) 2>&5
13976   ac_status=$?
13977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); } 2>conftest.err; then
13979         soname=conftest
13980         lib=conftest
13981         libobjs=conftest.$ac_objext
13982         deplibs=
13983         wl=$lt_prog_compiler_wl_F77
13984         compiler_flags=-v
13985         linker_flags=-v
13986         verstring=
13987         output_objdir=.
13988         libname=conftest
13989         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13990         allow_undefined_flag_F77=
13991         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13992   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }
13996         then
13997           archive_cmds_need_lc_F77=no
13998         else
13999           archive_cmds_need_lc_F77=yes
14000         fi
14001         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14002       else
14003         cat conftest.err 1>&5
14004       fi
14005       $rm conftest*
14006       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14007 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14008       ;;
14009     esac
14010   fi
14011   ;;
14012 esac
14013
14014 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14015 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14016 hardcode_action_F77=
14017 if test -n "$hardcode_libdir_flag_spec_F77" || \
14018    test -n "$runpath_var F77" || \
14019    test "X$hardcode_automatic_F77"="Xyes" ; then
14020
14021   # We can hardcode non-existant directories.
14022   if test "$hardcode_direct_F77" != no &&
14023      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14024      # have to relink, otherwise we might link with an installed library
14025      # when we should be linking with a yet-to-be-installed one
14026      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14027      test "$hardcode_minus_L_F77" != no; then
14028     # Linking always hardcodes the temporary library directory.
14029     hardcode_action_F77=relink
14030   else
14031     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14032     hardcode_action_F77=immediate
14033   fi
14034 else
14035   # We cannot hardcode anything, or else we can only hardcode existing
14036   # directories.
14037   hardcode_action_F77=unsupported
14038 fi
14039 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14040 echo "${ECHO_T}$hardcode_action_F77" >&6
14041
14042 if test "$hardcode_action_F77" = relink; then
14043   # Fast installation is not supported
14044   enable_fast_install=no
14045 elif test "$shlibpath_overrides_runpath" = yes ||
14046      test "$enable_shared" = no; then
14047   # Fast installation is not necessary
14048   enable_fast_install=needless
14049 fi
14050
14051 striplib=
14052 old_striplib=
14053 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14054 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14055 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14056   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14057   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14058   echo "$as_me:$LINENO: result: yes" >&5
14059 echo "${ECHO_T}yes" >&6
14060 else
14061 # FIXME - insert some real tests, host_os isn't really good enough
14062   case $host_os in
14063    darwin*)
14064        if test -n "$STRIP" ; then
14065          striplib="$STRIP -x"
14066          echo "$as_me:$LINENO: result: yes" >&5
14067 echo "${ECHO_T}yes" >&6
14068        else
14069   echo "$as_me:$LINENO: result: no" >&5
14070 echo "${ECHO_T}no" >&6
14071 fi
14072        ;;
14073    *)
14074   echo "$as_me:$LINENO: result: no" >&5
14075 echo "${ECHO_T}no" >&6
14076     ;;
14077   esac
14078 fi
14079
14080 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14081 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14082 library_names_spec=
14083 libname_spec='lib$name'
14084 soname_spec=
14085 shrext=".so"
14086 postinstall_cmds=
14087 postuninstall_cmds=
14088 finish_cmds=
14089 finish_eval=
14090 shlibpath_var=
14091 shlibpath_overrides_runpath=unknown
14092 version_type=none
14093 dynamic_linker="$host_os ld.so"
14094 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14095 if test "$GCC" = yes; then
14096   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14097   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14098     # if the path contains ";" then we assume it to be the separator
14099     # otherwise default to the standard path separator (i.e. ":") - it is
14100     # assumed that no part of a normal pathname contains ";" but that should
14101     # okay in the real world where ";" in dirpaths is itself problematic.
14102     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14103   else
14104     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14105   fi
14106 else
14107   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14108 fi
14109 need_lib_prefix=unknown
14110 hardcode_into_libs=no
14111
14112 # when you set need_version to no, make sure it does not cause -set_version
14113 # flags to be left without arguments
14114 need_version=unknown
14115
14116 case $host_os in
14117 aix3*)
14118   version_type=linux
14119   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14120   shlibpath_var=LIBPATH
14121
14122   # AIX 3 has no versioning support, so we append a major version to the name.
14123   soname_spec='${libname}${release}${shared_ext}$major'
14124   ;;
14125
14126 aix4* | aix5*)
14127   version_type=linux
14128   need_lib_prefix=no
14129   need_version=no
14130   hardcode_into_libs=yes
14131   if test "$host_cpu" = ia64; then
14132     # AIX 5 supports IA64
14133     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14134     shlibpath_var=LD_LIBRARY_PATH
14135   else
14136     # With GCC up to 2.95.x, collect2 would create an import file
14137     # for dependence libraries.  The import file would start with
14138     # the line `#! .'.  This would cause the generated library to
14139     # depend on `.', always an invalid library.  This was fixed in
14140     # development snapshots of GCC prior to 3.0.
14141     case $host_os in
14142       aix4 | aix4.[01] | aix4.[01].*)
14143       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14144            echo ' yes '
14145            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14146         :
14147       else
14148         can_build_shared=no
14149       fi
14150       ;;
14151     esac
14152     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14153     # soname into executable. Probably we can add versioning support to
14154     # collect2, so additional links can be useful in future.
14155     if test "$aix_use_runtimelinking" = yes; then
14156       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14157       # instead of lib<name>.a to let people know that these are not
14158       # typical AIX shared libraries.
14159       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160     else
14161       # We preserve .a as extension for shared libraries through AIX4.2
14162       # and later when we are not doing run time linking.
14163       library_names_spec='${libname}${release}.a $libname.a'
14164       soname_spec='${libname}${release}${shared_ext}$major'
14165     fi
14166     shlibpath_var=LIBPATH
14167   fi
14168   ;;
14169
14170 amigaos*)
14171   library_names_spec='$libname.ixlibrary $libname.a'
14172   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14173   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'
14174   ;;
14175
14176 beos*)
14177   library_names_spec='${libname}${shared_ext}'
14178   dynamic_linker="$host_os ld.so"
14179   shlibpath_var=LIBRARY_PATH
14180   ;;
14181
14182 bsdi4*)
14183   version_type=linux
14184   need_version=no
14185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186   soname_spec='${libname}${release}${shared_ext}$major'
14187   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14188   shlibpath_var=LD_LIBRARY_PATH
14189   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14190   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14191   # the default ld.so.conf also contains /usr/contrib/lib and
14192   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14193   # libtool to hard-code these into programs
14194   ;;
14195
14196 cygwin* | mingw* | pw32*)
14197   version_type=windows
14198   shrext=".dll"
14199   need_version=no
14200   need_lib_prefix=no
14201
14202   case $GCC,$host_os in
14203   yes,cygwin* | yes,mingw* | yes,pw32*)
14204     library_names_spec='$libname.dll.a'
14205     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14206     postinstall_cmds='base_file=`basename \${file}`~
14207       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14208       dldir=$destdir/`dirname \$dlpath`~
14209       test -d \$dldir || mkdir -p \$dldir~
14210       $install_prog $dir/$dlname \$dldir/$dlname'
14211     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14212       dlpath=$dir/\$dldll~
14213        $rm \$dlpath'
14214     shlibpath_overrides_runpath=yes
14215
14216     case $host_os in
14217     cygwin*)
14218       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14219       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14220       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14221       ;;
14222     mingw*)
14223       # MinGW DLLs use traditional 'lib' prefix
14224       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14225       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14226       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14227         # It is most probably a Windows format PATH printed by
14228         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14229         # path with ; separators, and with drive letters. We can handle the
14230         # drive letters (cygwin fileutils understands them), so leave them,
14231         # especially as we might pass files found there to a mingw objdump,
14232         # which wouldn't understand a cygwinified path. Ahh.
14233         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14234       else
14235         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14236       fi
14237       ;;
14238     pw32*)
14239       # pw32 DLLs use 'pw' prefix rather than 'lib'
14240       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14241       ;;
14242     esac
14243     ;;
14244
14245   *)
14246     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14247     ;;
14248   esac
14249   dynamic_linker='Win32 ld.exe'
14250   # FIXME: first we should search . and the directory the executable is in
14251   shlibpath_var=PATH
14252   ;;
14253
14254 darwin* | rhapsody*)
14255   dynamic_linker="$host_os dyld"
14256   version_type=darwin
14257   need_lib_prefix=no
14258   need_version=no
14259   # FIXME: Relying on posixy $() will cause problems for
14260   #        cross-compilation, but unfortunately the echo tests do not
14261   #        yet detect zsh echo's removal of \ escapes.
14262   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14263   soname_spec='${libname}${release}${major}$shared_ext'
14264   shlibpath_overrides_runpath=yes
14265   shlibpath_var=DYLD_LIBRARY_PATH
14266   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14267   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14268   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14269   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"`
14270   fi
14271   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14272   ;;
14273
14274 dgux*)
14275   version_type=linux
14276   need_lib_prefix=no
14277   need_version=no
14278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14279   soname_spec='${libname}${release}${shared_ext}$major'
14280   shlibpath_var=LD_LIBRARY_PATH
14281   ;;
14282
14283 freebsd1*)
14284   dynamic_linker=no
14285   ;;
14286
14287 freebsd*)
14288   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14289   version_type=freebsd-$objformat
14290   case $version_type in
14291     freebsd-elf*)
14292       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14293       need_version=no
14294       need_lib_prefix=no
14295       ;;
14296     freebsd-*)
14297       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14298       need_version=yes
14299       ;;
14300   esac
14301   shlibpath_var=LD_LIBRARY_PATH
14302   case $host_os in
14303   freebsd2*)
14304     shlibpath_overrides_runpath=yes
14305     ;;
14306   freebsd3.01* | freebsdelf3.01*)
14307     shlibpath_overrides_runpath=yes
14308     hardcode_into_libs=yes
14309     ;;
14310   *) # from 3.2 on
14311     shlibpath_overrides_runpath=no
14312     hardcode_into_libs=yes
14313     ;;
14314   esac
14315   ;;
14316
14317 gnu*)
14318   version_type=linux
14319   need_lib_prefix=no
14320   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
14324   hardcode_into_libs=yes
14325   ;;
14326
14327 hpux9* | hpux10* | hpux11*)
14328   # Give a soname corresponding to the major version so that dld.sl refuses to
14329   # link against other versions.
14330   version_type=sunos
14331   need_lib_prefix=no
14332   need_version=no
14333   case "$host_cpu" in
14334   ia64*)
14335     shrext='.so'
14336     hardcode_into_libs=yes
14337     dynamic_linker="$host_os dld.so"
14338     shlibpath_var=LD_LIBRARY_PATH
14339     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341     soname_spec='${libname}${release}${shared_ext}$major'
14342     if test "X$HPUX_IA64_MODE" = X32; then
14343       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14344     else
14345       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14346     fi
14347     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14348     ;;
14349    hppa*64*)
14350      shrext='.sl'
14351      hardcode_into_libs=yes
14352      dynamic_linker="$host_os dld.sl"
14353      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14354      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14355      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356      soname_spec='${libname}${release}${shared_ext}$major'
14357      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14358      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14359      ;;
14360    *)
14361     shrext='.sl'
14362     dynamic_linker="$host_os dld.sl"
14363     shlibpath_var=SHLIB_PATH
14364     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366     soname_spec='${libname}${release}${shared_ext}$major'
14367     ;;
14368   esac
14369   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14370   postinstall_cmds='chmod 555 $lib'
14371   ;;
14372
14373 irix5* | irix6* | nonstopux*)
14374   case $host_os in
14375     nonstopux*) version_type=nonstopux ;;
14376     *)
14377         if test "$lt_cv_prog_gnu_ld" = yes; then
14378                 version_type=linux
14379         else
14380                 version_type=irix
14381         fi ;;
14382   esac
14383   need_lib_prefix=no
14384   need_version=no
14385   soname_spec='${libname}${release}${shared_ext}$major'
14386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14387   case $host_os in
14388   irix5* | nonstopux*)
14389     libsuff= shlibsuff=
14390     ;;
14391   *)
14392     case $LD in # libtool.m4 will add one of these switches to LD
14393     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14394       libsuff= shlibsuff= libmagic=32-bit;;
14395     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14396       libsuff=32 shlibsuff=N32 libmagic=N32;;
14397     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14398       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14399     *) libsuff= shlibsuff= libmagic=never-match;;
14400     esac
14401     ;;
14402   esac
14403   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14404   shlibpath_overrides_runpath=no
14405   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14406   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14407   hardcode_into_libs=yes
14408   ;;
14409
14410 # No shared lib support for Linux oldld, aout, or coff.
14411 linux*oldld* | linux*aout* | linux*coff*)
14412   dynamic_linker=no
14413   ;;
14414
14415 # This must be Linux ELF.
14416 linux*)
14417   version_type=linux
14418   need_lib_prefix=no
14419   need_version=no
14420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14421   soname_spec='${libname}${release}${shared_ext}$major'
14422   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14423   shlibpath_var=LD_LIBRARY_PATH
14424   shlibpath_overrides_runpath=no
14425   # This implies no fast_install, which is unacceptable.
14426   # Some rework will be needed to allow for fast_install
14427   # before this can be enabled.
14428   hardcode_into_libs=yes
14429
14430   # We used to test for /lib/ld.so.1 and disable shared libraries on
14431   # powerpc, because MkLinux only supported shared libraries with the
14432   # GNU dynamic linker.  Since this was broken with cross compilers,
14433   # most powerpc-linux boxes support dynamic linking these days and
14434   # people can always --disable-shared, the test was removed, and we
14435   # assume the GNU/Linux dynamic linker is in use.
14436   dynamic_linker='GNU/Linux ld.so'
14437   ;;
14438
14439 netbsd*)
14440   version_type=sunos
14441   need_lib_prefix=no
14442   need_version=no
14443   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14445     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14446     dynamic_linker='NetBSD (a.out) ld.so'
14447   else
14448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14449     soname_spec='${libname}${release}${shared_ext}$major'
14450     dynamic_linker='NetBSD ld.elf_so'
14451   fi
14452   shlibpath_var=LD_LIBRARY_PATH
14453   shlibpath_overrides_runpath=yes
14454   hardcode_into_libs=yes
14455   ;;
14456
14457 newsos6)
14458   version_type=linux
14459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460   shlibpath_var=LD_LIBRARY_PATH
14461   shlibpath_overrides_runpath=yes
14462   ;;
14463
14464 nto-qnx)
14465   version_type=linux
14466   need_lib_prefix=no
14467   need_version=no
14468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14469   soname_spec='${libname}${release}${shared_ext}$major'
14470   shlibpath_var=LD_LIBRARY_PATH
14471   shlibpath_overrides_runpath=yes
14472   ;;
14473
14474 openbsd*)
14475   version_type=sunos
14476   need_lib_prefix=no
14477   need_version=no
14478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14479   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14480   shlibpath_var=LD_LIBRARY_PATH
14481   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14482     case $host_os in
14483       openbsd2.[89] | openbsd2.[89].*)
14484         shlibpath_overrides_runpath=no
14485         ;;
14486       *)
14487         shlibpath_overrides_runpath=yes
14488         ;;
14489       esac
14490   else
14491     shlibpath_overrides_runpath=yes
14492   fi
14493   ;;
14494
14495 os2*)
14496   libname_spec='$name'
14497   shrext=".dll"
14498   need_lib_prefix=no
14499   library_names_spec='$libname${shared_ext} $libname.a'
14500   dynamic_linker='OS/2 ld.exe'
14501   shlibpath_var=LIBPATH
14502   ;;
14503
14504 osf3* | osf4* | osf5*)
14505   version_type=osf
14506   need_lib_prefix=no
14507   need_version=no
14508   soname_spec='${libname}${release}${shared_ext}$major'
14509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510   shlibpath_var=LD_LIBRARY_PATH
14511   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14512   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14513   ;;
14514
14515 sco3.2v5*)
14516   version_type=osf
14517   soname_spec='${libname}${release}${shared_ext}$major'
14518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519   shlibpath_var=LD_LIBRARY_PATH
14520   ;;
14521
14522 solaris*)
14523   version_type=linux
14524   need_lib_prefix=no
14525   need_version=no
14526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527   soname_spec='${libname}${release}${shared_ext}$major'
14528   shlibpath_var=LD_LIBRARY_PATH
14529   shlibpath_overrides_runpath=yes
14530   hardcode_into_libs=yes
14531   # ldd complains unless libraries are executable
14532   postinstall_cmds='chmod +x $lib'
14533   ;;
14534
14535 sunos4*)
14536   version_type=sunos
14537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14538   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14539   shlibpath_var=LD_LIBRARY_PATH
14540   shlibpath_overrides_runpath=yes
14541   if test "$with_gnu_ld" = yes; then
14542     need_lib_prefix=no
14543   fi
14544   need_version=yes
14545   ;;
14546
14547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14548   version_type=linux
14549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14550   soname_spec='${libname}${release}${shared_ext}$major'
14551   shlibpath_var=LD_LIBRARY_PATH
14552   case $host_vendor in
14553     sni)
14554       shlibpath_overrides_runpath=no
14555       need_lib_prefix=no
14556       export_dynamic_flag_spec='${wl}-Blargedynsym'
14557       runpath_var=LD_RUN_PATH
14558       ;;
14559     siemens)
14560       need_lib_prefix=no
14561       ;;
14562     motorola)
14563       need_lib_prefix=no
14564       need_version=no
14565       shlibpath_overrides_runpath=no
14566       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14567       ;;
14568   esac
14569   ;;
14570
14571 sysv4*MP*)
14572   if test -d /usr/nec ;then
14573     version_type=linux
14574     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14575     soname_spec='$libname${shared_ext}.$major'
14576     shlibpath_var=LD_LIBRARY_PATH
14577   fi
14578   ;;
14579
14580 uts4*)
14581   version_type=linux
14582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583   soname_spec='${libname}${release}${shared_ext}$major'
14584   shlibpath_var=LD_LIBRARY_PATH
14585   ;;
14586
14587 *)
14588   dynamic_linker=no
14589   ;;
14590 esac
14591 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14592 echo "${ECHO_T}$dynamic_linker" >&6
14593 test "$dynamic_linker" = no && can_build_shared=no
14594
14595
14596 # The else clause should only fire when bootstrapping the
14597 # libtool distribution, otherwise you forgot to ship ltmain.sh
14598 # with your package, and you will get complaints that there are
14599 # no rules to generate ltmain.sh.
14600 if test -f "$ltmain"; then
14601   # See if we are running on zsh, and set the options which allow our commands through
14602   # without removal of \ escapes.
14603   if test -n "${ZSH_VERSION+set}" ; then
14604     setopt NO_GLOB_SUBST
14605   fi
14606   # Now quote all the things that may contain metacharacters while being
14607   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14608   # variables and quote the copies for generation of the libtool script.
14609   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14610     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14611     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14612     deplibs_check_method reload_flag reload_cmds need_locks \
14613     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14614     lt_cv_sys_global_symbol_to_c_name_address \
14615     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14616     old_postinstall_cmds old_postuninstall_cmds \
14617     compiler_F77 \
14618     CC_F77 \
14619     LD_F77 \
14620     lt_prog_compiler_wl_F77 \
14621     lt_prog_compiler_pic_F77 \
14622     lt_prog_compiler_static_F77 \
14623     lt_prog_compiler_no_builtin_flag_F77 \
14624     export_dynamic_flag_spec_F77 \
14625     thread_safe_flag_spec_F77 \
14626     whole_archive_flag_spec_F77 \
14627     enable_shared_with_static_runtimes_F77 \
14628     old_archive_cmds_F77 \
14629     old_archive_from_new_cmds_F77 \
14630     predep_objects_F77 \
14631     postdep_objects_F77 \
14632     predeps_F77 \
14633     postdeps_F77 \
14634     compiler_lib_search_path_F77 \
14635     archive_cmds_F77 \
14636     archive_expsym_cmds_F77 \
14637     postinstall_cmds_F77 \
14638     postuninstall_cmds_F77 \
14639     old_archive_from_expsyms_cmds_F77 \
14640     allow_undefined_flag_F77 \
14641     no_undefined_flag_F77 \
14642     export_symbols_cmds_F77 \
14643     hardcode_libdir_flag_spec_F77 \
14644     hardcode_libdir_flag_spec_ld_F77 \
14645     hardcode_libdir_separator_F77 \
14646     hardcode_automatic_F77 \
14647     module_cmds_F77 \
14648     module_expsym_cmds_F77 \
14649     lt_cv_prog_compiler_c_o_F77 \
14650     exclude_expsyms_F77 \
14651     include_expsyms_F77; do
14652
14653     case $var in
14654     old_archive_cmds_F77 | \
14655     old_archive_from_new_cmds_F77 | \
14656     archive_cmds_F77 | \
14657     archive_expsym_cmds_F77 | \
14658     module_cmds_F77 | \
14659     module_expsym_cmds_F77 | \
14660     old_archive_from_expsyms_cmds_F77 | \
14661     export_symbols_cmds_F77 | \
14662     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14663     postinstall_cmds | postuninstall_cmds | \
14664     old_postinstall_cmds | old_postuninstall_cmds | \
14665     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14666       # Double-quote double-evaled strings.
14667       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14668       ;;
14669     *)
14670       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14671       ;;
14672     esac
14673   done
14674
14675   case $lt_echo in
14676   *'\$0 --fallback-echo"')
14677     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14678     ;;
14679   esac
14680
14681 cfgfile="$ofile"
14682
14683   cat <<__EOF__ >> "$cfgfile"
14684 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14685
14686 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14687
14688 # Shell to use when invoking shell scripts.
14689 SHELL=$lt_SHELL
14690
14691 # Whether or not to build shared libraries.
14692 build_libtool_libs=$enable_shared
14693
14694 # Whether or not to build static libraries.
14695 build_old_libs=$enable_static
14696
14697 # Whether or not to add -lc for building shared libraries.
14698 build_libtool_need_lc=$archive_cmds_need_lc_F77
14699
14700 # Whether or not to disallow shared libs when runtime libs are static
14701 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14702
14703 # Whether or not to optimize for fast installation.
14704 fast_install=$enable_fast_install
14705
14706 # The host system.
14707 host_alias=$host_alias
14708 host=$host
14709
14710 # An echo program that does not interpret backslashes.
14711 echo=$lt_echo
14712
14713 # The archiver.
14714 AR=$lt_AR
14715 AR_FLAGS=$lt_AR_FLAGS
14716
14717 # A C compiler.
14718 LTCC=$lt_LTCC
14719
14720 # A language-specific compiler.
14721 CC=$lt_compiler_F77
14722
14723 # Is the compiler the GNU C compiler?
14724 with_gcc=$GCC_F77
14725
14726 # An ERE matcher.
14727 EGREP=$lt_EGREP
14728
14729 # The linker used to build libraries.
14730 LD=$lt_LD_F77
14731
14732 # Whether we need hard or soft links.
14733 LN_S=$lt_LN_S
14734
14735 # A BSD-compatible nm program.
14736 NM=$lt_NM
14737
14738 # A symbol stripping program
14739 STRIP=$STRIP
14740
14741 # Used to examine libraries when file_magic_cmd begins "file"
14742 MAGIC_CMD=$MAGIC_CMD
14743
14744 # Used on cygwin: DLL creation program.
14745 DLLTOOL="$DLLTOOL"
14746
14747 # Used on cygwin: object dumper.
14748 OBJDUMP="$OBJDUMP"
14749
14750 # Used on cygwin: assembler.
14751 AS="$AS"
14752
14753 # The name of the directory that contains temporary libtool files.
14754 objdir=$objdir
14755
14756 # How to create reloadable object files.
14757 reload_flag=$lt_reload_flag
14758 reload_cmds=$lt_reload_cmds
14759
14760 # How to pass a linker flag through the compiler.
14761 wl=$lt_lt_prog_compiler_wl_F77
14762
14763 # Object file suffix (normally "o").
14764 objext="$ac_objext"
14765
14766 # Old archive suffix (normally "a").
14767 libext="$libext"
14768
14769 # Shared library suffix (normally ".so").
14770 shrext='$shrext'
14771
14772 # Executable file suffix (normally "").
14773 exeext="$exeext"
14774
14775 # Additional compiler flags for building library objects.
14776 pic_flag=$lt_lt_prog_compiler_pic_F77
14777 pic_mode=$pic_mode
14778
14779 # What is the maximum length of a command?
14780 max_cmd_len=$lt_cv_sys_max_cmd_len
14781
14782 # Does compiler simultaneously support -c and -o options?
14783 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14784
14785 # Must we lock files when doing compilation ?
14786 need_locks=$lt_need_locks
14787
14788 # Do we need the lib prefix for modules?
14789 need_lib_prefix=$need_lib_prefix
14790
14791 # Do we need a version for libraries?
14792 need_version=$need_version
14793
14794 # Whether dlopen is supported.
14795 dlopen_support=$enable_dlopen
14796
14797 # Whether dlopen of programs is supported.
14798 dlopen_self=$enable_dlopen_self
14799
14800 # Whether dlopen of statically linked programs is supported.
14801 dlopen_self_static=$enable_dlopen_self_static
14802
14803 # Compiler flag to prevent dynamic linking.
14804 link_static_flag=$lt_lt_prog_compiler_static_F77
14805
14806 # Compiler flag to turn off builtin functions.
14807 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14808
14809 # Compiler flag to allow reflexive dlopens.
14810 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14811
14812 # Compiler flag to generate shared objects directly from archives.
14813 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14814
14815 # Compiler flag to generate thread-safe objects.
14816 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14817
14818 # Library versioning type.
14819 version_type=$version_type
14820
14821 # Format of library name prefix.
14822 libname_spec=$lt_libname_spec
14823
14824 # List of archive names.  First name is the real one, the rest are links.
14825 # The last name is the one that the linker finds with -lNAME.
14826 library_names_spec=$lt_library_names_spec
14827
14828 # The coded name of the library, if different from the real name.
14829 soname_spec=$lt_soname_spec
14830
14831 # Commands used to build and install an old-style archive.
14832 RANLIB=$lt_RANLIB
14833 old_archive_cmds=$lt_old_archive_cmds_F77
14834 old_postinstall_cmds=$lt_old_postinstall_cmds
14835 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14836
14837 # Create an old-style archive from a shared archive.
14838 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14839
14840 # Create a temporary old-style archive to link instead of a shared archive.
14841 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14842
14843 # Commands used to build and install a shared archive.
14844 archive_cmds=$lt_archive_cmds_F77
14845 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14846 postinstall_cmds=$lt_postinstall_cmds
14847 postuninstall_cmds=$lt_postuninstall_cmds
14848
14849 # Commands used to build a loadable module (assumed same as above if empty)
14850 module_cmds=$lt_module_cmds_F77
14851 module_expsym_cmds=$lt_module_expsym_cmds_F77
14852
14853 # Commands to strip libraries.
14854 old_striplib=$lt_old_striplib
14855 striplib=$lt_striplib
14856
14857 # Dependencies to place before the objects being linked to create a
14858 # shared library.
14859 predep_objects=$lt_predep_objects_F77
14860
14861 # Dependencies to place after the objects being linked to create a
14862 # shared library.
14863 postdep_objects=$lt_postdep_objects_F77
14864
14865 # Dependencies to place before the objects being linked to create a
14866 # shared library.
14867 predeps=$lt_predeps_F77
14868
14869 # Dependencies to place after the objects being linked to create a
14870 # shared library.
14871 postdeps=$lt_postdeps_F77
14872
14873 # The library search path used internally by the compiler when linking
14874 # a shared library.
14875 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14876
14877 # Method to check whether dependent libraries are shared objects.
14878 deplibs_check_method=$lt_deplibs_check_method
14879
14880 # Command to use when deplibs_check_method == file_magic.
14881 file_magic_cmd=$lt_file_magic_cmd
14882
14883 # Flag that allows shared libraries with undefined symbols to be built.
14884 allow_undefined_flag=$lt_allow_undefined_flag_F77
14885
14886 # Flag that forces no undefined symbols.
14887 no_undefined_flag=$lt_no_undefined_flag_F77
14888
14889 # Commands used to finish a libtool library installation in a directory.
14890 finish_cmds=$lt_finish_cmds
14891
14892 # Same as above, but a single script fragment to be evaled but not shown.
14893 finish_eval=$lt_finish_eval
14894
14895 # Take the output of nm and produce a listing of raw symbols and C names.
14896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14897
14898 # Transform the output of nm in a proper C declaration
14899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14900
14901 # Transform the output of nm in a C name address pair
14902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14903
14904 # This is the shared library runtime path variable.
14905 runpath_var=$runpath_var
14906
14907 # This is the shared library path variable.
14908 shlibpath_var=$shlibpath_var
14909
14910 # Is shlibpath searched before the hard-coded library search path?
14911 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14912
14913 # How to hardcode a shared library path into an executable.
14914 hardcode_action=$hardcode_action_F77
14915
14916 # Whether we should hardcode library paths into libraries.
14917 hardcode_into_libs=$hardcode_into_libs
14918
14919 # Flag to hardcode \$libdir into a binary during linking.
14920 # This must work even if \$libdir does not exist.
14921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14922
14923 # If ld is used when linking, flag to hardcode \$libdir into
14924 # a binary during linking. This must work even if \$libdir does
14925 # not exist.
14926 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14927
14928 # Whether we need a single -rpath flag with a separated argument.
14929 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14930
14931 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14932 # resulting binary.
14933 hardcode_direct=$hardcode_direct_F77
14934
14935 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14936 # resulting binary.
14937 hardcode_minus_L=$hardcode_minus_L_F77
14938
14939 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14940 # the resulting binary.
14941 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14942
14943 # Set to yes if building a shared library automatically hardcodes DIR into the library
14944 # and all subsequent libraries and executables linked against it.
14945 hardcode_automatic=$hardcode_automatic_F77
14946
14947 # Variables whose values should be saved in libtool wrapper scripts and
14948 # restored at relink time.
14949 variables_saved_for_relink="$variables_saved_for_relink"
14950
14951 # Whether libtool must link a program against all its dependency libraries.
14952 link_all_deplibs=$link_all_deplibs_F77
14953
14954 # Compile-time system search path for libraries
14955 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14956
14957 # Run-time system search path for libraries
14958 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14959
14960 # Fix the shell variable \$srcfile for the compiler.
14961 fix_srcfile_path="$fix_srcfile_path_F77"
14962
14963 # Set to yes if exported symbols are required.
14964 always_export_symbols=$always_export_symbols_F77
14965
14966 # The commands to list exported symbols.
14967 export_symbols_cmds=$lt_export_symbols_cmds_F77
14968
14969 # The commands to extract the exported symbol list from a shared archive.
14970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14971
14972 # Symbols that should not be listed in the preloaded symbols.
14973 exclude_expsyms=$lt_exclude_expsyms_F77
14974
14975 # Symbols that must always be exported.
14976 include_expsyms=$lt_include_expsyms_F77
14977
14978 # ### END LIBTOOL TAG CONFIG: $tagname
14979
14980 __EOF__
14981
14982
14983 else
14984   # If there is no Makefile yet, we rely on a make rule to execute
14985   # `config.status --recheck' to rerun these tests and create the
14986   # libtool script then.
14987   test -f Makefile && make "$ltmain"
14988 fi
14989
14990
14991 ac_ext=c
14992 ac_cpp='$CPP $CPPFLAGS'
14993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14996
14997 CC="$lt_save_CC"
14998
14999         else
15000           tagname=""
15001         fi
15002         ;;
15003
15004       GCJ)
15005         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15006
15007
15008
15009 # Source file extension for Java test sources.
15010 ac_ext=java
15011
15012 # Object file extension for compiled Java test sources.
15013 objext=o
15014 objext_GCJ=$objext
15015
15016 # Code to be used in simple compile tests
15017 lt_simple_compile_test_code="class foo {}\n"
15018
15019 # Code to be used in simple link tests
15020 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15021
15022 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15023
15024 # If no C compiler was specified, use CC.
15025 LTCC=${LTCC-"$CC"}
15026
15027 # Allow CC to be a program name with arguments.
15028 compiler=$CC
15029
15030
15031 # Allow CC to be a program name with arguments.
15032 lt_save_CC="$CC"
15033 CC=${GCJ-"gcj"}
15034 compiler=$CC
15035 compiler_GCJ=$CC
15036
15037 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15038 archive_cmds_need_lc_GCJ=no
15039
15040 ## CAVEAT EMPTOR:
15041 ## There is no encapsulation within the following macros, do not change
15042 ## the running order or otherwise move them around unless you know exactly
15043 ## what you are doing...
15044
15045 lt_prog_compiler_no_builtin_flag_GCJ=
15046
15047 if test "$GCC" = yes; then
15048   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15049
15050   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15051 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15052 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15053   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055   lt_cv_prog_compiler_rtti_exceptions=no
15056   ac_outfile=conftest.$ac_objext
15057    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15058    lt_compiler_flag="-fno-rtti -fno-exceptions"
15059    # Insert the option either (1) after the last *FLAGS variable, or
15060    # (2) before a word containing "conftest.", or (3) at the end.
15061    # Note that $ac_compile itself does not contain backslashes and begins
15062    # with a dollar sign (not a hyphen), so the echo should work correctly.
15063    # The option is referenced via a variable to avoid confusing sed.
15064    lt_compile=`echo "$ac_compile" | $SED \
15065    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15067    -e 's:$: $lt_compiler_flag:'`
15068    (eval echo "\"\$as_me:15068: $lt_compile\"" >&5)
15069    (eval "$lt_compile" 2>conftest.err)
15070    ac_status=$?
15071    cat conftest.err >&5
15072    echo "$as_me:15072: \$? = $ac_status" >&5
15073    if (exit $ac_status) && test -s "$ac_outfile"; then
15074      # The compiler can only warn and ignore the option if not recognized
15075      # So say no if there are warnings
15076      if test ! -s conftest.err; then
15077        lt_cv_prog_compiler_rtti_exceptions=yes
15078      fi
15079    fi
15080    $rm conftest*
15081
15082 fi
15083 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15084 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15085
15086 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15087     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15088 else
15089     :
15090 fi
15091
15092 fi
15093
15094 lt_prog_compiler_wl_GCJ=
15095 lt_prog_compiler_pic_GCJ=
15096 lt_prog_compiler_static_GCJ=
15097
15098 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15099 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15100
15101   if test "$GCC" = yes; then
15102     lt_prog_compiler_wl_GCJ='-Wl,'
15103     lt_prog_compiler_static_GCJ='-static'
15104
15105     case $host_os in
15106       aix*)
15107       # All AIX code is PIC.
15108       if test "$host_cpu" = ia64; then
15109         # AIX 5 now supports IA64 processor
15110         lt_prog_compiler_static_GCJ='-Bstatic'
15111       fi
15112       ;;
15113
15114     amigaos*)
15115       # FIXME: we need at least 68020 code to build shared libraries, but
15116       # adding the `-m68020' flag to GCC prevents building anything better,
15117       # like `-m68040'.
15118       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15119       ;;
15120
15121     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15122       # PIC is the default for these OSes.
15123       ;;
15124
15125     mingw* | pw32* | os2*)
15126       # This hack is so that the source file can tell whether it is being
15127       # built for inclusion in a dll (and should export symbols for example).
15128       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15129       ;;
15130
15131     darwin* | rhapsody*)
15132       # PIC is the default on this platform
15133       # Common symbols not allowed in MH_DYLIB files
15134       lt_prog_compiler_pic_GCJ='-fno-common'
15135       ;;
15136
15137     msdosdjgpp*)
15138       # Just because we use GCC doesn't mean we suddenly get shared libraries
15139       # on systems that don't support them.
15140       lt_prog_compiler_can_build_shared_GCJ=no
15141       enable_shared=no
15142       ;;
15143
15144     sysv4*MP*)
15145       if test -d /usr/nec; then
15146         lt_prog_compiler_pic_GCJ=-Kconform_pic
15147       fi
15148       ;;
15149
15150     hpux*)
15151       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15152       # not for PA HP-UX.
15153       case "$host_cpu" in
15154       hppa*64*|ia64*)
15155         # +Z the default
15156         ;;
15157       *)
15158         lt_prog_compiler_pic_GCJ='-fPIC'
15159         ;;
15160       esac
15161       ;;
15162
15163     *)
15164       lt_prog_compiler_pic_GCJ='-fPIC'
15165       ;;
15166     esac
15167   else
15168     # PORTME Check for flag to pass linker flags through the system compiler.
15169     case $host_os in
15170     aix*)
15171       lt_prog_compiler_wl_GCJ='-Wl,'
15172       if test "$host_cpu" = ia64; then
15173         # AIX 5 now supports IA64 processor
15174         lt_prog_compiler_static_GCJ='-Bstatic'
15175       else
15176         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15177       fi
15178       ;;
15179
15180     mingw* | pw32* | os2*)
15181       # This hack is so that the source file can tell whether it is being
15182       # built for inclusion in a dll (and should export symbols for example).
15183       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15184       ;;
15185
15186     hpux9* | hpux10* | hpux11*)
15187       lt_prog_compiler_wl_GCJ='-Wl,'
15188       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15189       # not for PA HP-UX.
15190       case "$host_cpu" in
15191       hppa*64*|ia64*)
15192         # +Z the default
15193         ;;
15194       *)
15195         lt_prog_compiler_pic_GCJ='+Z'
15196         ;;
15197       esac
15198       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15199       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15200       ;;
15201
15202     irix5* | irix6* | nonstopux*)
15203       lt_prog_compiler_wl_GCJ='-Wl,'
15204       # PIC (with -KPIC) is the default.
15205       lt_prog_compiler_static_GCJ='-non_shared'
15206       ;;
15207
15208     newsos6)
15209       lt_prog_compiler_pic_GCJ='-KPIC'
15210       lt_prog_compiler_static_GCJ='-Bstatic'
15211       ;;
15212
15213     linux*)
15214       case $CC in
15215       icc|ecc)
15216         lt_prog_compiler_wl_GCJ='-Wl,'
15217         lt_prog_compiler_pic_GCJ='-KPIC'
15218         lt_prog_compiler_static_GCJ='-static'
15219         ;;
15220       ccc)
15221         lt_prog_compiler_wl_GCJ='-Wl,'
15222         # All Alpha code is PIC.
15223         lt_prog_compiler_static_GCJ='-non_shared'
15224         ;;
15225       esac
15226       ;;
15227
15228     osf3* | osf4* | osf5*)
15229       lt_prog_compiler_wl_GCJ='-Wl,'
15230       # All OSF/1 code is PIC.
15231       lt_prog_compiler_static_GCJ='-non_shared'
15232       ;;
15233
15234     sco3.2v5*)
15235       lt_prog_compiler_pic_GCJ='-Kpic'
15236       lt_prog_compiler_static_GCJ='-dn'
15237       ;;
15238
15239     solaris*)
15240       lt_prog_compiler_wl_GCJ='-Wl,'
15241       lt_prog_compiler_pic_GCJ='-KPIC'
15242       lt_prog_compiler_static_GCJ='-Bstatic'
15243       ;;
15244
15245     sunos4*)
15246       lt_prog_compiler_wl_GCJ='-Qoption ld '
15247       lt_prog_compiler_pic_GCJ='-PIC'
15248       lt_prog_compiler_static_GCJ='-Bstatic'
15249       ;;
15250
15251     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15252       lt_prog_compiler_wl_GCJ='-Wl,'
15253       lt_prog_compiler_pic_GCJ='-KPIC'
15254       lt_prog_compiler_static_GCJ='-Bstatic'
15255       ;;
15256
15257     sysv4*MP*)
15258       if test -d /usr/nec ;then
15259         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15260         lt_prog_compiler_static_GCJ='-Bstatic'
15261       fi
15262       ;;
15263
15264     uts4*)
15265       lt_prog_compiler_pic_GCJ='-pic'
15266       lt_prog_compiler_static_GCJ='-Bstatic'
15267       ;;
15268
15269     *)
15270       lt_prog_compiler_can_build_shared_GCJ=no
15271       ;;
15272     esac
15273   fi
15274
15275 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15276 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15277
15278 #
15279 # Check to make sure the PIC flag actually works.
15280 #
15281 if test -n "$lt_prog_compiler_pic_GCJ"; then
15282   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15284 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15285   echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287   lt_prog_compiler_pic_works_GCJ=no
15288   ac_outfile=conftest.$ac_objext
15289    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15290    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15291    # Insert the option either (1) after the last *FLAGS variable, or
15292    # (2) before a word containing "conftest.", or (3) at the end.
15293    # Note that $ac_compile itself does not contain backslashes and begins
15294    # with a dollar sign (not a hyphen), so the echo should work correctly.
15295    # The option is referenced via a variable to avoid confusing sed.
15296    lt_compile=`echo "$ac_compile" | $SED \
15297    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15298    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15299    -e 's:$: $lt_compiler_flag:'`
15300    (eval echo "\"\$as_me:15300: $lt_compile\"" >&5)
15301    (eval "$lt_compile" 2>conftest.err)
15302    ac_status=$?
15303    cat conftest.err >&5
15304    echo "$as_me:15304: \$? = $ac_status" >&5
15305    if (exit $ac_status) && test -s "$ac_outfile"; then
15306      # The compiler can only warn and ignore the option if not recognized
15307      # So say no if there are warnings
15308      if test ! -s conftest.err; then
15309        lt_prog_compiler_pic_works_GCJ=yes
15310      fi
15311    fi
15312    $rm conftest*
15313
15314 fi
15315 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15316 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15317
15318 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15319     case $lt_prog_compiler_pic_GCJ in
15320      "" | " "*) ;;
15321      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15322      esac
15323 else
15324     lt_prog_compiler_pic_GCJ=
15325      lt_prog_compiler_can_build_shared_GCJ=no
15326 fi
15327
15328 fi
15329 case "$host_os" in
15330   # For platforms which do not support PIC, -DPIC is meaningless:
15331   *djgpp*)
15332     lt_prog_compiler_pic_GCJ=
15333     ;;
15334   *)
15335     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15336     ;;
15337 esac
15338
15339 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15340 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15341 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15342   echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344   lt_cv_prog_compiler_c_o_GCJ=no
15345    $rm -r conftest 2>/dev/null
15346    mkdir conftest
15347    cd conftest
15348    mkdir out
15349    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15350
15351    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15352    # that will create temporary files in the current directory regardless of
15353    # the output directory.  Thus, making CWD read-only will cause this test
15354    # to fail, enabling locking or at least warning the user not to do parallel
15355    # builds.
15356    chmod -w .
15357
15358    lt_compiler_flag="-o out/conftest2.$ac_objext"
15359    # Insert the option either (1) after the last *FLAGS variable, or
15360    # (2) before a word containing "conftest.", or (3) at the end.
15361    # Note that $ac_compile itself does not contain backslashes and begins
15362    # with a dollar sign (not a hyphen), so the echo should work correctly.
15363    lt_compile=`echo "$ac_compile" | $SED \
15364    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15366    -e 's:$: $lt_compiler_flag:'`
15367    (eval echo "\"\$as_me:15367: $lt_compile\"" >&5)
15368    (eval "$lt_compile" 2>out/conftest.err)
15369    ac_status=$?
15370    cat out/conftest.err >&5
15371    echo "$as_me:15371: \$? = $ac_status" >&5
15372    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15373    then
15374      # The compiler can only warn and ignore the option if not recognized
15375      # So say no if there are warnings
15376      if test ! -s out/conftest.err; then
15377        lt_cv_prog_compiler_c_o_GCJ=yes
15378      fi
15379    fi
15380    chmod u+w .
15381    $rm conftest* out/*
15382    rmdir out
15383    cd ..
15384    rmdir conftest
15385    $rm conftest*
15386
15387 fi
15388 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15389 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15390
15391
15392 hard_links="nottested"
15393 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15394   # do not overwrite the value of need_locks provided by the user
15395   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15396 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15397   hard_links=yes
15398   $rm conftest*
15399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15400   touch conftest.a
15401   ln conftest.a conftest.b 2>&5 || hard_links=no
15402   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15403   echo "$as_me:$LINENO: result: $hard_links" >&5
15404 echo "${ECHO_T}$hard_links" >&6
15405   if test "$hard_links" = no; then
15406     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15407 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15408     need_locks=warn
15409   fi
15410 else
15411   need_locks=no
15412 fi
15413
15414 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15415 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15416
15417   runpath_var=
15418   allow_undefined_flag_GCJ=
15419   enable_shared_with_static_runtimes_GCJ=no
15420   archive_cmds_GCJ=
15421   archive_expsym_cmds_GCJ=
15422   old_archive_From_new_cmds_GCJ=
15423   old_archive_from_expsyms_cmds_GCJ=
15424   export_dynamic_flag_spec_GCJ=
15425   whole_archive_flag_spec_GCJ=
15426   thread_safe_flag_spec_GCJ=
15427   hardcode_libdir_flag_spec_GCJ=
15428   hardcode_libdir_flag_spec_ld_GCJ=
15429   hardcode_libdir_separator_GCJ=
15430   hardcode_direct_GCJ=no
15431   hardcode_minus_L_GCJ=no
15432   hardcode_shlibpath_var_GCJ=unsupported
15433   link_all_deplibs_GCJ=unknown
15434   hardcode_automatic_GCJ=no
15435   module_cmds_GCJ=
15436   module_expsym_cmds_GCJ=
15437   always_export_symbols_GCJ=no
15438   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15439   # include_expsyms should be a list of space-separated symbols to be *always*
15440   # included in the symbol list
15441   include_expsyms_GCJ=
15442   # exclude_expsyms can be an extended regexp of symbols to exclude
15443   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15444   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15445   # as well as any symbol that contains `d'.
15446   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15447   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15448   # platforms (ab)use it in PIC code, but their linkers get confused if
15449   # the symbol is explicitly referenced.  Since portable code cannot
15450   # rely on this symbol name, it's probably fine to never include it in
15451   # preloaded symbol tables.
15452   extract_expsyms_cmds=
15453
15454   case $host_os in
15455   cygwin* | mingw* | pw32*)
15456     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15457     # When not using gcc, we currently assume that we are using
15458     # Microsoft Visual C++.
15459     if test "$GCC" != yes; then
15460       with_gnu_ld=no
15461     fi
15462     ;;
15463   openbsd*)
15464     with_gnu_ld=no
15465     ;;
15466   esac
15467
15468   ld_shlibs_GCJ=yes
15469   if test "$with_gnu_ld" = yes; then
15470     # If archive_cmds runs LD, not CC, wlarc should be empty
15471     wlarc='${wl}'
15472
15473     # See if GNU ld supports shared libraries.
15474     case $host_os in
15475     aix3* | aix4* | aix5*)
15476       # On AIX/PPC, the GNU linker is very broken
15477       if test "$host_cpu" != ia64; then
15478         ld_shlibs_GCJ=no
15479         cat <<EOF 1>&2
15480
15481 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15482 *** to be unable to reliably create shared libraries on AIX.
15483 *** Therefore, libtool is disabling shared libraries support.  If you
15484 *** really care for shared libraries, you may want to modify your PATH
15485 *** so that a non-GNU linker is found, and then restart.
15486
15487 EOF
15488       fi
15489       ;;
15490
15491     amigaos*)
15492       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)'
15493       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15494       hardcode_minus_L_GCJ=yes
15495
15496       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15497       # that the semantics of dynamic libraries on AmigaOS, at least up
15498       # to version 4, is to share data among multiple programs linked
15499       # with the same dynamic library.  Since this doesn't match the
15500       # behavior of shared libraries on other platforms, we can't use
15501       # them.
15502       ld_shlibs_GCJ=no
15503       ;;
15504
15505     beos*)
15506       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15507         allow_undefined_flag_GCJ=unsupported
15508         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15509         # support --undefined.  This deserves some investigation.  FIXME
15510         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511       else
15512         ld_shlibs_GCJ=no
15513       fi
15514       ;;
15515
15516     cygwin* | mingw* | pw32*)
15517       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15518       # as there is no search path for DLLs.
15519       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15520       allow_undefined_flag_GCJ=unsupported
15521       always_export_symbols_GCJ=no
15522       enable_shared_with_static_runtimes_GCJ=yes
15523       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15524
15525       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15526         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15527         # If the export-symbols file already is a .def file (1st line
15528         # is EXPORTS), use it as is; otherwise, prepend...
15529         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15530           cp $export_symbols $output_objdir/$soname.def;
15531         else
15532           echo EXPORTS > $output_objdir/$soname.def;
15533           cat $export_symbols >> $output_objdir/$soname.def;
15534         fi~
15535         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15536       else
15537         ld_shlibs=no
15538       fi
15539       ;;
15540
15541     netbsd*)
15542       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15543         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15544         wlarc=
15545       else
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       fi
15549       ;;
15550
15551     solaris* | sysv5*)
15552       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15553         ld_shlibs_GCJ=no
15554         cat <<EOF 1>&2
15555
15556 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15557 *** create shared libraries on Solaris systems.  Therefore, libtool
15558 *** is disabling shared libraries support.  We urge you to upgrade GNU
15559 *** binutils to release 2.9.1 or newer.  Another option is to modify
15560 *** your PATH or compiler configuration so that the native linker is
15561 *** used, and then restart.
15562
15563 EOF
15564       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15565         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15567       else
15568         ld_shlibs_GCJ=no
15569       fi
15570       ;;
15571
15572     sunos4*)
15573       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15574       wlarc=
15575       hardcode_direct_GCJ=yes
15576       hardcode_shlibpath_var_GCJ=no
15577       ;;
15578
15579     *)
15580       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15581         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15582         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15583       else
15584         ld_shlibs_GCJ=no
15585       fi
15586       ;;
15587     esac
15588
15589     if test "$ld_shlibs_GCJ" = yes; then
15590       runpath_var=LD_RUN_PATH
15591       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15592       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15593       # ancient GNU ld didn't support --whole-archive et. al.
15594       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15595         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15596       else
15597         whole_archive_flag_spec_GCJ=
15598       fi
15599     fi
15600   else
15601     # PORTME fill in a description of your system's linker (not GNU ld)
15602     case $host_os in
15603     aix3*)
15604       allow_undefined_flag_GCJ=unsupported
15605       always_export_symbols_GCJ=yes
15606       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'
15607       # Note: this linker hardcodes the directories in LIBPATH if there
15608       # are no directories specified by -L.
15609       hardcode_minus_L_GCJ=yes
15610       if test "$GCC" = yes && test -z "$link_static_flag"; then
15611         # Neither direct hardcoding nor static linking is supported with a
15612         # broken collect2.
15613         hardcode_direct_GCJ=unsupported
15614       fi
15615       ;;
15616
15617     aix4* | aix5*)
15618       if test "$host_cpu" = ia64; then
15619         # On IA64, the linker does run time linking by default, so we don't
15620         # have to do anything special.
15621         aix_use_runtimelinking=no
15622         exp_sym_flag='-Bexport'
15623         no_entry_flag=""
15624       else
15625         # If we're using GNU nm, then we don't want the "-C" option.
15626         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15627         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15628           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'
15629         else
15630           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'
15631         fi
15632         aix_use_runtimelinking=no
15633
15634         # Test if we are trying to use run time linking or normal
15635         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15636         # need to do runtime linking.
15637         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15638           for ld_flag in $LDFLAGS; do
15639           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15640             aix_use_runtimelinking=yes
15641             break
15642           fi
15643           done
15644         esac
15645
15646         exp_sym_flag='-bexport'
15647         no_entry_flag='-bnoentry'
15648       fi
15649
15650       # When large executables or shared objects are built, AIX ld can
15651       # have problems creating the table of contents.  If linking a library
15652       # or program results in "error TOC overflow" add -mminimal-toc to
15653       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15654       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15655
15656       archive_cmds_GCJ=''
15657       hardcode_direct_GCJ=yes
15658       hardcode_libdir_separator_GCJ=':'
15659       link_all_deplibs_GCJ=yes
15660
15661       if test "$GCC" = yes; then
15662         case $host_os in aix4.012|aix4.012.*)
15663         # We only want to do this on AIX 4.2 and lower, the check
15664         # below for broken collect2 doesn't work under 4.3+
15665           collect2name=`${CC} -print-prog-name=collect2`
15666           if test -f "$collect2name" && \
15667            strings "$collect2name" | grep resolve_lib_name >/dev/null
15668           then
15669           # We have reworked collect2
15670           hardcode_direct_GCJ=yes
15671           else
15672           # We have old collect2
15673           hardcode_direct_GCJ=unsupported
15674           # It fails to find uninstalled libraries when the uninstalled
15675           # path is not listed in the libpath.  Setting hardcode_minus_L
15676           # to unsupported forces relinking
15677           hardcode_minus_L_GCJ=yes
15678           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15679           hardcode_libdir_separator_GCJ=
15680           fi
15681         esac
15682         shared_flag='-shared'
15683       else
15684         # not using gcc
15685         if test "$host_cpu" = ia64; then
15686         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15687         # chokes on -Wl,-G. The following line is correct:
15688           shared_flag='-G'
15689         else
15690         if test "$aix_use_runtimelinking" = yes; then
15691             shared_flag='${wl}-G'
15692           else
15693             shared_flag='${wl}-bM:SRE'
15694         fi
15695         fi
15696       fi
15697
15698       # It seems that -bexpall does not export symbols beginning with
15699       # underscore (_), so it is better to generate a list of symbols to export.
15700       always_export_symbols_GCJ=yes
15701       if test "$aix_use_runtimelinking" = yes; then
15702         # Warning - without using the other runtime loading flags (-brtl),
15703         # -berok will link without error, but may produce a broken library.
15704         allow_undefined_flag_GCJ='-berok'
15705        # Determine the default libpath from the value encoded in an empty executable.
15706        cat >conftest.$ac_ext <<_ACEOF
15707 #line $LINENO "configure"
15708 /* confdefs.h.  */
15709 _ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h.  */
15713
15714 int
15715 main ()
15716 {
15717
15718   ;
15719   return 0;
15720 }
15721 _ACEOF
15722 rm -f conftest.$ac_objext conftest$ac_exeext
15723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15724   (eval $ac_link) 2>&5
15725   ac_status=$?
15726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); } &&
15728          { ac_try='test -s conftest$ac_exeext'
15729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730   (eval $ac_try) 2>&5
15731   ac_status=$?
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); }; }; then
15734
15735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15736 }'`
15737 # Check for a 64-bit object if we didn't find anything.
15738 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; }
15739 }'`; fi
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744 fi
15745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15747
15748        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15749         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"
15750        else
15751         if test "$host_cpu" = ia64; then
15752           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15753           allow_undefined_flag_GCJ="-z nodefs"
15754           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"
15755         else
15756          # Determine the default libpath from the value encoded in an empty executable.
15757          cat >conftest.$ac_ext <<_ACEOF
15758 #line $LINENO "configure"
15759 /* confdefs.h.  */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h.  */
15764
15765 int
15766 main ()
15767 {
15768
15769   ;
15770   return 0;
15771 }
15772 _ACEOF
15773 rm -f conftest.$ac_objext conftest$ac_exeext
15774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15775   (eval $ac_link) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } &&
15779          { ac_try='test -s conftest$ac_exeext'
15780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781   (eval $ac_try) 2>&5
15782   ac_status=$?
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); }; }; then
15785
15786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15787 }'`
15788 # Check for a 64-bit object if we didn't find anything.
15789 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; }
15790 }'`; fi
15791 else
15792   echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 fi
15796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15797 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15798
15799          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15800           # Warning - without using the other run time loading flags,
15801           # -berok will link without error, but may produce a broken library.
15802           no_undefined_flag_GCJ=' ${wl}-bernotok'
15803           allow_undefined_flag_GCJ=' ${wl}-berok'
15804           # -bexpall does not export symbols beginning with underscore (_)
15805           always_export_symbols_GCJ=yes
15806           # Exported symbols can be pulled into shared objects from archives
15807           whole_archive_flag_spec_GCJ=' '
15808           archive_cmds_need_lc_GCJ=yes
15809           # This is similar to how AIX traditionally builds it's shared libraries.
15810           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'
15811         fi
15812       fi
15813       ;;
15814
15815     amigaos*)
15816       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)'
15817       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15818       hardcode_minus_L_GCJ=yes
15819       # see comment about different semantics on the GNU ld section
15820       ld_shlibs_GCJ=no
15821       ;;
15822
15823     bsdi4*)
15824       export_dynamic_flag_spec_GCJ=-rdynamic
15825       ;;
15826
15827     cygwin* | mingw* | pw32*)
15828       # When not using gcc, we currently assume that we are using
15829       # Microsoft Visual C++.
15830       # hardcode_libdir_flag_spec is actually meaningless, as there is
15831       # no search path for DLLs.
15832       hardcode_libdir_flag_spec_GCJ=' '
15833       allow_undefined_flag_GCJ=unsupported
15834       # Tell ltmain to make .lib files, not .a files.
15835       libext=lib
15836       # Tell ltmain to make .dll files, not .so files.
15837       shrext=".dll"
15838       # FIXME: Setting linknames here is a bad hack.
15839       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15840       # The linker will automatically build a .lib file if we build a DLL.
15841       old_archive_From_new_cmds_GCJ='true'
15842       # FIXME: Should let the user specify the lib program.
15843       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15844       fix_srcfile_path='`cygpath -w "$srcfile"`'
15845       enable_shared_with_static_runtimes_GCJ=yes
15846       ;;
15847
15848     darwin* | rhapsody*)
15849     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15850       archive_cmds_need_lc_GCJ=no
15851       case "$host_os" in
15852       rhapsody* | darwin1.[012])
15853         allow_undefined_flag_GCJ='-undefined suppress'
15854         ;;
15855       *) # Darwin 1.3 on
15856         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15857         ;;
15858       esac
15859       # FIXME: Relying on posixy $() will cause problems for
15860       #        cross-compilation, but unfortunately the echo tests do not
15861       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15862       #        `"' quotes if we put them in here... so don't!
15863         lt_int_apple_cc_single_mod=no
15864         output_verbose_link_cmd='echo'
15865         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15866           lt_int_apple_cc_single_mod=yes
15867         fi
15868         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15869           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15870         else
15871         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'
15872       fi
15873       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15874       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15875         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15876           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}'
15877         else
15878           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}'
15879         fi
15880           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}'
15881       hardcode_direct_GCJ=no
15882       hardcode_automatic_GCJ=yes
15883       hardcode_shlibpath_var_GCJ=unsupported
15884       whole_archive_flag_spec_GCJ='-all_load $convenience'
15885       link_all_deplibs_GCJ=yes
15886     fi
15887       ;;
15888
15889     dgux*)
15890       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15892       hardcode_shlibpath_var_GCJ=no
15893       ;;
15894
15895     freebsd1*)
15896       ld_shlibs_GCJ=no
15897       ;;
15898
15899     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15900     # support.  Future versions do this automatically, but an explicit c++rt0.o
15901     # does not break anything, and helps significantly (at the cost of a little
15902     # extra space).
15903     freebsd2.2*)
15904       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15905       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15906       hardcode_direct_GCJ=yes
15907       hardcode_shlibpath_var_GCJ=no
15908       ;;
15909
15910     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15911     freebsd2*)
15912       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15913       hardcode_direct_GCJ=yes
15914       hardcode_minus_L_GCJ=yes
15915       hardcode_shlibpath_var_GCJ=no
15916       ;;
15917
15918     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15919     freebsd*)
15920       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15921       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15922       hardcode_direct_GCJ=yes
15923       hardcode_shlibpath_var_GCJ=no
15924       ;;
15925
15926     hpux9*)
15927       if test "$GCC" = yes; then
15928         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'
15929       else
15930         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'
15931       fi
15932       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15933       hardcode_libdir_separator_GCJ=:
15934       hardcode_direct_GCJ=yes
15935
15936       # hardcode_minus_L: Not really in the search PATH,
15937       # but as the default location of the library.
15938       hardcode_minus_L_GCJ=yes
15939       export_dynamic_flag_spec_GCJ='${wl}-E'
15940       ;;
15941
15942     hpux10* | hpux11*)
15943       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15944         case "$host_cpu" in
15945         hppa*64*|ia64*)
15946           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15947           ;;
15948         *)
15949           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15950           ;;
15951         esac
15952       else
15953         case "$host_cpu" in
15954         hppa*64*|ia64*)
15955           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15956           ;;
15957         *)
15958           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15959           ;;
15960         esac
15961       fi
15962       if test "$with_gnu_ld" = no; then
15963         case "$host_cpu" in
15964         hppa*64*)
15965           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15966           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15967           hardcode_libdir_separator_GCJ=:
15968           hardcode_direct_GCJ=no
15969           hardcode_shlibpath_var_GCJ=no
15970           ;;
15971         ia64*)
15972           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15973           hardcode_direct_GCJ=no
15974           hardcode_shlibpath_var_GCJ=no
15975
15976           # hardcode_minus_L: Not really in the search PATH,
15977           # but as the default location of the library.
15978           hardcode_minus_L_GCJ=yes
15979           ;;
15980         *)
15981           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15982           hardcode_libdir_separator_GCJ=:
15983           hardcode_direct_GCJ=yes
15984           export_dynamic_flag_spec_GCJ='${wl}-E'
15985
15986           # hardcode_minus_L: Not really in the search PATH,
15987           # but as the default location of the library.
15988           hardcode_minus_L_GCJ=yes
15989           ;;
15990         esac
15991       fi
15992       ;;
15993
15994     irix5* | irix6* | nonstopux*)
15995       if test "$GCC" = yes; then
15996         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'
15997       else
15998         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'
15999         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16000       fi
16001       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16002       hardcode_libdir_separator_GCJ=:
16003       link_all_deplibs_GCJ=yes
16004       ;;
16005
16006     netbsd*)
16007       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16008         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16009       else
16010         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16011       fi
16012       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16013       hardcode_direct_GCJ=yes
16014       hardcode_shlibpath_var_GCJ=no
16015       ;;
16016
16017     newsos6)
16018       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019       hardcode_direct_GCJ=yes
16020       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16021       hardcode_libdir_separator_GCJ=:
16022       hardcode_shlibpath_var_GCJ=no
16023       ;;
16024
16025     openbsd*)
16026       hardcode_direct_GCJ=yes
16027       hardcode_shlibpath_var_GCJ=no
16028       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16029         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16030         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16031         export_dynamic_flag_spec_GCJ='${wl}-E'
16032       else
16033        case $host_os in
16034          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16035            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16036            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16037            ;;
16038          *)
16039            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16040            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16041            ;;
16042        esac
16043       fi
16044       ;;
16045
16046     os2*)
16047       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16048       hardcode_minus_L_GCJ=yes
16049       allow_undefined_flag_GCJ=unsupported
16050       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'
16051       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16052       ;;
16053
16054     osf3*)
16055       if test "$GCC" = yes; then
16056         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16057         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'
16058       else
16059         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16060         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'
16061       fi
16062       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16063       hardcode_libdir_separator_GCJ=:
16064       ;;
16065
16066     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16067       if test "$GCC" = yes; then
16068         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16069         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'
16070         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16071       else
16072         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16073         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'
16074         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~
16075         $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'
16076
16077         # Both c and cxx compiler support -rpath directly
16078         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16079       fi
16080       hardcode_libdir_separator_GCJ=:
16081       ;;
16082
16083     sco3.2v5*)
16084       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085       hardcode_shlibpath_var_GCJ=no
16086       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16087       runpath_var=LD_RUN_PATH
16088       hardcode_runpath_var=yes
16089       ;;
16090
16091     solaris*)
16092       no_undefined_flag_GCJ=' -z text'
16093       if test "$GCC" = yes; then
16094         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16095         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16096           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16097       else
16098         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16099         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16100         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16101       fi
16102       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16103       hardcode_shlibpath_var_GCJ=no
16104       case $host_os in
16105       solaris2.[0-5] | solaris2.[0-5].*) ;;
16106       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16107         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16108       esac
16109       link_all_deplibs_GCJ=yes
16110       ;;
16111
16112     sunos4*)
16113       if test "x$host_vendor" = xsequent; then
16114         # Use $CC to link under sequent, because it throws in some extra .o
16115         # files that make .init and .fini sections work.
16116         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16117       else
16118         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16119       fi
16120       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16121       hardcode_direct_GCJ=yes
16122       hardcode_minus_L_GCJ=yes
16123       hardcode_shlibpath_var_GCJ=no
16124       ;;
16125
16126     sysv4)
16127       case $host_vendor in
16128         sni)
16129           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130           hardcode_direct_GCJ=yes # is this really true???
16131         ;;
16132         siemens)
16133           ## LD is ld it makes a PLAMLIB
16134           ## CC just makes a GrossModule.
16135           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16136           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16137           hardcode_direct_GCJ=no
16138         ;;
16139         motorola)
16140           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16142         ;;
16143       esac
16144       runpath_var='LD_RUN_PATH'
16145       hardcode_shlibpath_var_GCJ=no
16146       ;;
16147
16148     sysv4.3*)
16149       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150       hardcode_shlibpath_var_GCJ=no
16151       export_dynamic_flag_spec_GCJ='-Bexport'
16152       ;;
16153
16154     sysv4*MP*)
16155       if test -d /usr/nec; then
16156         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16157         hardcode_shlibpath_var_GCJ=no
16158         runpath_var=LD_RUN_PATH
16159         hardcode_runpath_var=yes
16160         ld_shlibs_GCJ=yes
16161       fi
16162       ;;
16163
16164     sysv4.2uw2*)
16165       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16166       hardcode_direct_GCJ=yes
16167       hardcode_minus_L_GCJ=no
16168       hardcode_shlibpath_var_GCJ=no
16169       hardcode_runpath_var=yes
16170       runpath_var=LD_RUN_PATH
16171       ;;
16172
16173    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16174       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16175       if test "$GCC" = yes; then
16176         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16177       else
16178         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16179       fi
16180       runpath_var='LD_RUN_PATH'
16181       hardcode_shlibpath_var_GCJ=no
16182       ;;
16183
16184     sysv5*)
16185       no_undefined_flag_GCJ=' -z text'
16186       # $CC -shared without GNU ld will not create a library from C++
16187       # object files and a static libstdc++, better avoid it by now
16188       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16190                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16191       hardcode_libdir_flag_spec_GCJ=
16192       hardcode_shlibpath_var_GCJ=no
16193       runpath_var='LD_RUN_PATH'
16194       ;;
16195
16196     uts4*)
16197       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16198       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16199       hardcode_shlibpath_var_GCJ=no
16200       ;;
16201
16202     *)
16203       ld_shlibs_GCJ=no
16204       ;;
16205     esac
16206   fi
16207
16208 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16209 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16210 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16211
16212 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16213 if test "$GCC" = yes; then
16214   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16215 fi
16216
16217 #
16218 # Do we need to explicitly link libc?
16219 #
16220 case "x$archive_cmds_need_lc_GCJ" in
16221 x|xyes)
16222   # Assume -lc should be added
16223   archive_cmds_need_lc_GCJ=yes
16224
16225   if test "$enable_shared" = yes && test "$GCC" = yes; then
16226     case $archive_cmds_GCJ in
16227     *'~'*)
16228       # FIXME: we may have to deal with multi-command sequences.
16229       ;;
16230     '$CC '*)
16231       # Test whether the compiler implicitly links with -lc since on some
16232       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16233       # to ld, don't add -lc before -lgcc.
16234       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16235 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16236       $rm conftest*
16237       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16238
16239       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16240   (eval $ac_compile) 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } 2>conftest.err; then
16244         soname=conftest
16245         lib=conftest
16246         libobjs=conftest.$ac_objext
16247         deplibs=
16248         wl=$lt_prog_compiler_wl_GCJ
16249         compiler_flags=-v
16250         linker_flags=-v
16251         verstring=
16252         output_objdir=.
16253         libname=conftest
16254         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16255         allow_undefined_flag_GCJ=
16256         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16257   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16258   ac_status=$?
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); }
16261         then
16262           archive_cmds_need_lc_GCJ=no
16263         else
16264           archive_cmds_need_lc_GCJ=yes
16265         fi
16266         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16267       else
16268         cat conftest.err 1>&5
16269       fi
16270       $rm conftest*
16271       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16272 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16273       ;;
16274     esac
16275   fi
16276   ;;
16277 esac
16278
16279 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16280 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16281 hardcode_action_GCJ=
16282 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16283    test -n "$runpath_var GCJ" || \
16284    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16285
16286   # We can hardcode non-existant directories.
16287   if test "$hardcode_direct_GCJ" != no &&
16288      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16289      # have to relink, otherwise we might link with an installed library
16290      # when we should be linking with a yet-to-be-installed one
16291      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16292      test "$hardcode_minus_L_GCJ" != no; then
16293     # Linking always hardcodes the temporary library directory.
16294     hardcode_action_GCJ=relink
16295   else
16296     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16297     hardcode_action_GCJ=immediate
16298   fi
16299 else
16300   # We cannot hardcode anything, or else we can only hardcode existing
16301   # directories.
16302   hardcode_action_GCJ=unsupported
16303 fi
16304 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16305 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16306
16307 if test "$hardcode_action_GCJ" = relink; then
16308   # Fast installation is not supported
16309   enable_fast_install=no
16310 elif test "$shlibpath_overrides_runpath" = yes ||
16311      test "$enable_shared" = no; then
16312   # Fast installation is not necessary
16313   enable_fast_install=needless
16314 fi
16315
16316 striplib=
16317 old_striplib=
16318 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16319 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16320 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16321   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16322   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16323   echo "$as_me:$LINENO: result: yes" >&5
16324 echo "${ECHO_T}yes" >&6
16325 else
16326 # FIXME - insert some real tests, host_os isn't really good enough
16327   case $host_os in
16328    darwin*)
16329        if test -n "$STRIP" ; then
16330          striplib="$STRIP -x"
16331          echo "$as_me:$LINENO: result: yes" >&5
16332 echo "${ECHO_T}yes" >&6
16333        else
16334   echo "$as_me:$LINENO: result: no" >&5
16335 echo "${ECHO_T}no" >&6
16336 fi
16337        ;;
16338    *)
16339   echo "$as_me:$LINENO: result: no" >&5
16340 echo "${ECHO_T}no" >&6
16341     ;;
16342   esac
16343 fi
16344
16345 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16346 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16347 library_names_spec=
16348 libname_spec='lib$name'
16349 soname_spec=
16350 shrext=".so"
16351 postinstall_cmds=
16352 postuninstall_cmds=
16353 finish_cmds=
16354 finish_eval=
16355 shlibpath_var=
16356 shlibpath_overrides_runpath=unknown
16357 version_type=none
16358 dynamic_linker="$host_os ld.so"
16359 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16360 if test "$GCC" = yes; then
16361   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16362   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16363     # if the path contains ";" then we assume it to be the separator
16364     # otherwise default to the standard path separator (i.e. ":") - it is
16365     # assumed that no part of a normal pathname contains ";" but that should
16366     # okay in the real world where ";" in dirpaths is itself problematic.
16367     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16368   else
16369     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16370   fi
16371 else
16372   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16373 fi
16374 need_lib_prefix=unknown
16375 hardcode_into_libs=no
16376
16377 # when you set need_version to no, make sure it does not cause -set_version
16378 # flags to be left without arguments
16379 need_version=unknown
16380
16381 case $host_os in
16382 aix3*)
16383   version_type=linux
16384   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16385   shlibpath_var=LIBPATH
16386
16387   # AIX 3 has no versioning support, so we append a major version to the name.
16388   soname_spec='${libname}${release}${shared_ext}$major'
16389   ;;
16390
16391 aix4* | aix5*)
16392   version_type=linux
16393   need_lib_prefix=no
16394   need_version=no
16395   hardcode_into_libs=yes
16396   if test "$host_cpu" = ia64; then
16397     # AIX 5 supports IA64
16398     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16399     shlibpath_var=LD_LIBRARY_PATH
16400   else
16401     # With GCC up to 2.95.x, collect2 would create an import file
16402     # for dependence libraries.  The import file would start with
16403     # the line `#! .'.  This would cause the generated library to
16404     # depend on `.', always an invalid library.  This was fixed in
16405     # development snapshots of GCC prior to 3.0.
16406     case $host_os in
16407       aix4 | aix4.[01] | aix4.[01].*)
16408       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16409            echo ' yes '
16410            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16411         :
16412       else
16413         can_build_shared=no
16414       fi
16415       ;;
16416     esac
16417     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16418     # soname into executable. Probably we can add versioning support to
16419     # collect2, so additional links can be useful in future.
16420     if test "$aix_use_runtimelinking" = yes; then
16421       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16422       # instead of lib<name>.a to let people know that these are not
16423       # typical AIX shared libraries.
16424       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425     else
16426       # We preserve .a as extension for shared libraries through AIX4.2
16427       # and later when we are not doing run time linking.
16428       library_names_spec='${libname}${release}.a $libname.a'
16429       soname_spec='${libname}${release}${shared_ext}$major'
16430     fi
16431     shlibpath_var=LIBPATH
16432   fi
16433   ;;
16434
16435 amigaos*)
16436   library_names_spec='$libname.ixlibrary $libname.a'
16437   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16438   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'
16439   ;;
16440
16441 beos*)
16442   library_names_spec='${libname}${shared_ext}'
16443   dynamic_linker="$host_os ld.so"
16444   shlibpath_var=LIBRARY_PATH
16445   ;;
16446
16447 bsdi4*)
16448   version_type=linux
16449   need_version=no
16450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451   soname_spec='${libname}${release}${shared_ext}$major'
16452   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16453   shlibpath_var=LD_LIBRARY_PATH
16454   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16455   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16456   # the default ld.so.conf also contains /usr/contrib/lib and
16457   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16458   # libtool to hard-code these into programs
16459   ;;
16460
16461 cygwin* | mingw* | pw32*)
16462   version_type=windows
16463   shrext=".dll"
16464   need_version=no
16465   need_lib_prefix=no
16466
16467   case $GCC,$host_os in
16468   yes,cygwin* | yes,mingw* | yes,pw32*)
16469     library_names_spec='$libname.dll.a'
16470     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16471     postinstall_cmds='base_file=`basename \${file}`~
16472       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16473       dldir=$destdir/`dirname \$dlpath`~
16474       test -d \$dldir || mkdir -p \$dldir~
16475       $install_prog $dir/$dlname \$dldir/$dlname'
16476     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16477       dlpath=$dir/\$dldll~
16478        $rm \$dlpath'
16479     shlibpath_overrides_runpath=yes
16480
16481     case $host_os in
16482     cygwin*)
16483       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16484       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16485       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16486       ;;
16487     mingw*)
16488       # MinGW DLLs use traditional 'lib' prefix
16489       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16490       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16491       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16492         # It is most probably a Windows format PATH printed by
16493         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16494         # path with ; separators, and with drive letters. We can handle the
16495         # drive letters (cygwin fileutils understands them), so leave them,
16496         # especially as we might pass files found there to a mingw objdump,
16497         # which wouldn't understand a cygwinified path. Ahh.
16498         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16499       else
16500         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16501       fi
16502       ;;
16503     pw32*)
16504       # pw32 DLLs use 'pw' prefix rather than 'lib'
16505       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16506       ;;
16507     esac
16508     ;;
16509
16510   *)
16511     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16512     ;;
16513   esac
16514   dynamic_linker='Win32 ld.exe'
16515   # FIXME: first we should search . and the directory the executable is in
16516   shlibpath_var=PATH
16517   ;;
16518
16519 darwin* | rhapsody*)
16520   dynamic_linker="$host_os dyld"
16521   version_type=darwin
16522   need_lib_prefix=no
16523   need_version=no
16524   # FIXME: Relying on posixy $() will cause problems for
16525   #        cross-compilation, but unfortunately the echo tests do not
16526   #        yet detect zsh echo's removal of \ escapes.
16527   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16528   soname_spec='${libname}${release}${major}$shared_ext'
16529   shlibpath_overrides_runpath=yes
16530   shlibpath_var=DYLD_LIBRARY_PATH
16531   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16532   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16533   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16534   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"`
16535   fi
16536   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16537   ;;
16538
16539 dgux*)
16540   version_type=linux
16541   need_lib_prefix=no
16542   need_version=no
16543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16544   soname_spec='${libname}${release}${shared_ext}$major'
16545   shlibpath_var=LD_LIBRARY_PATH
16546   ;;
16547
16548 freebsd1*)
16549   dynamic_linker=no
16550   ;;
16551
16552 freebsd*)
16553   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16554   version_type=freebsd-$objformat
16555   case $version_type in
16556     freebsd-elf*)
16557       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16558       need_version=no
16559       need_lib_prefix=no
16560       ;;
16561     freebsd-*)
16562       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16563       need_version=yes
16564       ;;
16565   esac
16566   shlibpath_var=LD_LIBRARY_PATH
16567   case $host_os in
16568   freebsd2*)
16569     shlibpath_overrides_runpath=yes
16570     ;;
16571   freebsd3.01* | freebsdelf3.01*)
16572     shlibpath_overrides_runpath=yes
16573     hardcode_into_libs=yes
16574     ;;
16575   *) # from 3.2 on
16576     shlibpath_overrides_runpath=no
16577     hardcode_into_libs=yes
16578     ;;
16579   esac
16580   ;;
16581
16582 gnu*)
16583   version_type=linux
16584   need_lib_prefix=no
16585   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
16589   hardcode_into_libs=yes
16590   ;;
16591
16592 hpux9* | hpux10* | hpux11*)
16593   # Give a soname corresponding to the major version so that dld.sl refuses to
16594   # link against other versions.
16595   version_type=sunos
16596   need_lib_prefix=no
16597   need_version=no
16598   case "$host_cpu" in
16599   ia64*)
16600     shrext='.so'
16601     hardcode_into_libs=yes
16602     dynamic_linker="$host_os dld.so"
16603     shlibpath_var=LD_LIBRARY_PATH
16604     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606     soname_spec='${libname}${release}${shared_ext}$major'
16607     if test "X$HPUX_IA64_MODE" = X32; then
16608       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16609     else
16610       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16611     fi
16612     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16613     ;;
16614    hppa*64*)
16615      shrext='.sl'
16616      hardcode_into_libs=yes
16617      dynamic_linker="$host_os dld.sl"
16618      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16619      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16620      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16621      soname_spec='${libname}${release}${shared_ext}$major'
16622      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16623      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16624      ;;
16625    *)
16626     shrext='.sl'
16627     dynamic_linker="$host_os dld.sl"
16628     shlibpath_var=SHLIB_PATH
16629     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631     soname_spec='${libname}${release}${shared_ext}$major'
16632     ;;
16633   esac
16634   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16635   postinstall_cmds='chmod 555 $lib'
16636   ;;
16637
16638 irix5* | irix6* | nonstopux*)
16639   case $host_os in
16640     nonstopux*) version_type=nonstopux ;;
16641     *)
16642         if test "$lt_cv_prog_gnu_ld" = yes; then
16643                 version_type=linux
16644         else
16645                 version_type=irix
16646         fi ;;
16647   esac
16648   need_lib_prefix=no
16649   need_version=no
16650   soname_spec='${libname}${release}${shared_ext}$major'
16651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16652   case $host_os in
16653   irix5* | nonstopux*)
16654     libsuff= shlibsuff=
16655     ;;
16656   *)
16657     case $LD in # libtool.m4 will add one of these switches to LD
16658     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16659       libsuff= shlibsuff= libmagic=32-bit;;
16660     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16661       libsuff=32 shlibsuff=N32 libmagic=N32;;
16662     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16663       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16664     *) libsuff= shlibsuff= libmagic=never-match;;
16665     esac
16666     ;;
16667   esac
16668   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16669   shlibpath_overrides_runpath=no
16670   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16671   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16672   hardcode_into_libs=yes
16673   ;;
16674
16675 # No shared lib support for Linux oldld, aout, or coff.
16676 linux*oldld* | linux*aout* | linux*coff*)
16677   dynamic_linker=no
16678   ;;
16679
16680 # This must be Linux ELF.
16681 linux*)
16682   version_type=linux
16683   need_lib_prefix=no
16684   need_version=no
16685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686   soname_spec='${libname}${release}${shared_ext}$major'
16687   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16688   shlibpath_var=LD_LIBRARY_PATH
16689   shlibpath_overrides_runpath=no
16690   # This implies no fast_install, which is unacceptable.
16691   # Some rework will be needed to allow for fast_install
16692   # before this can be enabled.
16693   hardcode_into_libs=yes
16694
16695   # We used to test for /lib/ld.so.1 and disable shared libraries on
16696   # powerpc, because MkLinux only supported shared libraries with the
16697   # GNU dynamic linker.  Since this was broken with cross compilers,
16698   # most powerpc-linux boxes support dynamic linking these days and
16699   # people can always --disable-shared, the test was removed, and we
16700   # assume the GNU/Linux dynamic linker is in use.
16701   dynamic_linker='GNU/Linux ld.so'
16702   ;;
16703
16704 netbsd*)
16705   version_type=sunos
16706   need_lib_prefix=no
16707   need_version=no
16708   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16710     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16711     dynamic_linker='NetBSD (a.out) ld.so'
16712   else
16713     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16714     soname_spec='${libname}${release}${shared_ext}$major'
16715     dynamic_linker='NetBSD ld.elf_so'
16716   fi
16717   shlibpath_var=LD_LIBRARY_PATH
16718   shlibpath_overrides_runpath=yes
16719   hardcode_into_libs=yes
16720   ;;
16721
16722 newsos6)
16723   version_type=linux
16724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725   shlibpath_var=LD_LIBRARY_PATH
16726   shlibpath_overrides_runpath=yes
16727   ;;
16728
16729 nto-qnx)
16730   version_type=linux
16731   need_lib_prefix=no
16732   need_version=no
16733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734   soname_spec='${libname}${release}${shared_ext}$major'
16735   shlibpath_var=LD_LIBRARY_PATH
16736   shlibpath_overrides_runpath=yes
16737   ;;
16738
16739 openbsd*)
16740   version_type=sunos
16741   need_lib_prefix=no
16742   need_version=no
16743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16744   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16745   shlibpath_var=LD_LIBRARY_PATH
16746   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16747     case $host_os in
16748       openbsd2.[89] | openbsd2.[89].*)
16749         shlibpath_overrides_runpath=no
16750         ;;
16751       *)
16752         shlibpath_overrides_runpath=yes
16753         ;;
16754       esac
16755   else
16756     shlibpath_overrides_runpath=yes
16757   fi
16758   ;;
16759
16760 os2*)
16761   libname_spec='$name'
16762   shrext=".dll"
16763   need_lib_prefix=no
16764   library_names_spec='$libname${shared_ext} $libname.a'
16765   dynamic_linker='OS/2 ld.exe'
16766   shlibpath_var=LIBPATH
16767   ;;
16768
16769 osf3* | osf4* | osf5*)
16770   version_type=osf
16771   need_lib_prefix=no
16772   need_version=no
16773   soname_spec='${libname}${release}${shared_ext}$major'
16774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775   shlibpath_var=LD_LIBRARY_PATH
16776   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16777   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16778   ;;
16779
16780 sco3.2v5*)
16781   version_type=osf
16782   soname_spec='${libname}${release}${shared_ext}$major'
16783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16784   shlibpath_var=LD_LIBRARY_PATH
16785   ;;
16786
16787 solaris*)
16788   version_type=linux
16789   need_lib_prefix=no
16790   need_version=no
16791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16792   soname_spec='${libname}${release}${shared_ext}$major'
16793   shlibpath_var=LD_LIBRARY_PATH
16794   shlibpath_overrides_runpath=yes
16795   hardcode_into_libs=yes
16796   # ldd complains unless libraries are executable
16797   postinstall_cmds='chmod +x $lib'
16798   ;;
16799
16800 sunos4*)
16801   version_type=sunos
16802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16803   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16804   shlibpath_var=LD_LIBRARY_PATH
16805   shlibpath_overrides_runpath=yes
16806   if test "$with_gnu_ld" = yes; then
16807     need_lib_prefix=no
16808   fi
16809   need_version=yes
16810   ;;
16811
16812 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16813   version_type=linux
16814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815   soname_spec='${libname}${release}${shared_ext}$major'
16816   shlibpath_var=LD_LIBRARY_PATH
16817   case $host_vendor in
16818     sni)
16819       shlibpath_overrides_runpath=no
16820       need_lib_prefix=no
16821       export_dynamic_flag_spec='${wl}-Blargedynsym'
16822       runpath_var=LD_RUN_PATH
16823       ;;
16824     siemens)
16825       need_lib_prefix=no
16826       ;;
16827     motorola)
16828       need_lib_prefix=no
16829       need_version=no
16830       shlibpath_overrides_runpath=no
16831       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16832       ;;
16833   esac
16834   ;;
16835
16836 sysv4*MP*)
16837   if test -d /usr/nec ;then
16838     version_type=linux
16839     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16840     soname_spec='$libname${shared_ext}.$major'
16841     shlibpath_var=LD_LIBRARY_PATH
16842   fi
16843   ;;
16844
16845 uts4*)
16846   version_type=linux
16847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848   soname_spec='${libname}${release}${shared_ext}$major'
16849   shlibpath_var=LD_LIBRARY_PATH
16850   ;;
16851
16852 *)
16853   dynamic_linker=no
16854   ;;
16855 esac
16856 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16857 echo "${ECHO_T}$dynamic_linker" >&6
16858 test "$dynamic_linker" = no && can_build_shared=no
16859
16860 if test "x$enable_dlopen" != xyes; then
16861   enable_dlopen=unknown
16862   enable_dlopen_self=unknown
16863   enable_dlopen_self_static=unknown
16864 else
16865   lt_cv_dlopen=no
16866   lt_cv_dlopen_libs=
16867
16868   case $host_os in
16869   beos*)
16870     lt_cv_dlopen="load_add_on"
16871     lt_cv_dlopen_libs=
16872     lt_cv_dlopen_self=yes
16873     ;;
16874
16875   mingw* | pw32*)
16876     lt_cv_dlopen="LoadLibrary"
16877     lt_cv_dlopen_libs=
16878    ;;
16879
16880   cygwin*)
16881     lt_cv_dlopen="dlopen"
16882     lt_cv_dlopen_libs=
16883    ;;
16884
16885   darwin*)
16886   # if libdl is installed we need to link against it
16887     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16888 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16890   echo $ECHO_N "(cached) $ECHO_C" >&6
16891 else
16892   ac_check_lib_save_LIBS=$LIBS
16893 LIBS="-ldl  $LIBS"
16894 cat >conftest.$ac_ext <<_ACEOF
16895 #line $LINENO "configure"
16896 /* confdefs.h.  */
16897 _ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h.  */
16901
16902 /* Override any gcc2 internal prototype to avoid an error.  */
16903 #ifdef __cplusplus
16904 extern "C"
16905 #endif
16906 /* We use char because int might match the return type of a gcc2
16907    builtin and then its argument prototype would still apply.  */
16908 char dlopen ();
16909 int
16910 main ()
16911 {
16912 dlopen ();
16913   ;
16914   return 0;
16915 }
16916 _ACEOF
16917 rm -f conftest.$ac_objext conftest$ac_exeext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16919   (eval $ac_link) 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); } &&
16923          { ac_try='test -s conftest$ac_exeext'
16924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925   (eval $ac_try) 2>&5
16926   ac_status=$?
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); }; }; then
16929   ac_cv_lib_dl_dlopen=yes
16930 else
16931   echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16933
16934 ac_cv_lib_dl_dlopen=no
16935 fi
16936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16937 LIBS=$ac_check_lib_save_LIBS
16938 fi
16939 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16941 if test $ac_cv_lib_dl_dlopen = yes; then
16942   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16943 else
16944
16945     lt_cv_dlopen="dyld"
16946     lt_cv_dlopen_libs=
16947     lt_cv_dlopen_self=yes
16948
16949 fi
16950
16951    ;;
16952
16953   *)
16954     echo "$as_me:$LINENO: checking for shl_load" >&5
16955 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16956 if test "${ac_cv_func_shl_load+set}" = set; then
16957   echo $ECHO_N "(cached) $ECHO_C" >&6
16958 else
16959   cat >conftest.$ac_ext <<_ACEOF
16960 #line $LINENO "configure"
16961 /* confdefs.h.  */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h.  */
16966 /* System header to define __stub macros and hopefully few prototypes,
16967     which can conflict with char shl_load (); below.
16968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16969     <limits.h> exists even on freestanding compilers.  */
16970 #ifdef __STDC__
16971 # include <limits.h>
16972 #else
16973 # include <assert.h>
16974 #endif
16975 /* Override any gcc2 internal prototype to avoid an error.  */
16976 #ifdef __cplusplus
16977 extern "C"
16978 {
16979 #endif
16980 /* We use char because int might match the return type of a gcc2
16981    builtin and then its argument prototype would still apply.  */
16982 char shl_load ();
16983 /* The GNU C library defines this for functions which it implements
16984     to always fail with ENOSYS.  Some functions are actually named
16985     something starting with __ and the normal name is an alias.  */
16986 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16987 choke me
16988 #else
16989 char (*f) () = shl_load;
16990 #endif
16991 #ifdef __cplusplus
16992 }
16993 #endif
16994
16995 int
16996 main ()
16997 {
16998 return f != shl_load;
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 rm -f conftest.$ac_objext conftest$ac_exeext
17004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17005   (eval $ac_link) 2>&5
17006   ac_status=$?
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); } &&
17009          { ac_try='test -s conftest$ac_exeext'
17010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011   (eval $ac_try) 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; }; then
17015   ac_cv_func_shl_load=yes
17016 else
17017   echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17019
17020 ac_cv_func_shl_load=no
17021 fi
17022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17023 fi
17024 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17025 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17026 if test $ac_cv_func_shl_load = yes; then
17027   lt_cv_dlopen="shl_load"
17028 else
17029   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17030 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17031 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034   ac_check_lib_save_LIBS=$LIBS
17035 LIBS="-ldld  $LIBS"
17036 cat >conftest.$ac_ext <<_ACEOF
17037 #line $LINENO "configure"
17038 /* confdefs.h.  */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h.  */
17043
17044 /* Override any gcc2 internal prototype to avoid an error.  */
17045 #ifdef __cplusplus
17046 extern "C"
17047 #endif
17048 /* We use char because int might match the return type of a gcc2
17049    builtin and then its argument prototype would still apply.  */
17050 char shl_load ();
17051 int
17052 main ()
17053 {
17054 shl_load ();
17055   ;
17056   return 0;
17057 }
17058 _ACEOF
17059 rm -f conftest.$ac_objext conftest$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061   (eval $ac_link) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); } &&
17065          { ac_try='test -s conftest$ac_exeext'
17066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067   (eval $ac_try) 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071   ac_cv_lib_dld_shl_load=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076 ac_cv_lib_dld_shl_load=no
17077 fi
17078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17079 LIBS=$ac_check_lib_save_LIBS
17080 fi
17081 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17082 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17083 if test $ac_cv_lib_dld_shl_load = yes; then
17084   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17085 else
17086   echo "$as_me:$LINENO: checking for dlopen" >&5
17087 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17088 if test "${ac_cv_func_dlopen+set}" = set; then
17089   echo $ECHO_N "(cached) $ECHO_C" >&6
17090 else
17091   cat >conftest.$ac_ext <<_ACEOF
17092 #line $LINENO "configure"
17093 /* confdefs.h.  */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h.  */
17098 /* System header to define __stub macros and hopefully few prototypes,
17099     which can conflict with char dlopen (); below.
17100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17101     <limits.h> exists even on freestanding compilers.  */
17102 #ifdef __STDC__
17103 # include <limits.h>
17104 #else
17105 # include <assert.h>
17106 #endif
17107 /* Override any gcc2 internal prototype to avoid an error.  */
17108 #ifdef __cplusplus
17109 extern "C"
17110 {
17111 #endif
17112 /* We use char because int might match the return type of a gcc2
17113    builtin and then its argument prototype would still apply.  */
17114 char dlopen ();
17115 /* The GNU C library defines this for functions which it implements
17116     to always fail with ENOSYS.  Some functions are actually named
17117     something starting with __ and the normal name is an alias.  */
17118 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17119 choke me
17120 #else
17121 char (*f) () = dlopen;
17122 #endif
17123 #ifdef __cplusplus
17124 }
17125 #endif
17126
17127 int
17128 main ()
17129 {
17130 return f != dlopen;
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137   (eval $ac_link) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); } &&
17141          { ac_try='test -s conftest$ac_exeext'
17142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143   (eval $ac_try) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   ac_cv_func_dlopen=yes
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152 ac_cv_func_dlopen=no
17153 fi
17154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17155 fi
17156 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17157 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17158 if test $ac_cv_func_dlopen = yes; then
17159   lt_cv_dlopen="dlopen"
17160 else
17161   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17162 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17163 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17164   echo $ECHO_N "(cached) $ECHO_C" >&6
17165 else
17166   ac_check_lib_save_LIBS=$LIBS
17167 LIBS="-ldl  $LIBS"
17168 cat >conftest.$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175
17176 /* Override any gcc2 internal prototype to avoid an error.  */
17177 #ifdef __cplusplus
17178 extern "C"
17179 #endif
17180 /* We use char because int might match the return type of a gcc2
17181    builtin and then its argument prototype would still apply.  */
17182 char dlopen ();
17183 int
17184 main ()
17185 {
17186 dlopen ();
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193   (eval $ac_link) 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); } &&
17197          { ac_try='test -s conftest$ac_exeext'
17198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199   (eval $ac_try) 2>&5
17200   ac_status=$?
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); }; }; then
17203   ac_cv_lib_dl_dlopen=yes
17204 else
17205   echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17207
17208 ac_cv_lib_dl_dlopen=no
17209 fi
17210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17211 LIBS=$ac_check_lib_save_LIBS
17212 fi
17213 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17214 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17215 if test $ac_cv_lib_dl_dlopen = yes; then
17216   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17217 else
17218   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17219 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17220 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17221   echo $ECHO_N "(cached) $ECHO_C" >&6
17222 else
17223   ac_check_lib_save_LIBS=$LIBS
17224 LIBS="-lsvld  $LIBS"
17225 cat >conftest.$ac_ext <<_ACEOF
17226 #line $LINENO "configure"
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232
17233 /* Override any gcc2 internal prototype to avoid an error.  */
17234 #ifdef __cplusplus
17235 extern "C"
17236 #endif
17237 /* We use char because int might match the return type of a gcc2
17238    builtin and then its argument prototype would still apply.  */
17239 char dlopen ();
17240 int
17241 main ()
17242 {
17243 dlopen ();
17244   ;
17245   return 0;
17246 }
17247 _ACEOF
17248 rm -f conftest.$ac_objext conftest$ac_exeext
17249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17250   (eval $ac_link) 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); } &&
17254          { ac_try='test -s conftest$ac_exeext'
17255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256   (eval $ac_try) 2>&5
17257   ac_status=$?
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); }; }; then
17260   ac_cv_lib_svld_dlopen=yes
17261 else
17262   echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17264
17265 ac_cv_lib_svld_dlopen=no
17266 fi
17267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17269 fi
17270 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17271 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17272 if test $ac_cv_lib_svld_dlopen = yes; then
17273   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17274 else
17275   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17276 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17277 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280   ac_check_lib_save_LIBS=$LIBS
17281 LIBS="-ldld  $LIBS"
17282 cat >conftest.$ac_ext <<_ACEOF
17283 #line $LINENO "configure"
17284 /* confdefs.h.  */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h.  */
17289
17290 /* Override any gcc2 internal prototype to avoid an error.  */
17291 #ifdef __cplusplus
17292 extern "C"
17293 #endif
17294 /* We use char because int might match the return type of a gcc2
17295    builtin and then its argument prototype would still apply.  */
17296 char dld_link ();
17297 int
17298 main ()
17299 {
17300 dld_link ();
17301   ;
17302   return 0;
17303 }
17304 _ACEOF
17305 rm -f conftest.$ac_objext conftest$ac_exeext
17306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17307   (eval $ac_link) 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); } &&
17311          { ac_try='test -s conftest$ac_exeext'
17312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313   (eval $ac_try) 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; }; then
17317   ac_cv_lib_dld_dld_link=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322 ac_cv_lib_dld_dld_link=no
17323 fi
17324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17325 LIBS=$ac_check_lib_save_LIBS
17326 fi
17327 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17328 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17329 if test $ac_cv_lib_dld_dld_link = yes; then
17330   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17331 fi
17332
17333
17334 fi
17335
17336
17337 fi
17338
17339
17340 fi
17341
17342
17343 fi
17344
17345
17346 fi
17347
17348     ;;
17349   esac
17350
17351   if test "x$lt_cv_dlopen" != xno; then
17352     enable_dlopen=yes
17353   else
17354     enable_dlopen=no
17355   fi
17356
17357   case $lt_cv_dlopen in
17358   dlopen)
17359     save_CPPFLAGS="$CPPFLAGS"
17360     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17361
17362     save_LDFLAGS="$LDFLAGS"
17363     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17364
17365     save_LIBS="$LIBS"
17366     LIBS="$lt_cv_dlopen_libs $LIBS"
17367
17368     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17369 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17370 if test "${lt_cv_dlopen_self+set}" = set; then
17371   echo $ECHO_N "(cached) $ECHO_C" >&6
17372 else
17373           if test "$cross_compiling" = yes; then :
17374   lt_cv_dlopen_self=cross
17375 else
17376   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17377   lt_status=$lt_dlunknown
17378   cat > conftest.$ac_ext <<EOF
17379 #line 17379 "configure"
17380 #include "confdefs.h"
17381
17382 #if HAVE_DLFCN_H
17383 #include <dlfcn.h>
17384 #endif
17385
17386 #include <stdio.h>
17387
17388 #ifdef RTLD_GLOBAL
17389 #  define LT_DLGLOBAL           RTLD_GLOBAL
17390 #else
17391 #  ifdef DL_GLOBAL
17392 #    define LT_DLGLOBAL         DL_GLOBAL
17393 #  else
17394 #    define LT_DLGLOBAL         0
17395 #  endif
17396 #endif
17397
17398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17399    find out it does not work in some platform. */
17400 #ifndef LT_DLLAZY_OR_NOW
17401 #  ifdef RTLD_LAZY
17402 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17403 #  else
17404 #    ifdef DL_LAZY
17405 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17406 #    else
17407 #      ifdef RTLD_NOW
17408 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17409 #      else
17410 #        ifdef DL_NOW
17411 #          define LT_DLLAZY_OR_NOW      DL_NOW
17412 #        else
17413 #          define LT_DLLAZY_OR_NOW      0
17414 #        endif
17415 #      endif
17416 #    endif
17417 #  endif
17418 #endif
17419
17420 #ifdef __cplusplus
17421 extern "C" void exit (int);
17422 #endif
17423
17424 void fnord() { int i=42;}
17425 int main ()
17426 {
17427   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17428   int status = $lt_dlunknown;
17429
17430   if (self)
17431     {
17432       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17433       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17434       /* dlclose (self); */
17435     }
17436
17437     exit (status);
17438 }
17439 EOF
17440   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17441   (eval $ac_link) 2>&5
17442   ac_status=$?
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17445     (./conftest; exit; ) 2>/dev/null
17446     lt_status=$?
17447     case x$lt_status in
17448       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17449       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17450       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17451     esac
17452   else :
17453     # compilation failed
17454     lt_cv_dlopen_self=no
17455   fi
17456 fi
17457 rm -fr conftest*
17458
17459
17460 fi
17461 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17462 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17463
17464     if test "x$lt_cv_dlopen_self" = xyes; then
17465       LDFLAGS="$LDFLAGS $link_static_flag"
17466       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17467 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17468 if test "${lt_cv_dlopen_self_static+set}" = set; then
17469   echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
17471           if test "$cross_compiling" = yes; then :
17472   lt_cv_dlopen_self_static=cross
17473 else
17474   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17475   lt_status=$lt_dlunknown
17476   cat > conftest.$ac_ext <<EOF
17477 #line 17477 "configure"
17478 #include "confdefs.h"
17479
17480 #if HAVE_DLFCN_H
17481 #include <dlfcn.h>
17482 #endif
17483
17484 #include <stdio.h>
17485
17486 #ifdef RTLD_GLOBAL
17487 #  define LT_DLGLOBAL           RTLD_GLOBAL
17488 #else
17489 #  ifdef DL_GLOBAL
17490 #    define LT_DLGLOBAL         DL_GLOBAL
17491 #  else
17492 #    define LT_DLGLOBAL         0
17493 #  endif
17494 #endif
17495
17496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17497    find out it does not work in some platform. */
17498 #ifndef LT_DLLAZY_OR_NOW
17499 #  ifdef RTLD_LAZY
17500 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17501 #  else
17502 #    ifdef DL_LAZY
17503 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17504 #    else
17505 #      ifdef RTLD_NOW
17506 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17507 #      else
17508 #        ifdef DL_NOW
17509 #          define LT_DLLAZY_OR_NOW      DL_NOW
17510 #        else
17511 #          define LT_DLLAZY_OR_NOW      0
17512 #        endif
17513 #      endif
17514 #    endif
17515 #  endif
17516 #endif
17517
17518 #ifdef __cplusplus
17519 extern "C" void exit (int);
17520 #endif
17521
17522 void fnord() { int i=42;}
17523 int main ()
17524 {
17525   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17526   int status = $lt_dlunknown;
17527
17528   if (self)
17529     {
17530       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17531       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17532       /* dlclose (self); */
17533     }
17534
17535     exit (status);
17536 }
17537 EOF
17538   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17539   (eval $ac_link) 2>&5
17540   ac_status=$?
17541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17543     (./conftest; exit; ) 2>/dev/null
17544     lt_status=$?
17545     case x$lt_status in
17546       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17547       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17548       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17549     esac
17550   else :
17551     # compilation failed
17552     lt_cv_dlopen_self_static=no
17553   fi
17554 fi
17555 rm -fr conftest*
17556
17557
17558 fi
17559 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17560 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17561     fi
17562
17563     CPPFLAGS="$save_CPPFLAGS"
17564     LDFLAGS="$save_LDFLAGS"
17565     LIBS="$save_LIBS"
17566     ;;
17567   esac
17568
17569   case $lt_cv_dlopen_self in
17570   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17571   *) enable_dlopen_self=unknown ;;
17572   esac
17573
17574   case $lt_cv_dlopen_self_static in
17575   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17576   *) enable_dlopen_self_static=unknown ;;
17577   esac
17578 fi
17579
17580
17581 # The else clause should only fire when bootstrapping the
17582 # libtool distribution, otherwise you forgot to ship ltmain.sh
17583 # with your package, and you will get complaints that there are
17584 # no rules to generate ltmain.sh.
17585 if test -f "$ltmain"; then
17586   # See if we are running on zsh, and set the options which allow our commands through
17587   # without removal of \ escapes.
17588   if test -n "${ZSH_VERSION+set}" ; then
17589     setopt NO_GLOB_SUBST
17590   fi
17591   # Now quote all the things that may contain metacharacters while being
17592   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17593   # variables and quote the copies for generation of the libtool script.
17594   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17595     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17596     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17597     deplibs_check_method reload_flag reload_cmds need_locks \
17598     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17599     lt_cv_sys_global_symbol_to_c_name_address \
17600     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17601     old_postinstall_cmds old_postuninstall_cmds \
17602     compiler_GCJ \
17603     CC_GCJ \
17604     LD_GCJ \
17605     lt_prog_compiler_wl_GCJ \
17606     lt_prog_compiler_pic_GCJ \
17607     lt_prog_compiler_static_GCJ \
17608     lt_prog_compiler_no_builtin_flag_GCJ \
17609     export_dynamic_flag_spec_GCJ \
17610     thread_safe_flag_spec_GCJ \
17611     whole_archive_flag_spec_GCJ \
17612     enable_shared_with_static_runtimes_GCJ \
17613     old_archive_cmds_GCJ \
17614     old_archive_from_new_cmds_GCJ \
17615     predep_objects_GCJ \
17616     postdep_objects_GCJ \
17617     predeps_GCJ \
17618     postdeps_GCJ \
17619     compiler_lib_search_path_GCJ \
17620     archive_cmds_GCJ \
17621     archive_expsym_cmds_GCJ \
17622     postinstall_cmds_GCJ \
17623     postuninstall_cmds_GCJ \
17624     old_archive_from_expsyms_cmds_GCJ \
17625     allow_undefined_flag_GCJ \
17626     no_undefined_flag_GCJ \
17627     export_symbols_cmds_GCJ \
17628     hardcode_libdir_flag_spec_GCJ \
17629     hardcode_libdir_flag_spec_ld_GCJ \
17630     hardcode_libdir_separator_GCJ \
17631     hardcode_automatic_GCJ \
17632     module_cmds_GCJ \
17633     module_expsym_cmds_GCJ \
17634     lt_cv_prog_compiler_c_o_GCJ \
17635     exclude_expsyms_GCJ \
17636     include_expsyms_GCJ; do
17637
17638     case $var in
17639     old_archive_cmds_GCJ | \
17640     old_archive_from_new_cmds_GCJ | \
17641     archive_cmds_GCJ | \
17642     archive_expsym_cmds_GCJ | \
17643     module_cmds_GCJ | \
17644     module_expsym_cmds_GCJ | \
17645     old_archive_from_expsyms_cmds_GCJ | \
17646     export_symbols_cmds_GCJ | \
17647     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17648     postinstall_cmds | postuninstall_cmds | \
17649     old_postinstall_cmds | old_postuninstall_cmds | \
17650     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17651       # Double-quote double-evaled strings.
17652       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17653       ;;
17654     *)
17655       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17656       ;;
17657     esac
17658   done
17659
17660   case $lt_echo in
17661   *'\$0 --fallback-echo"')
17662     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17663     ;;
17664   esac
17665
17666 cfgfile="$ofile"
17667
17668   cat <<__EOF__ >> "$cfgfile"
17669 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17670
17671 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17672
17673 # Shell to use when invoking shell scripts.
17674 SHELL=$lt_SHELL
17675
17676 # Whether or not to build shared libraries.
17677 build_libtool_libs=$enable_shared
17678
17679 # Whether or not to build static libraries.
17680 build_old_libs=$enable_static
17681
17682 # Whether or not to add -lc for building shared libraries.
17683 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17684
17685 # Whether or not to disallow shared libs when runtime libs are static
17686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17687
17688 # Whether or not to optimize for fast installation.
17689 fast_install=$enable_fast_install
17690
17691 # The host system.
17692 host_alias=$host_alias
17693 host=$host
17694
17695 # An echo program that does not interpret backslashes.
17696 echo=$lt_echo
17697
17698 # The archiver.
17699 AR=$lt_AR
17700 AR_FLAGS=$lt_AR_FLAGS
17701
17702 # A C compiler.
17703 LTCC=$lt_LTCC
17704
17705 # A language-specific compiler.
17706 CC=$lt_compiler_GCJ
17707
17708 # Is the compiler the GNU C compiler?
17709 with_gcc=$GCC_GCJ
17710
17711 # An ERE matcher.
17712 EGREP=$lt_EGREP
17713
17714 # The linker used to build libraries.
17715 LD=$lt_LD_GCJ
17716
17717 # Whether we need hard or soft links.
17718 LN_S=$lt_LN_S
17719
17720 # A BSD-compatible nm program.
17721 NM=$lt_NM
17722
17723 # A symbol stripping program
17724 STRIP=$STRIP
17725
17726 # Used to examine libraries when file_magic_cmd begins "file"
17727 MAGIC_CMD=$MAGIC_CMD
17728
17729 # Used on cygwin: DLL creation program.
17730 DLLTOOL="$DLLTOOL"
17731
17732 # Used on cygwin: object dumper.
17733 OBJDUMP="$OBJDUMP"
17734
17735 # Used on cygwin: assembler.
17736 AS="$AS"
17737
17738 # The name of the directory that contains temporary libtool files.
17739 objdir=$objdir
17740
17741 # How to create reloadable object files.
17742 reload_flag=$lt_reload_flag
17743 reload_cmds=$lt_reload_cmds
17744
17745 # How to pass a linker flag through the compiler.
17746 wl=$lt_lt_prog_compiler_wl_GCJ
17747
17748 # Object file suffix (normally "o").
17749 objext="$ac_objext"
17750
17751 # Old archive suffix (normally "a").
17752 libext="$libext"
17753
17754 # Shared library suffix (normally ".so").
17755 shrext='$shrext'
17756
17757 # Executable file suffix (normally "").
17758 exeext="$exeext"
17759
17760 # Additional compiler flags for building library objects.
17761 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17762 pic_mode=$pic_mode
17763
17764 # What is the maximum length of a command?
17765 max_cmd_len=$lt_cv_sys_max_cmd_len
17766
17767 # Does compiler simultaneously support -c and -o options?
17768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17769
17770 # Must we lock files when doing compilation ?
17771 need_locks=$lt_need_locks
17772
17773 # Do we need the lib prefix for modules?
17774 need_lib_prefix=$need_lib_prefix
17775
17776 # Do we need a version for libraries?
17777 need_version=$need_version
17778
17779 # Whether dlopen is supported.
17780 dlopen_support=$enable_dlopen
17781
17782 # Whether dlopen of programs is supported.
17783 dlopen_self=$enable_dlopen_self
17784
17785 # Whether dlopen of statically linked programs is supported.
17786 dlopen_self_static=$enable_dlopen_self_static
17787
17788 # Compiler flag to prevent dynamic linking.
17789 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17790
17791 # Compiler flag to turn off builtin functions.
17792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17793
17794 # Compiler flag to allow reflexive dlopens.
17795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17796
17797 # Compiler flag to generate shared objects directly from archives.
17798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17799
17800 # Compiler flag to generate thread-safe objects.
17801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17802
17803 # Library versioning type.
17804 version_type=$version_type
17805
17806 # Format of library name prefix.
17807 libname_spec=$lt_libname_spec
17808
17809 # List of archive names.  First name is the real one, the rest are links.
17810 # The last name is the one that the linker finds with -lNAME.
17811 library_names_spec=$lt_library_names_spec
17812
17813 # The coded name of the library, if different from the real name.
17814 soname_spec=$lt_soname_spec
17815
17816 # Commands used to build and install an old-style archive.
17817 RANLIB=$lt_RANLIB
17818 old_archive_cmds=$lt_old_archive_cmds_GCJ
17819 old_postinstall_cmds=$lt_old_postinstall_cmds
17820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17821
17822 # Create an old-style archive from a shared archive.
17823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17824
17825 # Create a temporary old-style archive to link instead of a shared archive.
17826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17827
17828 # Commands used to build and install a shared archive.
17829 archive_cmds=$lt_archive_cmds_GCJ
17830 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17831 postinstall_cmds=$lt_postinstall_cmds
17832 postuninstall_cmds=$lt_postuninstall_cmds
17833
17834 # Commands used to build a loadable module (assumed same as above if empty)
17835 module_cmds=$lt_module_cmds_GCJ
17836 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17837
17838 # Commands to strip libraries.
17839 old_striplib=$lt_old_striplib
17840 striplib=$lt_striplib
17841
17842 # Dependencies to place before the objects being linked to create a
17843 # shared library.
17844 predep_objects=$lt_predep_objects_GCJ
17845
17846 # Dependencies to place after the objects being linked to create a
17847 # shared library.
17848 postdep_objects=$lt_postdep_objects_GCJ
17849
17850 # Dependencies to place before the objects being linked to create a
17851 # shared library.
17852 predeps=$lt_predeps_GCJ
17853
17854 # Dependencies to place after the objects being linked to create a
17855 # shared library.
17856 postdeps=$lt_postdeps_GCJ
17857
17858 # The library search path used internally by the compiler when linking
17859 # a shared library.
17860 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17861
17862 # Method to check whether dependent libraries are shared objects.
17863 deplibs_check_method=$lt_deplibs_check_method
17864
17865 # Command to use when deplibs_check_method == file_magic.
17866 file_magic_cmd=$lt_file_magic_cmd
17867
17868 # Flag that allows shared libraries with undefined symbols to be built.
17869 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17870
17871 # Flag that forces no undefined symbols.
17872 no_undefined_flag=$lt_no_undefined_flag_GCJ
17873
17874 # Commands used to finish a libtool library installation in a directory.
17875 finish_cmds=$lt_finish_cmds
17876
17877 # Same as above, but a single script fragment to be evaled but not shown.
17878 finish_eval=$lt_finish_eval
17879
17880 # Take the output of nm and produce a listing of raw symbols and C names.
17881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17882
17883 # Transform the output of nm in a proper C declaration
17884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17885
17886 # Transform the output of nm in a C name address pair
17887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17888
17889 # This is the shared library runtime path variable.
17890 runpath_var=$runpath_var
17891
17892 # This is the shared library path variable.
17893 shlibpath_var=$shlibpath_var
17894
17895 # Is shlibpath searched before the hard-coded library search path?
17896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17897
17898 # How to hardcode a shared library path into an executable.
17899 hardcode_action=$hardcode_action_GCJ
17900
17901 # Whether we should hardcode library paths into libraries.
17902 hardcode_into_libs=$hardcode_into_libs
17903
17904 # Flag to hardcode \$libdir into a binary during linking.
17905 # This must work even if \$libdir does not exist.
17906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17907
17908 # If ld is used when linking, flag to hardcode \$libdir into
17909 # a binary during linking. This must work even if \$libdir does
17910 # not exist.
17911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17912
17913 # Whether we need a single -rpath flag with a separated argument.
17914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17915
17916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17917 # resulting binary.
17918 hardcode_direct=$hardcode_direct_GCJ
17919
17920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17921 # resulting binary.
17922 hardcode_minus_L=$hardcode_minus_L_GCJ
17923
17924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17925 # the resulting binary.
17926 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17927
17928 # Set to yes if building a shared library automatically hardcodes DIR into the library
17929 # and all subsequent libraries and executables linked against it.
17930 hardcode_automatic=$hardcode_automatic_GCJ
17931
17932 # Variables whose values should be saved in libtool wrapper scripts and
17933 # restored at relink time.
17934 variables_saved_for_relink="$variables_saved_for_relink"
17935
17936 # Whether libtool must link a program against all its dependency libraries.
17937 link_all_deplibs=$link_all_deplibs_GCJ
17938
17939 # Compile-time system search path for libraries
17940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17941
17942 # Run-time system search path for libraries
17943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17944
17945 # Fix the shell variable \$srcfile for the compiler.
17946 fix_srcfile_path="$fix_srcfile_path_GCJ"
17947
17948 # Set to yes if exported symbols are required.
17949 always_export_symbols=$always_export_symbols_GCJ
17950
17951 # The commands to list exported symbols.
17952 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17953
17954 # The commands to extract the exported symbol list from a shared archive.
17955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17956
17957 # Symbols that should not be listed in the preloaded symbols.
17958 exclude_expsyms=$lt_exclude_expsyms_GCJ
17959
17960 # Symbols that must always be exported.
17961 include_expsyms=$lt_include_expsyms_GCJ
17962
17963 # ### END LIBTOOL TAG CONFIG: $tagname
17964
17965 __EOF__
17966
17967
17968 else
17969   # If there is no Makefile yet, we rely on a make rule to execute
17970   # `config.status --recheck' to rerun these tests and create the
17971   # libtool script then.
17972   test -f Makefile && make "$ltmain"
17973 fi
17974
17975
17976 ac_ext=c
17977 ac_cpp='$CPP $CPPFLAGS'
17978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17981
17982 CC="$lt_save_CC"
17983
17984         else
17985           tagname=""
17986         fi
17987         ;;
17988
17989       RC)
17990
17991
17992
17993 # Source file extension for RC test sources.
17994 ac_ext=rc
17995
17996 # Object file extension for compiled RC test sources.
17997 objext=o
17998 objext_RC=$objext
17999
18000 # Code to be used in simple compile tests
18001 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18002
18003 # Code to be used in simple link tests
18004 lt_simple_link_test_code="$lt_simple_compile_test_code"
18005
18006 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18007
18008 # If no C compiler was specified, use CC.
18009 LTCC=${LTCC-"$CC"}
18010
18011 # Allow CC to be a program name with arguments.
18012 compiler=$CC
18013
18014
18015 # Allow CC to be a program name with arguments.
18016 lt_save_CC="$CC"
18017 CC=${RC-"windres"}
18018 compiler=$CC
18019 compiler_RC=$CC
18020 lt_cv_prog_compiler_c_o_RC=yes
18021
18022 # The else clause should only fire when bootstrapping the
18023 # libtool distribution, otherwise you forgot to ship ltmain.sh
18024 # with your package, and you will get complaints that there are
18025 # no rules to generate ltmain.sh.
18026 if test -f "$ltmain"; then
18027   # See if we are running on zsh, and set the options which allow our commands through
18028   # without removal of \ escapes.
18029   if test -n "${ZSH_VERSION+set}" ; then
18030     setopt NO_GLOB_SUBST
18031   fi
18032   # Now quote all the things that may contain metacharacters while being
18033   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18034   # variables and quote the copies for generation of the libtool script.
18035   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18036     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18037     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18038     deplibs_check_method reload_flag reload_cmds need_locks \
18039     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18040     lt_cv_sys_global_symbol_to_c_name_address \
18041     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18042     old_postinstall_cmds old_postuninstall_cmds \
18043     compiler_RC \
18044     CC_RC \
18045     LD_RC \
18046     lt_prog_compiler_wl_RC \
18047     lt_prog_compiler_pic_RC \
18048     lt_prog_compiler_static_RC \
18049     lt_prog_compiler_no_builtin_flag_RC \
18050     export_dynamic_flag_spec_RC \
18051     thread_safe_flag_spec_RC \
18052     whole_archive_flag_spec_RC \
18053     enable_shared_with_static_runtimes_RC \
18054     old_archive_cmds_RC \
18055     old_archive_from_new_cmds_RC \
18056     predep_objects_RC \
18057     postdep_objects_RC \
18058     predeps_RC \
18059     postdeps_RC \
18060     compiler_lib_search_path_RC \
18061     archive_cmds_RC \
18062     archive_expsym_cmds_RC \
18063     postinstall_cmds_RC \
18064     postuninstall_cmds_RC \
18065     old_archive_from_expsyms_cmds_RC \
18066     allow_undefined_flag_RC \
18067     no_undefined_flag_RC \
18068     export_symbols_cmds_RC \
18069     hardcode_libdir_flag_spec_RC \
18070     hardcode_libdir_flag_spec_ld_RC \
18071     hardcode_libdir_separator_RC \
18072     hardcode_automatic_RC \
18073     module_cmds_RC \
18074     module_expsym_cmds_RC \
18075     lt_cv_prog_compiler_c_o_RC \
18076     exclude_expsyms_RC \
18077     include_expsyms_RC; do
18078
18079     case $var in
18080     old_archive_cmds_RC | \
18081     old_archive_from_new_cmds_RC | \
18082     archive_cmds_RC | \
18083     archive_expsym_cmds_RC | \
18084     module_cmds_RC | \
18085     module_expsym_cmds_RC | \
18086     old_archive_from_expsyms_cmds_RC | \
18087     export_symbols_cmds_RC | \
18088     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18089     postinstall_cmds | postuninstall_cmds | \
18090     old_postinstall_cmds | old_postuninstall_cmds | \
18091     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18092       # Double-quote double-evaled strings.
18093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18094       ;;
18095     *)
18096       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18097       ;;
18098     esac
18099   done
18100
18101   case $lt_echo in
18102   *'\$0 --fallback-echo"')
18103     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18104     ;;
18105   esac
18106
18107 cfgfile="$ofile"
18108
18109   cat <<__EOF__ >> "$cfgfile"
18110 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18111
18112 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18113
18114 # Shell to use when invoking shell scripts.
18115 SHELL=$lt_SHELL
18116
18117 # Whether or not to build shared libraries.
18118 build_libtool_libs=$enable_shared
18119
18120 # Whether or not to build static libraries.
18121 build_old_libs=$enable_static
18122
18123 # Whether or not to add -lc for building shared libraries.
18124 build_libtool_need_lc=$archive_cmds_need_lc_RC
18125
18126 # Whether or not to disallow shared libs when runtime libs are static
18127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18128
18129 # Whether or not to optimize for fast installation.
18130 fast_install=$enable_fast_install
18131
18132 # The host system.
18133 host_alias=$host_alias
18134 host=$host
18135
18136 # An echo program that does not interpret backslashes.
18137 echo=$lt_echo
18138
18139 # The archiver.
18140 AR=$lt_AR
18141 AR_FLAGS=$lt_AR_FLAGS
18142
18143 # A C compiler.
18144 LTCC=$lt_LTCC
18145
18146 # A language-specific compiler.
18147 CC=$lt_compiler_RC
18148
18149 # Is the compiler the GNU C compiler?
18150 with_gcc=$GCC_RC
18151
18152 # An ERE matcher.
18153 EGREP=$lt_EGREP
18154
18155 # The linker used to build libraries.
18156 LD=$lt_LD_RC
18157
18158 # Whether we need hard or soft links.
18159 LN_S=$lt_LN_S
18160
18161 # A BSD-compatible nm program.
18162 NM=$lt_NM
18163
18164 # A symbol stripping program
18165 STRIP=$STRIP
18166
18167 # Used to examine libraries when file_magic_cmd begins "file"
18168 MAGIC_CMD=$MAGIC_CMD
18169
18170 # Used on cygwin: DLL creation program.
18171 DLLTOOL="$DLLTOOL"
18172
18173 # Used on cygwin: object dumper.
18174 OBJDUMP="$OBJDUMP"
18175
18176 # Used on cygwin: assembler.
18177 AS="$AS"
18178
18179 # The name of the directory that contains temporary libtool files.
18180 objdir=$objdir
18181
18182 # How to create reloadable object files.
18183 reload_flag=$lt_reload_flag
18184 reload_cmds=$lt_reload_cmds
18185
18186 # How to pass a linker flag through the compiler.
18187 wl=$lt_lt_prog_compiler_wl_RC
18188
18189 # Object file suffix (normally "o").
18190 objext="$ac_objext"
18191
18192 # Old archive suffix (normally "a").
18193 libext="$libext"
18194
18195 # Shared library suffix (normally ".so").
18196 shrext='$shrext'
18197
18198 # Executable file suffix (normally "").
18199 exeext="$exeext"
18200
18201 # Additional compiler flags for building library objects.
18202 pic_flag=$lt_lt_prog_compiler_pic_RC
18203 pic_mode=$pic_mode
18204
18205 # What is the maximum length of a command?
18206 max_cmd_len=$lt_cv_sys_max_cmd_len
18207
18208 # Does compiler simultaneously support -c and -o options?
18209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18210
18211 # Must we lock files when doing compilation ?
18212 need_locks=$lt_need_locks
18213
18214 # Do we need the lib prefix for modules?
18215 need_lib_prefix=$need_lib_prefix
18216
18217 # Do we need a version for libraries?
18218 need_version=$need_version
18219
18220 # Whether dlopen is supported.
18221 dlopen_support=$enable_dlopen
18222
18223 # Whether dlopen of programs is supported.
18224 dlopen_self=$enable_dlopen_self
18225
18226 # Whether dlopen of statically linked programs is supported.
18227 dlopen_self_static=$enable_dlopen_self_static
18228
18229 # Compiler flag to prevent dynamic linking.
18230 link_static_flag=$lt_lt_prog_compiler_static_RC
18231
18232 # Compiler flag to turn off builtin functions.
18233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18234
18235 # Compiler flag to allow reflexive dlopens.
18236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18237
18238 # Compiler flag to generate shared objects directly from archives.
18239 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18240
18241 # Compiler flag to generate thread-safe objects.
18242 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18243
18244 # Library versioning type.
18245 version_type=$version_type
18246
18247 # Format of library name prefix.
18248 libname_spec=$lt_libname_spec
18249
18250 # List of archive names.  First name is the real one, the rest are links.
18251 # The last name is the one that the linker finds with -lNAME.
18252 library_names_spec=$lt_library_names_spec
18253
18254 # The coded name of the library, if different from the real name.
18255 soname_spec=$lt_soname_spec
18256
18257 # Commands used to build and install an old-style archive.
18258 RANLIB=$lt_RANLIB
18259 old_archive_cmds=$lt_old_archive_cmds_RC
18260 old_postinstall_cmds=$lt_old_postinstall_cmds
18261 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18262
18263 # Create an old-style archive from a shared archive.
18264 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18265
18266 # Create a temporary old-style archive to link instead of a shared archive.
18267 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18268
18269 # Commands used to build and install a shared archive.
18270 archive_cmds=$lt_archive_cmds_RC
18271 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18272 postinstall_cmds=$lt_postinstall_cmds
18273 postuninstall_cmds=$lt_postuninstall_cmds
18274
18275 # Commands used to build a loadable module (assumed same as above if empty)
18276 module_cmds=$lt_module_cmds_RC
18277 module_expsym_cmds=$lt_module_expsym_cmds_RC
18278
18279 # Commands to strip libraries.
18280 old_striplib=$lt_old_striplib
18281 striplib=$lt_striplib
18282
18283 # Dependencies to place before the objects being linked to create a
18284 # shared library.
18285 predep_objects=$lt_predep_objects_RC
18286
18287 # Dependencies to place after the objects being linked to create a
18288 # shared library.
18289 postdep_objects=$lt_postdep_objects_RC
18290
18291 # Dependencies to place before the objects being linked to create a
18292 # shared library.
18293 predeps=$lt_predeps_RC
18294
18295 # Dependencies to place after the objects being linked to create a
18296 # shared library.
18297 postdeps=$lt_postdeps_RC
18298
18299 # The library search path used internally by the compiler when linking
18300 # a shared library.
18301 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18302
18303 # Method to check whether dependent libraries are shared objects.
18304 deplibs_check_method=$lt_deplibs_check_method
18305
18306 # Command to use when deplibs_check_method == file_magic.
18307 file_magic_cmd=$lt_file_magic_cmd
18308
18309 # Flag that allows shared libraries with undefined symbols to be built.
18310 allow_undefined_flag=$lt_allow_undefined_flag_RC
18311
18312 # Flag that forces no undefined symbols.
18313 no_undefined_flag=$lt_no_undefined_flag_RC
18314
18315 # Commands used to finish a libtool library installation in a directory.
18316 finish_cmds=$lt_finish_cmds
18317
18318 # Same as above, but a single script fragment to be evaled but not shown.
18319 finish_eval=$lt_finish_eval
18320
18321 # Take the output of nm and produce a listing of raw symbols and C names.
18322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18323
18324 # Transform the output of nm in a proper C declaration
18325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18326
18327 # Transform the output of nm in a C name address pair
18328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18329
18330 # This is the shared library runtime path variable.
18331 runpath_var=$runpath_var
18332
18333 # This is the shared library path variable.
18334 shlibpath_var=$shlibpath_var
18335
18336 # Is shlibpath searched before the hard-coded library search path?
18337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18338
18339 # How to hardcode a shared library path into an executable.
18340 hardcode_action=$hardcode_action_RC
18341
18342 # Whether we should hardcode library paths into libraries.
18343 hardcode_into_libs=$hardcode_into_libs
18344
18345 # Flag to hardcode \$libdir into a binary during linking.
18346 # This must work even if \$libdir does not exist.
18347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18348
18349 # If ld is used when linking, flag to hardcode \$libdir into
18350 # a binary during linking. This must work even if \$libdir does
18351 # not exist.
18352 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18353
18354 # Whether we need a single -rpath flag with a separated argument.
18355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18356
18357 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18358 # resulting binary.
18359 hardcode_direct=$hardcode_direct_RC
18360
18361 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18362 # resulting binary.
18363 hardcode_minus_L=$hardcode_minus_L_RC
18364
18365 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18366 # the resulting binary.
18367 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18368
18369 # Set to yes if building a shared library automatically hardcodes DIR into the library
18370 # and all subsequent libraries and executables linked against it.
18371 hardcode_automatic=$hardcode_automatic_RC
18372
18373 # Variables whose values should be saved in libtool wrapper scripts and
18374 # restored at relink time.
18375 variables_saved_for_relink="$variables_saved_for_relink"
18376
18377 # Whether libtool must link a program against all its dependency libraries.
18378 link_all_deplibs=$link_all_deplibs_RC
18379
18380 # Compile-time system search path for libraries
18381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18382
18383 # Run-time system search path for libraries
18384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18385
18386 # Fix the shell variable \$srcfile for the compiler.
18387 fix_srcfile_path="$fix_srcfile_path_RC"
18388
18389 # Set to yes if exported symbols are required.
18390 always_export_symbols=$always_export_symbols_RC
18391
18392 # The commands to list exported symbols.
18393 export_symbols_cmds=$lt_export_symbols_cmds_RC
18394
18395 # The commands to extract the exported symbol list from a shared archive.
18396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18397
18398 # Symbols that should not be listed in the preloaded symbols.
18399 exclude_expsyms=$lt_exclude_expsyms_RC
18400
18401 # Symbols that must always be exported.
18402 include_expsyms=$lt_include_expsyms_RC
18403
18404 # ### END LIBTOOL TAG CONFIG: $tagname
18405
18406 __EOF__
18407
18408
18409 else
18410   # If there is no Makefile yet, we rely on a make rule to execute
18411   # `config.status --recheck' to rerun these tests and create the
18412   # libtool script then.
18413   test -f Makefile && make "$ltmain"
18414 fi
18415
18416
18417 ac_ext=c
18418 ac_cpp='$CPP $CPPFLAGS'
18419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18422
18423 CC="$lt_save_CC"
18424
18425         ;;
18426
18427       *)
18428         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18429 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18430    { (exit 1); exit 1; }; }
18431         ;;
18432       esac
18433
18434       # Append the new tag name to the list of available tags.
18435       if test -n "$tagname" ; then
18436       available_tags="$available_tags $tagname"
18437     fi
18438     fi
18439   done
18440   IFS="$lt_save_ifs"
18441
18442   # Now substitute the updated list of available tags.
18443   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18444     mv "${ofile}T" "$ofile"
18445     chmod +x "$ofile"
18446   else
18447     rm -f "${ofile}T"
18448     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18449 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18450    { (exit 1); exit 1; }; }
18451   fi
18452 fi
18453
18454
18455
18456 # This can be used to rebuild libtool when needed
18457 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18458
18459 # Always use our own libtool.
18460 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18461
18462 # Prevent multiple expansion
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484 # Extract the first word of "pwd", so it can be a program name with args.
18485 set dummy pwd; ac_word=$2
18486 echo "$as_me:$LINENO: checking for $ac_word" >&5
18487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18488 if test "${ac_cv_path_RPWD+set}" = set; then
18489   echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491   case $RPWD in
18492   [\\/]* | ?:[\\/]*)
18493   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18494   ;;
18495   *)
18496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497 for as_dir in $PATH
18498 do
18499   IFS=$as_save_IFS
18500   test -z "$as_dir" && as_dir=.
18501   for ac_exec_ext in '' $ac_executable_extensions; do
18502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18503     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18505     break 2
18506   fi
18507 done
18508 done
18509
18510   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18511   ;;
18512 esac
18513 fi
18514 RPWD=$ac_cv_path_RPWD
18515
18516 if test -n "$RPWD"; then
18517   echo "$as_me:$LINENO: result: $RPWD" >&5
18518 echo "${ECHO_T}$RPWD" >&6
18519 else
18520   echo "$as_me:$LINENO: result: no" >&5
18521 echo "${ECHO_T}no" >&6
18522 fi
18523
18524 if test ${RPWD} = "false"
18525 then
18526         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18527 echo "$as_me: error: pwd required but not found" >&2;}
18528    { (exit 1); exit 1; }; }
18529 fi
18530
18531 # Extract the first word of "ar", so it can be a program name with args.
18532 set dummy ar; ac_word=$2
18533 echo "$as_me:$LINENO: checking for $ac_word" >&5
18534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18535 if test "${ac_cv_path_AR+set}" = set; then
18536   echo $ECHO_N "(cached) $ECHO_C" >&6
18537 else
18538   case $AR in
18539   [\\/]* | ?:[\\/]*)
18540   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18541   ;;
18542   *)
18543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18544 for as_dir in $PATH
18545 do
18546   IFS=$as_save_IFS
18547   test -z "$as_dir" && as_dir=.
18548   for ac_exec_ext in '' $ac_executable_extensions; do
18549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18550     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18552     break 2
18553   fi
18554 done
18555 done
18556
18557   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18558   ;;
18559 esac
18560 fi
18561 AR=$ac_cv_path_AR
18562
18563 if test -n "$AR"; then
18564   echo "$as_me:$LINENO: result: $AR" >&5
18565 echo "${ECHO_T}$AR" >&6
18566 else
18567   echo "$as_me:$LINENO: result: no" >&5
18568 echo "${ECHO_T}no" >&6
18569 fi
18570
18571 if test ${AR} = "false"
18572 then
18573         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18574 echo "$as_me: error: ar required but not found" >&2;}
18575    { (exit 1); exit 1; }; }
18576 fi
18577
18578 # Extract the first word of "sed", so it can be a program name with args.
18579 set dummy sed; ac_word=$2
18580 echo "$as_me:$LINENO: checking for $ac_word" >&5
18581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18582 if test "${ac_cv_path_SED+set}" = set; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   case $SED in
18586   [\\/]* | ?:[\\/]*)
18587   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18588   ;;
18589   *)
18590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18591 for as_dir in $PATH
18592 do
18593   IFS=$as_save_IFS
18594   test -z "$as_dir" && as_dir=.
18595   for ac_exec_ext in '' $ac_executable_extensions; do
18596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18597     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18599     break 2
18600   fi
18601 done
18602 done
18603
18604   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18605   ;;
18606 esac
18607 fi
18608 SED=$ac_cv_path_SED
18609
18610 if test -n "$SED"; then
18611   echo "$as_me:$LINENO: result: $SED" >&5
18612 echo "${ECHO_T}$SED" >&6
18613 else
18614   echo "$as_me:$LINENO: result: no" >&5
18615 echo "${ECHO_T}no" >&6
18616 fi
18617
18618 if test ${SED} = "false"
18619 then
18620         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18621 echo "$as_me: error: sed required but not found" >&2;}
18622    { (exit 1); exit 1; }; }
18623 fi
18624
18625 # Extract the first word of "rm", so it can be a program name with args.
18626 set dummy rm; ac_word=$2
18627 echo "$as_me:$LINENO: checking for $ac_word" >&5
18628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18629 if test "${ac_cv_path_RM+set}" = set; then
18630   echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632   case $RM in
18633   [\\/]* | ?:[\\/]*)
18634   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18635   ;;
18636   *)
18637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18638 for as_dir in $PATH
18639 do
18640   IFS=$as_save_IFS
18641   test -z "$as_dir" && as_dir=.
18642   for ac_exec_ext in '' $ac_executable_extensions; do
18643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18644     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18646     break 2
18647   fi
18648 done
18649 done
18650
18651   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18652   ;;
18653 esac
18654 fi
18655 RM=$ac_cv_path_RM
18656
18657 if test -n "$RM"; then
18658   echo "$as_me:$LINENO: result: $RM" >&5
18659 echo "${ECHO_T}$RM" >&6
18660 else
18661   echo "$as_me:$LINENO: result: no" >&5
18662 echo "${ECHO_T}no" >&6
18663 fi
18664
18665 if test ${RM} = "false"
18666 then
18667         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18668 echo "$as_me: error: rm required but not found" >&2;}
18669    { (exit 1); exit 1; }; }
18670 fi
18671
18672 # Extract the first word of "echo", so it can be a program name with args.
18673 set dummy echo; ac_word=$2
18674 echo "$as_me:$LINENO: checking for $ac_word" >&5
18675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676 if test "${ac_cv_path_ECHO+set}" = set; then
18677   echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679   case $ECHO in
18680   [\\/]* | ?:[\\/]*)
18681   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18682   ;;
18683   *)
18684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685 for as_dir in $PATH
18686 do
18687   IFS=$as_save_IFS
18688   test -z "$as_dir" && as_dir=.
18689   for ac_exec_ext in '' $ac_executable_extensions; do
18690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18693     break 2
18694   fi
18695 done
18696 done
18697
18698   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18699   ;;
18700 esac
18701 fi
18702 ECHO=$ac_cv_path_ECHO
18703
18704 if test -n "$ECHO"; then
18705   echo "$as_me:$LINENO: result: $ECHO" >&5
18706 echo "${ECHO_T}$ECHO" >&6
18707 else
18708   echo "$as_me:$LINENO: result: no" >&5
18709 echo "${ECHO_T}no" >&6
18710 fi
18711
18712 if test ${ECHO} = "false"
18713 then
18714         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18715 echo "$as_me: error: echo required but not found" >&2;}
18716    { (exit 1); exit 1; }; }
18717 fi
18718
18719 # Extract the first word of "mkdir", so it can be a program name with args.
18720 set dummy mkdir; ac_word=$2
18721 echo "$as_me:$LINENO: checking for $ac_word" >&5
18722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18723 if test "${ac_cv_path_MKDIR+set}" = set; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   case $MKDIR in
18727   [\\/]* | ?:[\\/]*)
18728   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18729   ;;
18730   *)
18731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18732 for as_dir in $PATH
18733 do
18734   IFS=$as_save_IFS
18735   test -z "$as_dir" && as_dir=.
18736   for ac_exec_ext in '' $ac_executable_extensions; do
18737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18738     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18740     break 2
18741   fi
18742 done
18743 done
18744
18745   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18746   ;;
18747 esac
18748 fi
18749 MKDIR=$ac_cv_path_MKDIR
18750
18751 if test -n "$MKDIR"; then
18752   echo "$as_me:$LINENO: result: $MKDIR" >&5
18753 echo "${ECHO_T}$MKDIR" >&6
18754 else
18755   echo "$as_me:$LINENO: result: no" >&5
18756 echo "${ECHO_T}no" >&6
18757 fi
18758
18759 if test ${MKDIR} = "false"
18760 then
18761         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18762 echo "$as_me: error: mkdir required but not found" >&2;}
18763    { (exit 1); exit 1; }; }
18764 fi
18765
18766 # Extract the first word of "date", so it can be a program name with args.
18767 set dummy date; ac_word=$2
18768 echo "$as_me:$LINENO: checking for $ac_word" >&5
18769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18770 if test "${ac_cv_path_DATE+set}" = set; then
18771   echo $ECHO_N "(cached) $ECHO_C" >&6
18772 else
18773   case $DATE in
18774   [\\/]* | ?:[\\/]*)
18775   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18776   ;;
18777   *)
18778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18779 for as_dir in $PATH
18780 do
18781   IFS=$as_save_IFS
18782   test -z "$as_dir" && as_dir=.
18783   for ac_exec_ext in '' $ac_executable_extensions; do
18784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18785     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18787     break 2
18788   fi
18789 done
18790 done
18791
18792   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18793   ;;
18794 esac
18795 fi
18796 DATE=$ac_cv_path_DATE
18797
18798 if test -n "$DATE"; then
18799   echo "$as_me:$LINENO: result: $DATE" >&5
18800 echo "${ECHO_T}$DATE" >&6
18801 else
18802   echo "$as_me:$LINENO: result: no" >&5
18803 echo "${ECHO_T}no" >&6
18804 fi
18805
18806 if test ${DATE} = "false"
18807 then
18808         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18809 echo "$as_me: error: date required but not found" >&2;}
18810    { (exit 1); exit 1; }; }
18811 fi
18812
18813 # Extract the first word of "mv", so it can be a program name with args.
18814 set dummy mv; ac_word=$2
18815 echo "$as_me:$LINENO: checking for $ac_word" >&5
18816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18817 if test "${ac_cv_path_MV+set}" = set; then
18818   echo $ECHO_N "(cached) $ECHO_C" >&6
18819 else
18820   case $MV in
18821   [\\/]* | ?:[\\/]*)
18822   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18823   ;;
18824   *)
18825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18826 for as_dir in $PATH
18827 do
18828   IFS=$as_save_IFS
18829   test -z "$as_dir" && as_dir=.
18830   for ac_exec_ext in '' $ac_executable_extensions; do
18831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18832     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18834     break 2
18835   fi
18836 done
18837 done
18838
18839   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18840   ;;
18841 esac
18842 fi
18843 MV=$ac_cv_path_MV
18844
18845 if test -n "$MV"; then
18846   echo "$as_me:$LINENO: result: $MV" >&5
18847 echo "${ECHO_T}$MV" >&6
18848 else
18849   echo "$as_me:$LINENO: result: no" >&5
18850 echo "${ECHO_T}no" >&6
18851 fi
18852
18853 if test ${MV} = "false"
18854 then
18855         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18856 echo "$as_me: error: mv required but not found" >&2;}
18857    { (exit 1); exit 1; }; }
18858 fi
18859
18860 # Extract the first word of "dot", so it can be a program name with args.
18861 set dummy dot; ac_word=$2
18862 echo "$as_me:$LINENO: checking for $ac_word" >&5
18863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18864 if test "${ac_cv_path_DOT+set}" = set; then
18865   echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867   case $DOT in
18868   [\\/]* | ?:[\\/]*)
18869   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18870   ;;
18871   *)
18872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18873 for as_dir in $PATH
18874 do
18875   IFS=$as_save_IFS
18876   test -z "$as_dir" && as_dir=.
18877   for ac_exec_ext in '' $ac_executable_extensions; do
18878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18879     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18881     break 2
18882   fi
18883 done
18884 done
18885
18886   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18887   ;;
18888 esac
18889 fi
18890 DOT=$ac_cv_path_DOT
18891
18892 if test -n "$DOT"; then
18893   echo "$as_me:$LINENO: result: $DOT" >&5
18894 echo "${ECHO_T}$DOT" >&6
18895 else
18896   echo "$as_me:$LINENO: result: no" >&5
18897 echo "${ECHO_T}no" >&6
18898 fi
18899
18900
18901 # Extract the first word of "etags", so it can be a program name with args.
18902 set dummy etags; ac_word=$2
18903 echo "$as_me:$LINENO: checking for $ac_word" >&5
18904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18905 if test "${ac_cv_path_ETAGS+set}" = set; then
18906   echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908   case $ETAGS in
18909   [\\/]* | ?:[\\/]*)
18910   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18911   ;;
18912   *)
18913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18914 for as_dir in $PATH
18915 do
18916   IFS=$as_save_IFS
18917   test -z "$as_dir" && as_dir=.
18918   for ac_exec_ext in '' $ac_executable_extensions; do
18919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18920     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18922     break 2
18923   fi
18924 done
18925 done
18926
18927   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18928   ;;
18929 esac
18930 fi
18931 ETAGS=$ac_cv_path_ETAGS
18932
18933 if test -n "$ETAGS"; then
18934   echo "$as_me:$LINENO: result: $ETAGS" >&5
18935 echo "${ECHO_T}$ETAGS" >&6
18936 else
18937   echo "$as_me:$LINENO: result: no" >&5
18938 echo "${ECHO_T}no" >&6
18939 fi
18940
18941
18942 # Extract the first word of "purify", so it can be a program name with args.
18943 set dummy purify; ac_word=$2
18944 echo "$as_me:$LINENO: checking for $ac_word" >&5
18945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18946 if test "${ac_cv_path_PURIFY+set}" = set; then
18947   echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949   case $PURIFY in
18950   [\\/]* | ?:[\\/]*)
18951   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18952   ;;
18953   *)
18954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18955 for as_dir in $PATH
18956 do
18957   IFS=$as_save_IFS
18958   test -z "$as_dir" && as_dir=.
18959   for ac_exec_ext in '' $ac_executable_extensions; do
18960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18961     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18963     break 2
18964   fi
18965 done
18966 done
18967
18968   test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
18969   ;;
18970 esac
18971 fi
18972 PURIFY=$ac_cv_path_PURIFY
18973
18974 if test -n "$PURIFY"; then
18975   echo "$as_me:$LINENO: result: $PURIFY" >&5
18976 echo "${ECHO_T}$PURIFY" >&6
18977 else
18978   echo "$as_me:$LINENO: result: no" >&5
18979 echo "${ECHO_T}no" >&6
18980 fi
18981
18982
18983 # Extract the first word of "python", so it can be a program name with args.
18984 set dummy python; ac_word=$2
18985 echo "$as_me:$LINENO: checking for $ac_word" >&5
18986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18987 if test "${ac_cv_path_PYTHON+set}" = set; then
18988   echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990   case $PYTHON in
18991   [\\/]* | ?:[\\/]*)
18992   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18993   ;;
18994   *)
18995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18996 for as_dir in $PATH
18997 do
18998   IFS=$as_save_IFS
18999   test -z "$as_dir" && as_dir=.
19000   for ac_exec_ext in '' $ac_executable_extensions; do
19001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19002     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19004     break 2
19005   fi
19006 done
19007 done
19008
19009   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
19010   ;;
19011 esac
19012 fi
19013 PYTHON=$ac_cv_path_PYTHON
19014
19015 if test -n "$PYTHON"; then
19016   echo "$as_me:$LINENO: result: $PYTHON" >&5
19017 echo "${ECHO_T}$PYTHON" >&6
19018 else
19019   echo "$as_me:$LINENO: result: no" >&5
19020 echo "${ECHO_T}no" >&6
19021 fi
19022
19023 if test ${PYTHON} = "false"
19024 then
19025         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19026 echo "$as_me: WARNING: python required but not found" >&2;}
19027 fi
19028
19029 # Extract the first word of "qmtest", so it can be a program name with args.
19030 set dummy qmtest; ac_word=$2
19031 echo "$as_me:$LINENO: checking for $ac_word" >&5
19032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19033 if test "${ac_cv_path_QMTEST+set}" = set; then
19034   echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19036   case $QMTEST in
19037   [\\/]* | ?:[\\/]*)
19038   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19039   ;;
19040   *)
19041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042 for as_dir in $PATH
19043 do
19044   IFS=$as_save_IFS
19045   test -z "$as_dir" && as_dir=.
19046   for ac_exec_ext in '' $ac_executable_extensions; do
19047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19048     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19050     break 2
19051   fi
19052 done
19053 done
19054
19055   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19056   ;;
19057 esac
19058 fi
19059 QMTEST=$ac_cv_path_QMTEST
19060
19061 if test -n "$QMTEST"; then
19062   echo "$as_me:$LINENO: result: $QMTEST" >&5
19063 echo "${ECHO_T}$QMTEST" >&6
19064 else
19065   echo "$as_me:$LINENO: result: no" >&5
19066 echo "${ECHO_T}no" >&6
19067 fi
19068
19069 if test ${QMTEST} = "false"
19070 then
19071         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19072 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19073 fi
19074
19075 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19076 pymajor=`echo $pyversion | cut -d. -f1`
19077 pyminor=`echo $pyversion | cut -d. -f2`
19078
19079 if test "$pymajor" -ge "2"
19080 then
19081         if test "$pymajor" -eq "2"
19082         then
19083                 if test "$pyminor" -lt "2"
19084                 then
19085                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19086 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19087    { (exit 1); exit 1; }; }
19088                 fi
19089         fi
19090 else
19091         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19092 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19093    { (exit 1); exit 1; }; }
19094 fi
19095
19096
19097
19098
19099
19100 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19101 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19102 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19103   echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105   ac_check_lib_save_LIBS=$LIBS
19106 LIBS="-lelf  $LIBS"
19107 cat >conftest.$ac_ext <<_ACEOF
19108 #line $LINENO "configure"
19109 /* confdefs.h.  */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h.  */
19114
19115 /* Override any gcc2 internal prototype to avoid an error.  */
19116 #ifdef __cplusplus
19117 extern "C"
19118 #endif
19119 /* We use char because int might match the return type of a gcc2
19120    builtin and then its argument prototype would still apply.  */
19121 char elf_begin ();
19122 int
19123 main ()
19124 {
19125 elf_begin ();
19126   ;
19127   return 0;
19128 }
19129 _ACEOF
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132   (eval $ac_link) 2>&5
19133   ac_status=$?
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); } &&
19136          { ac_try='test -s conftest$ac_exeext'
19137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138   (eval $ac_try) 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; }; then
19142   ac_cv_lib_elf_elf_begin=yes
19143 else
19144   echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19146
19147 ac_cv_lib_elf_elf_begin=no
19148 fi
19149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19150 LIBS=$ac_check_lib_save_LIBS
19151 fi
19152 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19153 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19154 if test $ac_cv_lib_elf_elf_begin = yes; then
19155   cat >>confdefs.h <<_ACEOF
19156 #define HAVE_LIBELF 1
19157 _ACEOF
19158
19159   LIBS="-lelf $LIBS"
19160
19161 fi
19162
19163
19164 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19165 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19166 if test "${ac_cv_search_dlopen+set}" = set; then
19167   echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169   ac_func_search_save_LIBS=$LIBS
19170 ac_cv_search_dlopen=no
19171 cat >conftest.$ac_ext <<_ACEOF
19172 #line $LINENO "configure"
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178
19179 /* Override any gcc2 internal prototype to avoid an error.  */
19180 #ifdef __cplusplus
19181 extern "C"
19182 #endif
19183 /* We use char because int might match the return type of a gcc2
19184    builtin and then its argument prototype would still apply.  */
19185 char dlopen ();
19186 int
19187 main ()
19188 {
19189 dlopen ();
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19196   (eval $ac_link) 2>&5
19197   ac_status=$?
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); } &&
19200          { ac_try='test -s conftest$ac_exeext'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; }; then
19206   ac_cv_search_dlopen="none required"
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 fi
19212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19213 if test "$ac_cv_search_dlopen" = no; then
19214   for ac_lib in dl; do
19215     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19216     cat >conftest.$ac_ext <<_ACEOF
19217 #line $LINENO "configure"
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223
19224 /* Override any gcc2 internal prototype to avoid an error.  */
19225 #ifdef __cplusplus
19226 extern "C"
19227 #endif
19228 /* We use char because int might match the return type of a gcc2
19229    builtin and then its argument prototype would still apply.  */
19230 char dlopen ();
19231 int
19232 main ()
19233 {
19234 dlopen ();
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19241   (eval $ac_link) 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } &&
19245          { ac_try='test -s conftest$ac_exeext'
19246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247   (eval $ac_try) 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); }; }; then
19251   ac_cv_search_dlopen="-l$ac_lib"
19252 break
19253 else
19254   echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19256
19257 fi
19258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19259   done
19260 fi
19261 LIBS=$ac_func_search_save_LIBS
19262 fi
19263 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19264 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19265 if test "$ac_cv_search_dlopen" != no; then
19266   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19267
19268 else
19269   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19270 echo "$as_me: error: dlopen() required but not found" >&2;}
19271    { (exit 1); exit 1; }; }
19272 fi
19273
19274
19275 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19276 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19277 if test "${ac_cv_search_mallinfo+set}" = set; then
19278   echo $ECHO_N "(cached) $ECHO_C" >&6
19279 else
19280   ac_func_search_save_LIBS=$LIBS
19281 ac_cv_search_mallinfo=no
19282 cat >conftest.$ac_ext <<_ACEOF
19283 #line $LINENO "configure"
19284 /* confdefs.h.  */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h.  */
19289
19290 /* Override any gcc2 internal prototype to avoid an error.  */
19291 #ifdef __cplusplus
19292 extern "C"
19293 #endif
19294 /* We use char because int might match the return type of a gcc2
19295    builtin and then its argument prototype would still apply.  */
19296 char mallinfo ();
19297 int
19298 main ()
19299 {
19300 mallinfo ();
19301   ;
19302   return 0;
19303 }
19304 _ACEOF
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19307   (eval $ac_link) 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); } &&
19311          { ac_try='test -s conftest$ac_exeext'
19312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313   (eval $ac_try) 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); }; }; then
19317   ac_cv_search_mallinfo="none required"
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322 fi
19323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19324 if test "$ac_cv_search_mallinfo" = no; then
19325   for ac_lib in malloc; do
19326     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19327     cat >conftest.$ac_ext <<_ACEOF
19328 #line $LINENO "configure"
19329 /* confdefs.h.  */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h.  */
19334
19335 /* Override any gcc2 internal prototype to avoid an error.  */
19336 #ifdef __cplusplus
19337 extern "C"
19338 #endif
19339 /* We use char because int might match the return type of a gcc2
19340    builtin and then its argument prototype would still apply.  */
19341 char mallinfo ();
19342 int
19343 main ()
19344 {
19345 mallinfo ();
19346   ;
19347   return 0;
19348 }
19349 _ACEOF
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19352   (eval $ac_link) 2>&5
19353   ac_status=$?
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } &&
19356          { ac_try='test -s conftest$ac_exeext'
19357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358   (eval $ac_try) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; }; then
19362   ac_cv_search_mallinfo="-l$ac_lib"
19363 break
19364 else
19365   echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19367
19368 fi
19369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19370   done
19371 fi
19372 LIBS=$ac_func_search_save_LIBS
19373 fi
19374 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19375 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19376 if test "$ac_cv_search_mallinfo" != no; then
19377   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19378   cat >>confdefs.h <<\_ACEOF
19379 #define HAVE_MALLINFO 1
19380 _ACEOF
19381
19382 fi
19383
19384
19385
19386 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19388 if test "${ac_cv_header_stdc+set}" = set; then
19389   echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391   cat >conftest.$ac_ext <<_ACEOF
19392 #line $LINENO "configure"
19393 /* confdefs.h.  */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h.  */
19398 #include <stdlib.h>
19399 #include <stdarg.h>
19400 #include <string.h>
19401 #include <float.h>
19402
19403 int
19404 main ()
19405 {
19406
19407   ;
19408   return 0;
19409 }
19410 _ACEOF
19411 rm -f conftest.$ac_objext
19412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19413   (eval $ac_compile) 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); } &&
19417          { ac_try='test -s conftest.$ac_objext'
19418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419   (eval $ac_try) 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); }; }; then
19423   ac_cv_header_stdc=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 ac_cv_header_stdc=no
19429 fi
19430 rm -f conftest.$ac_objext conftest.$ac_ext
19431
19432 if test $ac_cv_header_stdc = yes; then
19433   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19434   cat >conftest.$ac_ext <<_ACEOF
19435 #line $LINENO "configure"
19436 /* confdefs.h.  */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h.  */
19441 #include <string.h>
19442
19443 _ACEOF
19444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19445   $EGREP "memchr" >/dev/null 2>&1; then
19446   :
19447 else
19448   ac_cv_header_stdc=no
19449 fi
19450 rm -f conftest*
19451
19452 fi
19453
19454 if test $ac_cv_header_stdc = yes; then
19455   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19456   cat >conftest.$ac_ext <<_ACEOF
19457 #line $LINENO "configure"
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463 #include <stdlib.h>
19464
19465 _ACEOF
19466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19467   $EGREP "free" >/dev/null 2>&1; then
19468   :
19469 else
19470   ac_cv_header_stdc=no
19471 fi
19472 rm -f conftest*
19473
19474 fi
19475
19476 if test $ac_cv_header_stdc = yes; then
19477   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19478   if test "$cross_compiling" = yes; then
19479   :
19480 else
19481   cat >conftest.$ac_ext <<_ACEOF
19482 #line $LINENO "configure"
19483 /* confdefs.h.  */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h.  */
19488 #include <ctype.h>
19489 #if ((' ' & 0x0FF) == 0x020)
19490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19492 #else
19493 # define ISLOWER(c) \
19494                    (('a' <= (c) && (c) <= 'i') \
19495                      || ('j' <= (c) && (c) <= 'r') \
19496                      || ('s' <= (c) && (c) <= 'z'))
19497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19498 #endif
19499
19500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19501 int
19502 main ()
19503 {
19504   int i;
19505   for (i = 0; i < 256; i++)
19506     if (XOR (islower (i), ISLOWER (i))
19507         || toupper (i) != TOUPPER (i))
19508       exit(2);
19509   exit (0);
19510 }
19511 _ACEOF
19512 rm -f conftest$ac_exeext
19513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19514   (eval $ac_link) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519   (eval $ac_try) 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); }; }; then
19523   :
19524 else
19525   echo "$as_me: program exited with status $ac_status" >&5
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 ( exit $ac_status )
19530 ac_cv_header_stdc=no
19531 fi
19532 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19533 fi
19534 fi
19535 fi
19536 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19537 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19538 if test $ac_cv_header_stdc = yes; then
19539
19540 cat >>confdefs.h <<\_ACEOF
19541 #define STDC_HEADERS 1
19542 _ACEOF
19543
19544 fi
19545
19546 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19547 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19548 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19549   echo $ECHO_N "(cached) $ECHO_C" >&6
19550 else
19551   cat >conftest.$ac_ext <<_ACEOF
19552 #line $LINENO "configure"
19553 /* confdefs.h.  */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h.  */
19558 #include <sys/types.h>
19559 #include <sys/wait.h>
19560 #ifndef WEXITSTATUS
19561 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19562 #endif
19563 #ifndef WIFEXITED
19564 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19565 #endif
19566
19567 int
19568 main ()
19569 {
19570   int s;
19571   wait (&s);
19572   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19573   ;
19574   return 0;
19575 }
19576 _ACEOF
19577 rm -f conftest.$ac_objext
19578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19579   (eval $ac_compile) 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); } &&
19583          { ac_try='test -s conftest.$ac_objext'
19584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585   (eval $ac_try) 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; }; then
19589   ac_cv_header_sys_wait_h=yes
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_cv_header_sys_wait_h=no
19595 fi
19596 rm -f conftest.$ac_objext conftest.$ac_ext
19597 fi
19598 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19599 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19600 if test $ac_cv_header_sys_wait_h = yes; then
19601
19602 cat >>confdefs.h <<\_ACEOF
19603 #define HAVE_SYS_WAIT_H 1
19604 _ACEOF
19605
19606 fi
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19618 do
19619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621   echo "$as_me:$LINENO: checking for $ac_header" >&5
19622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19624   echo $ECHO_N "(cached) $ECHO_C" >&6
19625 fi
19626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19628 else
19629   # Is the header compilable?
19630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19632 cat >conftest.$ac_ext <<_ACEOF
19633 #line $LINENO "configure"
19634 /* confdefs.h.  */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h.  */
19639 $ac_includes_default
19640 #include <$ac_header>
19641 _ACEOF
19642 rm -f conftest.$ac_objext
19643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644   (eval $ac_compile) 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); } &&
19648          { ac_try='test -s conftest.$ac_objext'
19649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650   (eval $ac_try) 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; }; then
19654   ac_header_compiler=yes
19655 else
19656   echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19658
19659 ac_header_compiler=no
19660 fi
19661 rm -f conftest.$ac_objext conftest.$ac_ext
19662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19663 echo "${ECHO_T}$ac_header_compiler" >&6
19664
19665 # Is the header present?
19666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19668 cat >conftest.$ac_ext <<_ACEOF
19669 #line $LINENO "configure"
19670 /* confdefs.h.  */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h.  */
19675 #include <$ac_header>
19676 _ACEOF
19677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19679   ac_status=$?
19680   grep -v '^ *+' conftest.er1 >conftest.err
19681   rm -f conftest.er1
19682   cat conftest.err >&5
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); } >/dev/null; then
19685   if test -s conftest.err; then
19686     ac_cpp_err=$ac_c_preproc_warn_flag
19687   else
19688     ac_cpp_err=
19689   fi
19690 else
19691   ac_cpp_err=yes
19692 fi
19693 if test -z "$ac_cpp_err"; then
19694   ac_header_preproc=yes
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699   ac_header_preproc=no
19700 fi
19701 rm -f conftest.err conftest.$ac_ext
19702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19703 echo "${ECHO_T}$ac_header_preproc" >&6
19704
19705 # So?  What about this header?
19706 case $ac_header_compiler:$ac_header_preproc in
19707   yes:no )
19708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19712     (
19713       cat <<\_ASBOX
19714 ## ------------------------------------ ##
19715 ## Report this to bug-autoconf@gnu.org. ##
19716 ## ------------------------------------ ##
19717 _ASBOX
19718     ) |
19719       sed "s/^/$as_me: WARNING:     /" >&2
19720     ;;
19721   no:yes )
19722     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19724     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19728     (
19729       cat <<\_ASBOX
19730 ## ------------------------------------ ##
19731 ## Report this to bug-autoconf@gnu.org. ##
19732 ## ------------------------------------ ##
19733 _ASBOX
19734     ) |
19735       sed "s/^/$as_me: WARNING:     /" >&2
19736     ;;
19737 esac
19738 echo "$as_me:$LINENO: checking for $ac_header" >&5
19739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19741   echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743   eval "$as_ac_Header=$ac_header_preproc"
19744 fi
19745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19747
19748 fi
19749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19750   cat >>confdefs.h <<_ACEOF
19751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19752 _ACEOF
19753
19754 fi
19755
19756 done
19757
19758
19759
19760
19761
19762
19763 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19764 do
19765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19767   echo "$as_me:$LINENO: checking for $ac_header" >&5
19768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 fi
19772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19774 else
19775   # Is the header compilable?
19776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19778 cat >conftest.$ac_ext <<_ACEOF
19779 #line $LINENO "configure"
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 $ac_includes_default
19786 #include <$ac_header>
19787 _ACEOF
19788 rm -f conftest.$ac_objext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19790   (eval $ac_compile) 2>&5
19791   ac_status=$?
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } &&
19794          { ac_try='test -s conftest.$ac_objext'
19795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796   (eval $ac_try) 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; }; then
19800   ac_header_compiler=yes
19801 else
19802   echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805 ac_header_compiler=no
19806 fi
19807 rm -f conftest.$ac_objext conftest.$ac_ext
19808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19809 echo "${ECHO_T}$ac_header_compiler" >&6
19810
19811 # Is the header present?
19812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19814 cat >conftest.$ac_ext <<_ACEOF
19815 #line $LINENO "configure"
19816 /* confdefs.h.  */
19817 _ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h.  */
19821 #include <$ac_header>
19822 _ACEOF
19823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19825   ac_status=$?
19826   grep -v '^ *+' conftest.er1 >conftest.err
19827   rm -f conftest.er1
19828   cat conftest.err >&5
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); } >/dev/null; then
19831   if test -s conftest.err; then
19832     ac_cpp_err=$ac_c_preproc_warn_flag
19833   else
19834     ac_cpp_err=
19835   fi
19836 else
19837   ac_cpp_err=yes
19838 fi
19839 if test -z "$ac_cpp_err"; then
19840   ac_header_preproc=yes
19841 else
19842   echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845   ac_header_preproc=no
19846 fi
19847 rm -f conftest.err conftest.$ac_ext
19848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19849 echo "${ECHO_T}$ac_header_preproc" >&6
19850
19851 # So?  What about this header?
19852 case $ac_header_compiler:$ac_header_preproc in
19853   yes:no )
19854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19858     (
19859       cat <<\_ASBOX
19860 ## ------------------------------------ ##
19861 ## Report this to bug-autoconf@gnu.org. ##
19862 ## ------------------------------------ ##
19863 _ASBOX
19864     ) |
19865       sed "s/^/$as_me: WARNING:     /" >&2
19866     ;;
19867   no:yes )
19868     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19870     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19874     (
19875       cat <<\_ASBOX
19876 ## ------------------------------------ ##
19877 ## Report this to bug-autoconf@gnu.org. ##
19878 ## ------------------------------------ ##
19879 _ASBOX
19880     ) |
19881       sed "s/^/$as_me: WARNING:     /" >&2
19882     ;;
19883 esac
19884 echo "$as_me:$LINENO: checking for $ac_header" >&5
19885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19887   echo $ECHO_N "(cached) $ECHO_C" >&6
19888 else
19889   eval "$as_ac_Header=$ac_header_preproc"
19890 fi
19891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19893
19894 fi
19895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19896   cat >>confdefs.h <<_ACEOF
19897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19898 _ACEOF
19899
19900 fi
19901
19902 done
19903
19904
19905
19906
19907 for ac_header in dlfcn.h link.h
19908 do
19909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19911   echo "$as_me:$LINENO: checking for $ac_header" >&5
19912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19914   echo $ECHO_N "(cached) $ECHO_C" >&6
19915 fi
19916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19918 else
19919   # Is the header compilable?
19920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19922 cat >conftest.$ac_ext <<_ACEOF
19923 #line $LINENO "configure"
19924 /* confdefs.h.  */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h.  */
19929 $ac_includes_default
19930 #include <$ac_header>
19931 _ACEOF
19932 rm -f conftest.$ac_objext
19933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19934   (eval $ac_compile) 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); } &&
19938          { ac_try='test -s conftest.$ac_objext'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; }; then
19944   ac_header_compiler=yes
19945 else
19946   echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19948
19949 ac_header_compiler=no
19950 fi
19951 rm -f conftest.$ac_objext conftest.$ac_ext
19952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19953 echo "${ECHO_T}$ac_header_compiler" >&6
19954
19955 # Is the header present?
19956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19958 cat >conftest.$ac_ext <<_ACEOF
19959 #line $LINENO "configure"
19960 /* confdefs.h.  */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h.  */
19965 #include <$ac_header>
19966 _ACEOF
19967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19969   ac_status=$?
19970   grep -v '^ *+' conftest.er1 >conftest.err
19971   rm -f conftest.er1
19972   cat conftest.err >&5
19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974   (exit $ac_status); } >/dev/null; then
19975   if test -s conftest.err; then
19976     ac_cpp_err=$ac_c_preproc_warn_flag
19977   else
19978     ac_cpp_err=
19979   fi
19980 else
19981   ac_cpp_err=yes
19982 fi
19983 if test -z "$ac_cpp_err"; then
19984   ac_header_preproc=yes
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989   ac_header_preproc=no
19990 fi
19991 rm -f conftest.err conftest.$ac_ext
19992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19993 echo "${ECHO_T}$ac_header_preproc" >&6
19994
19995 # So?  What about this header?
19996 case $ac_header_compiler:$ac_header_preproc in
19997   yes:no )
19998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20002     (
20003       cat <<\_ASBOX
20004 ## ------------------------------------ ##
20005 ## Report this to bug-autoconf@gnu.org. ##
20006 ## ------------------------------------ ##
20007 _ASBOX
20008     ) |
20009       sed "s/^/$as_me: WARNING:     /" >&2
20010     ;;
20011   no:yes )
20012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20018     (
20019       cat <<\_ASBOX
20020 ## ------------------------------------ ##
20021 ## Report this to bug-autoconf@gnu.org. ##
20022 ## ------------------------------------ ##
20023 _ASBOX
20024     ) |
20025       sed "s/^/$as_me: WARNING:     /" >&2
20026     ;;
20027 esac
20028 echo "$as_me:$LINENO: checking for $ac_header" >&5
20029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033   eval "$as_ac_Header=$ac_header_preproc"
20034 fi
20035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20037
20038 fi
20039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20040   cat >>confdefs.h <<_ACEOF
20041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20042 _ACEOF
20043
20044 fi
20045
20046 done
20047
20048
20049
20050 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20051 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20052 if test "${ac_cv_c_const+set}" = set; then
20053   echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055   cat >conftest.$ac_ext <<_ACEOF
20056 #line $LINENO "configure"
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062
20063 int
20064 main ()
20065 {
20066 /* FIXME: Include the comments suggested by Paul. */
20067 #ifndef __cplusplus
20068   /* Ultrix mips cc rejects this.  */
20069   typedef int charset[2];
20070   const charset x;
20071   /* SunOS 4.1.1 cc rejects this.  */
20072   char const *const *ccp;
20073   char **p;
20074   /* NEC SVR4.0.2 mips cc rejects this.  */
20075   struct point {int x, y;};
20076   static struct point const zero = {0,0};
20077   /* AIX XL C 1.02.0.0 rejects this.
20078      It does not let you subtract one const X* pointer from another in
20079      an arm of an if-expression whose if-part is not a constant
20080      expression */
20081   const char *g = "string";
20082   ccp = &g + (g ? g-g : 0);
20083   /* HPUX 7.0 cc rejects these. */
20084   ++ccp;
20085   p = (char**) ccp;
20086   ccp = (char const *const *) p;
20087   { /* SCO 3.2v4 cc rejects this.  */
20088     char *t;
20089     char const *s = 0 ? (char *) 0 : (char const *) 0;
20090
20091     *t++ = 0;
20092   }
20093   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20094     int x[] = {25, 17};
20095     const int *foo = &x[0];
20096     ++foo;
20097   }
20098   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20099     typedef const int *iptr;
20100     iptr p = 0;
20101     ++p;
20102   }
20103   { /* AIX XL C 1.02.0.0 rejects this saying
20104        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20105     struct s { int j; const int *ap[3]; };
20106     struct s *b; b->j = 5;
20107   }
20108   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20109     const int foo = 10;
20110   }
20111 #endif
20112
20113   ;
20114   return 0;
20115 }
20116 _ACEOF
20117 rm -f conftest.$ac_objext
20118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20119   (eval $ac_compile) 2>&5
20120   ac_status=$?
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } &&
20123          { ac_try='test -s conftest.$ac_objext'
20124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125   (eval $ac_try) 2>&5
20126   ac_status=$?
20127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128   (exit $ac_status); }; }; then
20129   ac_cv_c_const=yes
20130 else
20131   echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20133
20134 ac_cv_c_const=no
20135 fi
20136 rm -f conftest.$ac_objext conftest.$ac_ext
20137 fi
20138 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20139 echo "${ECHO_T}$ac_cv_c_const" >&6
20140 if test $ac_cv_c_const = no; then
20141
20142 cat >>confdefs.h <<\_ACEOF
20143 #define const
20144 _ACEOF
20145
20146 fi
20147
20148 echo "$as_me:$LINENO: checking for inline" >&5
20149 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20150 if test "${ac_cv_c_inline+set}" = set; then
20151   echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153   ac_cv_c_inline=no
20154 for ac_kw in inline __inline__ __inline; do
20155   cat >conftest.$ac_ext <<_ACEOF
20156 #line $LINENO "configure"
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162 #ifndef __cplusplus
20163 typedef int foo_t;
20164 static $ac_kw foo_t static_foo () {return 0; }
20165 $ac_kw foo_t foo () {return 0; }
20166 #endif
20167
20168 _ACEOF
20169 rm -f conftest.$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171   (eval $ac_compile) 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -s conftest.$ac_objext'
20176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177   (eval $ac_try) 2>&5
20178   ac_status=$?
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); }; }; then
20181   ac_cv_c_inline=$ac_kw; break
20182 else
20183   echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186 fi
20187 rm -f conftest.$ac_objext conftest.$ac_ext
20188 done
20189
20190 fi
20191 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20192 echo "${ECHO_T}$ac_cv_c_inline" >&6
20193 case $ac_cv_c_inline in
20194   inline | yes) ;;
20195   no)
20196 cat >>confdefs.h <<\_ACEOF
20197 #define inline
20198 _ACEOF
20199  ;;
20200   *)  cat >>confdefs.h <<_ACEOF
20201 #define inline $ac_cv_c_inline
20202 _ACEOF
20203  ;;
20204 esac
20205
20206
20207 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20208 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20209 if test "${ac_cv_c_bigendian+set}" = set; then
20210   echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212   # See if sys/param.h defines the BYTE_ORDER macro.
20213 cat >conftest.$ac_ext <<_ACEOF
20214 #line $LINENO "configure"
20215 /* confdefs.h.  */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h.  */
20220 #include <sys/types.h>
20221 #include <sys/param.h>
20222
20223 int
20224 main ()
20225 {
20226 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20227  bogus endian macros
20228 #endif
20229
20230   ;
20231   return 0;
20232 }
20233 _ACEOF
20234 rm -f conftest.$ac_objext
20235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20236   (eval $ac_compile) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } &&
20240          { ac_try='test -s conftest.$ac_objext'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   # It does; now see whether it defined to BIG_ENDIAN or not.
20247 cat >conftest.$ac_ext <<_ACEOF
20248 #line $LINENO "configure"
20249 /* confdefs.h.  */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h.  */
20254 #include <sys/types.h>
20255 #include <sys/param.h>
20256
20257 int
20258 main ()
20259 {
20260 #if BYTE_ORDER != BIG_ENDIAN
20261  not big endian
20262 #endif
20263
20264   ;
20265   return 0;
20266 }
20267 _ACEOF
20268 rm -f conftest.$ac_objext
20269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20270   (eval $ac_compile) 2>&5
20271   ac_status=$?
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } &&
20274          { ac_try='test -s conftest.$ac_objext'
20275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276   (eval $ac_try) 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); }; }; then
20280   ac_cv_c_bigendian=yes
20281 else
20282   echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20284
20285 ac_cv_c_bigendian=no
20286 fi
20287 rm -f conftest.$ac_objext conftest.$ac_ext
20288 else
20289   echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292 # It does not; compile a test program.
20293 if test "$cross_compiling" = yes; then
20294   # try to guess the endianness by grepping values into an object file
20295   ac_cv_c_bigendian=unknown
20296   cat >conftest.$ac_ext <<_ACEOF
20297 #line $LINENO "configure"
20298 /* confdefs.h.  */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h.  */
20303 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20304 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20305 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20306 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20307 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20308 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20309 int
20310 main ()
20311 {
20312  _ascii (); _ebcdic ();
20313   ;
20314   return 0;
20315 }
20316 _ACEOF
20317 rm -f conftest.$ac_objext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319   (eval $ac_compile) 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); } &&
20323          { ac_try='test -s conftest.$ac_objext'
20324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325   (eval $ac_try) 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); }; }; then
20329   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20330   ac_cv_c_bigendian=yes
20331 fi
20332 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20333   if test "$ac_cv_c_bigendian" = unknown; then
20334     ac_cv_c_bigendian=no
20335   else
20336     # finding both strings is unlikely to happen, but who knows?
20337     ac_cv_c_bigendian=unknown
20338   fi
20339 fi
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 fi
20345 rm -f conftest.$ac_objext conftest.$ac_ext
20346 else
20347   cat >conftest.$ac_ext <<_ACEOF
20348 #line $LINENO "configure"
20349 /* confdefs.h.  */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h.  */
20354 int
20355 main ()
20356 {
20357   /* Are we little or big endian?  From Harbison&Steele.  */
20358   union
20359   {
20360     long l;
20361     char c[sizeof (long)];
20362   } u;
20363   u.l = 1;
20364   exit (u.c[sizeof (long) - 1] == 1);
20365 }
20366 _ACEOF
20367 rm -f conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369   (eval $ac_link) 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374   (eval $ac_try) 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; }; then
20378   ac_cv_c_bigendian=no
20379 else
20380   echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 ( exit $ac_status )
20385 ac_cv_c_bigendian=yes
20386 fi
20387 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20388 fi
20389 fi
20390 rm -f conftest.$ac_objext conftest.$ac_ext
20391 fi
20392 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20393 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20394 case $ac_cv_c_bigendian in
20395   yes)
20396     cat >>confdefs.h <<\_ACEOF
20397 #define ENDIAN_BIG 1
20398 _ACEOF
20399  ;;
20400   no)
20401     cat >>confdefs.h <<\_ACEOF
20402 #define ENDIAN_LITTLE 1
20403 _ACEOF
20404  ;;
20405   *)
20406     { { echo "$as_me:$LINENO: error: unknown endianness
20407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20408 echo "$as_me: error: unknown endianness
20409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20410    { (exit 1); exit 1; }; } ;;
20411 esac
20412
20413
20414 echo "$as_me:$LINENO: checking for pid_t" >&5
20415 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20416 if test "${ac_cv_type_pid_t+set}" = set; then
20417   echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20419   cat >conftest.$ac_ext <<_ACEOF
20420 #line $LINENO "configure"
20421 /* confdefs.h.  */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h.  */
20426 $ac_includes_default
20427 int
20428 main ()
20429 {
20430 if ((pid_t *) 0)
20431   return 0;
20432 if (sizeof (pid_t))
20433   return 0;
20434   ;
20435   return 0;
20436 }
20437 _ACEOF
20438 rm -f conftest.$ac_objext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20440   (eval $ac_compile) 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); } &&
20444          { ac_try='test -s conftest.$ac_objext'
20445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446   (eval $ac_try) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; }; then
20450   ac_cv_type_pid_t=yes
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455 ac_cv_type_pid_t=no
20456 fi
20457 rm -f conftest.$ac_objext conftest.$ac_ext
20458 fi
20459 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20460 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20461 if test $ac_cv_type_pid_t = yes; then
20462   :
20463 else
20464
20465 cat >>confdefs.h <<_ACEOF
20466 #define pid_t int
20467 _ACEOF
20468
20469 fi
20470
20471 echo "$as_me:$LINENO: checking for size_t" >&5
20472 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20473 if test "${ac_cv_type_size_t+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476   cat >conftest.$ac_ext <<_ACEOF
20477 #line $LINENO "configure"
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483 $ac_includes_default
20484 int
20485 main ()
20486 {
20487 if ((size_t *) 0)
20488   return 0;
20489 if (sizeof (size_t))
20490   return 0;
20491   ;
20492   return 0;
20493 }
20494 _ACEOF
20495 rm -f conftest.$ac_objext
20496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20497   (eval $ac_compile) 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); } &&
20501          { ac_try='test -s conftest.$ac_objext'
20502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503   (eval $ac_try) 2>&5
20504   ac_status=$?
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); }; }; then
20507   ac_cv_type_size_t=yes
20508 else
20509   echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 ac_cv_type_size_t=no
20513 fi
20514 rm -f conftest.$ac_objext conftest.$ac_ext
20515 fi
20516 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20517 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20518 if test $ac_cv_type_size_t = yes; then
20519   :
20520 else
20521
20522 cat >>confdefs.h <<_ACEOF
20523 #define size_t unsigned
20524 _ACEOF
20525
20526 fi
20527
20528 echo "$as_me:$LINENO: checking for int64_t" >&5
20529 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20530 if test "${ac_cv_type_int64_t+set}" = set; then
20531   echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533   cat >conftest.$ac_ext <<_ACEOF
20534 #line $LINENO "configure"
20535 /* confdefs.h.  */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h.  */
20540 $ac_includes_default
20541 int
20542 main ()
20543 {
20544 if ((int64_t *) 0)
20545   return 0;
20546 if (sizeof (int64_t))
20547   return 0;
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554   (eval $ac_compile) 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } &&
20558          { ac_try='test -s conftest.$ac_objext'
20559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560   (eval $ac_try) 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); }; }; then
20564   ac_cv_type_int64_t=yes
20565 else
20566   echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569 ac_cv_type_int64_t=no
20570 fi
20571 rm -f conftest.$ac_objext conftest.$ac_ext
20572 fi
20573 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20574 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20575 if test $ac_cv_type_int64_t = yes; then
20576
20577 cat >>confdefs.h <<_ACEOF
20578 #define HAVE_INT64_T 1
20579 _ACEOF
20580
20581
20582 else
20583   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20584 echo "$as_me: error: Type int64_t required but not found" >&2;}
20585    { (exit 1); exit 1; }; }
20586 fi
20587
20588 echo "$as_me:$LINENO: checking for uint64_t" >&5
20589 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20590 if test "${ac_cv_type_uint64_t+set}" = set; then
20591   echo $ECHO_N "(cached) $ECHO_C" >&6
20592 else
20593   cat >conftest.$ac_ext <<_ACEOF
20594 #line $LINENO "configure"
20595 /* confdefs.h.  */
20596 _ACEOF
20597 cat confdefs.h >>conftest.$ac_ext
20598 cat >>conftest.$ac_ext <<_ACEOF
20599 /* end confdefs.h.  */
20600 $ac_includes_default
20601 int
20602 main ()
20603 {
20604 if ((uint64_t *) 0)
20605   return 0;
20606 if (sizeof (uint64_t))
20607   return 0;
20608   ;
20609   return 0;
20610 }
20611 _ACEOF
20612 rm -f conftest.$ac_objext
20613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20614   (eval $ac_compile) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); } &&
20618          { ac_try='test -s conftest.$ac_objext'
20619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620   (eval $ac_try) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; }; then
20624   ac_cv_type_uint64_t=yes
20625 else
20626   echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ac_cv_type_uint64_t=no
20630 fi
20631 rm -f conftest.$ac_objext conftest.$ac_ext
20632 fi
20633 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20634 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20635 if test $ac_cv_type_uint64_t = yes; then
20636
20637 cat >>confdefs.h <<_ACEOF
20638 #define HAVE_UINT64_T 1
20639 _ACEOF
20640
20641
20642 else
20643   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20644 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20645    { (exit 1); exit 1; }; }
20646 fi
20647
20648 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20649 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20650 if test "${ac_cv_header_time+set}" = set; then
20651   echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653   cat >conftest.$ac_ext <<_ACEOF
20654 #line $LINENO "configure"
20655 /* confdefs.h.  */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h.  */
20660 #include <sys/types.h>
20661 #include <sys/time.h>
20662 #include <time.h>
20663
20664 int
20665 main ()
20666 {
20667 if ((struct tm *) 0)
20668 return 0;
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_header_time=yes
20686 else
20687   echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690 ac_cv_header_time=no
20691 fi
20692 rm -f conftest.$ac_objext conftest.$ac_ext
20693 fi
20694 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20695 echo "${ECHO_T}$ac_cv_header_time" >&6
20696 if test $ac_cv_header_time = yes; then
20697
20698 cat >>confdefs.h <<\_ACEOF
20699 #define TIME_WITH_SYS_TIME 1
20700 _ACEOF
20701
20702 fi
20703
20704 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20705 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20706 if test "${ac_cv_struct_tm+set}" = set; then
20707   echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709   cat >conftest.$ac_ext <<_ACEOF
20710 #line $LINENO "configure"
20711 /* confdefs.h.  */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h.  */
20716 #include <sys/types.h>
20717 #include <time.h>
20718
20719 int
20720 main ()
20721 {
20722 struct tm *tp; tp->tm_sec;
20723   ;
20724   return 0;
20725 }
20726 _ACEOF
20727 rm -f conftest.$ac_objext
20728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20729   (eval $ac_compile) 2>&5
20730   ac_status=$?
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); } &&
20733          { ac_try='test -s conftest.$ac_objext'
20734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735   (eval $ac_try) 2>&5
20736   ac_status=$?
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); }; }; then
20739   ac_cv_struct_tm=time.h
20740 else
20741   echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20743
20744 ac_cv_struct_tm=sys/time.h
20745 fi
20746 rm -f conftest.$ac_objext conftest.$ac_ext
20747 fi
20748 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20749 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20750 if test $ac_cv_struct_tm = sys/time.h; then
20751
20752 cat >>confdefs.h <<\_ACEOF
20753 #define TM_IN_SYS_TIME 1
20754 _ACEOF
20755
20756 fi
20757
20758
20759 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20760 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20761 if test "${ac_cv_cxx_namespaces+set}" = set; then
20762   echo $ECHO_N "(cached) $ECHO_C" >&6
20763 else
20764
20765
20766  ac_ext=cc
20767 ac_cpp='$CXXCPP $CPPFLAGS'
20768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20771
20772  cat >conftest.$ac_ext <<_ACEOF
20773 #line $LINENO "configure"
20774 /* confdefs.h.  */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h.  */
20779 namespace Outer { namespace Inner { int i = 0; }}
20780 int
20781 main ()
20782 {
20783 using namespace Outer::Inner; return i;
20784   ;
20785   return 0;
20786 }
20787 _ACEOF
20788 rm -f conftest.$ac_objext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20790   (eval $ac_compile) 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } &&
20794          { ac_try='test -s conftest.$ac_objext'
20795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796   (eval $ac_try) 2>&5
20797   ac_status=$?
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); }; }; then
20800   ac_cv_cxx_namespaces=yes
20801 else
20802   echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20804
20805 ac_cv_cxx_namespaces=no
20806 fi
20807 rm -f conftest.$ac_objext conftest.$ac_ext
20808  ac_ext=c
20809 ac_cpp='$CPP $CPPFLAGS'
20810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20813
20814
20815 fi
20816 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20817 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20818 if test "$ac_cv_cxx_namespaces" = yes; then
20819
20820 cat >>confdefs.h <<\_ACEOF
20821 #define HAVE_NAMESPACES
20822 _ACEOF
20823
20824 fi
20825
20826 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20827 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20828 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20829   echo $ECHO_N "(cached) $ECHO_C" >&6
20830 else
20831
20832
20833
20834   ac_ext=cc
20835 ac_cpp='$CXXCPP $CPPFLAGS'
20836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20839
20840   cat >conftest.$ac_ext <<_ACEOF
20841 #line $LINENO "configure"
20842 /* confdefs.h.  */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h.  */
20847 #include <ext/hash_map>
20848 #ifdef HAVE_NAMESPACES
20849 using namespace std;
20850 #endif
20851 int
20852 main ()
20853 {
20854 hash_map<int, int> t; return 0;
20855   ;
20856   return 0;
20857 }
20858 _ACEOF
20859 rm -f conftest.$ac_objext
20860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861   (eval $ac_compile) 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } &&
20865          { ac_try='test -s conftest.$ac_objext'
20866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867   (eval $ac_try) 2>&5
20868   ac_status=$?
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); }; }; then
20871   ac_cv_cxx_have_ext_hash_map=std
20872 else
20873   echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20875
20876 ac_cv_cxx_have_ext_hash_map=no
20877 fi
20878 rm -f conftest.$ac_objext conftest.$ac_ext
20879   cat >conftest.$ac_ext <<_ACEOF
20880 #line $LINENO "configure"
20881 /* confdefs.h.  */
20882 _ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h.  */
20886 #include <ext/hash_map>
20887 #ifdef HAVE_NAMESPACES
20888 using namespace __gnu_cxx;
20889 #endif
20890 int
20891 main ()
20892 {
20893 hash_map<int, int> t; return 0;
20894   ;
20895   return 0;
20896 }
20897 _ACEOF
20898 rm -f conftest.$ac_objext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20900   (eval $ac_compile) 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); } &&
20904          { ac_try='test -s conftest.$ac_objext'
20905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906   (eval $ac_try) 2>&5
20907   ac_status=$?
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); }; }; then
20910   ac_cv_cxx_have_ext_hash_map=gnu
20911 else
20912   echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915 ac_cv_cxx_have_ext_hash_map=no
20916 fi
20917 rm -f conftest.$ac_objext conftest.$ac_ext
20918   ac_ext=c
20919 ac_cpp='$CPP $CPPFLAGS'
20920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20923
20924
20925 fi
20926 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20927 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20928 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20929
20930 cat >>confdefs.h <<\_ACEOF
20931 #define HAVE_STD_EXT_HASH_MAP
20932 _ACEOF
20933
20934 fi
20935 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20936
20937 cat >>confdefs.h <<\_ACEOF
20938 #define HAVE_GNU_EXT_HASH_MAP
20939 _ACEOF
20940
20941 fi
20942
20943 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20944 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20945 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20946   echo $ECHO_N "(cached) $ECHO_C" >&6
20947 else
20948
20949
20950
20951   ac_ext=cc
20952 ac_cpp='$CXXCPP $CPPFLAGS'
20953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20956
20957   cat >conftest.$ac_ext <<_ACEOF
20958 #line $LINENO "configure"
20959 /* confdefs.h.  */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h.  */
20964 #include <ext/hash_set>
20965 #ifdef HAVE_NAMESPACES
20966 using namespace std;
20967 #endif
20968 int
20969 main ()
20970 {
20971 hash_set<int> t; return 0;
20972   ;
20973   return 0;
20974 }
20975 _ACEOF
20976 rm -f conftest.$ac_objext
20977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20978   (eval $ac_compile) 2>&5
20979   ac_status=$?
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } &&
20982          { ac_try='test -s conftest.$ac_objext'
20983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984   (eval $ac_try) 2>&5
20985   ac_status=$?
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); }; }; then
20988   ac_cv_cxx_have_ext_hash_set=std
20989 else
20990   echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20992
20993 ac_cv_cxx_have_ext_hash_set=no
20994 fi
20995 rm -f conftest.$ac_objext conftest.$ac_ext
20996   cat >conftest.$ac_ext <<_ACEOF
20997 #line $LINENO "configure"
20998 /* confdefs.h.  */
20999 _ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h.  */
21003 #include <ext/hash_set>
21004 #ifdef HAVE_NAMESPACES
21005 using namespace __gnu_cxx;
21006 #endif
21007 int
21008 main ()
21009 {
21010 hash_set<int> t; return 0;
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21017   (eval $ac_compile) 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); } &&
21021          { ac_try='test -s conftest.$ac_objext'
21022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023   (eval $ac_try) 2>&5
21024   ac_status=$?
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); }; }; then
21027   ac_cv_cxx_have_ext_hash_set=gnu
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 ac_cv_cxx_have_ext_hash_set=no
21033 fi
21034 rm -f conftest.$ac_objext conftest.$ac_ext
21035   ac_ext=c
21036 ac_cpp='$CPP $CPPFLAGS'
21037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21040
21041
21042 fi
21043 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21044 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21045 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21046
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_STD_EXT_HASH_SET
21049 _ACEOF
21050
21051 fi
21052 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21053
21054 cat >>confdefs.h <<\_ACEOF
21055 #define HAVE_GNU_EXT_HASH_SET
21056 _ACEOF
21057
21058 fi
21059
21060 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21061 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21062 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21063   echo $ECHO_N "(cached) $ECHO_C" >&6
21064 else
21065
21066
21067
21068   ac_ext=cc
21069 ac_cpp='$CXXCPP $CPPFLAGS'
21070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21073
21074   cat >conftest.$ac_ext <<_ACEOF
21075 #line $LINENO "configure"
21076 /* confdefs.h.  */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h.  */
21081 #include <ext/slist>
21082 #ifdef HAVE_NAMESPACES
21083 using namespace std;
21084 #endif
21085 int
21086 main ()
21087 {
21088 slist<int> s; return 0;
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest.$ac_objext
21094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21095   (eval $ac_compile) 2>&5
21096   ac_status=$?
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); } &&
21099          { ac_try='test -s conftest.$ac_objext'
21100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101   (eval $ac_try) 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); }; }; then
21105   ac_cv_cxx_have_ext_slist=std
21106 else
21107   echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110 ac_cv_cxx_have_ext_slist=no
21111 fi
21112 rm -f conftest.$ac_objext conftest.$ac_ext
21113   cat >conftest.$ac_ext <<_ACEOF
21114 #line $LINENO "configure"
21115 /* confdefs.h.  */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h.  */
21120 #include <ext/slist>
21121 #ifdef HAVE_NAMESPACES
21122 using namespace __gnu_cxx;
21123 #endif
21124 int
21125 main ()
21126 {
21127 slist<int> s; return 0;
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext
21133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21134   (eval $ac_compile) 2>&5
21135   ac_status=$?
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); } &&
21138          { ac_try='test -s conftest.$ac_objext'
21139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140   (eval $ac_try) 2>&5
21141   ac_status=$?
21142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143   (exit $ac_status); }; }; then
21144   ac_cv_cxx_have_ext_slist=gnu
21145 else
21146   echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21148
21149 ac_cv_cxx_have_ext_slist=no
21150 fi
21151 rm -f conftest.$ac_objext conftest.$ac_ext
21152
21153   ac_ext=c
21154 ac_cpp='$CPP $CPPFLAGS'
21155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21158
21159
21160 fi
21161 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21162 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21163 if test "$ac_cv_cxx_have_ext_slist" = std; then
21164
21165 cat >>confdefs.h <<\_ACEOF
21166 #define HAVE_EXT_SLIST std
21167 _ACEOF
21168
21169 fi
21170 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21171
21172 cat >>confdefs.h <<\_ACEOF
21173 #define HAVE_EXT_SLIST gnu
21174 _ACEOF
21175
21176 fi
21177
21178 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21179 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21180 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21181   echo $ECHO_N "(cached) $ECHO_C" >&6
21182 else
21183
21184
21185
21186   ac_ext=cc
21187 ac_cpp='$CXXCPP $CPPFLAGS'
21188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21191
21192   cat >conftest.$ac_ext <<_ACEOF
21193 #line $LINENO "configure"
21194 /* confdefs.h.  */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h.  */
21199 #include <iterator>
21200 #ifdef HAVE_NAMESPACES
21201 using namespace std;
21202 #endif
21203 int
21204 main ()
21205 {
21206 iterator<int,int,int> t; return 0;
21207   ;
21208   return 0;
21209 }
21210 _ACEOF
21211 rm -f conftest.$ac_objext
21212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21213   (eval $ac_compile) 2>&5
21214   ac_status=$?
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); } &&
21217          { ac_try='test -s conftest.$ac_objext'
21218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219   (eval $ac_try) 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); }; }; then
21223   ac_cv_cxx_have_std_iterator=yes
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228 ac_cv_cxx_have_std_iterator=no
21229 fi
21230 rm -f conftest.$ac_objext conftest.$ac_ext
21231   ac_ext=c
21232 ac_cpp='$CPP $CPPFLAGS'
21233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21236
21237
21238 fi
21239 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21240 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21241 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21242
21243 cat >>confdefs.h <<\_ACEOF
21244 #define HAVE_STD_ITERATOR
21245 _ACEOF
21246
21247 fi
21248
21249 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21250 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21251 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21252   echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254
21255
21256
21257   ac_ext=cc
21258 ac_cpp='$CXXCPP $CPPFLAGS'
21259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21262
21263   cat >conftest.$ac_ext <<_ACEOF
21264 #line $LINENO "configure"
21265 /* confdefs.h.  */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h.  */
21270 #include <iterator>
21271 #ifdef HAVE_NAMESPACES
21272 using namespace std;
21273 #endif
21274 int
21275 main ()
21276 {
21277 bidirectional_iterator<int,int> t; return 0;
21278   ;
21279   return 0;
21280 }
21281 _ACEOF
21282 rm -f conftest.$ac_objext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21284   (eval $ac_compile) 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } &&
21288          { ac_try='test -s conftest.$ac_objext'
21289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290   (eval $ac_try) 2>&5
21291   ac_status=$?
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); }; }; then
21294   ac_cv_cxx_have_bi_iterator=yes
21295 else
21296   echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 ac_cv_cxx_have_bi_iterator=no
21300 fi
21301 rm -f conftest.$ac_objext conftest.$ac_ext
21302   ac_ext=c
21303 ac_cpp='$CPP $CPPFLAGS'
21304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21307
21308
21309 fi
21310 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21311 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21312 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21313
21314 cat >>confdefs.h <<\_ACEOF
21315 #define HAVE_BI_ITERATOR
21316 _ACEOF
21317
21318 fi
21319
21320 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21321 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21322 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21323   echo $ECHO_N "(cached) $ECHO_C" >&6
21324 else
21325
21326
21327
21328   ac_ext=cc
21329 ac_cpp='$CXXCPP $CPPFLAGS'
21330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21333
21334   cat >conftest.$ac_ext <<_ACEOF
21335 #line $LINENO "configure"
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 #include <iterator>
21342 #ifdef HAVE_NAMESPACES
21343 using namespace std;
21344 #endif
21345 int
21346 main ()
21347 {
21348 forward_iterator<int,int> t; return 0;
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21355   (eval $ac_compile) 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); } &&
21359          { ac_try='test -s conftest.$ac_objext'
21360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361   (eval $ac_try) 2>&5
21362   ac_status=$?
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); }; }; then
21365   ac_cv_cxx_have_fwd_iterator=yes
21366 else
21367   echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370 ac_cv_cxx_have_fwd_iterator=no
21371 fi
21372 rm -f conftest.$ac_objext conftest.$ac_ext
21373   ac_ext=c
21374 ac_cpp='$CPP $CPPFLAGS'
21375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21378
21379
21380 fi
21381 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21382 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21383 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21384
21385 cat >>confdefs.h <<\_ACEOF
21386 #define HAVE_FWD_ITERATOR
21387 _ACEOF
21388
21389 fi
21390
21391
21392 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21393 # for constant arguments.  Useless!
21394 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21395 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21396 if test "${ac_cv_working_alloca_h+set}" = set; then
21397   echo $ECHO_N "(cached) $ECHO_C" >&6
21398 else
21399   cat >conftest.$ac_ext <<_ACEOF
21400 #line $LINENO "configure"
21401 /* confdefs.h.  */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h.  */
21406 #include <alloca.h>
21407 int
21408 main ()
21409 {
21410 char *p = (char *) alloca (2 * sizeof (int));
21411   ;
21412   return 0;
21413 }
21414 _ACEOF
21415 rm -f conftest.$ac_objext conftest$ac_exeext
21416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21417   (eval $ac_link) 2>&5
21418   ac_status=$?
21419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); } &&
21421          { ac_try='test -s conftest$ac_exeext'
21422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423   (eval $ac_try) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); }; }; then
21427   ac_cv_working_alloca_h=yes
21428 else
21429   echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432 ac_cv_working_alloca_h=no
21433 fi
21434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21435 fi
21436 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21437 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21438 if test $ac_cv_working_alloca_h = yes; then
21439
21440 cat >>confdefs.h <<\_ACEOF
21441 #define HAVE_ALLOCA_H 1
21442 _ACEOF
21443
21444 fi
21445
21446 echo "$as_me:$LINENO: checking for alloca" >&5
21447 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21448 if test "${ac_cv_func_alloca_works+set}" = set; then
21449   echo $ECHO_N "(cached) $ECHO_C" >&6
21450 else
21451   cat >conftest.$ac_ext <<_ACEOF
21452 #line $LINENO "configure"
21453 /* confdefs.h.  */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h.  */
21458 #ifdef __GNUC__
21459 # define alloca __builtin_alloca
21460 #else
21461 # ifdef _MSC_VER
21462 #  include <malloc.h>
21463 #  define alloca _alloca
21464 # else
21465 #  if HAVE_ALLOCA_H
21466 #   include <alloca.h>
21467 #  else
21468 #   ifdef _AIX
21469  #pragma alloca
21470 #   else
21471 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21472 char *alloca ();
21473 #    endif
21474 #   endif
21475 #  endif
21476 # endif
21477 #endif
21478
21479 int
21480 main ()
21481 {
21482 char *p = (char *) alloca (1);
21483   ;
21484   return 0;
21485 }
21486 _ACEOF
21487 rm -f conftest.$ac_objext conftest$ac_exeext
21488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21489   (eval $ac_link) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); } &&
21493          { ac_try='test -s conftest$ac_exeext'
21494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495   (eval $ac_try) 2>&5
21496   ac_status=$?
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); }; }; then
21499   ac_cv_func_alloca_works=yes
21500 else
21501   echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504 ac_cv_func_alloca_works=no
21505 fi
21506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21507 fi
21508 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21509 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21510
21511 if test $ac_cv_func_alloca_works = yes; then
21512
21513 cat >>confdefs.h <<\_ACEOF
21514 #define HAVE_ALLOCA 1
21515 _ACEOF
21516
21517 else
21518   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21519 # that cause trouble.  Some versions do not even contain alloca or
21520 # contain a buggy version.  If you still want to use their alloca,
21521 # use ar to extract alloca.o from them instead of compiling alloca.c.
21522
21523 ALLOCA=alloca.$ac_objext
21524
21525 cat >>confdefs.h <<\_ACEOF
21526 #define C_ALLOCA 1
21527 _ACEOF
21528
21529
21530 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21531 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21532 if test "${ac_cv_os_cray+set}" = set; then
21533   echo $ECHO_N "(cached) $ECHO_C" >&6
21534 else
21535   cat >conftest.$ac_ext <<_ACEOF
21536 #line $LINENO "configure"
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 #if defined(CRAY) && ! defined(CRAY2)
21543 webecray
21544 #else
21545 wenotbecray
21546 #endif
21547
21548 _ACEOF
21549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21550   $EGREP "webecray" >/dev/null 2>&1; then
21551   ac_cv_os_cray=yes
21552 else
21553   ac_cv_os_cray=no
21554 fi
21555 rm -f conftest*
21556
21557 fi
21558 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21559 echo "${ECHO_T}$ac_cv_os_cray" >&6
21560 if test $ac_cv_os_cray = yes; then
21561   for ac_func in _getb67 GETB67 getb67; do
21562     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21563 echo "$as_me:$LINENO: checking for $ac_func" >&5
21564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21565 if eval "test \"\${$as_ac_var+set}\" = set"; then
21566   echo $ECHO_N "(cached) $ECHO_C" >&6
21567 else
21568   cat >conftest.$ac_ext <<_ACEOF
21569 #line $LINENO "configure"
21570 /* confdefs.h.  */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h.  */
21575 /* System header to define __stub macros and hopefully few prototypes,
21576     which can conflict with char $ac_func (); below.
21577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21578     <limits.h> exists even on freestanding compilers.  */
21579 #ifdef __STDC__
21580 # include <limits.h>
21581 #else
21582 # include <assert.h>
21583 #endif
21584 /* Override any gcc2 internal prototype to avoid an error.  */
21585 #ifdef __cplusplus
21586 extern "C"
21587 {
21588 #endif
21589 /* We use char because int might match the return type of a gcc2
21590    builtin and then its argument prototype would still apply.  */
21591 char $ac_func ();
21592 /* The GNU C library defines this for functions which it implements
21593     to always fail with ENOSYS.  Some functions are actually named
21594     something starting with __ and the normal name is an alias.  */
21595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21596 choke me
21597 #else
21598 char (*f) () = $ac_func;
21599 #endif
21600 #ifdef __cplusplus
21601 }
21602 #endif
21603
21604 int
21605 main ()
21606 {
21607 return f != $ac_func;
21608   ;
21609   return 0;
21610 }
21611 _ACEOF
21612 rm -f conftest.$ac_objext conftest$ac_exeext
21613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21614   (eval $ac_link) 2>&5
21615   ac_status=$?
21616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); } &&
21618          { ac_try='test -s conftest$ac_exeext'
21619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620   (eval $ac_try) 2>&5
21621   ac_status=$?
21622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); }; }; then
21624   eval "$as_ac_var=yes"
21625 else
21626   echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629 eval "$as_ac_var=no"
21630 fi
21631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21632 fi
21633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21635 if test `eval echo '${'$as_ac_var'}'` = yes; then
21636
21637 cat >>confdefs.h <<_ACEOF
21638 #define CRAY_STACKSEG_END $ac_func
21639 _ACEOF
21640
21641     break
21642 fi
21643
21644   done
21645 fi
21646
21647 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21648 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21649 if test "${ac_cv_c_stack_direction+set}" = set; then
21650   echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652   if test "$cross_compiling" = yes; then
21653   ac_cv_c_stack_direction=0
21654 else
21655   cat >conftest.$ac_ext <<_ACEOF
21656 #line $LINENO "configure"
21657 /* confdefs.h.  */
21658 _ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h.  */
21662 int
21663 find_stack_direction ()
21664 {
21665   static char *addr = 0;
21666   auto char dummy;
21667   if (addr == 0)
21668     {
21669       addr = &dummy;
21670       return find_stack_direction ();
21671     }
21672   else
21673     return (&dummy > addr) ? 1 : -1;
21674 }
21675
21676 int
21677 main ()
21678 {
21679   exit (find_stack_direction () < 0);
21680 }
21681 _ACEOF
21682 rm -f conftest$ac_exeext
21683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21684   (eval $ac_link) 2>&5
21685   ac_status=$?
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689   (eval $ac_try) 2>&5
21690   ac_status=$?
21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); }; }; then
21693   ac_cv_c_stack_direction=1
21694 else
21695   echo "$as_me: program exited with status $ac_status" >&5
21696 echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.$ac_ext >&5
21698
21699 ( exit $ac_status )
21700 ac_cv_c_stack_direction=-1
21701 fi
21702 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21703 fi
21704 fi
21705 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21706 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21707
21708 cat >>confdefs.h <<_ACEOF
21709 #define STACK_DIRECTION $ac_cv_c_stack_direction
21710 _ACEOF
21711
21712
21713 fi
21714
21715 if test $ac_cv_c_compiler_gnu = yes; then
21716     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21717 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21718 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21719   echo $ECHO_N "(cached) $ECHO_C" >&6
21720 else
21721     ac_pattern="Autoconf.*'x'"
21722   cat >conftest.$ac_ext <<_ACEOF
21723 #line $LINENO "configure"
21724 /* confdefs.h.  */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h.  */
21729 #include <sgtty.h>
21730 Autoconf TIOCGETP
21731 _ACEOF
21732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21733   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21734   ac_cv_prog_gcc_traditional=yes
21735 else
21736   ac_cv_prog_gcc_traditional=no
21737 fi
21738 rm -f conftest*
21739
21740
21741   if test $ac_cv_prog_gcc_traditional = no; then
21742     cat >conftest.$ac_ext <<_ACEOF
21743 #line $LINENO "configure"
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 #include <termio.h>
21750 Autoconf TCGETA
21751 _ACEOF
21752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21753   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21754   ac_cv_prog_gcc_traditional=yes
21755 fi
21756 rm -f conftest*
21757
21758   fi
21759 fi
21760 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21761 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21762   if test $ac_cv_prog_gcc_traditional = yes; then
21763     CC="$CC -traditional"
21764   fi
21765 fi
21766
21767 echo "$as_me:$LINENO: checking for working memcmp" >&5
21768 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21769 if test "${ac_cv_func_memcmp_working+set}" = set; then
21770   echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772   if test "$cross_compiling" = yes; then
21773   ac_cv_func_memcmp_working=no
21774 else
21775   cat >conftest.$ac_ext <<_ACEOF
21776 #line $LINENO "configure"
21777 /* confdefs.h.  */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h.  */
21782
21783 int
21784 main ()
21785 {
21786
21787   /* Some versions of memcmp are not 8-bit clean.  */
21788   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21789   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21790     exit (1);
21791
21792   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21793      or more and with at least one buffer not starting on a 4-byte boundary.
21794      William Lewis provided this test program.   */
21795   {
21796     char foo[21];
21797     char bar[21];
21798     int i;
21799     for (i = 0; i < 4; i++)
21800       {
21801         char *a = foo + i;
21802         char *b = bar + i;
21803         strcpy (a, "--------01111111");
21804         strcpy (b, "--------10000000");
21805         if (memcmp (a, b, 16) >= 0)
21806           exit (1);
21807       }
21808     exit (0);
21809   }
21810
21811   ;
21812   return 0;
21813 }
21814 _ACEOF
21815 rm -f conftest$ac_exeext
21816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21817   (eval $ac_link) 2>&5
21818   ac_status=$?
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822   (eval $ac_try) 2>&5
21823   ac_status=$?
21824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825   (exit $ac_status); }; }; then
21826   ac_cv_func_memcmp_working=yes
21827 else
21828   echo "$as_me: program exited with status $ac_status" >&5
21829 echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21831
21832 ( exit $ac_status )
21833 ac_cv_func_memcmp_working=no
21834 fi
21835 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21836 fi
21837 fi
21838 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21839 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21840 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21841
21842
21843
21844 for ac_header in stdlib.h unistd.h
21845 do
21846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21848   echo "$as_me:$LINENO: checking for $ac_header" >&5
21849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21851   echo $ECHO_N "(cached) $ECHO_C" >&6
21852 fi
21853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21855 else
21856   # Is the header compilable?
21857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21859 cat >conftest.$ac_ext <<_ACEOF
21860 #line $LINENO "configure"
21861 /* confdefs.h.  */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h.  */
21866 $ac_includes_default
21867 #include <$ac_header>
21868 _ACEOF
21869 rm -f conftest.$ac_objext
21870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21871   (eval $ac_compile) 2>&5
21872   ac_status=$?
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); } &&
21875          { ac_try='test -s conftest.$ac_objext'
21876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877   (eval $ac_try) 2>&5
21878   ac_status=$?
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); }; }; then
21881   ac_header_compiler=yes
21882 else
21883   echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886 ac_header_compiler=no
21887 fi
21888 rm -f conftest.$ac_objext conftest.$ac_ext
21889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21890 echo "${ECHO_T}$ac_header_compiler" >&6
21891
21892 # Is the header present?
21893 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21895 cat >conftest.$ac_ext <<_ACEOF
21896 #line $LINENO "configure"
21897 /* confdefs.h.  */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h.  */
21902 #include <$ac_header>
21903 _ACEOF
21904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21906   ac_status=$?
21907   grep -v '^ *+' conftest.er1 >conftest.err
21908   rm -f conftest.er1
21909   cat conftest.err >&5
21910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911   (exit $ac_status); } >/dev/null; then
21912   if test -s conftest.err; then
21913     ac_cpp_err=$ac_c_preproc_warn_flag
21914   else
21915     ac_cpp_err=
21916   fi
21917 else
21918   ac_cpp_err=yes
21919 fi
21920 if test -z "$ac_cpp_err"; then
21921   ac_header_preproc=yes
21922 else
21923   echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926   ac_header_preproc=no
21927 fi
21928 rm -f conftest.err conftest.$ac_ext
21929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21930 echo "${ECHO_T}$ac_header_preproc" >&6
21931
21932 # So?  What about this header?
21933 case $ac_header_compiler:$ac_header_preproc in
21934   yes:no )
21935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21939     (
21940       cat <<\_ASBOX
21941 ## ------------------------------------ ##
21942 ## Report this to bug-autoconf@gnu.org. ##
21943 ## ------------------------------------ ##
21944 _ASBOX
21945     ) |
21946       sed "s/^/$as_me: WARNING:     /" >&2
21947     ;;
21948   no:yes )
21949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21951     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21955     (
21956       cat <<\_ASBOX
21957 ## ------------------------------------ ##
21958 ## Report this to bug-autoconf@gnu.org. ##
21959 ## ------------------------------------ ##
21960 _ASBOX
21961     ) |
21962       sed "s/^/$as_me: WARNING:     /" >&2
21963     ;;
21964 esac
21965 echo "$as_me:$LINENO: checking for $ac_header" >&5
21966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21968   echo $ECHO_N "(cached) $ECHO_C" >&6
21969 else
21970   eval "$as_ac_Header=$ac_header_preproc"
21971 fi
21972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21974
21975 fi
21976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21977   cat >>confdefs.h <<_ACEOF
21978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21979 _ACEOF
21980
21981 fi
21982
21983 done
21984
21985
21986 for ac_func in getpagesize
21987 do
21988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21989 echo "$as_me:$LINENO: checking for $ac_func" >&5
21990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21991 if eval "test \"\${$as_ac_var+set}\" = set"; then
21992   echo $ECHO_N "(cached) $ECHO_C" >&6
21993 else
21994   cat >conftest.$ac_ext <<_ACEOF
21995 #line $LINENO "configure"
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001 /* System header to define __stub macros and hopefully few prototypes,
22002     which can conflict with char $ac_func (); below.
22003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22004     <limits.h> exists even on freestanding compilers.  */
22005 #ifdef __STDC__
22006 # include <limits.h>
22007 #else
22008 # include <assert.h>
22009 #endif
22010 /* Override any gcc2 internal prototype to avoid an error.  */
22011 #ifdef __cplusplus
22012 extern "C"
22013 {
22014 #endif
22015 /* We use char because int might match the return type of a gcc2
22016    builtin and then its argument prototype would still apply.  */
22017 char $ac_func ();
22018 /* The GNU C library defines this for functions which it implements
22019     to always fail with ENOSYS.  Some functions are actually named
22020     something starting with __ and the normal name is an alias.  */
22021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22022 choke me
22023 #else
22024 char (*f) () = $ac_func;
22025 #endif
22026 #ifdef __cplusplus
22027 }
22028 #endif
22029
22030 int
22031 main ()
22032 {
22033 return f != $ac_func;
22034   ;
22035   return 0;
22036 }
22037 _ACEOF
22038 rm -f conftest.$ac_objext conftest$ac_exeext
22039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22040   (eval $ac_link) 2>&5
22041   ac_status=$?
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); } &&
22044          { ac_try='test -s conftest$ac_exeext'
22045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046   (eval $ac_try) 2>&5
22047   ac_status=$?
22048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049   (exit $ac_status); }; }; then
22050   eval "$as_ac_var=yes"
22051 else
22052   echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055 eval "$as_ac_var=no"
22056 fi
22057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22058 fi
22059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22061 if test `eval echo '${'$as_ac_var'}'` = yes; then
22062   cat >>confdefs.h <<_ACEOF
22063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22064 _ACEOF
22065
22066 fi
22067 done
22068
22069 echo "$as_me:$LINENO: checking for working mmap" >&5
22070 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22071 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22072   echo $ECHO_N "(cached) $ECHO_C" >&6
22073 else
22074   if test "$cross_compiling" = yes; then
22075   ac_cv_func_mmap_fixed_mapped=no
22076 else
22077   cat >conftest.$ac_ext <<_ACEOF
22078 #line $LINENO "configure"
22079 /* confdefs.h.  */
22080 _ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h.  */
22084 $ac_includes_default
22085 /* malloc might have been renamed as rpl_malloc. */
22086 #undef malloc
22087
22088 /* Thanks to Mike Haertel and Jim Avera for this test.
22089    Here is a matrix of mmap possibilities:
22090         mmap private not fixed
22091         mmap private fixed at somewhere currently unmapped
22092         mmap private fixed at somewhere already mapped
22093         mmap shared not fixed
22094         mmap shared fixed at somewhere currently unmapped
22095         mmap shared fixed at somewhere already mapped
22096    For private mappings, we should verify that changes cannot be read()
22097    back from the file, nor mmap's back from the file at a different
22098    address.  (There have been systems where private was not correctly
22099    implemented like the infamous i386 svr4.0, and systems where the
22100    VM page cache was not coherent with the file system buffer cache
22101    like early versions of FreeBSD and possibly contemporary NetBSD.)
22102    For shared mappings, we should conversely verify that changes get
22103    propagated back to all the places they're supposed to be.
22104
22105    Grep wants private fixed already mapped.
22106    The main things grep needs to know about mmap are:
22107    * does it exist and is it safe to write into the mmap'd area
22108    * how to use it (BSD variants)  */
22109
22110 #include <fcntl.h>
22111 #include <sys/mman.h>
22112
22113 #if !STDC_HEADERS && !HAVE_STDLIB_H
22114 char *malloc ();
22115 #endif
22116
22117 /* This mess was copied from the GNU getpagesize.h.  */
22118 #if !HAVE_GETPAGESIZE
22119 /* Assume that all systems that can run configure have sys/param.h.  */
22120 # if !HAVE_SYS_PARAM_H
22121 #  define HAVE_SYS_PARAM_H 1
22122 # endif
22123
22124 # ifdef _SC_PAGESIZE
22125 #  define getpagesize() sysconf(_SC_PAGESIZE)
22126 # else /* no _SC_PAGESIZE */
22127 #  if HAVE_SYS_PARAM_H
22128 #   include <sys/param.h>
22129 #   ifdef EXEC_PAGESIZE
22130 #    define getpagesize() EXEC_PAGESIZE
22131 #   else /* no EXEC_PAGESIZE */
22132 #    ifdef NBPG
22133 #     define getpagesize() NBPG * CLSIZE
22134 #     ifndef CLSIZE
22135 #      define CLSIZE 1
22136 #     endif /* no CLSIZE */
22137 #    else /* no NBPG */
22138 #     ifdef NBPC
22139 #      define getpagesize() NBPC
22140 #     else /* no NBPC */
22141 #      ifdef PAGESIZE
22142 #       define getpagesize() PAGESIZE
22143 #      endif /* PAGESIZE */
22144 #     endif /* no NBPC */
22145 #    endif /* no NBPG */
22146 #   endif /* no EXEC_PAGESIZE */
22147 #  else /* no HAVE_SYS_PARAM_H */
22148 #   define getpagesize() 8192   /* punt totally */
22149 #  endif /* no HAVE_SYS_PARAM_H */
22150 # endif /* no _SC_PAGESIZE */
22151
22152 #endif /* no HAVE_GETPAGESIZE */
22153
22154 int
22155 main ()
22156 {
22157   char *data, *data2, *data3;
22158   int i, pagesize;
22159   int fd;
22160
22161   pagesize = getpagesize ();
22162
22163   /* First, make a file with some known garbage in it. */
22164   data = (char *) malloc (pagesize);
22165   if (!data)
22166     exit (1);
22167   for (i = 0; i < pagesize; ++i)
22168     *(data + i) = rand ();
22169   umask (0);
22170   fd = creat ("conftest.mmap", 0600);
22171   if (fd < 0)
22172     exit (1);
22173   if (write (fd, data, pagesize) != pagesize)
22174     exit (1);
22175   close (fd);
22176
22177   /* Next, try to mmap the file at a fixed address which already has
22178      something else allocated at it.  If we can, also make sure that
22179      we see the same garbage.  */
22180   fd = open ("conftest.mmap", O_RDWR);
22181   if (fd < 0)
22182     exit (1);
22183   data2 = (char *) malloc (2 * pagesize);
22184   if (!data2)
22185     exit (1);
22186   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22187   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22188                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22189     exit (1);
22190   for (i = 0; i < pagesize; ++i)
22191     if (*(data + i) != *(data2 + i))
22192       exit (1);
22193
22194   /* Finally, make sure that changes to the mapped area do not
22195      percolate back to the file as seen by read().  (This is a bug on
22196      some variants of i386 svr4.0.)  */
22197   for (i = 0; i < pagesize; ++i)
22198     *(data2 + i) = *(data2 + i) + 1;
22199   data3 = (char *) malloc (pagesize);
22200   if (!data3)
22201     exit (1);
22202   if (read (fd, data3, pagesize) != pagesize)
22203     exit (1);
22204   for (i = 0; i < pagesize; ++i)
22205     if (*(data + i) != *(data3 + i))
22206       exit (1);
22207   close (fd);
22208   exit (0);
22209 }
22210 _ACEOF
22211 rm -f conftest$ac_exeext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22213   (eval $ac_link) 2>&5
22214   ac_status=$?
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218   (eval $ac_try) 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; }; then
22222   ac_cv_func_mmap_fixed_mapped=yes
22223 else
22224   echo "$as_me: program exited with status $ac_status" >&5
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22227
22228 ( exit $ac_status )
22229 ac_cv_func_mmap_fixed_mapped=no
22230 fi
22231 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22232 fi
22233 fi
22234 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22235 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22236 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22237
22238 cat >>confdefs.h <<\_ACEOF
22239 #define HAVE_MMAP 1
22240 _ACEOF
22241
22242 fi
22243 rm -f conftest.mmap
22244
22245 echo "$as_me:$LINENO: checking for mmap of files" >&5
22246 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22247 if test "${ac_cv_func_mmap_file+set}" = set; then
22248   echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250
22251
22252   ac_ext=c
22253 ac_cpp='$CPP $CPPFLAGS'
22254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22257
22258   if test "$cross_compiling" = yes; then
22259   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22260 See \`config.log' for more details." >&5
22261 echo "$as_me: error: cannot run test program while cross compiling
22262 See \`config.log' for more details." >&2;}
22263    { (exit 1); exit 1; }; }
22264 else
22265   cat >conftest.$ac_ext <<_ACEOF
22266 #line $LINENO "configure"
22267 /* confdefs.h.  */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h.  */
22272
22273 #ifdef HAVE_SYS_MMAN_H
22274 #include <sys/mman.h>
22275 #endif
22276
22277 #ifdef HAVE_SYS_TYPES_H
22278 #include <sys/types.h>
22279 #endif
22280
22281 #ifdef HAVE_FCNTL_H
22282 #include <fcntl.h>
22283 #endif
22284
22285   int fd;
22286   int main () {
22287   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22288 _ACEOF
22289 rm -f conftest$ac_exeext
22290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22291   (eval $ac_link) 2>&5
22292   ac_status=$?
22293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296   (eval $ac_try) 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); }; }; then
22300   ac_cv_func_mmap_file=yes
22301 else
22302   echo "$as_me: program exited with status $ac_status" >&5
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22305
22306 ( exit $ac_status )
22307 ac_cv_func_mmap_file=no
22308 fi
22309 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22310 fi
22311   ac_ext=c
22312 ac_cpp='$CPP $CPPFLAGS'
22313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22316
22317
22318 fi
22319 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22320 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22321 if test "$ac_cv_func_mmap_file" = yes; then
22322    cat >>confdefs.h <<\_ACEOF
22323 #define HAVE_MMAP_FILE 1
22324 _ACEOF
22325
22326    MMAP_FILE=yes
22327
22328 fi
22329
22330 if test ${ac_cv_func_mmap_file} = "no"
22331 then
22332         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22333 echo "$as_me: error: mmap() of files required but not found" >&2;}
22334    { (exit 1); exit 1; }; }
22335 fi
22336 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22337 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22338 if test "${ac_cv_header_mmap_anon+set}" = set; then
22339   echo $ECHO_N "(cached) $ECHO_C" >&6
22340 else
22341
22342
22343   ac_ext=c
22344 ac_cpp='$CPP $CPPFLAGS'
22345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22348
22349   cat >conftest.$ac_ext <<_ACEOF
22350 #line $LINENO "configure"
22351 /* confdefs.h.  */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h.  */
22356 #include <sys/mman.h>
22357   #include <unistd.h>
22358   #include <fcntl.h>
22359 int
22360 main ()
22361 {
22362 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22363   ;
22364   return 0;
22365 }
22366 _ACEOF
22367 rm -f conftest.$ac_objext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22369   (eval $ac_compile) 2>&5
22370   ac_status=$?
22371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372   (exit $ac_status); } &&
22373          { ac_try='test -s conftest.$ac_objext'
22374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375   (eval $ac_try) 2>&5
22376   ac_status=$?
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); }; }; then
22379   ac_cv_header_mmap_anon=yes
22380 else
22381   echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22383
22384 ac_cv_header_mmap_anon=no
22385 fi
22386 rm -f conftest.$ac_objext conftest.$ac_ext
22387   ac_ext=c
22388 ac_cpp='$CPP $CPPFLAGS'
22389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22392
22393
22394 fi
22395 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22396 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22397 if test "$ac_cv_header_mmap_anon" = yes; then
22398    cat >>confdefs.h <<\_ACEOF
22399 #define HAVE_MMAP_ANONYMOUS 1
22400 _ACEOF
22401
22402 fi
22403
22404 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22405 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22406 if test "${ac_cv_type_signal+set}" = set; then
22407   echo $ECHO_N "(cached) $ECHO_C" >&6
22408 else
22409   cat >conftest.$ac_ext <<_ACEOF
22410 #line $LINENO "configure"
22411 /* confdefs.h.  */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h.  */
22416 #include <sys/types.h>
22417 #include <signal.h>
22418 #ifdef signal
22419 # undef signal
22420 #endif
22421 #ifdef __cplusplus
22422 extern "C" void (*signal (int, void (*)(int)))(int);
22423 #else
22424 void (*signal ()) ();
22425 #endif
22426
22427 int
22428 main ()
22429 {
22430 int i;
22431   ;
22432   return 0;
22433 }
22434 _ACEOF
22435 rm -f conftest.$ac_objext
22436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22437   (eval $ac_compile) 2>&5
22438   ac_status=$?
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); } &&
22441          { ac_try='test -s conftest.$ac_objext'
22442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443   (eval $ac_try) 2>&5
22444   ac_status=$?
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); }; }; then
22447   ac_cv_type_signal=void
22448 else
22449   echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22451
22452 ac_cv_type_signal=int
22453 fi
22454 rm -f conftest.$ac_objext conftest.$ac_ext
22455 fi
22456 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22457 echo "${ECHO_T}$ac_cv_type_signal" >&6
22458
22459 cat >>confdefs.h <<_ACEOF
22460 #define RETSIGTYPE $ac_cv_type_signal
22461 _ACEOF
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22474 do
22475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22476 echo "$as_me:$LINENO: checking for $ac_func" >&5
22477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22478 if eval "test \"\${$as_ac_var+set}\" = set"; then
22479   echo $ECHO_N "(cached) $ECHO_C" >&6
22480 else
22481   cat >conftest.$ac_ext <<_ACEOF
22482 #line $LINENO "configure"
22483 /* confdefs.h.  */
22484 _ACEOF
22485 cat confdefs.h >>conftest.$ac_ext
22486 cat >>conftest.$ac_ext <<_ACEOF
22487 /* end confdefs.h.  */
22488 /* System header to define __stub macros and hopefully few prototypes,
22489     which can conflict with char $ac_func (); below.
22490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22491     <limits.h> exists even on freestanding compilers.  */
22492 #ifdef __STDC__
22493 # include <limits.h>
22494 #else
22495 # include <assert.h>
22496 #endif
22497 /* Override any gcc2 internal prototype to avoid an error.  */
22498 #ifdef __cplusplus
22499 extern "C"
22500 {
22501 #endif
22502 /* We use char because int might match the return type of a gcc2
22503    builtin and then its argument prototype would still apply.  */
22504 char $ac_func ();
22505 /* The GNU C library defines this for functions which it implements
22506     to always fail with ENOSYS.  Some functions are actually named
22507     something starting with __ and the normal name is an alias.  */
22508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22509 choke me
22510 #else
22511 char (*f) () = $ac_func;
22512 #endif
22513 #ifdef __cplusplus
22514 }
22515 #endif
22516
22517 int
22518 main ()
22519 {
22520 return f != $ac_func;
22521   ;
22522   return 0;
22523 }
22524 _ACEOF
22525 rm -f conftest.$ac_objext conftest$ac_exeext
22526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22527   (eval $ac_link) 2>&5
22528   ac_status=$?
22529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530   (exit $ac_status); } &&
22531          { ac_try='test -s conftest$ac_exeext'
22532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533   (eval $ac_try) 2>&5
22534   ac_status=$?
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); }; }; then
22537   eval "$as_ac_var=yes"
22538 else
22539   echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22541
22542 eval "$as_ac_var=no"
22543 fi
22544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22545 fi
22546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22548 if test `eval echo '${'$as_ac_var'}'` = yes; then
22549   cat >>confdefs.h <<_ACEOF
22550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22551 _ACEOF
22552
22553 fi
22554 done
22555
22556
22557
22558 echo "$as_me:$LINENO: checking for mmap" >&5
22559 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22560 if test "${ac_cv_func_mmap+set}" = set; then
22561   echo $ECHO_N "(cached) $ECHO_C" >&6
22562 else
22563   cat >conftest.$ac_ext <<_ACEOF
22564 #line $LINENO "configure"
22565 /* confdefs.h.  */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h.  */
22570 /* System header to define __stub macros and hopefully few prototypes,
22571     which can conflict with char mmap (); below.
22572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22573     <limits.h> exists even on freestanding compilers.  */
22574 #ifdef __STDC__
22575 # include <limits.h>
22576 #else
22577 # include <assert.h>
22578 #endif
22579 /* Override any gcc2 internal prototype to avoid an error.  */
22580 #ifdef __cplusplus
22581 extern "C"
22582 {
22583 #endif
22584 /* We use char because int might match the return type of a gcc2
22585    builtin and then its argument prototype would still apply.  */
22586 char mmap ();
22587 /* The GNU C library defines this for functions which it implements
22588     to always fail with ENOSYS.  Some functions are actually named
22589     something starting with __ and the normal name is an alias.  */
22590 #if defined (__stub_mmap) || defined (__stub___mmap)
22591 choke me
22592 #else
22593 char (*f) () = mmap;
22594 #endif
22595 #ifdef __cplusplus
22596 }
22597 #endif
22598
22599 int
22600 main ()
22601 {
22602 return f != mmap;
22603   ;
22604   return 0;
22605 }
22606 _ACEOF
22607 rm -f conftest.$ac_objext conftest$ac_exeext
22608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22609   (eval $ac_link) 2>&5
22610   ac_status=$?
22611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612   (exit $ac_status); } &&
22613          { ac_try='test -s conftest$ac_exeext'
22614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615   (eval $ac_try) 2>&5
22616   ac_status=$?
22617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618   (exit $ac_status); }; }; then
22619   ac_cv_func_mmap=yes
22620 else
22621   echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22623
22624 ac_cv_func_mmap=no
22625 fi
22626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22627 fi
22628 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22629 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22630 if test $ac_cv_func_mmap = yes; then
22631   :
22632 else
22633   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22634 echo "$as_me: error: Function mmap() required but not found" >&2;}
22635    { (exit 1); exit 1; }; }
22636 fi
22637
22638 echo "$as_me:$LINENO: checking for mprotect" >&5
22639 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22640 if test "${ac_cv_func_mprotect+set}" = set; then
22641   echo $ECHO_N "(cached) $ECHO_C" >&6
22642 else
22643   cat >conftest.$ac_ext <<_ACEOF
22644 #line $LINENO "configure"
22645 /* confdefs.h.  */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h.  */
22650 /* System header to define __stub macros and hopefully few prototypes,
22651     which can conflict with char mprotect (); below.
22652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22653     <limits.h> exists even on freestanding compilers.  */
22654 #ifdef __STDC__
22655 # include <limits.h>
22656 #else
22657 # include <assert.h>
22658 #endif
22659 /* Override any gcc2 internal prototype to avoid an error.  */
22660 #ifdef __cplusplus
22661 extern "C"
22662 {
22663 #endif
22664 /* We use char because int might match the return type of a gcc2
22665    builtin and then its argument prototype would still apply.  */
22666 char mprotect ();
22667 /* The GNU C library defines this for functions which it implements
22668     to always fail with ENOSYS.  Some functions are actually named
22669     something starting with __ and the normal name is an alias.  */
22670 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22671 choke me
22672 #else
22673 char (*f) () = mprotect;
22674 #endif
22675 #ifdef __cplusplus
22676 }
22677 #endif
22678
22679 int
22680 main ()
22681 {
22682 return f != mprotect;
22683   ;
22684   return 0;
22685 }
22686 _ACEOF
22687 rm -f conftest.$ac_objext conftest$ac_exeext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22689   (eval $ac_link) 2>&5
22690   ac_status=$?
22691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692   (exit $ac_status); } &&
22693          { ac_try='test -s conftest$ac_exeext'
22694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695   (eval $ac_try) 2>&5
22696   ac_status=$?
22697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698   (exit $ac_status); }; }; then
22699   ac_cv_func_mprotect=yes
22700 else
22701   echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704 ac_cv_func_mprotect=no
22705 fi
22706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22707 fi
22708 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22709 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22710 if test $ac_cv_func_mprotect = yes; then
22711   :
22712 else
22713   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22714 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22715    { (exit 1); exit 1; }; }
22716 fi
22717
22718
22719
22720 # Check whether --enable-purify or --disable-purify was given.
22721 if test "${enable_purify+set}" = set; then
22722   enableval="$enable_purify"
22723
22724 else
22725   enableval="no"
22726 fi;
22727 if test ${enableval} = "no"
22728 then
22729         ENABLE_PURIFY=
22730
22731 else
22732         ENABLE_PURIFY=ENABLE_PURIFY=1
22733
22734 fi
22735
22736 # Check whether --enable-optimized or --disable-optimized was given.
22737 if test "${enable_optimized+set}" = set; then
22738   enableval="$enable_optimized"
22739
22740 else
22741   enableval=no
22742 fi;
22743 if test ${enableval} = "no"
22744 then
22745         ENABLE_OPTIMIZED=
22746
22747 else
22748         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22749
22750 fi
22751
22752 # Check whether --enable-spec or --disable-spec was given.
22753 if test "${enable_spec+set}" = set; then
22754   enableval="$enable_spec"
22755
22756 else
22757   enableval=no
22758 fi;
22759 if test ${enableval} = "no"
22760 then
22761         USE_SPEC=
22762
22763 else
22764         USE_SPEC=USE_SPEC=1
22765
22766 fi
22767
22768 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22769 if test "${enable_precompiled_bytecode+set}" = set; then
22770   enableval="$enable_precompiled_bytecode"
22771
22772 else
22773   enableval=no
22774 fi;
22775 if test ${enableval} = "no"
22776 then
22777         UPB=
22778
22779 else
22780         UPB=USE_PRECOMPILED_BYTECODE=1
22781
22782 fi
22783
22784
22785 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22786 if test "${enable_llc_diffs+set}" = set; then
22787   enableval="$enable_llc_diffs"
22788
22789 else
22790   enableval=yes
22791 fi;
22792 if test ${enableval} = "no"
22793 then
22794         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22795
22796 else
22797         DISABLE_LLC_DIFFS=
22798
22799 fi
22800
22801 # Check whether --enable-jit or --disable-jit was given.
22802 if test "${enable_jit+set}" = set; then
22803   enableval="$enable_jit"
22804
22805 else
22806   enableval=default
22807 fi;
22808
22809 if test ${enableval} = "no"
22810 then
22811         JIT=
22812
22813 else
22814         case $target in
22815                 *i*86*)
22816                         JIT=TARGET_HAS_JIT=1
22817
22818                         ;;
22819                 *sparc*)
22820                         JIT=TARGET_HAS_JIT=1
22821
22822                         ;;
22823                 *)
22824                         JIT=
22825
22826                         ;;
22827         esac
22828 fi
22829
22830
22831
22832 # Check whether --with-spec or --without-spec was given.
22833 if test "${with_spec+set}" = set; then
22834   withval="$with_spec"
22835   SPEC_ROOT=$withval
22836
22837 else
22838   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22839
22840 fi;
22841
22842
22843 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22844 if test "${with_llvmgccdir+set}" = set; then
22845   withval="$with_llvmgccdir"
22846   LLVMGCCDIR=$withval
22847
22848 fi;
22849
22850
22851 # Check whether --with-bcrepos or --without-bcrepos was given.
22852 if test "${with_bcrepos+set}" = set; then
22853   withval="$with_bcrepos"
22854   BCR=$withval
22855
22856 else
22857   BCR=/home/vadve/lattner/LLVMPrograms
22858
22859 fi;
22860
22861
22862 # Check whether --with-papi or --without-papi was given.
22863 if test "${with_papi+set}" = set; then
22864   withval="$with_papi"
22865   PAPIDIR=$withval
22866
22867 else
22868   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22869
22870 fi;
22871
22872
22873 # Check whether --with-purify or --without-purify was given.
22874 if test "${with_purify+set}" = set; then
22875   withval="$with_purify"
22876   PURIFY=$withval
22877
22878 fi;
22879
22880
22881           ac_config_files="$ac_config_files Makefile.config"
22882 cat >confcache <<\_ACEOF
22883 # This file is a shell script that caches the results of configure
22884 # tests run on this system so they can be shared between configure
22885 # scripts and configure runs, see configure's option --config-cache.
22886 # It is not useful on other systems.  If it contains results you don't
22887 # want to keep, you may remove or edit it.
22888 #
22889 # config.status only pays attention to the cache file if you give it
22890 # the --recheck option to rerun configure.
22891 #
22892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22894 # following values.
22895
22896 _ACEOF
22897
22898 # The following way of writing the cache mishandles newlines in values,
22899 # but we know of no workaround that is simple, portable, and efficient.
22900 # So, don't put newlines in cache variables' values.
22901 # Ultrix sh set writes to stderr and can't be redirected directly,
22902 # and sets the high bit in the cache file unless we assign to the vars.
22903 {
22904   (set) 2>&1 |
22905     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22906     *ac_space=\ *)
22907       # `set' does not quote correctly, so add quotes (double-quote
22908       # substitution turns \\\\ into \\, and sed turns \\ into \).
22909       sed -n \
22910         "s/'/'\\\\''/g;
22911           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22912       ;;
22913     *)
22914       # `set' quotes correctly as required by POSIX, so do not add quotes.
22915       sed -n \
22916         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22917       ;;
22918     esac;
22919 } |
22920   sed '
22921      t clear
22922      : clear
22923      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22924      t end
22925      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22926      : end' >>confcache
22927 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22928   if test -w $cache_file; then
22929     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22930     cat confcache >$cache_file
22931   else
22932     echo "not updating unwritable cache $cache_file"
22933   fi
22934 fi
22935 rm -f confcache
22936
22937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22938 # Let make expand exec_prefix.
22939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22940
22941 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22942 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22943 # trailing colons and then remove the whole line if VPATH becomes empty
22944 # (actually we leave an empty line to preserve line numbers).
22945 if test "x$srcdir" = x.; then
22946   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22947 s/:*\$(srcdir):*/:/;
22948 s/:*\${srcdir}:*/:/;
22949 s/:*@srcdir@:*/:/;
22950 s/^\([^=]*=[    ]*\):*/\1/;
22951 s/:*$//;
22952 s/^[^=]*=[      ]*$//;
22953 }'
22954 fi
22955
22956 DEFS=-DHAVE_CONFIG_H
22957
22958 ac_libobjs=
22959 ac_ltlibobjs=
22960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22961   # 1. Remove the extension, and $U if already installed.
22962   ac_i=`echo "$ac_i" |
22963          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22964   # 2. Add them.
22965   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22966   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22967 done
22968 LIBOBJS=$ac_libobjs
22969
22970 LTLIBOBJS=$ac_ltlibobjs
22971
22972
22973
22974 : ${CONFIG_STATUS=./config.status}
22975 ac_clean_files_save=$ac_clean_files
22976 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22977 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22978 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22979 cat >$CONFIG_STATUS <<_ACEOF
22980 #! $SHELL
22981 # Generated by $as_me.
22982 # Run this file to recreate the current configuration.
22983 # Compiler output produced by configure, useful for debugging
22984 # configure, is in config.log if it exists.
22985
22986 debug=false
22987 ac_cs_recheck=false
22988 ac_cs_silent=false
22989 SHELL=\${CONFIG_SHELL-$SHELL}
22990 _ACEOF
22991
22992 cat >>$CONFIG_STATUS <<\_ACEOF
22993 ## --------------------- ##
22994 ## M4sh Initialization.  ##
22995 ## --------------------- ##
22996
22997 # Be Bourne compatible
22998 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22999   emulate sh
23000   NULLCMD=:
23001   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23002   # is contrary to our usage.  Disable this feature.
23003   alias -g '${1+"$@"}'='"$@"'
23004 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23005   set -o posix
23006 fi
23007
23008 # Support unset when possible.
23009 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23010   as_unset=unset
23011 else
23012   as_unset=false
23013 fi
23014
23015
23016 # Work around bugs in pre-3.0 UWIN ksh.
23017 $as_unset ENV MAIL MAILPATH
23018 PS1='$ '
23019 PS2='> '
23020 PS4='+ '
23021
23022 # NLS nuisances.
23023 for as_var in \
23024   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23025   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23026   LC_TELEPHONE LC_TIME
23027 do
23028   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23029     eval $as_var=C; export $as_var
23030   else
23031     $as_unset $as_var
23032   fi
23033 done
23034
23035 # Required to use basename.
23036 if expr a : '\(a\)' >/dev/null 2>&1; then
23037   as_expr=expr
23038 else
23039   as_expr=false
23040 fi
23041
23042 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23043   as_basename=basename
23044 else
23045   as_basename=false
23046 fi
23047
23048
23049 # Name of the executable.
23050 as_me=`$as_basename "$0" ||
23051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23052          X"$0" : 'X\(//\)$' \| \
23053          X"$0" : 'X\(/\)$' \| \
23054          .     : '\(.\)' 2>/dev/null ||
23055 echo X/"$0" |
23056     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23057           /^X\/\(\/\/\)$/{ s//\1/; q; }
23058           /^X\/\(\/\).*/{ s//\1/; q; }
23059           s/.*/./; q'`
23060
23061
23062 # PATH needs CR, and LINENO needs CR and PATH.
23063 # Avoid depending upon Character Ranges.
23064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23067 as_cr_digits='0123456789'
23068 as_cr_alnum=$as_cr_Letters$as_cr_digits
23069
23070 # The user is always right.
23071 if test "${PATH_SEPARATOR+set}" != set; then
23072   echo "#! /bin/sh" >conf$$.sh
23073   echo  "exit 0"   >>conf$$.sh
23074   chmod +x conf$$.sh
23075   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23076     PATH_SEPARATOR=';'
23077   else
23078     PATH_SEPARATOR=:
23079   fi
23080   rm -f conf$$.sh
23081 fi
23082
23083
23084   as_lineno_1=$LINENO
23085   as_lineno_2=$LINENO
23086   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23087   test "x$as_lineno_1" != "x$as_lineno_2" &&
23088   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23089   # Find who we are.  Look in the path if we contain no path at all
23090   # relative or not.
23091   case $0 in
23092     *[\\/]* ) as_myself=$0 ;;
23093     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23094 for as_dir in $PATH
23095 do
23096   IFS=$as_save_IFS
23097   test -z "$as_dir" && as_dir=.
23098   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23099 done
23100
23101        ;;
23102   esac
23103   # We did not find ourselves, most probably we were run as `sh COMMAND'
23104   # in which case we are not to be found in the path.
23105   if test "x$as_myself" = x; then
23106     as_myself=$0
23107   fi
23108   if test ! -f "$as_myself"; then
23109     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23110 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23111    { (exit 1); exit 1; }; }
23112   fi
23113   case $CONFIG_SHELL in
23114   '')
23115     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23116 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23117 do
23118   IFS=$as_save_IFS
23119   test -z "$as_dir" && as_dir=.
23120   for as_base in sh bash ksh sh5; do
23121          case $as_dir in
23122          /*)
23123            if ("$as_dir/$as_base" -c '
23124   as_lineno_1=$LINENO
23125   as_lineno_2=$LINENO
23126   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23127   test "x$as_lineno_1" != "x$as_lineno_2" &&
23128   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23129              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23130              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23131              CONFIG_SHELL=$as_dir/$as_base
23132              export CONFIG_SHELL
23133              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23134            fi;;
23135          esac
23136        done
23137 done
23138 ;;
23139   esac
23140
23141   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23142   # uniformly replaced by the line number.  The first 'sed' inserts a
23143   # line-number line before each line; the second 'sed' does the real
23144   # work.  The second script uses 'N' to pair each line-number line
23145   # with the numbered line, and appends trailing '-' during
23146   # substitution so that $LINENO is not a special case at line end.
23147   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23148   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23149   sed '=' <$as_myself |
23150     sed '
23151       N
23152       s,$,-,
23153       : loop
23154       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23155       t loop
23156       s,-$,,
23157       s,^['$as_cr_digits']*\n,,
23158     ' >$as_me.lineno &&
23159   chmod +x $as_me.lineno ||
23160     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23161 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23162    { (exit 1); exit 1; }; }
23163
23164   # Don't try to exec as it changes $[0], causing all sort of problems
23165   # (the dirname of $[0] is not the place where we might find the
23166   # original and so on.  Autoconf is especially sensible to this).
23167   . ./$as_me.lineno
23168   # Exit status is that of the last command.
23169   exit
23170 }
23171
23172
23173 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23174   *c*,-n*) ECHO_N= ECHO_C='
23175 ' ECHO_T='      ' ;;
23176   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23177   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23178 esac
23179
23180 if expr a : '\(a\)' >/dev/null 2>&1; then
23181   as_expr=expr
23182 else
23183   as_expr=false
23184 fi
23185
23186 rm -f conf$$ conf$$.exe conf$$.file
23187 echo >conf$$.file
23188 if ln -s conf$$.file conf$$ 2>/dev/null; then
23189   # We could just check for DJGPP; but this test a) works b) is more generic
23190   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23191   if test -f conf$$.exe; then
23192     # Don't use ln at all; we don't have any links
23193     as_ln_s='cp -p'
23194   else
23195     as_ln_s='ln -s'
23196   fi
23197 elif ln conf$$.file conf$$ 2>/dev/null; then
23198   as_ln_s=ln
23199 else
23200   as_ln_s='cp -p'
23201 fi
23202 rm -f conf$$ conf$$.exe conf$$.file
23203
23204 if mkdir -p . 2>/dev/null; then
23205   as_mkdir_p=:
23206 else
23207   as_mkdir_p=false
23208 fi
23209
23210 as_executable_p="test -f"
23211
23212 # Sed expression to map a string onto a valid CPP name.
23213 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23214
23215 # Sed expression to map a string onto a valid variable name.
23216 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23217
23218
23219 # IFS
23220 # We need space, tab and new line, in precisely that order.
23221 as_nl='
23222 '
23223 IFS="   $as_nl"
23224
23225 # CDPATH.
23226 $as_unset CDPATH
23227
23228 exec 6>&1
23229
23230 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23231 # report actual input values of CONFIG_FILES etc. instead of their
23232 # values after options handling.  Logging --version etc. is OK.
23233 exec 5>>config.log
23234 {
23235   echo
23236   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23237 ## Running $as_me. ##
23238 _ASBOX
23239 } >&5
23240 cat >&5 <<_CSEOF
23241
23242 This file was extended by [LLVM] $as_me [1.0], which was
23243 generated by GNU Autoconf 2.57.  Invocation command line was
23244
23245   CONFIG_FILES    = $CONFIG_FILES
23246   CONFIG_HEADERS  = $CONFIG_HEADERS
23247   CONFIG_LINKS    = $CONFIG_LINKS
23248   CONFIG_COMMANDS = $CONFIG_COMMANDS
23249   $ $0 $@
23250
23251 _CSEOF
23252 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23253 echo >&5
23254 _ACEOF
23255
23256 # Files that config.status was made for.
23257 if test -n "$ac_config_files"; then
23258   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23259 fi
23260
23261 if test -n "$ac_config_headers"; then
23262   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23263 fi
23264
23265 if test -n "$ac_config_links"; then
23266   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23267 fi
23268
23269 if test -n "$ac_config_commands"; then
23270   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23271 fi
23272
23273 cat >>$CONFIG_STATUS <<\_ACEOF
23274
23275 ac_cs_usage="\
23276 \`$as_me' instantiates files from templates according to the
23277 current configuration.
23278
23279 Usage: $0 [OPTIONS] [FILE]...
23280
23281   -h, --help       print this help, then exit
23282   -V, --version    print version number, then exit
23283   -q, --quiet      do not print progress messages
23284   -d, --debug      don't remove temporary files
23285       --recheck    update $as_me by reconfiguring in the same conditions
23286   --file=FILE[:TEMPLATE]
23287                    instantiate the configuration file FILE
23288   --header=FILE[:TEMPLATE]
23289                    instantiate the configuration header FILE
23290
23291 Configuration files:
23292 $config_files
23293
23294 Configuration headers:
23295 $config_headers
23296
23297 Configuration commands:
23298 $config_commands
23299
23300 Report bugs to <bug-autoconf@gnu.org>."
23301 _ACEOF
23302
23303 cat >>$CONFIG_STATUS <<_ACEOF
23304 ac_cs_version="\\
23305 [LLVM] config.status [1.0]
23306 configured by $0, generated by GNU Autoconf 2.57,
23307   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23308
23309 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23310 Free Software Foundation, Inc.
23311 This config.status script is free software; the Free Software Foundation
23312 gives unlimited permission to copy, distribute and modify it."
23313 srcdir=$srcdir
23314 INSTALL="$INSTALL"
23315 _ACEOF
23316
23317 cat >>$CONFIG_STATUS <<\_ACEOF
23318 # If no file are specified by the user, then we need to provide default
23319 # value.  By we need to know if files were specified by the user.
23320 ac_need_defaults=:
23321 while test $# != 0
23322 do
23323   case $1 in
23324   --*=*)
23325     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23326     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23327     ac_shift=:
23328     ;;
23329   -*)
23330     ac_option=$1
23331     ac_optarg=$2
23332     ac_shift=shift
23333     ;;
23334   *) # This is not an option, so the user has probably given explicit
23335      # arguments.
23336      ac_option=$1
23337      ac_need_defaults=false;;
23338   esac
23339
23340   case $ac_option in
23341   # Handling of the options.
23342 _ACEOF
23343 cat >>$CONFIG_STATUS <<\_ACEOF
23344   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23345     ac_cs_recheck=: ;;
23346   --version | --vers* | -V )
23347     echo "$ac_cs_version"; exit 0 ;;
23348   --he | --h)
23349     # Conflict between --help and --header
23350     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23351 Try \`$0 --help' for more information." >&5
23352 echo "$as_me: error: ambiguous option: $1
23353 Try \`$0 --help' for more information." >&2;}
23354    { (exit 1); exit 1; }; };;
23355   --help | --hel | -h )
23356     echo "$ac_cs_usage"; exit 0 ;;
23357   --debug | --d* | -d )
23358     debug=: ;;
23359   --file | --fil | --fi | --f )
23360     $ac_shift
23361     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23362     ac_need_defaults=false;;
23363   --header | --heade | --head | --hea )
23364     $ac_shift
23365     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23366     ac_need_defaults=false;;
23367   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23368   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23369     ac_cs_silent=: ;;
23370
23371   # This is an error.
23372   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23373 Try \`$0 --help' for more information." >&5
23374 echo "$as_me: error: unrecognized option: $1
23375 Try \`$0 --help' for more information." >&2;}
23376    { (exit 1); exit 1; }; } ;;
23377
23378   *) ac_config_targets="$ac_config_targets $1" ;;
23379
23380   esac
23381   shift
23382 done
23383
23384 ac_configure_extra_args=
23385
23386 if $ac_cs_silent; then
23387   exec 6>/dev/null
23388   ac_configure_extra_args="$ac_configure_extra_args --silent"
23389 fi
23390
23391 _ACEOF
23392 cat >>$CONFIG_STATUS <<_ACEOF
23393 if \$ac_cs_recheck; then
23394   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23395   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23396 fi
23397
23398 _ACEOF
23399
23400 cat >>$CONFIG_STATUS <<_ACEOF
23401 #
23402 # INIT-COMMANDS section.
23403 #
23404
23405 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23544 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23545 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23546 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23547 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23548 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23549 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23550 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23551 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/CompileFail/Makefile`
23552 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23553 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23554 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23555 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23556 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23557 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23558 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23559 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23560 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23561 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23562 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23563 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23564 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23565 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23566 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23567 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23568 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23569 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23570 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23571 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23572 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23573 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23574 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23575 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23576 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23577 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23578 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23579 ${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23580 ${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23581 ${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23582 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23583 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23584 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23585 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
23586
23587 _ACEOF
23588
23589
23590
23591 cat >>$CONFIG_STATUS <<\_ACEOF
23592 for ac_config_target in $ac_config_targets
23593 do
23594   case "$ac_config_target" in
23595   # Handling of arguments.
23596   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23597   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23598   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23599   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23600   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23601   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23602   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23603   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23604   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23605   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23606   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23607   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23608   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23609   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23610   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23611   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23612   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23613   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23614   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23615   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23616   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23617   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23618   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23619   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23620   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23621   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23622   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23623   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23624   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23625   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23626   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23627   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23628   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23629   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23630   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23631   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23632   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23633   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23634   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23635   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23636   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23637   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23638   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23639   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23640   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23641   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23642   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23643   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23644   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23645   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23646   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23647   "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
23648   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23649   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23650   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23651   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23652   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23653   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23654   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23655   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23656   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23657   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23658   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23659   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23660   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23661   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23662   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23663   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23664   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23665   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23666   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23667   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23668   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23669   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23670   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23671   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23672   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23673   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23674   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23675   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23676   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23677   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23678   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23679   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23680   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23681   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23682   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23683   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23684   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23685   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23686   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23687   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23688   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23689   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23690   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23691   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23692   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23693   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23694   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23695   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23696   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23697   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23698   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23699   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23700   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23701   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23702   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23703   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23704   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23705   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23706   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23707   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23708   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23709   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23710   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23711   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23712   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23713   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23714   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23715   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23716   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23717   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23718   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23719   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23720   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23721   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23722   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23723   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23724   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23725   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23726   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23727   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23728   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23729   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23730   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23731   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23732   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23733   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23734   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23735   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23736   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23737   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23738   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23739   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23740   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23741   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23742   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23743   "test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ;;
23744   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23745   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23746   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23747   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23748   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23749   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23750   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23751   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23752   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23753   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23754   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23755   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23756   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23757   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23758   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23759   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23760   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23761   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23762   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23763   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23764   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23765   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23766   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23767   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23768   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23769   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23770   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23771   "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23772   "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23773   "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23774   "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23775   "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23776   "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23777   "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
23778   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23779   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23780 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23781    { (exit 1); exit 1; }; };;
23782   esac
23783 done
23784
23785 # If the user did not use the arguments to specify the items to instantiate,
23786 # then the envvar interface is used.  Set only those that are not.
23787 # We use the long form for the default assignment because of an extremely
23788 # bizarre bug on SunOS 4.1.3.
23789 if $ac_need_defaults; then
23790   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23791   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23792   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23793 fi
23794
23795 # Have a temporary directory for convenience.  Make it in the build tree
23796 # simply because there is no reason to put it here, and in addition,
23797 # creating and moving files from /tmp can sometimes cause problems.
23798 # Create a temporary directory, and hook for its removal unless debugging.
23799 $debug ||
23800 {
23801   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23802   trap '{ (exit 1); exit 1; }' 1 2 13 15
23803 }
23804
23805 # Create a (secure) tmp directory for tmp files.
23806
23807 {
23808   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23809   test -n "$tmp" && test -d "$tmp"
23810 }  ||
23811 {
23812   tmp=./confstat$$-$RANDOM
23813   (umask 077 && mkdir $tmp)
23814 } ||
23815 {
23816    echo "$me: cannot create a temporary directory in ." >&2
23817    { (exit 1); exit 1; }
23818 }
23819
23820 _ACEOF
23821
23822 cat >>$CONFIG_STATUS <<_ACEOF
23823
23824 #
23825 # CONFIG_FILES section.
23826 #
23827
23828 # No need to generate the scripts if there are no CONFIG_FILES.
23829 # This happens for instance when ./config.status config.h
23830 if test -n "\$CONFIG_FILES"; then
23831   # Protect against being on the right side of a sed subst in config.status.
23832   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23833    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23834 s,@SHELL@,$SHELL,;t t
23835 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23836 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23837 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23838 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23839 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23840 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23841 s,@exec_prefix@,$exec_prefix,;t t
23842 s,@prefix@,$prefix,;t t
23843 s,@program_transform_name@,$program_transform_name,;t t
23844 s,@bindir@,$bindir,;t t
23845 s,@sbindir@,$sbindir,;t t
23846 s,@libexecdir@,$libexecdir,;t t
23847 s,@datadir@,$datadir,;t t
23848 s,@sysconfdir@,$sysconfdir,;t t
23849 s,@sharedstatedir@,$sharedstatedir,;t t
23850 s,@localstatedir@,$localstatedir,;t t
23851 s,@libdir@,$libdir,;t t
23852 s,@includedir@,$includedir,;t t
23853 s,@oldincludedir@,$oldincludedir,;t t
23854 s,@infodir@,$infodir,;t t
23855 s,@mandir@,$mandir,;t t
23856 s,@build_alias@,$build_alias,;t t
23857 s,@host_alias@,$host_alias,;t t
23858 s,@target_alias@,$target_alias,;t t
23859 s,@DEFS@,$DEFS,;t t
23860 s,@ECHO_C@,$ECHO_C,;t t
23861 s,@ECHO_N@,$ECHO_N,;t t
23862 s,@ECHO_T@,$ECHO_T,;t t
23863 s,@LIBS@,$LIBS,;t t
23864 s,@subdirs@,$subdirs,;t t
23865 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23866 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23867 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23868 s,@build@,$build,;t t
23869 s,@build_cpu@,$build_cpu,;t t
23870 s,@build_vendor@,$build_vendor,;t t
23871 s,@build_os@,$build_os,;t t
23872 s,@host@,$host,;t t
23873 s,@host_cpu@,$host_cpu,;t t
23874 s,@host_vendor@,$host_vendor,;t t
23875 s,@host_os@,$host_os,;t t
23876 s,@target@,$target,;t t
23877 s,@target_cpu@,$target_cpu,;t t
23878 s,@target_vendor@,$target_vendor,;t t
23879 s,@target_os@,$target_os,;t t
23880 s,@OS@,$OS,;t t
23881 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23882 s,@ARCH@,$ARCH,;t t
23883 s,@CXX@,$CXX,;t t
23884 s,@CXXFLAGS@,$CXXFLAGS,;t t
23885 s,@LDFLAGS@,$LDFLAGS,;t t
23886 s,@CPPFLAGS@,$CPPFLAGS,;t t
23887 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23888 s,@EXEEXT@,$EXEEXT,;t t
23889 s,@OBJEXT@,$OBJEXT,;t t
23890 s,@CC@,$CC,;t t
23891 s,@CFLAGS@,$CFLAGS,;t t
23892 s,@ac_ct_CC@,$ac_ct_CC,;t t
23893 s,@CPP@,$CPP,;t t
23894 s,@ifGNUmake@,$ifGNUmake,;t t
23895 s,@LEX@,$LEX,;t t
23896 s,@LEXLIB@,$LEXLIB,;t t
23897 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23898 s,@YACC@,$YACC,;t t
23899 s,@EGREP@,$EGREP,;t t
23900 s,@LN_S@,$LN_S,;t t
23901 s,@ECHO@,$ECHO,;t t
23902 s,@AR@,$AR,;t t
23903 s,@ac_ct_AR@,$ac_ct_AR,;t t
23904 s,@RANLIB@,$RANLIB,;t t
23905 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23906 s,@STRIP@,$STRIP,;t t
23907 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23908 s,@CXXCPP@,$CXXCPP,;t t
23909 s,@F77@,$F77,;t t
23910 s,@FFLAGS@,$FFLAGS,;t t
23911 s,@ac_ct_F77@,$ac_ct_F77,;t t
23912 s,@LIBTOOL@,$LIBTOOL,;t t
23913 s,@RPWD@,$RPWD,;t t
23914 s,@SED@,$SED,;t t
23915 s,@RM@,$RM,;t t
23916 s,@MKDIR@,$MKDIR,;t t
23917 s,@DATE@,$DATE,;t t
23918 s,@MV@,$MV,;t t
23919 s,@DOT@,$DOT,;t t
23920 s,@ETAGS@,$ETAGS,;t t
23921 s,@PURIFY@,$PURIFY,;t t
23922 s,@PYTHON@,$PYTHON,;t t
23923 s,@QMTEST@,$QMTEST,;t t
23924 s,@ALLOCA@,$ALLOCA,;t t
23925 s,@LIBOBJS@,$LIBOBJS,;t t
23926 s,@MMAP_FILE@,$MMAP_FILE,;t t
23927 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23928 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23929 s,@USE_SPEC@,$USE_SPEC,;t t
23930 s,@UPB@,$UPB,;t t
23931 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23932 s,@JIT@,$JIT,;t t
23933 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23934 s,@BCR@,$BCR,;t t
23935 s,@PAPIDIR@,$PAPIDIR,;t t
23936 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23937 CEOF
23938
23939 _ACEOF
23940
23941   cat >>$CONFIG_STATUS <<\_ACEOF
23942   # Split the substitutions into bite-sized pieces for seds with
23943   # small command number limits, like on Digital OSF/1 and HP-UX.
23944   ac_max_sed_lines=48
23945   ac_sed_frag=1 # Number of current file.
23946   ac_beg=1 # First line for current file.
23947   ac_end=$ac_max_sed_lines # Line after last line for current file.
23948   ac_more_lines=:
23949   ac_sed_cmds=
23950   while $ac_more_lines; do
23951     if test $ac_beg -gt 1; then
23952       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23953     else
23954       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23955     fi
23956     if test ! -s $tmp/subs.frag; then
23957       ac_more_lines=false
23958     else
23959       # The purpose of the label and of the branching condition is to
23960       # speed up the sed processing (if there are no `@' at all, there
23961       # is no need to browse any of the substitutions).
23962       # These are the two extra sed commands mentioned above.
23963       (echo ':t
23964   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23965       if test -z "$ac_sed_cmds"; then
23966         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23967       else
23968         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23969       fi
23970       ac_sed_frag=`expr $ac_sed_frag + 1`
23971       ac_beg=$ac_end
23972       ac_end=`expr $ac_end + $ac_max_sed_lines`
23973     fi
23974   done
23975   if test -z "$ac_sed_cmds"; then
23976     ac_sed_cmds=cat
23977   fi
23978 fi # test -n "$CONFIG_FILES"
23979
23980 _ACEOF
23981 cat >>$CONFIG_STATUS <<\_ACEOF
23982 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23983   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23984   case $ac_file in
23985   - | *:- | *:-:* ) # input from stdin
23986         cat >$tmp/stdin
23987         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23988         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23989   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23990         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23991   * )   ac_file_in=$ac_file.in ;;
23992   esac
23993
23994   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23995   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23997          X"$ac_file" : 'X\(//\)[^/]' \| \
23998          X"$ac_file" : 'X\(//\)$' \| \
23999          X"$ac_file" : 'X\(/\)' \| \
24000          .     : '\(.\)' 2>/dev/null ||
24001 echo X"$ac_file" |
24002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24004           /^X\(\/\/\)$/{ s//\1/; q; }
24005           /^X\(\/\).*/{ s//\1/; q; }
24006           s/.*/./; q'`
24007   { if $as_mkdir_p; then
24008     mkdir -p "$ac_dir"
24009   else
24010     as_dir="$ac_dir"
24011     as_dirs=
24012     while test ! -d "$as_dir"; do
24013       as_dirs="$as_dir $as_dirs"
24014       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24016          X"$as_dir" : 'X\(//\)[^/]' \| \
24017          X"$as_dir" : 'X\(//\)$' \| \
24018          X"$as_dir" : 'X\(/\)' \| \
24019          .     : '\(.\)' 2>/dev/null ||
24020 echo X"$as_dir" |
24021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24022           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24023           /^X\(\/\/\)$/{ s//\1/; q; }
24024           /^X\(\/\).*/{ s//\1/; q; }
24025           s/.*/./; q'`
24026     done
24027     test ! -n "$as_dirs" || mkdir $as_dirs
24028   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24029 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24030    { (exit 1); exit 1; }; }; }
24031
24032   ac_builddir=.
24033
24034 if test "$ac_dir" != .; then
24035   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24036   # A "../" for each directory in $ac_dir_suffix.
24037   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24038 else
24039   ac_dir_suffix= ac_top_builddir=
24040 fi
24041
24042 case $srcdir in
24043   .)  # No --srcdir option.  We are building in place.
24044     ac_srcdir=.
24045     if test -z "$ac_top_builddir"; then
24046        ac_top_srcdir=.
24047     else
24048        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24049     fi ;;
24050   [\\/]* | ?:[\\/]* )  # Absolute path.
24051     ac_srcdir=$srcdir$ac_dir_suffix;
24052     ac_top_srcdir=$srcdir ;;
24053   *) # Relative path.
24054     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24055     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24056 esac
24057 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24058 # absolute.
24059 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24060 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24061 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24062 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24063
24064
24065   case $INSTALL in
24066   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24067   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24068   esac
24069
24070   if test x"$ac_file" != x-; then
24071     { echo "$as_me:$LINENO: creating $ac_file" >&5
24072 echo "$as_me: creating $ac_file" >&6;}
24073     rm -f "$ac_file"
24074   fi
24075   # Let's still pretend it is `configure' which instantiates (i.e., don't
24076   # use $as_me), people would be surprised to read:
24077   #    /* config.h.  Generated by config.status.  */
24078   if test x"$ac_file" = x-; then
24079     configure_input=
24080   else
24081     configure_input="$ac_file.  "
24082   fi
24083   configure_input=$configure_input"Generated from `echo $ac_file_in |
24084                                      sed 's,.*/,,'` by configure."
24085
24086   # First look for the input files in the build tree, otherwise in the
24087   # src tree.
24088   ac_file_inputs=`IFS=:
24089     for f in $ac_file_in; do
24090       case $f in
24091       -) echo $tmp/stdin ;;
24092       [\\/$]*)
24093          # Absolute (can't be DOS-style, as IFS=:)
24094          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24095 echo "$as_me: error: cannot find input file: $f" >&2;}
24096    { (exit 1); exit 1; }; }
24097          echo $f;;
24098       *) # Relative
24099          if test -f "$f"; then
24100            # Build tree
24101            echo $f
24102          elif test -f "$srcdir/$f"; then
24103            # Source tree
24104            echo $srcdir/$f
24105          else
24106            # /dev/null tree
24107            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24108 echo "$as_me: error: cannot find input file: $f" >&2;}
24109    { (exit 1); exit 1; }; }
24110          fi;;
24111       esac
24112     done` || { (exit 1); exit 1; }
24113 _ACEOF
24114 cat >>$CONFIG_STATUS <<_ACEOF
24115   sed "$ac_vpsub
24116 $extrasub
24117 _ACEOF
24118 cat >>$CONFIG_STATUS <<\_ACEOF
24119 :t
24120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24121 s,@configure_input@,$configure_input,;t t
24122 s,@srcdir@,$ac_srcdir,;t t
24123 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24124 s,@top_srcdir@,$ac_top_srcdir,;t t
24125 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24126 s,@builddir@,$ac_builddir,;t t
24127 s,@abs_builddir@,$ac_abs_builddir,;t t
24128 s,@top_builddir@,$ac_top_builddir,;t t
24129 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24130 s,@INSTALL@,$ac_INSTALL,;t t
24131 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24132   rm -f $tmp/stdin
24133   if test x"$ac_file" != x-; then
24134     mv $tmp/out $ac_file
24135   else
24136     cat $tmp/out
24137     rm -f $tmp/out
24138   fi
24139
24140 done
24141 _ACEOF
24142 cat >>$CONFIG_STATUS <<\_ACEOF
24143
24144 #
24145 # CONFIG_HEADER section.
24146 #
24147
24148 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24149 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24150 #
24151 # ac_d sets the value in "#define NAME VALUE" lines.
24152 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24153 ac_dB='[        ].*$,\1#\2'
24154 ac_dC=' '
24155 ac_dD=',;t'
24156 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24157 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24158 ac_uB='$,\1#\2define\3'
24159 ac_uC=' '
24160 ac_uD=',;t'
24161
24162 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24163   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24164   case $ac_file in
24165   - | *:- | *:-:* ) # input from stdin
24166         cat >$tmp/stdin
24167         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24168         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24169   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24170         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24171   * )   ac_file_in=$ac_file.in ;;
24172   esac
24173
24174   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24175 echo "$as_me: creating $ac_file" >&6;}
24176
24177   # First look for the input files in the build tree, otherwise in the
24178   # src tree.
24179   ac_file_inputs=`IFS=:
24180     for f in $ac_file_in; do
24181       case $f in
24182       -) echo $tmp/stdin ;;
24183       [\\/$]*)
24184          # Absolute (can't be DOS-style, as IFS=:)
24185          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24186 echo "$as_me: error: cannot find input file: $f" >&2;}
24187    { (exit 1); exit 1; }; }
24188          echo $f;;
24189       *) # Relative
24190          if test -f "$f"; then
24191            # Build tree
24192            echo $f
24193          elif test -f "$srcdir/$f"; then
24194            # Source tree
24195            echo $srcdir/$f
24196          else
24197            # /dev/null tree
24198            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24199 echo "$as_me: error: cannot find input file: $f" >&2;}
24200    { (exit 1); exit 1; }; }
24201          fi;;
24202       esac
24203     done` || { (exit 1); exit 1; }
24204   # Remove the trailing spaces.
24205   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24206
24207 _ACEOF
24208
24209 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24210 # `conftest.undefs', that substitutes the proper values into
24211 # config.h.in to produce config.h.  The first handles `#define'
24212 # templates, and the second `#undef' templates.
24213 # And first: Protect against being on the right side of a sed subst in
24214 # config.status.  Protect against being in an unquoted here document
24215 # in config.status.
24216 rm -f conftest.defines conftest.undefs
24217 # Using a here document instead of a string reduces the quoting nightmare.
24218 # Putting comments in sed scripts is not portable.
24219 #
24220 # `end' is used to avoid that the second main sed command (meant for
24221 # 0-ary CPP macros) applies to n-ary macro definitions.
24222 # See the Autoconf documentation for `clear'.
24223 cat >confdef2sed.sed <<\_ACEOF
24224 s/[\\&,]/\\&/g
24225 s,[\\$`],\\&,g
24226 t clear
24227 : clear
24228 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24229 t end
24230 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24231 : end
24232 _ACEOF
24233 # If some macros were called several times there might be several times
24234 # the same #defines, which is useless.  Nevertheless, we may not want to
24235 # sort them, since we want the *last* AC-DEFINE to be honored.
24236 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24237 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24238 rm -f confdef2sed.sed
24239
24240 # This sed command replaces #undef with comments.  This is necessary, for
24241 # example, in the case of _POSIX_SOURCE, which is predefined and required
24242 # on some systems where configure will not decide to define it.
24243 cat >>conftest.undefs <<\_ACEOF
24244 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24245 _ACEOF
24246
24247 # Break up conftest.defines because some shells have a limit on the size
24248 # of here documents, and old seds have small limits too (100 cmds).
24249 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24250 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24251 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24252 echo '  :' >>$CONFIG_STATUS
24253 rm -f conftest.tail
24254 while grep . conftest.defines >/dev/null
24255 do
24256   # Write a limited-size here document to $tmp/defines.sed.
24257   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24258   # Speed up: don't consider the non `#define' lines.
24259   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24260   # Work around the forget-to-reset-the-flag bug.
24261   echo 't clr' >>$CONFIG_STATUS
24262   echo ': clr' >>$CONFIG_STATUS
24263   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24264   echo 'CEOF
24265   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24266   rm -f $tmp/in
24267   mv $tmp/out $tmp/in
24268 ' >>$CONFIG_STATUS
24269   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24270   rm -f conftest.defines
24271   mv conftest.tail conftest.defines
24272 done
24273 rm -f conftest.defines
24274 echo '  fi # grep' >>$CONFIG_STATUS
24275 echo >>$CONFIG_STATUS
24276
24277 # Break up conftest.undefs because some shells have a limit on the size
24278 # of here documents, and old seds have small limits too (100 cmds).
24279 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24280 rm -f conftest.tail
24281 while grep . conftest.undefs >/dev/null
24282 do
24283   # Write a limited-size here document to $tmp/undefs.sed.
24284   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24285   # Speed up: don't consider the non `#undef'
24286   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24287   # Work around the forget-to-reset-the-flag bug.
24288   echo 't clr' >>$CONFIG_STATUS
24289   echo ': clr' >>$CONFIG_STATUS
24290   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24291   echo 'CEOF
24292   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24293   rm -f $tmp/in
24294   mv $tmp/out $tmp/in
24295 ' >>$CONFIG_STATUS
24296   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24297   rm -f conftest.undefs
24298   mv conftest.tail conftest.undefs
24299 done
24300 rm -f conftest.undefs
24301
24302 cat >>$CONFIG_STATUS <<\_ACEOF
24303   # Let's still pretend it is `configure' which instantiates (i.e., don't
24304   # use $as_me), people would be surprised to read:
24305   #    /* config.h.  Generated by config.status.  */
24306   if test x"$ac_file" = x-; then
24307     echo "/* Generated by configure.  */" >$tmp/config.h
24308   else
24309     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24310   fi
24311   cat $tmp/in >>$tmp/config.h
24312   rm -f $tmp/in
24313   if test x"$ac_file" != x-; then
24314     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24315       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24316 echo "$as_me: $ac_file is unchanged" >&6;}
24317     else
24318       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24320          X"$ac_file" : 'X\(//\)[^/]' \| \
24321          X"$ac_file" : 'X\(//\)$' \| \
24322          X"$ac_file" : 'X\(/\)' \| \
24323          .     : '\(.\)' 2>/dev/null ||
24324 echo X"$ac_file" |
24325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24327           /^X\(\/\/\)$/{ s//\1/; q; }
24328           /^X\(\/\).*/{ s//\1/; q; }
24329           s/.*/./; q'`
24330       { if $as_mkdir_p; then
24331     mkdir -p "$ac_dir"
24332   else
24333     as_dir="$ac_dir"
24334     as_dirs=
24335     while test ! -d "$as_dir"; do
24336       as_dirs="$as_dir $as_dirs"
24337       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24339          X"$as_dir" : 'X\(//\)[^/]' \| \
24340          X"$as_dir" : 'X\(//\)$' \| \
24341          X"$as_dir" : 'X\(/\)' \| \
24342          .     : '\(.\)' 2>/dev/null ||
24343 echo X"$as_dir" |
24344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24345           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24346           /^X\(\/\/\)$/{ s//\1/; q; }
24347           /^X\(\/\).*/{ s//\1/; q; }
24348           s/.*/./; q'`
24349     done
24350     test ! -n "$as_dirs" || mkdir $as_dirs
24351   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24353    { (exit 1); exit 1; }; }; }
24354
24355       rm -f $ac_file
24356       mv $tmp/config.h $ac_file
24357     fi
24358   else
24359     cat $tmp/config.h
24360     rm -f $tmp/config.h
24361   fi
24362 done
24363 _ACEOF
24364 cat >>$CONFIG_STATUS <<\_ACEOF
24365
24366 #
24367 # CONFIG_COMMANDS section.
24368 #
24369 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24370   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24371   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24372   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24373 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24374          X"$ac_dest" : 'X\(//\)[^/]' \| \
24375          X"$ac_dest" : 'X\(//\)$' \| \
24376          X"$ac_dest" : 'X\(/\)' \| \
24377          .     : '\(.\)' 2>/dev/null ||
24378 echo X"$ac_dest" |
24379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24380           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24381           /^X\(\/\/\)$/{ s//\1/; q; }
24382           /^X\(\/\).*/{ s//\1/; q; }
24383           s/.*/./; q'`
24384   ac_builddir=.
24385
24386 if test "$ac_dir" != .; then
24387   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24388   # A "../" for each directory in $ac_dir_suffix.
24389   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24390 else
24391   ac_dir_suffix= ac_top_builddir=
24392 fi
24393
24394 case $srcdir in
24395   .)  # No --srcdir option.  We are building in place.
24396     ac_srcdir=.
24397     if test -z "$ac_top_builddir"; then
24398        ac_top_srcdir=.
24399     else
24400        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24401     fi ;;
24402   [\\/]* | ?:[\\/]* )  # Absolute path.
24403     ac_srcdir=$srcdir$ac_dir_suffix;
24404     ac_top_srcdir=$srcdir ;;
24405   *) # Relative path.
24406     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24407     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24408 esac
24409 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24410 # absolute.
24411 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24412 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24413 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24414 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24415
24416
24417   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24418 echo "$as_me: executing $ac_dest commands" >&6;}
24419   case $ac_dest in
24420     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24421     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24422     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24423     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24424     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24425     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24426     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24427     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24428     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24429     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24430     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24431     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24432     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24433     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24434     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24435     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24436     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24437     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24438     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24439     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24440     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24441     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24442     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24443     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24444     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24445     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24446     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24447     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24448     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24449     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24450     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24451     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24452     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24453     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24454     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24455     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24456     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24457     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24458     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24459     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24460     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24461     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24462     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24463     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24464     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24465     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24466     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24467     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24468     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24469     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24470     test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
24471     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24472     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24473     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24474     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24475     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24476     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24477     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24478     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24479     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24480     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24481     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24482     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24483     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24484     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24485     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24486     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24487     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24488     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24489     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 ;;
24490     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 ;;
24491     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 ;;
24492     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 ;;
24493     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 ;;
24494     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 ;;
24495     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 ;;
24496     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 ;;
24497     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 ;;
24498     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 ;;
24499     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 ;;
24500     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 ;;
24501     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 ;;
24502     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 ;;
24503     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 ;;
24504     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 ;;
24505     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24506     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24507     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24508     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24509     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 ;;
24510     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 ;;
24511     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 ;;
24512     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24513     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 ;;
24514     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 ;;
24515     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 ;;
24516     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 ;;
24517     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 ;;
24518     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 ;;
24519     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 ;;
24520     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 ;;
24521     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 ;;
24522     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 ;;
24523     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 ;;
24524     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 ;;
24525     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 ;;
24526     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 ;;
24527     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 ;;
24528     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 ;;
24529     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 ;;
24530     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 ;;
24531     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 ;;
24532     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 ;;
24533     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 ;;
24534     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 ;;
24535     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 ;;
24536     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 ;;
24537     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 ;;
24538     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 ;;
24539     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 ;;
24540     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 ;;
24541     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 ;;
24542     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 ;;
24543     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 ;;
24544     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 ;;
24545     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24546     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24547     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24548     test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24549     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24550     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24551     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24552     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24553     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24554     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24555     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 ;;
24556     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 ;;
24557     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 ;;
24558     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 ;;
24559     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24560     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24561     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 ;;
24562     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24563     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 ;;
24564     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 ;;
24565     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 ;;
24566     test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/CompileFail/Makefile test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ;;
24567     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24568     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24569     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24570     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24571     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24572     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24573     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24574     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24575     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24576     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24577     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24578     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24579     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24580     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24581     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24582     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24583     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24584     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24585     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24586     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24587     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24588     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24589     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24590     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24591     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24592     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24593     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24594     support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24595     support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24596     support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24597     support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24598     support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24599     support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24600     support/tools/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/TableGen/Makefile support/tools/TableGen/Makefile ;;
24601   esac
24602 done
24603 _ACEOF
24604
24605 cat >>$CONFIG_STATUS <<\_ACEOF
24606
24607 { (exit 0); exit 0; }
24608 _ACEOF
24609 chmod +x $CONFIG_STATUS
24610 ac_clean_files=$ac_clean_files_save
24611
24612
24613 # configure is writing to config.log, and then calls config.status.
24614 # config.status does its own redirection, appending to config.log.
24615 # Unfortunately, on DOS this fails, as config.log is still kept open
24616 # by configure, so config.status won't be able to write to it; its
24617 # output is simply discarded.  So we exec the FD to /dev/null,
24618 # effectively closing config.log, so it can be properly (re)opened and
24619 # appended to by config.status.  When coming back to configure, we
24620 # need to make the FD available again.
24621 if test "$no_create" != yes; then
24622   ac_cs_success=:
24623   ac_config_status_args=
24624   test "$silent" = yes &&
24625     ac_config_status_args="$ac_config_status_args --quiet"
24626   exec 5>/dev/null
24627   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24628   exec 5>>config.log
24629   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24630   # would make configure fail if this is the last instruction.
24631   $ac_cs_success || { (exit 1); exit 1; }
24632 fi
24633
24634 #
24635 # CONFIG_SUBDIRS section.
24636 #
24637 if test "$no_recursion" != yes; then
24638
24639   # Remove --cache-file and --srcdir arguments so they do not pile up.
24640   ac_sub_configure_args=
24641   ac_prev=
24642   for ac_arg in $ac_configure_args; do
24643     if test -n "$ac_prev"; then
24644       ac_prev=
24645       continue
24646     fi
24647     case $ac_arg in
24648     -cache-file | --cache-file | --cache-fil | --cache-fi \
24649     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24650       ac_prev=cache_file ;;
24651     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24652     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24653     | --c=*)
24654       ;;
24655     --config-cache | -C)
24656       ;;
24657     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24658       ac_prev=srcdir ;;
24659     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24660       ;;
24661     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24662       ac_prev=prefix ;;
24663     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24664       ;;
24665     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24666     esac
24667   done
24668
24669   # Always prepend --prefix to ensure using the same prefix
24670   # in subdir configurations.
24671   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24672
24673   ac_popdir=`pwd`
24674   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24675
24676     # Do not complain, so a configure script can configure whichever
24677     # parts of a large source tree are present.
24678     test -d $srcdir/$ac_dir || continue
24679
24680     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24681 echo "$as_me: configuring in $ac_dir" >&6;}
24682     { if $as_mkdir_p; then
24683     mkdir -p "$ac_dir"
24684   else
24685     as_dir="$ac_dir"
24686     as_dirs=
24687     while test ! -d "$as_dir"; do
24688       as_dirs="$as_dir $as_dirs"
24689       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24691          X"$as_dir" : 'X\(//\)[^/]' \| \
24692          X"$as_dir" : 'X\(//\)$' \| \
24693          X"$as_dir" : 'X\(/\)' \| \
24694          .     : '\(.\)' 2>/dev/null ||
24695 echo X"$as_dir" |
24696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24697           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24698           /^X\(\/\/\)$/{ s//\1/; q; }
24699           /^X\(\/\).*/{ s//\1/; q; }
24700           s/.*/./; q'`
24701     done
24702     test ! -n "$as_dirs" || mkdir $as_dirs
24703   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24704 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24705    { (exit 1); exit 1; }; }; }
24706
24707     ac_builddir=.
24708
24709 if test "$ac_dir" != .; then
24710   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24711   # A "../" for each directory in $ac_dir_suffix.
24712   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24713 else
24714   ac_dir_suffix= ac_top_builddir=
24715 fi
24716
24717 case $srcdir in
24718   .)  # No --srcdir option.  We are building in place.
24719     ac_srcdir=.
24720     if test -z "$ac_top_builddir"; then
24721        ac_top_srcdir=.
24722     else
24723        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24724     fi ;;
24725   [\\/]* | ?:[\\/]* )  # Absolute path.
24726     ac_srcdir=$srcdir$ac_dir_suffix;
24727     ac_top_srcdir=$srcdir ;;
24728   *) # Relative path.
24729     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24730     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24731 esac
24732 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24733 # absolute.
24734 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24735 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24736 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24737 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24738
24739
24740     cd $ac_dir
24741
24742     # Check for guested configure; otherwise get Cygnus style configure.
24743     if test -f $ac_srcdir/configure.gnu; then
24744       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24745     elif test -f $ac_srcdir/configure; then
24746       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24747     elif test -f $ac_srcdir/configure.in; then
24748       ac_sub_configure=$ac_configure
24749     else
24750       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24751 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24752       ac_sub_configure=
24753     fi
24754
24755     # The recursion is here.
24756     if test -n "$ac_sub_configure"; then
24757       # Make the cache file name correct relative to the subdirectory.
24758       case $cache_file in
24759       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24760       *) # Relative path.
24761         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24762       esac
24763
24764       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24765 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24766       # The eval makes quoting arguments work.
24767       eval $ac_sub_configure $ac_sub_configure_args \
24768            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24769         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24770 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24771    { (exit 1); exit 1; }; }
24772     fi
24773
24774     cd $ac_popdir
24775   done
24776 fi
24777