Regress to not using the llvm namespace.
[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/sample"
430 ac_subdirs_all="$ac_subdirs_all projects/reopt"
431 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_unique_file=""Makefile.config.in""
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CC_set=${CC+set}
928 ac_env_CC_value=$CC
929 ac_cv_env_CC_set=${CC+set}
930 ac_cv_env_CC_value=$CC
931 ac_env_CFLAGS_set=${CFLAGS+set}
932 ac_env_CFLAGS_value=$CFLAGS
933 ac_cv_env_CFLAGS_set=${CFLAGS+set}
934 ac_cv_env_CFLAGS_value=$CFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if test "$ac_init_help" = "long"; then
956   # Omit some internal or obsolete options to make the list less imposing.
957   # This message is too long to be a string in the A/UX 3.1 sh.
958   cat <<_ACEOF
959 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
969   -h, --help              display this help and exit
970       --help=short        display options specific to this package
971       --help=recursive    display the short help of all the included packages
972   -V, --version           display version information and exit
973   -q, --quiet, --silent   do not print \`checking...' messages
974       --cache-file=FILE   cache test results in FILE [disabled]
975   -C, --config-cache      alias for \`--cache-file=config.cache'
976   -n, --no-create         do not create output files
977       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979 _ACEOF
980
981   cat <<_ACEOF
982 Installation directories:
983   --prefix=PREFIX         install architecture-independent files in PREFIX
984                           [$ac_default_prefix]
985   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                           [PREFIX]
987
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine tuning of the installation directories:
996   --bindir=DIR           user executables [EPREFIX/bin]
997   --sbindir=DIR          system admin executables [EPREFIX/sbin]
998   --libexecdir=DIR       program executables [EPREFIX/libexec]
999   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003   --libdir=DIR           object code libraries [EPREFIX/lib]
1004   --includedir=DIR       C header files [PREFIX/include]
1005   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006   --infodir=DIR          info documentation [PREFIX/info]
1007   --mandir=DIR           man documentation [PREFIX/man]
1008 _ACEOF
1009
1010   cat <<\_ACEOF
1011
1012 System types:
1013   --build=BUILD     configure for building on BUILD [guessed]
1014   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1015   --target=TARGET   configure for building compilers for TARGET [HOST]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020   case $ac_init_help in
1021      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1022    esac
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --enable-purify         Compile with purify (default is NO)
1036   --enable-optimized      Compile with optimizations enabled (default is NO)
1037   --enable-spec           Compile SPEC 2000 benchmarks (default is NO)
1038   --enable-precompiled_bytecode
1039                           Use pre-compiled bytecode (default is NO)
1040   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
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/sample
1525 then
1526
1527
1528 subdirs="$subdirs projects/sample"
1529
1530 fi
1531
1532 if test -d ${srcdir}/projects/reopt
1533 then
1534
1535
1536 subdirs="$subdirs projects/reopt"
1537
1538 fi
1539
1540 if test -d ${srcdir}/projects/poolalloc
1541 then
1542
1543
1544 subdirs="$subdirs projects/poolalloc"
1545
1546 fi
1547
1548           ac_config_headers="$ac_config_headers include/Config/config.h"
1549
1550           ac_config_commands="$ac_config_commands Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands Makefile.common"
1554
1555
1556           ac_config_commands="$ac_config_commands Makefile.rules"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1686
1687
1688           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1692
1693
1694           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands runtime/libprofile/Makefile"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Makefile"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Makefile.tests"
1704
1705
1706           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1707
1708
1709           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1947
1948
1949           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands tools/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands tools/llc/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands tools/llee/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2013
2014
2015           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands tools/llvm-nm/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands tools/llvm-prof/Makefile"
2031
2032
2033           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2034
2035
2036           ac_config_commands="$ac_config_commands utils/Makefile"
2037
2038
2039           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2040
2041
2042           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2043
2044
2045           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2046
2047
2048           ac_config_commands="$ac_config_commands projects/Makefile"
2049
2050
2051           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2052
2053
2054           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2055
2056
2057           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2058
2059
2060           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2061
2062
2063
2064
2065 # Find a good install program.  We prefer a C program (faster),
2066 # so one script is as good as another.  But avoid the broken or
2067 # incompatible versions:
2068 # SysV /etc/install, /usr/sbin/install
2069 # SunOS /usr/etc/install
2070 # IRIX /sbin/install
2071 # AIX /bin/install
2072 # AmigaOS /C/install, which installs bootblocks on floppy discs
2073 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2074 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2075 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2076 # ./install, which can be erroneously created by make from ./install.sh.
2077 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2078 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2079 if test -z "$INSTALL"; then
2080 if test "${ac_cv_path_install+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   # Account for people who put trailing slashes in PATH elements.
2089 case $as_dir/ in
2090   ./ | .// | /cC/* | \
2091   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2092   /usr/ucb/* ) ;;
2093   *)
2094     # OSF1 and SCO ODT 3.0 have their own names for install.
2095     # Don't use installbsd from OSF since it installs stuff as root
2096     # by default.
2097     for ac_prog in ginstall scoinst install; do
2098       for ac_exec_ext in '' $ac_executable_extensions; do
2099         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2100           if test $ac_prog = install &&
2101             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2102             # AIX install.  It has an incompatible calling convention.
2103             :
2104           elif test $ac_prog = install &&
2105             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2106             # program-specific install script used by HP pwplus--don't use.
2107             :
2108           else
2109             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2110             break 3
2111           fi
2112         fi
2113       done
2114     done
2115     ;;
2116 esac
2117 done
2118
2119
2120 fi
2121   if test "${ac_cv_path_install+set}" = set; then
2122     INSTALL=$ac_cv_path_install
2123   else
2124     # As a last resort, use the slow shell script.  We don't cache a
2125     # path for INSTALL within a source directory, because that will
2126     # break other packages using the cache if that directory is
2127     # removed, or if the path is relative.
2128     INSTALL=$ac_install_sh
2129   fi
2130 fi
2131 echo "$as_me:$LINENO: result: $INSTALL" >&5
2132 echo "${ECHO_T}$INSTALL" >&6
2133
2134 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2135 # It thinks the first close brace ends the variable substitution.
2136 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2137
2138 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2139
2140 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2141
2142
2143 # Make sure we can run config.sub.
2144 $ac_config_sub sun4 >/dev/null 2>&1 ||
2145   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2146 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 echo "$as_me:$LINENO: checking build system type" >&5
2150 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2151 if test "${ac_cv_build+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   ac_cv_build_alias=$build_alias
2155 test -z "$ac_cv_build_alias" &&
2156   ac_cv_build_alias=`$ac_config_guess`
2157 test -z "$ac_cv_build_alias" &&
2158   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160    { (exit 1); exit 1; }; }
2161 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2162   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2163 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2164    { (exit 1); exit 1; }; }
2165
2166 fi
2167 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 echo "${ECHO_T}$ac_cv_build" >&6
2169 build=$ac_cv_build
2170 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2171 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2172 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2173
2174
2175 echo "$as_me:$LINENO: checking host system type" >&5
2176 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2177 if test "${ac_cv_host+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   ac_cv_host_alias=$host_alias
2181 test -z "$ac_cv_host_alias" &&
2182   ac_cv_host_alias=$ac_cv_build_alias
2183 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2184   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2185 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2186    { (exit 1); exit 1; }; }
2187
2188 fi
2189 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2190 echo "${ECHO_T}$ac_cv_host" >&6
2191 host=$ac_cv_host
2192 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2193 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2194 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2195
2196
2197 echo "$as_me:$LINENO: checking target system type" >&5
2198 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2199 if test "${ac_cv_target+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   ac_cv_target_alias=$target_alias
2203 test "x$ac_cv_target_alias" = "x" &&
2204   ac_cv_target_alias=$ac_cv_host_alias
2205 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2206   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2207 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2208    { (exit 1); exit 1; }; }
2209
2210 fi
2211 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2212 echo "${ECHO_T}$ac_cv_target" >&6
2213 target=$ac_cv_target
2214 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2215 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2216 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2217
2218
2219 # The aliases save the names the user supplied, while $host etc.
2220 # will get canonicalized.
2221 test -n "$target_alias" &&
2222   test "$program_prefix$program_suffix$program_transform_name" = \
2223     NONENONEs,x,x, &&
2224   program_prefix=${target_alias}-
2225
2226 case $build in
2227         *i*86*)  OS=Linux
2228
2229                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2230
2231                  ;;
2232
2233         *sparc*) OS=SunOS
2234
2235                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2236
2237                  ;;
2238
2239         *)       OS=Unknown
2240
2241                  ;;
2242 esac
2243
2244 case $target in
2245         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2246
2247                           ;;
2248 esac
2249
2250 case $target in
2251         *i*86*)           ARCH=x86
2252
2253                           ;;
2254         *sparc*solaris*)  ARCH=Sparc
2255
2256                           ;;
2257 esac
2258
2259
2260 ac_ext=cc
2261 ac_cpp='$CXXCPP $CPPFLAGS'
2262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2265 if test -n "$ac_tool_prefix"; then
2266   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2267   do
2268     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_CXX+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   if test -n "$CXX"; then
2276   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291
2292 fi
2293 fi
2294 CXX=$ac_cv_prog_CXX
2295 if test -n "$CXX"; then
2296   echo "$as_me:$LINENO: result: $CXX" >&5
2297 echo "${ECHO_T}$CXX" >&6
2298 else
2299   echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2301 fi
2302
2303     test -n "$CXX" && break
2304   done
2305 fi
2306 if test -z "$CXX"; then
2307   ac_ct_CXX=$CXX
2308   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2309 do
2310   # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   if test -n "$ac_ct_CXX"; then
2318   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327     ac_cv_prog_ac_ct_CXX="$ac_prog"
2328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332 done
2333
2334 fi
2335 fi
2336 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2337 if test -n "$ac_ct_CXX"; then
2338   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2339 echo "${ECHO_T}$ac_ct_CXX" >&6
2340 else
2341   echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2343 fi
2344
2345   test -n "$ac_ct_CXX" && break
2346 done
2347 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2348
2349   CXX=$ac_ct_CXX
2350 fi
2351
2352
2353 # Provide some information about the compiler.
2354 echo "$as_me:$LINENO:" \
2355      "checking for C++ compiler version" >&5
2356 ac_compiler=`set X $ac_compile; echo $2`
2357 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2358   (eval $ac_compiler --version </dev/null >&5) 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }
2362 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2363   (eval $ac_compiler -v </dev/null >&5) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2368   (eval $ac_compiler -V </dev/null >&5) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }
2372
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2375 /* confdefs.h.  */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h.  */
2380
2381 int
2382 main ()
2383 {
2384
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 ac_clean_files_save=$ac_clean_files
2390 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2391 # Try to create an executable without -o first, disregard a.out.
2392 # It will help us diagnose broken compilers, and finding out an intuition
2393 # of exeext.
2394 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2395 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2396 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2397 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2398   (eval $ac_link_default) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; then
2402   # Find the output, starting from the most likely.  This scheme is
2403 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2404 # resort.
2405
2406 # Be careful to initialize this variable, since it used to be cached.
2407 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2408 ac_cv_exeext=
2409 # b.out is created by i960 compilers.
2410 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2411 do
2412   test -f "$ac_file" || continue
2413   case $ac_file in
2414     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2415         ;;
2416     conftest.$ac_ext )
2417         # This is the source file.
2418         ;;
2419     [ab].out )
2420         # We found the default executable, but exeext='' is most
2421         # certainly right.
2422         break;;
2423     *.* )
2424         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425         # FIXME: I believe we export ac_cv_exeext for Libtool,
2426         # but it would be cool to find out if it's true.  Does anybody
2427         # maintain Libtool? --akim.
2428         export ac_cv_exeext
2429         break;;
2430     * )
2431         break;;
2432   esac
2433 done
2434 else
2435   echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2439 See \`config.log' for more details." >&5
2440 echo "$as_me: error: C++ compiler cannot create executables
2441 See \`config.log' for more details." >&2;}
2442    { (exit 77); exit 77; }; }
2443 fi
2444
2445 ac_exeext=$ac_cv_exeext
2446 echo "$as_me:$LINENO: result: $ac_file" >&5
2447 echo "${ECHO_T}$ac_file" >&6
2448
2449 # Check the compiler produces executables we can run.  If not, either
2450 # the compiler is broken, or we cross compile.
2451 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2452 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2453 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2454 # If not cross compiling, check that we can run a simple program.
2455 if test "$cross_compiling" != yes; then
2456   if { ac_try='./$ac_file'
2457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458   (eval $ac_try) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }; }; then
2462     cross_compiling=no
2463   else
2464     if test "$cross_compiling" = maybe; then
2465         cross_compiling=yes
2466     else
2467         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2468 If you meant to cross compile, use \`--host'.
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot run C++ compiled programs.
2471 If you meant to cross compile, use \`--host'.
2472 See \`config.log' for more details." >&2;}
2473    { (exit 1); exit 1; }; }
2474     fi
2475   fi
2476 fi
2477 echo "$as_me:$LINENO: result: yes" >&5
2478 echo "${ECHO_T}yes" >&6
2479
2480 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2481 ac_clean_files=$ac_clean_files_save
2482 # Check the compiler produces executables we can run.  If not, either
2483 # the compiler is broken, or we cross compile.
2484 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2485 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2486 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2487 echo "${ECHO_T}$cross_compiling" >&6
2488
2489 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2490 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2492   (eval $ac_link) 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }; then
2496   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2497 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2498 # work properly (i.e., refer to `conftest.exe'), while it won't with
2499 # `rm'.
2500 for ac_file in conftest.exe conftest conftest.*; do
2501   test -f "$ac_file" || continue
2502   case $ac_file in
2503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2504     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2505           export ac_cv_exeext
2506           break;;
2507     * ) break;;
2508   esac
2509 done
2510 else
2511   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2514 See \`config.log' for more details." >&2;}
2515    { (exit 1); exit 1; }; }
2516 fi
2517
2518 rm -f conftest$ac_cv_exeext
2519 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2520 echo "${ECHO_T}$ac_cv_exeext" >&6
2521
2522 rm -f conftest.$ac_ext
2523 EXEEXT=$ac_cv_exeext
2524 ac_exeext=$EXEEXT
2525 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2526 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2527 if test "${ac_cv_objext+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   cat >conftest.$ac_ext <<_ACEOF
2531 #line $LINENO "configure"
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537
2538 int
2539 main ()
2540 {
2541
2542   ;
2543   return 0;
2544 }
2545 _ACEOF
2546 rm -f conftest.o conftest.obj
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548   (eval $ac_compile) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; then
2552   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2553   case $ac_file in
2554     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2555     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2556        break;;
2557   esac
2558 done
2559 else
2560   echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2562
2563 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2566 See \`config.log' for more details." >&2;}
2567    { (exit 1); exit 1; }; }
2568 fi
2569
2570 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2571 fi
2572 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2573 echo "${ECHO_T}$ac_cv_objext" >&6
2574 OBJEXT=$ac_cv_objext
2575 ac_objext=$OBJEXT
2576 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2577 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2578 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2579   echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581   cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 /* confdefs.h.  */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h.  */
2588
2589 int
2590 main ()
2591 {
2592 #ifndef __GNUC__
2593        choke me
2594 #endif
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); } &&
2606          { ac_try='test -s conftest.$ac_objext'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; }; then
2612   ac_compiler_gnu=yes
2613 else
2614   echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617 ac_compiler_gnu=no
2618 fi
2619 rm -f conftest.$ac_objext conftest.$ac_ext
2620 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2621
2622 fi
2623 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2624 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2625 GXX=`test $ac_compiler_gnu = yes && echo yes`
2626 ac_test_CXXFLAGS=${CXXFLAGS+set}
2627 ac_save_CXXFLAGS=$CXXFLAGS
2628 CXXFLAGS="-g"
2629 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2630 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2631 if test "${ac_cv_prog_cxx_g+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   cat >conftest.$ac_ext <<_ACEOF
2635 #line $LINENO "configure"
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641
2642 int
2643 main ()
2644 {
2645
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652   (eval $ac_compile) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } &&
2656          { ac_try='test -s conftest.$ac_objext'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; }; then
2662   ac_cv_prog_cxx_g=yes
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 ac_cv_prog_cxx_g=no
2668 fi
2669 rm -f conftest.$ac_objext conftest.$ac_ext
2670 fi
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2673 if test "$ac_test_CXXFLAGS" = set; then
2674   CXXFLAGS=$ac_save_CXXFLAGS
2675 elif test $ac_cv_prog_cxx_g = yes; then
2676   if test "$GXX" = yes; then
2677     CXXFLAGS="-g -O2"
2678   else
2679     CXXFLAGS="-g"
2680   fi
2681 else
2682   if test "$GXX" = yes; then
2683     CXXFLAGS="-O2"
2684   else
2685     CXXFLAGS=
2686   fi
2687 fi
2688 for ac_declaration in \
2689    ''\
2690    '#include <stdlib.h>' \
2691    'extern "C" void std::exit (int) throw (); using std::exit;' \
2692    'extern "C" void std::exit (int); using std::exit;' \
2693    'extern "C" void exit (int) throw ();' \
2694    'extern "C" void exit (int);' \
2695    'void exit (int);'
2696 do
2697   cat >conftest.$ac_ext <<_ACEOF
2698 #line $LINENO "configure"
2699 /* confdefs.h.  */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h.  */
2704 #include <stdlib.h>
2705 $ac_declaration
2706 int
2707 main ()
2708 {
2709 exit (42);
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716   (eval $ac_compile) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -s conftest.$ac_objext'
2721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722   (eval $ac_try) 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; }; then
2726   :
2727 else
2728   echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730
2731 continue
2732 fi
2733 rm -f conftest.$ac_objext conftest.$ac_ext
2734   cat >conftest.$ac_ext <<_ACEOF
2735 #line $LINENO "configure"
2736 /* confdefs.h.  */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h.  */
2741 $ac_declaration
2742 int
2743 main ()
2744 {
2745 exit (42);
2746   ;
2747   return 0;
2748 }
2749 _ACEOF
2750 rm -f conftest.$ac_objext
2751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752   (eval $ac_compile) 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); } &&
2756          { ac_try='test -s conftest.$ac_objext'
2757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758   (eval $ac_try) 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }; }; then
2762   break
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 fi
2768 rm -f conftest.$ac_objext conftest.$ac_ext
2769 done
2770 rm -f conftest*
2771 if test -n "$ac_declaration"; then
2772   echo '#ifdef __cplusplus' >>confdefs.h
2773   echo $ac_declaration      >>confdefs.h
2774   echo '#endif'             >>confdefs.h
2775 fi
2776
2777 ac_ext=c
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782
2783 ac_ext=c
2784 ac_cpp='$CPP $CPPFLAGS'
2785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788 if test -n "$ac_tool_prefix"; then
2789   for ac_prog in gcc
2790   do
2791     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2793 echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795 if test "${ac_cv_prog_CC+set}" = set; then
2796   echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798   if test -n "$CC"; then
2799   ac_cv_prog_CC="$CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806   for ac_exec_ext in '' $ac_executable_extensions; do
2807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810     break 2
2811   fi
2812 done
2813 done
2814
2815 fi
2816 fi
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819   echo "$as_me:$LINENO: result: $CC" >&5
2820 echo "${ECHO_T}$CC" >&6
2821 else
2822   echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2824 fi
2825
2826     test -n "$CC" && break
2827   done
2828 fi
2829 if test -z "$CC"; then
2830   ac_ct_CC=$CC
2831   for ac_prog in gcc
2832 do
2833   # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   if test -n "$ac_ct_CC"; then
2841   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   for ac_exec_ext in '' $ac_executable_extensions; do
2849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850     ac_cv_prog_ac_ct_CC="$ac_prog"
2851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855 done
2856
2857 fi
2858 fi
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862 echo "${ECHO_T}$ac_ct_CC" >&6
2863 else
2864   echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2866 fi
2867
2868   test -n "$ac_ct_CC" && break
2869 done
2870
2871   CC=$ac_ct_CC
2872 fi
2873
2874
2875 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: no acceptable C compiler found in \$PATH
2878 See \`config.log' for more details." >&2;}
2879    { (exit 1); exit 1; }; }
2880
2881 # Provide some information about the compiler.
2882 echo "$as_me:$LINENO:" \
2883      "checking for C compiler version" >&5
2884 ac_compiler=`set X $ac_compile; echo $2`
2885 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2886   (eval $ac_compiler --version </dev/null >&5) 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }
2890 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2891   (eval $ac_compiler -v </dev/null >&5) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }
2895 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2896   (eval $ac_compiler -V </dev/null >&5) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }
2900
2901 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2902 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2903 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2904   echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906   cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913
2914 int
2915 main ()
2916 {
2917 #ifndef __GNUC__
2918        choke me
2919 #endif
2920
2921   ;
2922   return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927   (eval $ac_compile) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } &&
2931          { ac_try='test -s conftest.$ac_objext'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; }; then
2937   ac_compiler_gnu=yes
2938 else
2939   echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 ac_compiler_gnu=no
2943 fi
2944 rm -f conftest.$ac_objext conftest.$ac_ext
2945 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2946
2947 fi
2948 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2949 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2950 GCC=`test $ac_compiler_gnu = yes && echo yes`
2951 ac_test_CFLAGS=${CFLAGS+set}
2952 ac_save_CFLAGS=$CFLAGS
2953 CFLAGS="-g"
2954 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2955 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2956 if test "${ac_cv_prog_cc_g+set}" = set; then
2957   echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959   cat >conftest.$ac_ext <<_ACEOF
2960 #line $LINENO "configure"
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966
2967 int
2968 main ()
2969 {
2970
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977   (eval $ac_compile) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } &&
2981          { ac_try='test -s conftest.$ac_objext'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; }; then
2987   ac_cv_prog_cc_g=yes
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 ac_cv_prog_cc_g=no
2993 fi
2994 rm -f conftest.$ac_objext conftest.$ac_ext
2995 fi
2996 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2997 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2998 if test "$ac_test_CFLAGS" = set; then
2999   CFLAGS=$ac_save_CFLAGS
3000 elif test $ac_cv_prog_cc_g = yes; then
3001   if test "$GCC" = yes; then
3002     CFLAGS="-g -O2"
3003   else
3004     CFLAGS="-g"
3005   fi
3006 else
3007   if test "$GCC" = yes; then
3008     CFLAGS="-O2"
3009   else
3010     CFLAGS=
3011   fi
3012 fi
3013 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3014 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3015 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   ac_cv_prog_cc_stdc=no
3019 ac_save_CC=$CC
3020 cat >conftest.$ac_ext <<_ACEOF
3021 #line $LINENO "configure"
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027 #include <stdarg.h>
3028 #include <stdio.h>
3029 #include <sys/types.h>
3030 #include <sys/stat.h>
3031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3032 struct buf { int x; };
3033 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3034 static char *e (p, i)
3035      char **p;
3036      int i;
3037 {
3038   return p[i];
3039 }
3040 static char *f (char * (*g) (char **, int), char **p, ...)
3041 {
3042   char *s;
3043   va_list v;
3044   va_start (v,p);
3045   s = g (p, va_arg (v,int));
3046   va_end (v);
3047   return s;
3048 }
3049 int test (int i, double x);
3050 struct s1 {int (*f) (int a);};
3051 struct s2 {int (*f) (double a);};
3052 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3053 int argc;
3054 char **argv;
3055 int
3056 main ()
3057 {
3058 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 # Don't try gcc -ansi; that turns off useful extensions and
3064 # breaks some systems' header files.
3065 # AIX                   -qlanglvl=ansi
3066 # Ultrix and OSF/1      -std1
3067 # HP-UX 10.20 and later -Ae
3068 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3069 # SVR4                  -Xc -D__EXTENSIONS__
3070 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3071 do
3072   CC="$ac_save_CC $ac_arg"
3073   rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075   (eval $ac_compile) 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); } &&
3079          { ac_try='test -s conftest.$ac_objext'
3080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081   (eval $ac_try) 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }; }; then
3085   ac_cv_prog_cc_stdc=$ac_arg
3086 break
3087 else
3088   echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091 fi
3092 rm -f conftest.$ac_objext
3093 done
3094 rm -f conftest.$ac_ext conftest.$ac_objext
3095 CC=$ac_save_CC
3096
3097 fi
3098
3099 case "x$ac_cv_prog_cc_stdc" in
3100   x|xno)
3101     echo "$as_me:$LINENO: result: none needed" >&5
3102 echo "${ECHO_T}none needed" >&6 ;;
3103   *)
3104     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3105 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3106     CC="$CC $ac_cv_prog_cc_stdc" ;;
3107 esac
3108
3109 # Some people use a C++ compiler to compile C.  Since we use `exit',
3110 # in C++ we need to declare it.  In case someone uses the same compiler
3111 # for both compiling C and C++ we need to have the C++ compiler decide
3112 # the declaration of exit, since it's the most demanding environment.
3113 cat >conftest.$ac_ext <<_ACEOF
3114 #ifndef __cplusplus
3115   choke me
3116 #endif
3117 _ACEOF
3118 rm -f conftest.$ac_objext
3119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120   (eval $ac_compile) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); } &&
3124          { ac_try='test -s conftest.$ac_objext'
3125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126   (eval $ac_try) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; }; then
3130   for ac_declaration in \
3131    ''\
3132    '#include <stdlib.h>' \
3133    'extern "C" void std::exit (int) throw (); using std::exit;' \
3134    'extern "C" void std::exit (int); using std::exit;' \
3135    'extern "C" void exit (int) throw ();' \
3136    'extern "C" void exit (int);' \
3137    'void exit (int);'
3138 do
3139   cat >conftest.$ac_ext <<_ACEOF
3140 #line $LINENO "configure"
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146 #include <stdlib.h>
3147 $ac_declaration
3148 int
3149 main ()
3150 {
3151 exit (42);
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158   (eval $ac_compile) 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -s conftest.$ac_objext'
3163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164   (eval $ac_try) 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }; }; then
3168   :
3169 else
3170   echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 continue
3174 fi
3175 rm -f conftest.$ac_objext conftest.$ac_ext
3176   cat >conftest.$ac_ext <<_ACEOF
3177 #line $LINENO "configure"
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183 $ac_declaration
3184 int
3185 main ()
3186 {
3187 exit (42);
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 rm -f conftest.$ac_objext
3193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3194   (eval $ac_compile) 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } &&
3198          { ac_try='test -s conftest.$ac_objext'
3199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200   (eval $ac_try) 2>&5
3201   ac_status=$?
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); }; }; then
3204   break
3205 else
3206   echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 fi
3210 rm -f conftest.$ac_objext conftest.$ac_ext
3211 done
3212 rm -f conftest*
3213 if test -n "$ac_declaration"; then
3214   echo '#ifdef __cplusplus' >>confdefs.h
3215   echo $ac_declaration      >>confdefs.h
3216   echo '#endif'             >>confdefs.h
3217 fi
3218
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 fi
3224 rm -f conftest.$ac_objext conftest.$ac_ext
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231 ac_ext=c
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3240   CPP=
3241 fi
3242 if test -z "$CPP"; then
3243   if test "${ac_cv_prog_CPP+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246       # Double quotes because CPP needs to be expanded
3247     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248     do
3249       ac_preproc_ok=false
3250 for ac_c_preproc_warn_flag in '' yes
3251 do
3252   # Use a header file that comes with gcc, so configuring glibc
3253   # with a fresh cross-compiler works.
3254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255   # <limits.h> exists even on freestanding compilers.
3256   # On the NeXT, cc -E runs the code through the compiler's parser,
3257   # not just through cpp. "Syntax error" is here to catch this case.
3258   cat >conftest.$ac_ext <<_ACEOF
3259 #line $LINENO "configure"
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265 #ifdef __STDC__
3266 # include <limits.h>
3267 #else
3268 # include <assert.h>
3269 #endif
3270                      Syntax error
3271 _ACEOF
3272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3274   ac_status=$?
3275   grep -v '^ *+' conftest.er1 >conftest.err
3276   rm -f conftest.er1
3277   cat conftest.err >&5
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); } >/dev/null; then
3280   if test -s conftest.err; then
3281     ac_cpp_err=$ac_c_preproc_warn_flag
3282   else
3283     ac_cpp_err=
3284   fi
3285 else
3286   ac_cpp_err=yes
3287 fi
3288 if test -z "$ac_cpp_err"; then
3289   :
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294   # Broken: fails on valid input.
3295 continue
3296 fi
3297 rm -f conftest.err conftest.$ac_ext
3298
3299   # OK, works on sane cases.  Now check whether non-existent headers
3300   # can be detected and how.
3301   cat >conftest.$ac_ext <<_ACEOF
3302 #line $LINENO "configure"
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308 #include <ac_nonexistent.h>
3309 _ACEOF
3310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3312   ac_status=$?
3313   grep -v '^ *+' conftest.er1 >conftest.err
3314   rm -f conftest.er1
3315   cat conftest.err >&5
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } >/dev/null; then
3318   if test -s conftest.err; then
3319     ac_cpp_err=$ac_c_preproc_warn_flag
3320   else
3321     ac_cpp_err=
3322   fi
3323 else
3324   ac_cpp_err=yes
3325 fi
3326 if test -z "$ac_cpp_err"; then
3327   # Broken: success on invalid input.
3328 continue
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333   # Passes both tests.
3334 ac_preproc_ok=:
3335 break
3336 fi
3337 rm -f conftest.err conftest.$ac_ext
3338
3339 done
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3343   break
3344 fi
3345
3346     done
3347     ac_cv_prog_CPP=$CPP
3348
3349 fi
3350   CPP=$ac_cv_prog_CPP
3351 else
3352   ac_cv_prog_CPP=$CPP
3353 fi
3354 echo "$as_me:$LINENO: result: $CPP" >&5
3355 echo "${ECHO_T}$CPP" >&6
3356 ac_preproc_ok=false
3357 for ac_c_preproc_warn_flag in '' yes
3358 do
3359   # Use a header file that comes with gcc, so configuring glibc
3360   # with a fresh cross-compiler works.
3361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362   # <limits.h> exists even on freestanding compilers.
3363   # On the NeXT, cc -E runs the code through the compiler's parser,
3364   # not just through cpp. "Syntax error" is here to catch this case.
3365   cat >conftest.$ac_ext <<_ACEOF
3366 #line $LINENO "configure"
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 #ifdef __STDC__
3373 # include <limits.h>
3374 #else
3375 # include <assert.h>
3376 #endif
3377                      Syntax error
3378 _ACEOF
3379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3381   ac_status=$?
3382   grep -v '^ *+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } >/dev/null; then
3387   if test -s conftest.err; then
3388     ac_cpp_err=$ac_c_preproc_warn_flag
3389   else
3390     ac_cpp_err=
3391   fi
3392 else
3393   ac_cpp_err=yes
3394 fi
3395 if test -z "$ac_cpp_err"; then
3396   :
3397 else
3398   echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401   # Broken: fails on valid input.
3402 continue
3403 fi
3404 rm -f conftest.err conftest.$ac_ext
3405
3406   # OK, works on sane cases.  Now check whether non-existent headers
3407   # can be detected and how.
3408   cat >conftest.$ac_ext <<_ACEOF
3409 #line $LINENO "configure"
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415 #include <ac_nonexistent.h>
3416 _ACEOF
3417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } >/dev/null; then
3425   if test -s conftest.err; then
3426     ac_cpp_err=$ac_c_preproc_warn_flag
3427   else
3428     ac_cpp_err=
3429   fi
3430 else
3431   ac_cpp_err=yes
3432 fi
3433 if test -z "$ac_cpp_err"; then
3434   # Broken: success on invalid input.
3435 continue
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440   # Passes both tests.
3441 ac_preproc_ok=:
3442 break
3443 fi
3444 rm -f conftest.err conftest.$ac_ext
3445
3446 done
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then
3450   :
3451 else
3452   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&5
3454 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3455 See \`config.log' for more details." >&2;}
3456    { (exit 1); exit 1; }; }
3457 fi
3458
3459 ac_ext=c
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
3465
3466 if test "$GCC" != "yes"
3467 then
3468         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3469 echo "$as_me: error: gcc required but not found" >&2;}
3470    { (exit 1); exit 1; }; }
3471 fi
3472
3473 if test "$GXX" != "yes"
3474 then
3475         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3476 echo "$as_me: error: g++ required but not found" >&2;}
3477    { (exit 1); exit 1; }; }
3478 fi
3479
3480 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3481 if test "$gccmajor" -lt "3"
3482 then
3483         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3484 echo "$as_me: error: gcc 3.x required" >&2;}
3485    { (exit 1); exit 1; }; }
3486 fi
3487
3488  echo "$as_me:$LINENO: checking for GNU make" >&5
3489 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3490 if test "${_cv_gnu_make_command+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   _cv_gnu_make_command='' ;
3494                 for a in "$MAKE" make gmake gnumake ; do
3495                         if test -z "$a" ; then continue ; fi ;
3496                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3497                                 _cv_gnu_make_command=$a ;
3498                                 break;
3499                         fi
3500                 done ;
3501
3502 fi
3503 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3504 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3505         if test  "x$_cv_gnu_make_command" != "x"  ; then
3506                 ifGNUmake='' ;
3507         else
3508                 ifGNUmake='#' ;
3509                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3510 echo "${ECHO_T}\"Not found\"" >&6;
3511         fi
3512
3513
3514 if test -z "$_cv_gnu_make_command"
3515 then
3516         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3517 echo "$as_me: error: GNU Make required but not found" >&2;}
3518    { (exit 1); exit 1; }; }
3519 fi
3520
3521
3522 echo "$as_me:$LINENO: checking " >&5
3523 echo $ECHO_N "checking ... $ECHO_C" >&6
3524 if test "${ac_cv_has_flex+set}" = set; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527   for ac_prog in flex lex
3528 do
3529   # Extract the first word of "$ac_prog", so it can be a program name with args.
3530 set dummy $ac_prog; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_prog_LEX+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   if test -n "$LEX"; then
3537   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542   IFS=$as_save_IFS
3543   test -z "$as_dir" && as_dir=.
3544   for ac_exec_ext in '' $ac_executable_extensions; do
3545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546     ac_cv_prog_LEX="$ac_prog"
3547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548     break 2
3549   fi
3550 done
3551 done
3552
3553 fi
3554 fi
3555 LEX=$ac_cv_prog_LEX
3556 if test -n "$LEX"; then
3557   echo "$as_me:$LINENO: result: $LEX" >&5
3558 echo "${ECHO_T}$LEX" >&6
3559 else
3560   echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3562 fi
3563
3564   test -n "$LEX" && break
3565 done
3566 test -n "$LEX" || LEX=":"
3567
3568 if test -z "$LEXLIB"
3569 then
3570   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3571 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3572 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3573   echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575   ac_check_lib_save_LIBS=$LIBS
3576 LIBS="-lfl  $LIBS"
3577 cat >conftest.$ac_ext <<_ACEOF
3578 #line $LINENO "configure"
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584
3585 /* Override any gcc2 internal prototype to avoid an error.  */
3586 #ifdef __cplusplus
3587 extern "C"
3588 #endif
3589 /* We use char because int might match the return type of a gcc2
3590    builtin and then its argument prototype would still apply.  */
3591 char yywrap ();
3592 int
3593 main ()
3594 {
3595 yywrap ();
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest.$ac_objext conftest$ac_exeext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602   (eval $ac_link) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } &&
3606          { ac_try='test -s conftest$ac_exeext'
3607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608   (eval $ac_try) 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; }; then
3612   ac_cv_lib_fl_yywrap=yes
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 ac_cv_lib_fl_yywrap=no
3618 fi
3619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3620 LIBS=$ac_check_lib_save_LIBS
3621 fi
3622 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3623 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3624 if test $ac_cv_lib_fl_yywrap = yes; then
3625   LEXLIB="-lfl"
3626 else
3627   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3628 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3629 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   ac_check_lib_save_LIBS=$LIBS
3633 LIBS="-ll  $LIBS"
3634 cat >conftest.$ac_ext <<_ACEOF
3635 #line $LINENO "configure"
3636 /* confdefs.h.  */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h.  */
3641
3642 /* Override any gcc2 internal prototype to avoid an error.  */
3643 #ifdef __cplusplus
3644 extern "C"
3645 #endif
3646 /* We use char because int might match the return type of a gcc2
3647    builtin and then its argument prototype would still apply.  */
3648 char yywrap ();
3649 int
3650 main ()
3651 {
3652 yywrap ();
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 rm -f conftest.$ac_objext conftest$ac_exeext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659   (eval $ac_link) 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } &&
3663          { ac_try='test -s conftest$ac_exeext'
3664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665   (eval $ac_try) 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); }; }; then
3669   ac_cv_lib_l_yywrap=yes
3670 else
3671   echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3673
3674 ac_cv_lib_l_yywrap=no
3675 fi
3676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3677 LIBS=$ac_check_lib_save_LIBS
3678 fi
3679 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3680 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3681 if test $ac_cv_lib_l_yywrap = yes; then
3682   LEXLIB="-ll"
3683 fi
3684
3685 fi
3686
3687 fi
3688
3689 if test "x$LEX" != "x:"; then
3690   echo "$as_me:$LINENO: checking lex output file root" >&5
3691 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3692 if test "${ac_cv_prog_lex_root+set}" = set; then
3693   echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695   # The minimal lex program is just a single line: %%.  But some broken lexes
3696 # (Solaris, I think it was) want two %% lines, so accommodate them.
3697 cat >conftest.l <<_ACEOF
3698 %%
3699 %%
3700 _ACEOF
3701 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3702   (eval $LEX conftest.l) 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }
3706 if test -f lex.yy.c; then
3707   ac_cv_prog_lex_root=lex.yy
3708 elif test -f lexyy.c; then
3709   ac_cv_prog_lex_root=lexyy
3710 else
3711   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3712 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3713    { (exit 1); exit 1; }; }
3714 fi
3715 fi
3716 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3717 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3718 rm -f conftest.l
3719 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3720
3721 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3722 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3723 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   # POSIX says lex can declare yytext either as a pointer or an array; the
3727 # default is implementation-dependent. Figure out which it is, since
3728 # not all implementations provide the %pointer and %array declarations.
3729 ac_cv_prog_lex_yytext_pointer=no
3730 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3731 ac_save_LIBS=$LIBS
3732 LIBS="$LIBS $LEXLIB"
3733 cat >conftest.$ac_ext <<_ACEOF
3734 `cat $LEX_OUTPUT_ROOT.c`
3735 _ACEOF
3736 rm -f conftest.$ac_objext conftest$ac_exeext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738   (eval $ac_link) 2>&5
3739   ac_status=$?
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); } &&
3742          { ac_try='test -s conftest$ac_exeext'
3743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744   (eval $ac_try) 2>&5
3745   ac_status=$?
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); }; }; then
3748   ac_cv_prog_lex_yytext_pointer=yes
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753 fi
3754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755 LIBS=$ac_save_LIBS
3756 rm -f "${LEX_OUTPUT_ROOT}.c"
3757
3758 fi
3759 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3760 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3761 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3762
3763 cat >>confdefs.h <<\_ACEOF
3764 #define YYTEXT_POINTER 1
3765 _ACEOF
3766
3767 fi
3768
3769 fi
3770
3771 fi
3772 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3773 echo "${ECHO_T}$ac_cv_has_flex" >&6
3774 if test "$LEX" != "flex"; then
3775   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3776 echo "$as_me: error: flex not found but required" >&2;}
3777    { (exit 1); exit 1; }; }
3778 fi
3779
3780 echo "$as_me:$LINENO: checking " >&5
3781 echo $ECHO_N "checking ... $ECHO_C" >&6
3782 if test "${ac_cv_has_bison+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   for ac_prog in 'bison -y' byacc
3786 do
3787   # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 echo "$as_me:$LINENO: checking for $ac_word" >&5
3790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3791 if test "${ac_cv_prog_YACC+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   if test -n "$YACC"; then
3795   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800   IFS=$as_save_IFS
3801   test -z "$as_dir" && as_dir=.
3802   for ac_exec_ext in '' $ac_executable_extensions; do
3803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804     ac_cv_prog_YACC="$ac_prog"
3805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806     break 2
3807   fi
3808 done
3809 done
3810
3811 fi
3812 fi
3813 YACC=$ac_cv_prog_YACC
3814 if test -n "$YACC"; then
3815   echo "$as_me:$LINENO: result: $YACC" >&5
3816 echo "${ECHO_T}$YACC" >&6
3817 else
3818   echo "$as_me:$LINENO: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3820 fi
3821
3822   test -n "$YACC" && break
3823 done
3824 test -n "$YACC" || YACC="yacc"
3825
3826
3827 fi
3828 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3829 echo "${ECHO_T}$ac_cv_has_bison" >&6
3830 if test "$YACC" != "bison -y"; then
3831   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3832 echo "$as_me: error: bison not found but required" >&2;}
3833    { (exit 1); exit 1; }; }
3834 else
3835   YACC=bison
3836
3837 fi
3838
3839
3840 # Check whether --enable-shared or --disable-shared was given.
3841 if test "${enable_shared+set}" = set; then
3842   enableval="$enable_shared"
3843   p=${PACKAGE-default}
3844     case $enableval in
3845     yes) enable_shared=yes ;;
3846     no) enable_shared=no ;;
3847     *)
3848       enable_shared=no
3849       # Look at the argument we got.  We use all the common list separators.
3850       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3851       for pkg in $enableval; do
3852         IFS="$lt_save_ifs"
3853         if test "X$pkg" = "X$p"; then
3854           enable_shared=yes
3855         fi
3856       done
3857       IFS="$lt_save_ifs"
3858       ;;
3859     esac
3860 else
3861   enable_shared=yes
3862 fi;
3863
3864 # Check whether --enable-static or --disable-static was given.
3865 if test "${enable_static+set}" = set; then
3866   enableval="$enable_static"
3867   p=${PACKAGE-default}
3868     case $enableval in
3869     yes) enable_static=yes ;;
3870     no) enable_static=no ;;
3871     *)
3872      enable_static=no
3873       # Look at the argument we got.  We use all the common list separators.
3874       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3875       for pkg in $enableval; do
3876         IFS="$lt_save_ifs"
3877         if test "X$pkg" = "X$p"; then
3878           enable_static=yes
3879         fi
3880       done
3881       IFS="$lt_save_ifs"
3882       ;;
3883     esac
3884 else
3885   enable_static=yes
3886 fi;
3887
3888 # Check whether --enable-fast-install or --disable-fast-install was given.
3889 if test "${enable_fast_install+set}" = set; then
3890   enableval="$enable_fast_install"
3891   p=${PACKAGE-default}
3892     case $enableval in
3893     yes) enable_fast_install=yes ;;
3894     no) enable_fast_install=no ;;
3895     *)
3896       enable_fast_install=no
3897       # Look at the argument we got.  We use all the common list separators.
3898       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3899       for pkg in $enableval; do
3900         IFS="$lt_save_ifs"
3901         if test "X$pkg" = "X$p"; then
3902           enable_fast_install=yes
3903         fi
3904       done
3905       IFS="$lt_save_ifs"
3906       ;;
3907     esac
3908 else
3909   enable_fast_install=yes
3910 fi;
3911
3912 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3913 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3914 if test "${lt_cv_path_SED+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   # Loop through the user's path and test for sed and gsed.
3918 # Then use that list of sed's as ones to test for truncation.
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924   for lt_ac_prog in sed gsed; do
3925     for ac_exec_ext in '' $ac_executable_extensions; do
3926       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3927         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3928       fi
3929     done
3930   done
3931 done
3932 lt_ac_max=0
3933 lt_ac_count=0
3934 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3935 # along with /bin/sed that truncates output.
3936 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3937   test ! -f $lt_ac_sed && break
3938   cat /dev/null > conftest.in
3939   lt_ac_count=0
3940   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3941   # Check for GNU sed and select it if it is found.
3942   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3943     lt_cv_path_SED=$lt_ac_sed
3944     break
3945   fi
3946   while true; do
3947     cat conftest.in conftest.in >conftest.tmp
3948     mv conftest.tmp conftest.in
3949     cp conftest.in conftest.nl
3950     echo >>conftest.nl
3951     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3952     cmp -s conftest.out conftest.nl || break
3953     # 10000 chars as input seems more than enough
3954     test $lt_ac_count -gt 10 && break
3955     lt_ac_count=`expr $lt_ac_count + 1`
3956     if test $lt_ac_count -gt $lt_ac_max; then
3957       lt_ac_max=$lt_ac_count
3958       lt_cv_path_SED=$lt_ac_sed
3959     fi
3960   done
3961 done
3962 SED=$lt_cv_path_SED
3963
3964 fi
3965
3966 echo "$as_me:$LINENO: result: $SED" >&5
3967 echo "${ECHO_T}$SED" >&6
3968
3969 echo "$as_me:$LINENO: checking for egrep" >&5
3970 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3971 if test "${ac_cv_prog_egrep+set}" = set; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3975     then ac_cv_prog_egrep='grep -E'
3976     else ac_cv_prog_egrep='egrep'
3977     fi
3978 fi
3979 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3980 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3981  EGREP=$ac_cv_prog_egrep
3982
3983
3984
3985 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3986 if test "${with_gnu_ld+set}" = set; then
3987   withval="$with_gnu_ld"
3988   test "$withval" = no || with_gnu_ld=yes
3989 else
3990   with_gnu_ld=no
3991 fi;
3992 ac_prog=ld
3993 if test "$GCC" = yes; then
3994   # Check if gcc -print-prog-name=ld gives a path.
3995   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3996 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3997   case $host in
3998   *-*-mingw*)
3999     # gcc leaves a trailing carriage return which upsets mingw
4000     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4001   *)
4002     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4003   esac
4004   case $ac_prog in
4005     # Accept absolute paths.
4006     [\\/]* | ?:[\\/]*)
4007       re_direlt='/[^/][^/]*/\.\./'
4008       # Canonicalize the path of ld
4009       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4010       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4011         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4012       done
4013       test -z "$LD" && LD="$ac_prog"
4014       ;;
4015   "")
4016     # If it fails, then pretend we aren't using GCC.
4017     ac_prog=ld
4018     ;;
4019   *)
4020     # If it is relative, then search for the first ld in PATH.
4021     with_gnu_ld=unknown
4022     ;;
4023   esac
4024 elif test "$with_gnu_ld" = yes; then
4025   echo "$as_me:$LINENO: checking for GNU ld" >&5
4026 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4027 else
4028   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4029 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4030 fi
4031 if test "${lt_cv_path_LD+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   if test -z "$LD"; then
4035   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4036   for ac_dir in $PATH; do
4037     IFS="$lt_save_ifs"
4038     test -z "$ac_dir" && ac_dir=.
4039     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4040       lt_cv_path_LD="$ac_dir/$ac_prog"
4041       # Check to see if the program is GNU ld.  I'd rather use --version,
4042       # but apparently some GNU ld's only accept -v.
4043       # Break only if it was the GNU/non-GNU ld that we prefer.
4044       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4045       *GNU* | *'with BFD'*)
4046         test "$with_gnu_ld" != no && break
4047         ;;
4048       *)
4049         test "$with_gnu_ld" != yes && break
4050         ;;
4051       esac
4052     fi
4053   done
4054   IFS="$lt_save_ifs"
4055 else
4056   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4057 fi
4058 fi
4059
4060 LD="$lt_cv_path_LD"
4061 if test -n "$LD"; then
4062   echo "$as_me:$LINENO: result: $LD" >&5
4063 echo "${ECHO_T}$LD" >&6
4064 else
4065   echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4067 fi
4068 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4069 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4070    { (exit 1); exit 1; }; }
4071 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4072 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4073 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4077 case `"$LD" -v 2>&1 </dev/null` in
4078 *GNU* | *'with BFD'*)
4079   lt_cv_prog_gnu_ld=yes
4080   ;;
4081 *)
4082   lt_cv_prog_gnu_ld=no
4083   ;;
4084 esac
4085 fi
4086 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4087 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4088 with_gnu_ld=$lt_cv_prog_gnu_ld
4089
4090
4091 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4092 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4093 if test "${lt_cv_ld_reload_flag+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   lt_cv_ld_reload_flag='-r'
4097 fi
4098 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4099 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4100 reload_flag=$lt_cv_ld_reload_flag
4101 case $reload_flag in
4102 "" | " "*) ;;
4103 *) reload_flag=" $reload_flag" ;;
4104 esac
4105 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4106
4107 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4108 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4109 if test "${lt_cv_path_NM+set}" = set; then
4110   echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112   if test -n "$NM"; then
4113   # Let the user override the test.
4114   lt_cv_path_NM="$NM"
4115 else
4116   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4117   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4118     IFS="$lt_save_ifs"
4119     test -z "$ac_dir" && ac_dir=.
4120     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4121     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4122       # Check to see if the nm accepts a BSD-compat flag.
4123       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4124       #   nm: unknown option "B" ignored
4125       # Tru64's nm complains that /dev/null is an invalid object file
4126       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4127       */dev/null* | *'Invalid file or object type'*)
4128         lt_cv_path_NM="$tmp_nm -B"
4129         break
4130         ;;
4131       *)
4132         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4133         */dev/null*)
4134           lt_cv_path_NM="$tmp_nm -p"
4135           break
4136           ;;
4137         *)
4138           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4139           continue # so that we can try to find one that supports BSD flags
4140           ;;
4141         esac
4142       esac
4143     fi
4144   done
4145   IFS="$lt_save_ifs"
4146   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4147 fi
4148 fi
4149 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4150 echo "${ECHO_T}$lt_cv_path_NM" >&6
4151 NM="$lt_cv_path_NM"
4152
4153 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4154 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4155 LN_S=$as_ln_s
4156 if test "$LN_S" = "ln -s"; then
4157   echo "$as_me:$LINENO: result: yes" >&5
4158 echo "${ECHO_T}yes" >&6
4159 else
4160   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4161 echo "${ECHO_T}no, using $LN_S" >&6
4162 fi
4163
4164 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4165 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4166 if test "${lt_cv_deplibs_check_method+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   lt_cv_file_magic_cmd='$MAGIC_CMD'
4170 lt_cv_file_magic_test_file=
4171 lt_cv_deplibs_check_method='unknown'
4172 # Need to set the preceding variable on all platforms that support
4173 # interlibrary dependencies.
4174 # 'none' -- dependencies not supported.
4175 # `unknown' -- same as none, but documents that we really don't know.
4176 # 'pass_all' -- all dependencies passed with no checks.
4177 # 'test_compile' -- check by making test program.
4178 # 'file_magic [[regex]]' -- check by looking for files in library path
4179 # which responds to the $file_magic_cmd with a given extended regex.
4180 # If you have `file' or equivalent on your system and you're not sure
4181 # whether `pass_all' will *always* work, you probably want this one.
4182
4183 case $host_os in
4184 aix4* | aix5*)
4185   lt_cv_deplibs_check_method=pass_all
4186   ;;
4187
4188 beos*)
4189   lt_cv_deplibs_check_method=pass_all
4190   ;;
4191
4192 bsdi4*)
4193   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4194   lt_cv_file_magic_cmd='/usr/bin/file -L'
4195   lt_cv_file_magic_test_file=/shlib/libc.so
4196   ;;
4197
4198 cygwin* | mingw* | pw32*)
4199   # win32_libid is a shell function defined in ltmain.sh
4200   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4201   lt_cv_file_magic_cmd='win32_libid'
4202   ;;
4203
4204 darwin* | rhapsody*)
4205   # this will be overwritten by pass_all, but leave it in just in case
4206   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4207   lt_cv_file_magic_cmd='/usr/bin/file -L'
4208   case "$host_os" in
4209   rhapsody* | darwin1.[012])
4210     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4211     ;;
4212   *) # Darwin 1.3 on
4213     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4214     ;;
4215   esac
4216   lt_cv_deplibs_check_method=pass_all
4217   ;;
4218
4219 freebsd*)
4220   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4221     case $host_cpu in
4222     i*86 )
4223       # Not sure whether the presence of OpenBSD here was a mistake.
4224       # Let's accept both of them until this is cleared up.
4225       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4226       lt_cv_file_magic_cmd=/usr/bin/file
4227       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4228       ;;
4229     esac
4230   else
4231     lt_cv_deplibs_check_method=pass_all
4232   fi
4233   ;;
4234
4235 gnu*)
4236   lt_cv_deplibs_check_method=pass_all
4237   ;;
4238
4239 hpux10.20* | hpux11*)
4240   lt_cv_file_magic_cmd=/usr/bin/file
4241   case "$host_cpu" in
4242   ia64*)
4243     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4244     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4245     ;;
4246   hppa*64*)
4247     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]'
4248     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4249     ;;
4250   *)
4251     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4252     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4253     ;;
4254   esac
4255   ;;
4256
4257 irix5* | irix6* | nonstopux*)
4258   case $host_os in
4259   irix5* | nonstopux*)
4260     # this will be overridden with pass_all, but let us keep it just in case
4261     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4262     ;;
4263   *)
4264     case $LD in
4265     *-32|*"-32 ") libmagic=32-bit;;
4266     *-n32|*"-n32 ") libmagic=N32;;
4267     *-64|*"-64 ") libmagic=64-bit;;
4268     *) libmagic=never-match;;
4269     esac
4270     # this will be overridden with pass_all, but let us keep it just in case
4271     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4272     ;;
4273   esac
4274   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4275   lt_cv_deplibs_check_method=pass_all
4276   ;;
4277
4278 # This must be Linux ELF.
4279 linux*)
4280   case $host_cpu in
4281   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4282     lt_cv_deplibs_check_method=pass_all ;;
4283   *)
4284     # glibc up to 2.1.1 does not perform some relocations on ARM
4285     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4286   esac
4287   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4288   ;;
4289
4290 netbsd*)
4291   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4292     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4293   else
4294     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4295   fi
4296   ;;
4297
4298 newos6*)
4299   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4300   lt_cv_file_magic_cmd=/usr/bin/file
4301   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4302   ;;
4303
4304 nto-qnx)
4305   lt_cv_deplibs_check_method=unknown
4306   ;;
4307
4308 openbsd*)
4309   lt_cv_file_magic_cmd=/usr/bin/file
4310   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4311   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4312     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4313   else
4314     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4315   fi
4316   ;;
4317
4318 osf3* | osf4* | osf5*)
4319   # this will be overridden with pass_all, but let us keep it just in case
4320   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4321   lt_cv_file_magic_test_file=/shlib/libc.so
4322   lt_cv_deplibs_check_method=pass_all
4323   ;;
4324
4325 sco3.2v5*)
4326   lt_cv_deplibs_check_method=pass_all
4327   ;;
4328
4329 solaris*)
4330   lt_cv_deplibs_check_method=pass_all
4331   lt_cv_file_magic_test_file=/lib/libc.so
4332   ;;
4333
4334 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4335   case $host_vendor in
4336   motorola)
4337     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]'
4338     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4339     ;;
4340   ncr)
4341     lt_cv_deplibs_check_method=pass_all
4342     ;;
4343   sequent)
4344     lt_cv_file_magic_cmd='/bin/file'
4345     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4346     ;;
4347   sni)
4348     lt_cv_file_magic_cmd='/bin/file'
4349     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4350     lt_cv_file_magic_test_file=/lib/libc.so
4351     ;;
4352   siemens)
4353     lt_cv_deplibs_check_method=pass_all
4354     ;;
4355   esac
4356   ;;
4357
4358 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4359   lt_cv_deplibs_check_method=pass_all
4360   ;;
4361 esac
4362
4363 fi
4364 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4365 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4366 file_magic_cmd=$lt_cv_file_magic_cmd
4367 deplibs_check_method=$lt_cv_deplibs_check_method
4368 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4369
4370
4371
4372
4373 # If no C compiler was specified, use CC.
4374 LTCC=${LTCC-"$CC"}
4375
4376 # Allow CC to be a program name with arguments.
4377 compiler=$CC
4378
4379 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4380 if test "${enable_libtool_lock+set}" = set; then
4381   enableval="$enable_libtool_lock"
4382
4383 fi;
4384 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4385
4386 # Some flags need to be propagated to the compiler or linker for good
4387 # libtool support.
4388 case $host in
4389 ia64-*-hpux*)
4390   # Find out which ABI we are using.
4391   echo 'int i;' > conftest.$ac_ext
4392   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393   (eval $ac_compile) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; then
4397     case `/usr/bin/file conftest.$ac_objext` in
4398     *ELF-32*)
4399       HPUX_IA64_MODE="32"
4400       ;;
4401     *ELF-64*)
4402       HPUX_IA64_MODE="64"
4403       ;;
4404     esac
4405   fi
4406   rm -rf conftest*
4407   ;;
4408 *-*-irix6*)
4409   # Find out which ABI we are using.
4410   echo '#line 4410 "configure"' > conftest.$ac_ext
4411   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412   (eval $ac_compile) 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; then
4416    if test "$lt_cv_prog_gnu_ld" = yes; then
4417     case `/usr/bin/file conftest.$ac_objext` in
4418     *32-bit*)
4419       LD="${LD-ld} -melf32bsmip"
4420       ;;
4421     *N32*)
4422       LD="${LD-ld} -melf32bmipn32"
4423       ;;
4424     *64-bit*)
4425       LD="${LD-ld} -melf64bmip"
4426       ;;
4427     esac
4428    else
4429     case `/usr/bin/file conftest.$ac_objext` in
4430     *32-bit*)
4431       LD="${LD-ld} -32"
4432       ;;
4433     *N32*)
4434       LD="${LD-ld} -n32"
4435       ;;
4436     *64-bit*)
4437       LD="${LD-ld} -64"
4438       ;;
4439     esac
4440    fi
4441   fi
4442   rm -rf conftest*
4443   ;;
4444
4445 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4446   # Find out which ABI we are using.
4447   echo 'int i;' > conftest.$ac_ext
4448   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449   (eval $ac_compile) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); }; then
4453     case "`/usr/bin/file conftest.o`" in
4454     *32-bit*)
4455       case $host in
4456         x86_64-*linux*)
4457           LD="${LD-ld} -m elf_i386"
4458           ;;
4459         ppc64-*linux*)
4460           LD="${LD-ld} -m elf32ppclinux"
4461           ;;
4462         s390x-*linux*)
4463           LD="${LD-ld} -m elf_s390"
4464           ;;
4465         sparc64-*linux*)
4466           LD="${LD-ld} -m elf32_sparc"
4467           ;;
4468       esac
4469       ;;
4470     *64-bit*)
4471       case $host in
4472         x86_64-*linux*)
4473           LD="${LD-ld} -m elf_x86_64"
4474           ;;
4475         ppc*-*linux*|powerpc*-*linux*)
4476           LD="${LD-ld} -m elf64ppc"
4477           ;;
4478         s390*-*linux*)
4479           LD="${LD-ld} -m elf64_s390"
4480           ;;
4481         sparc*-*linux*)
4482           LD="${LD-ld} -m elf64_sparc"
4483           ;;
4484       esac
4485       ;;
4486     esac
4487   fi
4488   rm -rf conftest*
4489   ;;
4490
4491 *-*-sco3.2v5*)
4492   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4493   SAVE_CFLAGS="$CFLAGS"
4494   CFLAGS="$CFLAGS -belf"
4495   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4496 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4497 if test "${lt_cv_cc_needs_belf+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505
4506      cat >conftest.$ac_ext <<_ACEOF
4507 #line $LINENO "configure"
4508 /* confdefs.h.  */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h.  */
4513
4514 int
4515 main ()
4516 {
4517
4518   ;
4519   return 0;
4520 }
4521 _ACEOF
4522 rm -f conftest.$ac_objext conftest$ac_exeext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4524   (eval $ac_link) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); } &&
4528          { ac_try='test -s conftest$ac_exeext'
4529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530   (eval $ac_try) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; }; then
4534   lt_cv_cc_needs_belf=yes
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 lt_cv_cc_needs_belf=no
4540 fi
4541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4542      ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548 fi
4549 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4550 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4551   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4552     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4553     CFLAGS="$SAVE_CFLAGS"
4554   fi
4555   ;;
4556
4557 esac
4558
4559 need_locks="$enable_libtool_lock"
4560
4561
4562
4563 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4564 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4565 if test "${ac_cv_header_stdc+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   cat >conftest.$ac_ext <<_ACEOF
4569 #line $LINENO "configure"
4570 /* confdefs.h.  */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h.  */
4575 #include <stdlib.h>
4576 #include <stdarg.h>
4577 #include <string.h>
4578 #include <float.h>
4579
4580 int
4581 main ()
4582 {
4583
4584   ;
4585   return 0;
4586 }
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590   (eval $ac_compile) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } &&
4594          { ac_try='test -s conftest.$ac_objext'
4595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596   (eval $ac_try) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }; }; then
4600   ac_cv_header_stdc=yes
4601 else
4602   echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 ac_cv_header_stdc=no
4606 fi
4607 rm -f conftest.$ac_objext conftest.$ac_ext
4608
4609 if test $ac_cv_header_stdc = yes; then
4610   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611   cat >conftest.$ac_ext <<_ACEOF
4612 #line $LINENO "configure"
4613 /* confdefs.h.  */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h.  */
4618 #include <string.h>
4619
4620 _ACEOF
4621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4622   $EGREP "memchr" >/dev/null 2>&1; then
4623   :
4624 else
4625   ac_cv_header_stdc=no
4626 fi
4627 rm -f conftest*
4628
4629 fi
4630
4631 if test $ac_cv_header_stdc = yes; then
4632   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
4641
4642 _ACEOF
4643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4644   $EGREP "free" >/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   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4655   if test "$cross_compiling" = yes; then
4656   :
4657 else
4658   cat >conftest.$ac_ext <<_ACEOF
4659 #line $LINENO "configure"
4660 /* confdefs.h.  */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h.  */
4665 #include <ctype.h>
4666 #if ((' ' & 0x0FF) == 0x020)
4667 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4668 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4669 #else
4670 # define ISLOWER(c) \
4671                    (('a' <= (c) && (c) <= 'i') \
4672                      || ('j' <= (c) && (c) <= 'r') \
4673                      || ('s' <= (c) && (c) <= 'z'))
4674 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4675 #endif
4676
4677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4678 int
4679 main ()
4680 {
4681   int i;
4682   for (i = 0; i < 256; i++)
4683     if (XOR (islower (i), ISLOWER (i))
4684         || toupper (i) != TOUPPER (i))
4685       exit(2);
4686   exit (0);
4687 }
4688 _ACEOF
4689 rm -f conftest$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691   (eval $ac_link) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; }; then
4700   :
4701 else
4702   echo "$as_me: program exited with status $ac_status" >&5
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ( exit $ac_status )
4707 ac_cv_header_stdc=no
4708 fi
4709 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 fi
4712 fi
4713 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4714 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4715 if test $ac_cv_header_stdc = yes; then
4716
4717 cat >>confdefs.h <<\_ACEOF
4718 #define STDC_HEADERS 1
4719 _ACEOF
4720
4721 fi
4722
4723 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4734                   inttypes.h stdint.h unistd.h
4735 do
4736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737 echo "$as_me:$LINENO: checking for $ac_header" >&5
4738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   cat >conftest.$ac_ext <<_ACEOF
4743 #line $LINENO "configure"
4744 /* confdefs.h.  */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h.  */
4749 $ac_includes_default
4750
4751 #include <$ac_header>
4752 _ACEOF
4753 rm -f conftest.$ac_objext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755   (eval $ac_compile) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); } &&
4759          { ac_try='test -s conftest.$ac_objext'
4760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761   (eval $ac_try) 2>&5
4762   ac_status=$?
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); }; }; then
4765   eval "$as_ac_Header=yes"
4766 else
4767   echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4769
4770 eval "$as_ac_Header=no"
4771 fi
4772 rm -f conftest.$ac_objext conftest.$ac_ext
4773 fi
4774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4777   cat >>confdefs.h <<_ACEOF
4778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779 _ACEOF
4780
4781 fi
4782
4783 done
4784
4785
4786
4787 for ac_header in dlfcn.h
4788 do
4789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791   echo "$as_me:$LINENO: checking for $ac_header" >&5
4792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
4799   # Is the header compilable?
4800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4802 cat >conftest.$ac_ext <<_ACEOF
4803 #line $LINENO "configure"
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 $ac_includes_default
4810 #include <$ac_header>
4811 _ACEOF
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814   (eval $ac_compile) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); } &&
4818          { ac_try='test -s conftest.$ac_objext'
4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820   (eval $ac_try) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; }; then
4824   ac_header_compiler=yes
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 ac_header_compiler=no
4830 fi
4831 rm -f conftest.$ac_objext conftest.$ac_ext
4832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4833 echo "${ECHO_T}$ac_header_compiler" >&6
4834
4835 # Is the header present?
4836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4838 cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 /* confdefs.h.  */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h.  */
4845 #include <$ac_header>
4846 _ACEOF
4847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4849   ac_status=$?
4850   grep -v '^ *+' conftest.er1 >conftest.err
4851   rm -f conftest.er1
4852   cat conftest.err >&5
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); } >/dev/null; then
4855   if test -s conftest.err; then
4856     ac_cpp_err=$ac_c_preproc_warn_flag
4857   else
4858     ac_cpp_err=
4859   fi
4860 else
4861   ac_cpp_err=yes
4862 fi
4863 if test -z "$ac_cpp_err"; then
4864   ac_header_preproc=yes
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869   ac_header_preproc=no
4870 fi
4871 rm -f conftest.err conftest.$ac_ext
4872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4873 echo "${ECHO_T}$ac_header_preproc" >&6
4874
4875 # So?  What about this header?
4876 case $ac_header_compiler:$ac_header_preproc in
4877   yes:no )
4878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882     (
4883       cat <<\_ASBOX
4884 ## ------------------------------------ ##
4885 ## Report this to bug-autoconf@gnu.org. ##
4886 ## ------------------------------------ ##
4887 _ASBOX
4888     ) |
4889       sed "s/^/$as_me: WARNING:     /" >&2
4890     ;;
4891   no:yes )
4892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4894     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898     (
4899       cat <<\_ASBOX
4900 ## ------------------------------------ ##
4901 ## Report this to bug-autoconf@gnu.org. ##
4902 ## ------------------------------------ ##
4903 _ASBOX
4904     ) |
4905       sed "s/^/$as_me: WARNING:     /" >&2
4906     ;;
4907 esac
4908 echo "$as_me:$LINENO: checking for $ac_header" >&5
4909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913   eval "$as_ac_Header=$ac_header_preproc"
4914 fi
4915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4917
4918 fi
4919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4920   cat >>confdefs.h <<_ACEOF
4921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4922 _ACEOF
4923
4924 fi
4925
4926 done
4927
4928 ac_ext=cc
4929 ac_cpp='$CXXCPP $CPPFLAGS'
4930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4933 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4934 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4935 if test -z "$CXXCPP"; then
4936   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939       # Double quotes because CXXCPP needs to be expanded
4940     for CXXCPP in "$CXX -E" "/lib/cpp"
4941     do
4942       ac_preproc_ok=false
4943 for ac_cxx_preproc_warn_flag in '' yes
4944 do
4945   # Use a header file that comes with gcc, so configuring glibc
4946   # with a fresh cross-compiler works.
4947   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4948   # <limits.h> exists even on freestanding compilers.
4949   # On the NeXT, cc -E runs the code through the compiler's parser,
4950   # not just through cpp. "Syntax error" is here to catch this case.
4951   cat >conftest.$ac_ext <<_ACEOF
4952 #line $LINENO "configure"
4953 /* confdefs.h.  */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h.  */
4958 #ifdef __STDC__
4959 # include <limits.h>
4960 #else
4961 # include <assert.h>
4962 #endif
4963                      Syntax error
4964 _ACEOF
4965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4967   ac_status=$?
4968   grep -v '^ *+' conftest.er1 >conftest.err
4969   rm -f conftest.er1
4970   cat conftest.err >&5
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); } >/dev/null; then
4973   if test -s conftest.err; then
4974     ac_cpp_err=$ac_cxx_preproc_warn_flag
4975   else
4976     ac_cpp_err=
4977   fi
4978 else
4979   ac_cpp_err=yes
4980 fi
4981 if test -z "$ac_cpp_err"; then
4982   :
4983 else
4984   echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987   # Broken: fails on valid input.
4988 continue
4989 fi
4990 rm -f conftest.err conftest.$ac_ext
4991
4992   # OK, works on sane cases.  Now check whether non-existent headers
4993   # can be detected and how.
4994   cat >conftest.$ac_ext <<_ACEOF
4995 #line $LINENO "configure"
4996 /* confdefs.h.  */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h.  */
5001 #include <ac_nonexistent.h>
5002 _ACEOF
5003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005   ac_status=$?
5006   grep -v '^ *+' conftest.er1 >conftest.err
5007   rm -f conftest.er1
5008   cat conftest.err >&5
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } >/dev/null; then
5011   if test -s conftest.err; then
5012     ac_cpp_err=$ac_cxx_preproc_warn_flag
5013   else
5014     ac_cpp_err=
5015   fi
5016 else
5017   ac_cpp_err=yes
5018 fi
5019 if test -z "$ac_cpp_err"; then
5020   # Broken: success on invalid input.
5021 continue
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026   # Passes both tests.
5027 ac_preproc_ok=:
5028 break
5029 fi
5030 rm -f conftest.err conftest.$ac_ext
5031
5032 done
5033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034 rm -f conftest.err conftest.$ac_ext
5035 if $ac_preproc_ok; then
5036   break
5037 fi
5038
5039     done
5040     ac_cv_prog_CXXCPP=$CXXCPP
5041
5042 fi
5043   CXXCPP=$ac_cv_prog_CXXCPP
5044 else
5045   ac_cv_prog_CXXCPP=$CXXCPP
5046 fi
5047 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5048 echo "${ECHO_T}$CXXCPP" >&6
5049 ac_preproc_ok=false
5050 for ac_cxx_preproc_warn_flag in '' yes
5051 do
5052   # Use a header file that comes with gcc, so configuring glibc
5053   # with a fresh cross-compiler works.
5054   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055   # <limits.h> exists even on freestanding compilers.
5056   # On the NeXT, cc -E runs the code through the compiler's parser,
5057   # not just through cpp. "Syntax error" is here to catch this case.
5058   cat >conftest.$ac_ext <<_ACEOF
5059 #line $LINENO "configure"
5060 /* confdefs.h.  */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h.  */
5065 #ifdef __STDC__
5066 # include <limits.h>
5067 #else
5068 # include <assert.h>
5069 #endif
5070                      Syntax error
5071 _ACEOF
5072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074   ac_status=$?
5075   grep -v '^ *+' conftest.er1 >conftest.err
5076   rm -f conftest.er1
5077   cat conftest.err >&5
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); } >/dev/null; then
5080   if test -s conftest.err; then
5081     ac_cpp_err=$ac_cxx_preproc_warn_flag
5082   else
5083     ac_cpp_err=
5084   fi
5085 else
5086   ac_cpp_err=yes
5087 fi
5088 if test -z "$ac_cpp_err"; then
5089   :
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094   # Broken: fails on valid input.
5095 continue
5096 fi
5097 rm -f conftest.err conftest.$ac_ext
5098
5099   # OK, works on sane cases.  Now check whether non-existent headers
5100   # can be detected and how.
5101   cat >conftest.$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108 #include <ac_nonexistent.h>
5109 _ACEOF
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112   ac_status=$?
5113   grep -v '^ *+' conftest.er1 >conftest.err
5114   rm -f conftest.er1
5115   cat conftest.err >&5
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } >/dev/null; then
5118   if test -s conftest.err; then
5119     ac_cpp_err=$ac_cxx_preproc_warn_flag
5120   else
5121     ac_cpp_err=
5122   fi
5123 else
5124   ac_cpp_err=yes
5125 fi
5126 if test -z "$ac_cpp_err"; then
5127   # Broken: success on invalid input.
5128 continue
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133   # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5136 fi
5137 rm -f conftest.err conftest.$ac_ext
5138
5139 done
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then
5143   :
5144 else
5145   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5146 See \`config.log' for more details." >&5
5147 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5148 See \`config.log' for more details." >&2;}
5149    { (exit 1); exit 1; }; }
5150 fi
5151
5152 ac_ext=cc
5153 ac_cpp='$CXXCPP $CPPFLAGS'
5154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5157
5158
5159 ac_ext=f
5160 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5161 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5163 if test -n "$ac_tool_prefix"; then
5164   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5165   do
5166     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5168 echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170 if test "${ac_cv_prog_F77+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   if test -n "$F77"; then
5174   ac_cv_prog_F77="$F77" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5178 do
5179   IFS=$as_save_IFS
5180   test -z "$as_dir" && as_dir=.
5181   for ac_exec_ext in '' $ac_executable_extensions; do
5182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185     break 2
5186   fi
5187 done
5188 done
5189
5190 fi
5191 fi
5192 F77=$ac_cv_prog_F77
5193 if test -n "$F77"; then
5194   echo "$as_me:$LINENO: result: $F77" >&5
5195 echo "${ECHO_T}$F77" >&6
5196 else
5197   echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5199 fi
5200
5201     test -n "$F77" && break
5202   done
5203 fi
5204 if test -z "$F77"; then
5205   ac_ct_F77=$F77
5206   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5207 do
5208   # Extract the first word of "$ac_prog", so it can be a program name with args.
5209 set dummy $ac_prog; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   if test -n "$ac_ct_F77"; then
5216   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223   for ac_exec_ext in '' $ac_executable_extensions; do
5224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225     ac_cv_prog_ac_ct_F77="$ac_prog"
5226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230 done
5231
5232 fi
5233 fi
5234 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5235 if test -n "$ac_ct_F77"; then
5236   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5237 echo "${ECHO_T}$ac_ct_F77" >&6
5238 else
5239   echo "$as_me:$LINENO: result: no" >&5
5240 echo "${ECHO_T}no" >&6
5241 fi
5242
5243   test -n "$ac_ct_F77" && break
5244 done
5245
5246   F77=$ac_ct_F77
5247 fi
5248
5249
5250 # Provide some information about the compiler.
5251 echo "$as_me:5251:" \
5252      "checking for Fortran 77 compiler version" >&5
5253 ac_compiler=`set X $ac_compile; echo $2`
5254 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5255   (eval $ac_compiler --version </dev/null >&5) 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }
5259 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5260   (eval $ac_compiler -v </dev/null >&5) 2>&5
5261   ac_status=$?
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); }
5264 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5265   (eval $ac_compiler -V </dev/null >&5) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); }
5269
5270 # If we don't use `.F' as extension, the preprocessor is not run on the
5271 # input file.
5272 ac_save_ext=$ac_ext
5273 ac_ext=F
5274 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5275 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5276 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   cat >conftest.$ac_ext <<_ACEOF
5280       program main
5281 #ifndef __GNUC__
5282        choke me
5283 #endif
5284
5285       end
5286 _ACEOF
5287 rm -f conftest.$ac_objext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5289   (eval $ac_compile) 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } &&
5293          { ac_try='test -s conftest.$ac_objext'
5294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295   (eval $ac_try) 2>&5
5296   ac_status=$?
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); }; }; then
5299   ac_compiler_gnu=yes
5300 else
5301   echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5303
5304 ac_compiler_gnu=no
5305 fi
5306 rm -f conftest.$ac_objext conftest.$ac_ext
5307 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5308
5309 fi
5310 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5311 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5312 ac_ext=$ac_save_ext
5313 G77=`test $ac_compiler_gnu = yes && echo yes`
5314 ac_test_FFLAGS=${FFLAGS+set}
5315 ac_save_FFLAGS=$FFLAGS
5316 FFLAGS=
5317 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5318 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5319 if test "${ac_cv_prog_f77_g+set}" = set; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   FFLAGS=-g
5323 cat >conftest.$ac_ext <<_ACEOF
5324       program main
5325
5326       end
5327 _ACEOF
5328 rm -f conftest.$ac_objext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330   (eval $ac_compile) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } &&
5334          { ac_try='test -s conftest.$ac_objext'
5335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336   (eval $ac_try) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); }; }; then
5340   ac_cv_prog_f77_g=yes
5341 else
5342   echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345 ac_cv_prog_f77_g=no
5346 fi
5347 rm -f conftest.$ac_objext conftest.$ac_ext
5348
5349 fi
5350 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5351 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5352 if test "$ac_test_FFLAGS" = set; then
5353   FFLAGS=$ac_save_FFLAGS
5354 elif test $ac_cv_prog_f77_g = yes; then
5355   if test "$G77" = yes; then
5356     FFLAGS="-g -O2"
5357   else
5358     FFLAGS="-g"
5359   fi
5360 else
5361   if test "$G77" = yes; then
5362     FFLAGS="-O2"
5363   else
5364     FFLAGS=
5365   fi
5366 fi
5367 ac_ext=c
5368 ac_cpp='$CPP $CPPFLAGS'
5369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373
5374
5375 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5376
5377 # find the maximum length of command line arguments
5378 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5379 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5380 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383     i=0
5384   testring="ABCD"
5385
5386   case $build_os in
5387   msdosdjgpp*)
5388     # On DJGPP, this test can blow up pretty badly due to problems in libc
5389     # (any single argument exceeding 2000 bytes causes a buffer overrun
5390     # during glob expansion).  Even if it were fixed, the result of this
5391     # check would be larger than it should be.
5392     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5393     ;;
5394
5395   gnu*)
5396     # Under GNU Hurd, this test is not required because there is
5397     # no limit to the length of command line arguments.
5398     # Libtool will interpret -1 as no limit whatsoever
5399     lt_cv_sys_max_cmd_len=-1;
5400     ;;
5401
5402   cygwin* | mingw*)
5403     # On Win9x/ME, this test blows up -- it succeeds, but takes
5404     # about 5 minutes as the teststring grows exponentially.
5405     # Worse, since 9x/ME are not pre-emptively multitasking,
5406     # you end up with a "frozen" computer, even though with patience
5407     # the test eventually succeeds (with a max line length of 256k).
5408     # Instead, let's just punt: use the minimum linelength reported by
5409     # all of the supported platforms: 8192 (on NT/2K/XP).
5410     lt_cv_sys_max_cmd_len=8192;
5411     ;;
5412
5413  *)
5414     # If test is not a shell built-in, we'll probably end up computing a
5415     # maximum length that is only half of the actual maximum length, but
5416     # we can't tell.
5417     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5418                = "XX$testring") >/dev/null 2>&1 &&
5419             new_result=`expr "X$testring" : ".*" 2>&1` &&
5420             lt_cv_sys_max_cmd_len=$new_result &&
5421             test $i != 17 # 1/2 MB should be enough
5422     do
5423       i=`expr $i + 1`
5424       testring=$testring$testring
5425     done
5426     testring=
5427     # Add a significant safety factor because C++ compilers can tack on massive
5428     # amounts of additional arguments before passing them to the linker.
5429     # It appears as though 1/2 is a usable value.
5430     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5431     ;;
5432   esac
5433
5434 fi
5435
5436 if test -n $lt_cv_sys_max_cmd_len ; then
5437   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5438 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5439 else
5440   echo "$as_me:$LINENO: result: none" >&5
5441 echo "${ECHO_T}none" >&6
5442 fi
5443
5444
5445
5446
5447 # Check for command to grab the raw symbol name followed by C symbol from nm.
5448 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5449 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5450 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453
5454 # These are sane defaults that work on at least a few old systems.
5455 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5456
5457 # Character class describing NM global symbol codes.
5458 symcode='[BCDEGRST]'
5459
5460 # Regexp to match symbols that can be accessed directly from C.
5461 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5462
5463 # Transform the above into a raw symbol and a C symbol.
5464 symxfrm='\1 \2\3 \3'
5465
5466 # Transform an extracted symbol line into a proper C declaration
5467 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5468
5469 # Transform an extracted symbol line into symbol name and symbol address
5470 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'"
5471
5472 # Define system-specific variables.
5473 case $host_os in
5474 aix*)
5475   symcode='[BCDT]'
5476   ;;
5477 cygwin* | mingw* | pw32*)
5478   symcode='[ABCDGISTW]'
5479   ;;
5480 hpux*) # Its linker distinguishes data from code symbols
5481   if test "$host_cpu" = ia64; then
5482     symcode='[ABCDEGRST]'
5483   fi
5484   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5485   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'"
5486   ;;
5487 irix* | nonstopux*)
5488   symcode='[BCDEGRST]'
5489   ;;
5490 osf*)
5491   symcode='[BCDEGQRST]'
5492   ;;
5493 solaris* | sysv5*)
5494   symcode='[BDT]'
5495   ;;
5496 sysv4)
5497   symcode='[DFNSTU]'
5498   ;;
5499 esac
5500
5501 # Handle CRLF in mingw tool chain
5502 opt_cr=
5503 case $build_os in
5504 mingw*)
5505   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5506   ;;
5507 esac
5508
5509 # If we're using GNU nm, then use its standard symbol codes.
5510 case `$NM -V 2>&1` in
5511 *GNU* | *'with BFD'*)
5512   symcode='[ABCDGISTW]' ;;
5513 esac
5514
5515 # Try without a prefix undercore, then with it.
5516 for ac_symprfx in "" "_"; do
5517
5518   # Write the raw and C identifiers.
5519   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5520
5521   # Check to see that the pipe works correctly.
5522   pipe_works=no
5523
5524   rm -f conftest*
5525   cat > conftest.$ac_ext <<EOF
5526 #ifdef __cplusplus
5527 extern "C" {
5528 #endif
5529 char nm_test_var;
5530 void nm_test_func(){}
5531 #ifdef __cplusplus
5532 }
5533 #endif
5534 int main(){nm_test_var='a';nm_test_func();return(0);}
5535 EOF
5536
5537   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538   (eval $ac_compile) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; then
5542     # Now try to grab the symbols.
5543     nlist=conftest.nm
5544     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5545   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } && test -s "$nlist"; then
5549       # Try sorting and uniquifying the output.
5550       if sort "$nlist" | uniq > "$nlist"T; then
5551         mv -f "$nlist"T "$nlist"
5552       else
5553         rm -f "$nlist"T
5554       fi
5555
5556       # Make sure that we snagged all the symbols we need.
5557       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5558         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5559           cat <<EOF > conftest.$ac_ext
5560 #ifdef __cplusplus
5561 extern "C" {
5562 #endif
5563
5564 EOF
5565           # Now generate the symbol file.
5566           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5567
5568           cat <<EOF >> conftest.$ac_ext
5569 #if defined (__STDC__) && __STDC__
5570 # define lt_ptr_t void *
5571 #else
5572 # define lt_ptr_t char *
5573 # define const
5574 #endif
5575
5576 /* The mapping between symbol names and symbols. */
5577 const struct {
5578   const char *name;
5579   lt_ptr_t address;
5580 }
5581 lt_preloaded_symbols[] =
5582 {
5583 EOF
5584           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5585           cat <<\EOF >> conftest.$ac_ext
5586   {0, (lt_ptr_t) 0}
5587 };
5588
5589 #ifdef __cplusplus
5590 }
5591 #endif
5592 EOF
5593           # Now try linking the two files.
5594           mv conftest.$ac_objext conftstm.$ac_objext
5595           lt_save_LIBS="$LIBS"
5596           lt_save_CFLAGS="$CFLAGS"
5597           LIBS="conftstm.$ac_objext"
5598           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5599           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600   (eval $ac_link) 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5604             pipe_works=yes
5605           fi
5606           LIBS="$lt_save_LIBS"
5607           CFLAGS="$lt_save_CFLAGS"
5608         else
5609           echo "cannot find nm_test_func in $nlist" >&5
5610         fi
5611       else
5612         echo "cannot find nm_test_var in $nlist" >&5
5613       fi
5614     else
5615       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5616     fi
5617   else
5618     echo "$progname: failed program was:" >&5
5619     cat conftest.$ac_ext >&5
5620   fi
5621   rm -f conftest* conftst*
5622
5623   # Do not use the global_symbol_pipe unless it works.
5624   if test "$pipe_works" = yes; then
5625     break
5626   else
5627     lt_cv_sys_global_symbol_pipe=
5628   fi
5629 done
5630
5631 fi
5632
5633 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5634   lt_cv_sys_global_symbol_to_cdecl=
5635 fi
5636 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5637   echo "$as_me:$LINENO: result: failed" >&5
5638 echo "${ECHO_T}failed" >&6
5639 else
5640   echo "$as_me:$LINENO: result: ok" >&5
5641 echo "${ECHO_T}ok" >&6
5642 fi
5643
5644 echo "$as_me:$LINENO: checking for objdir" >&5
5645 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5646 if test "${lt_cv_objdir+set}" = set; then
5647   echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649   rm -f .libs 2>/dev/null
5650 mkdir .libs 2>/dev/null
5651 if test -d .libs; then
5652   lt_cv_objdir=.libs
5653 else
5654   # MS-DOS does not allow filenames that begin with a dot.
5655   lt_cv_objdir=_libs
5656 fi
5657 rmdir .libs 2>/dev/null
5658 fi
5659 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5660 echo "${ECHO_T}$lt_cv_objdir" >&6
5661 objdir=$lt_cv_objdir
5662
5663
5664
5665
5666
5667 case $host_os in
5668 aix3*)
5669   # AIX sometimes has problems with the GCC collect2 program.  For some
5670   # reason, if we set the COLLECT_NAMES environment variable, the problems
5671   # vanish in a puff of smoke.
5672   if test "X${COLLECT_NAMES+set}" != Xset; then
5673     COLLECT_NAMES=
5674     export COLLECT_NAMES
5675   fi
5676   ;;
5677 esac
5678
5679 # Sed substitution that helps us do robust quoting.  It backslashifies
5680 # metacharacters that are still active within double-quoted strings.
5681 Xsed='sed -e s/^X//'
5682 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5683
5684 # Same as above, but do not quote variable references.
5685 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5686
5687 # Sed substitution to delay expansion of an escaped shell variable in a
5688 # double_quote_subst'ed string.
5689 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5690
5691 # Sed substitution to avoid accidental globbing in evaled expressions
5692 no_glob_subst='s/\*/\\\*/g'
5693
5694 # Constants:
5695 rm="rm -f"
5696
5697 # Global variables:
5698 default_ofile=mklib
5699 can_build_shared=yes
5700
5701 # All known linkers require a `.a' archive for static linking (except M$VC,
5702 # which needs '.lib').
5703 libext=a
5704 ltmain="$ac_aux_dir/ltmain.sh"
5705 ofile="$default_ofile"
5706 with_gnu_ld="$lt_cv_prog_gnu_ld"
5707
5708 if test -n "$ac_tool_prefix"; then
5709   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5710 set dummy ${ac_tool_prefix}ar; ac_word=$2
5711 echo "$as_me:$LINENO: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713 if test "${ac_cv_prog_AR+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   if test -n "$AR"; then
5717   ac_cv_prog_AR="$AR" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724   for ac_exec_ext in '' $ac_executable_extensions; do
5725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726     ac_cv_prog_AR="${ac_tool_prefix}ar"
5727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728     break 2
5729   fi
5730 done
5731 done
5732
5733 fi
5734 fi
5735 AR=$ac_cv_prog_AR
5736 if test -n "$AR"; then
5737   echo "$as_me:$LINENO: result: $AR" >&5
5738 echo "${ECHO_T}$AR" >&6
5739 else
5740   echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6
5742 fi
5743
5744 fi
5745 if test -z "$ac_cv_prog_AR"; then
5746   ac_ct_AR=$AR
5747   # Extract the first word of "ar", so it can be a program name with args.
5748 set dummy ar; ac_word=$2
5749 echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5751 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   if test -n "$ac_ct_AR"; then
5755   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762   for ac_exec_ext in '' $ac_executable_extensions; do
5763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764     ac_cv_prog_ac_ct_AR="ar"
5765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766     break 2
5767   fi
5768 done
5769 done
5770
5771   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5772 fi
5773 fi
5774 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5775 if test -n "$ac_ct_AR"; then
5776   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5777 echo "${ECHO_T}$ac_ct_AR" >&6
5778 else
5779   echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6
5781 fi
5782
5783   AR=$ac_ct_AR
5784 else
5785   AR="$ac_cv_prog_AR"
5786 fi
5787
5788 if test -n "$ac_tool_prefix"; then
5789   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5791 echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5793 if test "${ac_cv_prog_RANLIB+set}" = set; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   if test -n "$RANLIB"; then
5797   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   for ac_exec_ext in '' $ac_executable_extensions; do
5805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811 done
5812
5813 fi
5814 fi
5815 RANLIB=$ac_cv_prog_RANLIB
5816 if test -n "$RANLIB"; then
5817   echo "$as_me:$LINENO: result: $RANLIB" >&5
5818 echo "${ECHO_T}$RANLIB" >&6
5819 else
5820   echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6
5822 fi
5823
5824 fi
5825 if test -z "$ac_cv_prog_RANLIB"; then
5826   ac_ct_RANLIB=$RANLIB
5827   # Extract the first word of "ranlib", so it can be a program name with args.
5828 set dummy ranlib; ac_word=$2
5829 echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   if test -n "$ac_ct_RANLIB"; then
5835   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840   IFS=$as_save_IFS
5841   test -z "$as_dir" && as_dir=.
5842   for ac_exec_ext in '' $ac_executable_extensions; do
5843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844     ac_cv_prog_ac_ct_RANLIB="ranlib"
5845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846     break 2
5847   fi
5848 done
5849 done
5850
5851   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5852 fi
5853 fi
5854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5855 if test -n "$ac_ct_RANLIB"; then
5856   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5857 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5858 else
5859   echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5861 fi
5862
5863   RANLIB=$ac_ct_RANLIB
5864 else
5865   RANLIB="$ac_cv_prog_RANLIB"
5866 fi
5867
5868 if test -n "$ac_tool_prefix"; then
5869   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5870 set dummy ${ac_tool_prefix}strip; ac_word=$2
5871 echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5873 if test "${ac_cv_prog_STRIP+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   if test -n "$STRIP"; then
5877   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884   for ac_exec_ext in '' $ac_executable_extensions; do
5885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891 done
5892
5893 fi
5894 fi
5895 STRIP=$ac_cv_prog_STRIP
5896 if test -n "$STRIP"; then
5897   echo "$as_me:$LINENO: result: $STRIP" >&5
5898 echo "${ECHO_T}$STRIP" >&6
5899 else
5900   echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6
5902 fi
5903
5904 fi
5905 if test -z "$ac_cv_prog_STRIP"; then
5906   ac_ct_STRIP=$STRIP
5907   # Extract the first word of "strip", so it can be a program name with args.
5908 set dummy strip; ac_word=$2
5909 echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5911 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   if test -n "$ac_ct_STRIP"; then
5915   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922   for ac_exec_ext in '' $ac_executable_extensions; do
5923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924     ac_cv_prog_ac_ct_STRIP="strip"
5925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929 done
5930
5931   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5932 fi
5933 fi
5934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5935 if test -n "$ac_ct_STRIP"; then
5936   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5937 echo "${ECHO_T}$ac_ct_STRIP" >&6
5938 else
5939   echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6
5941 fi
5942
5943   STRIP=$ac_ct_STRIP
5944 else
5945   STRIP="$ac_cv_prog_STRIP"
5946 fi
5947
5948
5949 old_CC="$CC"
5950 old_CFLAGS="$CFLAGS"
5951
5952 # Set sane defaults for various variables
5953 test -z "$AR" && AR=ar
5954 test -z "$AR_FLAGS" && AR_FLAGS=cru
5955 test -z "$AS" && AS=as
5956 test -z "$CC" && CC=cc
5957 test -z "$LTCC" && LTCC=$CC
5958 test -z "$DLLTOOL" && DLLTOOL=dlltool
5959 test -z "$LD" && LD=ld
5960 test -z "$LN_S" && LN_S="ln -s"
5961 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5962 test -z "$NM" && NM=nm
5963 test -z "$SED" && SED=sed
5964 test -z "$OBJDUMP" && OBJDUMP=objdump
5965 test -z "$RANLIB" && RANLIB=:
5966 test -z "$STRIP" && STRIP=:
5967 test -z "$ac_objext" && ac_objext=o
5968
5969 # Determine commands to create old-style static archives.
5970 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5971 old_postinstall_cmds='chmod 644 $oldlib'
5972 old_postuninstall_cmds=
5973
5974 if test -n "$RANLIB"; then
5975   case $host_os in
5976   openbsd*)
5977     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5978     ;;
5979   *)
5980     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5981     ;;
5982   esac
5983   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5984 fi
5985
5986 # Only perform the check for file, if the check method requires it
5987 case $deplibs_check_method in
5988 file_magic*)
5989   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5990     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5991 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5992 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   case $MAGIC_CMD in
5996 [\\/*] |  ?:[\\/]*)
5997   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5998   ;;
5999 *)
6000   lt_save_MAGIC_CMD="$MAGIC_CMD"
6001   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6002   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6003   for ac_dir in $ac_dummy; do
6004     IFS="$lt_save_ifs"
6005     test -z "$ac_dir" && ac_dir=.
6006     if test -f $ac_dir/${ac_tool_prefix}file; then
6007       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6008       if test -n "$file_magic_test_file"; then
6009         case $deplibs_check_method in
6010         "file_magic "*)
6011           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6012           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6013           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6014             $EGREP "$file_magic_regex" > /dev/null; then
6015             :
6016           else
6017             cat <<EOF 1>&2
6018
6019 *** Warning: the command libtool uses to detect shared libraries,
6020 *** $file_magic_cmd, produces output that libtool cannot recognize.
6021 *** The result is that libtool may fail to recognize shared libraries
6022 *** as such.  This will affect the creation of libtool libraries that
6023 *** depend on shared libraries, but programs linked with such libtool
6024 *** libraries will work regardless of this problem.  Nevertheless, you
6025 *** may want to report the problem to your system manager and/or to
6026 *** bug-libtool@gnu.org
6027
6028 EOF
6029           fi ;;
6030         esac
6031       fi
6032       break
6033     fi
6034   done
6035   IFS="$lt_save_ifs"
6036   MAGIC_CMD="$lt_save_MAGIC_CMD"
6037   ;;
6038 esac
6039 fi
6040
6041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6042 if test -n "$MAGIC_CMD"; then
6043   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6044 echo "${ECHO_T}$MAGIC_CMD" >&6
6045 else
6046   echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6
6048 fi
6049
6050 if test -z "$lt_cv_path_MAGIC_CMD"; then
6051   if test -n "$ac_tool_prefix"; then
6052     echo "$as_me:$LINENO: checking for file" >&5
6053 echo $ECHO_N "checking for file... $ECHO_C" >&6
6054 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   case $MAGIC_CMD in
6058 [\\/*] |  ?:[\\/]*)
6059   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6060   ;;
6061 *)
6062   lt_save_MAGIC_CMD="$MAGIC_CMD"
6063   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6064   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6065   for ac_dir in $ac_dummy; do
6066     IFS="$lt_save_ifs"
6067     test -z "$ac_dir" && ac_dir=.
6068     if test -f $ac_dir/file; then
6069       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6070       if test -n "$file_magic_test_file"; then
6071         case $deplibs_check_method in
6072         "file_magic "*)
6073           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6074           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6075           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6076             $EGREP "$file_magic_regex" > /dev/null; then
6077             :
6078           else
6079             cat <<EOF 1>&2
6080
6081 *** Warning: the command libtool uses to detect shared libraries,
6082 *** $file_magic_cmd, produces output that libtool cannot recognize.
6083 *** The result is that libtool may fail to recognize shared libraries
6084 *** as such.  This will affect the creation of libtool libraries that
6085 *** depend on shared libraries, but programs linked with such libtool
6086 *** libraries will work regardless of this problem.  Nevertheless, you
6087 *** may want to report the problem to your system manager and/or to
6088 *** bug-libtool@gnu.org
6089
6090 EOF
6091           fi ;;
6092         esac
6093       fi
6094       break
6095     fi
6096   done
6097   IFS="$lt_save_ifs"
6098   MAGIC_CMD="$lt_save_MAGIC_CMD"
6099   ;;
6100 esac
6101 fi
6102
6103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6104 if test -n "$MAGIC_CMD"; then
6105   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6106 echo "${ECHO_T}$MAGIC_CMD" >&6
6107 else
6108   echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6
6110 fi
6111
6112   else
6113     MAGIC_CMD=:
6114   fi
6115 fi
6116
6117   fi
6118   ;;
6119 esac
6120
6121 enable_dlopen=no
6122 enable_win32_dll=no
6123
6124 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6125 if test "${enable_libtool_lock+set}" = set; then
6126   enableval="$enable_libtool_lock"
6127
6128 fi;
6129 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6130
6131
6132 # Check whether --with-pic or --without-pic was given.
6133 if test "${with_pic+set}" = set; then
6134   withval="$with_pic"
6135   pic_mode="$withval"
6136 else
6137   pic_mode=default
6138 fi;
6139 test -z "$pic_mode" && pic_mode=default
6140
6141 # Use C for the default configuration in the libtool script
6142 tagname=
6143 lt_save_CC="$CC"
6144 ac_ext=c
6145 ac_cpp='$CPP $CPPFLAGS'
6146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149
6150
6151 # Source file extension for C test sources.
6152 ac_ext=c
6153
6154 # Object file extension for compiled C test sources.
6155 objext=o
6156 objext=$objext
6157
6158 # Code to be used in simple compile tests
6159 lt_simple_compile_test_code="int some_variable = 0;\n"
6160
6161 # Code to be used in simple link tests
6162 lt_simple_link_test_code='int main(){return(0);}\n'
6163
6164
6165 # If no C compiler was specified, use CC.
6166 LTCC=${LTCC-"$CC"}
6167
6168 # Allow CC to be a program name with arguments.
6169 compiler=$CC
6170
6171
6172 #
6173 # Check for any special shared library compilation flags.
6174 #
6175 lt_prog_cc_shlib=
6176 if test "$GCC" = no; then
6177   case $host_os in
6178   sco3.2v5*)
6179     lt_prog_cc_shlib='-belf'
6180     ;;
6181   esac
6182 fi
6183 if test -n "$lt_prog_cc_shlib"; then
6184   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6185 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6186   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6187   else
6188     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6189 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6190     lt_cv_prog_cc_can_build_shared=no
6191   fi
6192 fi
6193
6194
6195 #
6196 # Check to make sure the static flag actually works.
6197 #
6198 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6199 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6200 if test "${lt_prog_compiler_static_works+set}" = set; then
6201   echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203   lt_prog_compiler_static_works=no
6204    save_LDFLAGS="$LDFLAGS"
6205    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6206    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6207    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6208      # The compiler can only warn and ignore the option if not recognized
6209      # So say no if there are warnings
6210      if test -s conftest.err; then
6211        # Append any errors to the config.log.
6212        cat conftest.err 1>&5
6213      else
6214        lt_prog_compiler_static_works=yes
6215      fi
6216    fi
6217    $rm conftest*
6218    LDFLAGS="$save_LDFLAGS"
6219
6220 fi
6221 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6222 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6223
6224 if test x"$lt_prog_compiler_static_works" = xyes; then
6225     :
6226 else
6227     lt_prog_compiler_static=
6228 fi
6229
6230
6231
6232 ## CAVEAT EMPTOR:
6233 ## There is no encapsulation within the following macros, do not change
6234 ## the running order or otherwise move them around unless you know exactly
6235 ## what you are doing...
6236
6237 lt_prog_compiler_no_builtin_flag=
6238
6239 if test "$GCC" = yes; then
6240   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6241
6242   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6243 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6244 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   lt_cv_prog_compiler_rtti_exceptions=no
6248   ac_outfile=conftest.$ac_objext
6249    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6250    lt_compiler_flag="-fno-rtti -fno-exceptions"
6251    # Insert the option either (1) after the last *FLAGS variable, or
6252    # (2) before a word containing "conftest.", or (3) at the end.
6253    # Note that $ac_compile itself does not contain backslashes and begins
6254    # with a dollar sign (not a hyphen), so the echo should work correctly.
6255    # The option is referenced via a variable to avoid confusing sed.
6256    lt_compile=`echo "$ac_compile" | $SED \
6257    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6258    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6259    -e 's:$: $lt_compiler_flag:'`
6260    (eval echo "\"\$as_me:6260: $lt_compile\"" >&5)
6261    (eval "$lt_compile" 2>conftest.err)
6262    ac_status=$?
6263    cat conftest.err >&5
6264    echo "$as_me:6264: \$? = $ac_status" >&5
6265    if (exit $ac_status) && test -s "$ac_outfile"; then
6266      # The compiler can only warn and ignore the option if not recognized
6267      # So say no if there are warnings
6268      if test ! -s conftest.err; then
6269        lt_cv_prog_compiler_rtti_exceptions=yes
6270      fi
6271    fi
6272    $rm conftest*
6273
6274 fi
6275 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6276 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6277
6278 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6279     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6280 else
6281     :
6282 fi
6283
6284 fi
6285
6286 lt_prog_compiler_wl=
6287 lt_prog_compiler_pic=
6288 lt_prog_compiler_static=
6289
6290 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6291 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6292
6293   if test "$GCC" = yes; then
6294     lt_prog_compiler_wl='-Wl,'
6295     lt_prog_compiler_static='-static'
6296
6297     case $host_os in
6298       aix*)
6299       # All AIX code is PIC.
6300       if test "$host_cpu" = ia64; then
6301         # AIX 5 now supports IA64 processor
6302         lt_prog_compiler_static='-Bstatic'
6303       fi
6304       ;;
6305
6306     amigaos*)
6307       # FIXME: we need at least 68020 code to build shared libraries, but
6308       # adding the `-m68020' flag to GCC prevents building anything better,
6309       # like `-m68040'.
6310       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6311       ;;
6312
6313     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6314       # PIC is the default for these OSes.
6315       ;;
6316
6317     mingw* | pw32* | os2*)
6318       # This hack is so that the source file can tell whether it is being
6319       # built for inclusion in a dll (and should export symbols for example).
6320       lt_prog_compiler_pic='-DDLL_EXPORT'
6321       ;;
6322
6323     darwin* | rhapsody*)
6324       # PIC is the default on this platform
6325       # Common symbols not allowed in MH_DYLIB files
6326       lt_prog_compiler_pic='-fno-common'
6327       ;;
6328
6329     msdosdjgpp*)
6330       # Just because we use GCC doesn't mean we suddenly get shared libraries
6331       # on systems that don't support them.
6332       lt_prog_compiler_can_build_shared=no
6333       enable_shared=no
6334       ;;
6335
6336     sysv4*MP*)
6337       if test -d /usr/nec; then
6338         lt_prog_compiler_pic=-Kconform_pic
6339       fi
6340       ;;
6341
6342     hpux*)
6343       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6344       # not for PA HP-UX.
6345       case "$host_cpu" in
6346       hppa*64*|ia64*)
6347         # +Z the default
6348         ;;
6349       *)
6350         lt_prog_compiler_pic='-fPIC'
6351         ;;
6352       esac
6353       ;;
6354
6355     *)
6356       lt_prog_compiler_pic='-fPIC'
6357       ;;
6358     esac
6359   else
6360     # PORTME Check for flag to pass linker flags through the system compiler.
6361     case $host_os in
6362     aix*)
6363       lt_prog_compiler_wl='-Wl,'
6364       if test "$host_cpu" = ia64; then
6365         # AIX 5 now supports IA64 processor
6366         lt_prog_compiler_static='-Bstatic'
6367       else
6368         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6369       fi
6370       ;;
6371
6372     mingw* | pw32* | os2*)
6373       # This hack is so that the source file can tell whether it is being
6374       # built for inclusion in a dll (and should export symbols for example).
6375       lt_prog_compiler_pic='-DDLL_EXPORT'
6376       ;;
6377
6378     hpux9* | hpux10* | hpux11*)
6379       lt_prog_compiler_wl='-Wl,'
6380       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6381       # not for PA HP-UX.
6382       case "$host_cpu" in
6383       hppa*64*|ia64*)
6384         # +Z the default
6385         ;;
6386       *)
6387         lt_prog_compiler_pic='+Z'
6388         ;;
6389       esac
6390       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6391       lt_prog_compiler_static='${wl}-a ${wl}archive'
6392       ;;
6393
6394     irix5* | irix6* | nonstopux*)
6395       lt_prog_compiler_wl='-Wl,'
6396       # PIC (with -KPIC) is the default.
6397       lt_prog_compiler_static='-non_shared'
6398       ;;
6399
6400     newsos6)
6401       lt_prog_compiler_pic='-KPIC'
6402       lt_prog_compiler_static='-Bstatic'
6403       ;;
6404
6405     linux*)
6406       case $CC in
6407       icc|ecc)
6408         lt_prog_compiler_wl='-Wl,'
6409         lt_prog_compiler_pic='-KPIC'
6410         lt_prog_compiler_static='-static'
6411         ;;
6412       ccc)
6413         lt_prog_compiler_wl='-Wl,'
6414         # All Alpha code is PIC.
6415         lt_prog_compiler_static='-non_shared'
6416         ;;
6417       esac
6418       ;;
6419
6420     osf3* | osf4* | osf5*)
6421       lt_prog_compiler_wl='-Wl,'
6422       # All OSF/1 code is PIC.
6423       lt_prog_compiler_static='-non_shared'
6424       ;;
6425
6426     sco3.2v5*)
6427       lt_prog_compiler_pic='-Kpic'
6428       lt_prog_compiler_static='-dn'
6429       ;;
6430
6431     solaris*)
6432       lt_prog_compiler_wl='-Wl,'
6433       lt_prog_compiler_pic='-KPIC'
6434       lt_prog_compiler_static='-Bstatic'
6435       ;;
6436
6437     sunos4*)
6438       lt_prog_compiler_wl='-Qoption ld '
6439       lt_prog_compiler_pic='-PIC'
6440       lt_prog_compiler_static='-Bstatic'
6441       ;;
6442
6443     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6444       lt_prog_compiler_wl='-Wl,'
6445       lt_prog_compiler_pic='-KPIC'
6446       lt_prog_compiler_static='-Bstatic'
6447       ;;
6448
6449     sysv4*MP*)
6450       if test -d /usr/nec ;then
6451         lt_prog_compiler_pic='-Kconform_pic'
6452         lt_prog_compiler_static='-Bstatic'
6453       fi
6454       ;;
6455
6456     uts4*)
6457       lt_prog_compiler_pic='-pic'
6458       lt_prog_compiler_static='-Bstatic'
6459       ;;
6460
6461     *)
6462       lt_prog_compiler_can_build_shared=no
6463       ;;
6464     esac
6465   fi
6466
6467 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6468 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6469
6470 #
6471 # Check to make sure the PIC flag actually works.
6472 #
6473 if test -n "$lt_prog_compiler_pic"; then
6474   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6475 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6476 if test "${lt_prog_compiler_pic_works+set}" = set; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   lt_prog_compiler_pic_works=no
6480   ac_outfile=conftest.$ac_objext
6481    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6482    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6483    # Insert the option either (1) after the last *FLAGS variable, or
6484    # (2) before a word containing "conftest.", or (3) at the end.
6485    # Note that $ac_compile itself does not contain backslashes and begins
6486    # with a dollar sign (not a hyphen), so the echo should work correctly.
6487    # The option is referenced via a variable to avoid confusing sed.
6488    lt_compile=`echo "$ac_compile" | $SED \
6489    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6490    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6491    -e 's:$: $lt_compiler_flag:'`
6492    (eval echo "\"\$as_me:6492: $lt_compile\"" >&5)
6493    (eval "$lt_compile" 2>conftest.err)
6494    ac_status=$?
6495    cat conftest.err >&5
6496    echo "$as_me:6496: \$? = $ac_status" >&5
6497    if (exit $ac_status) && test -s "$ac_outfile"; then
6498      # The compiler can only warn and ignore the option if not recognized
6499      # So say no if there are warnings
6500      if test ! -s conftest.err; then
6501        lt_prog_compiler_pic_works=yes
6502      fi
6503    fi
6504    $rm conftest*
6505
6506 fi
6507 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6508 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6509
6510 if test x"$lt_prog_compiler_pic_works" = xyes; then
6511     case $lt_prog_compiler_pic in
6512      "" | " "*) ;;
6513      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6514      esac
6515 else
6516     lt_prog_compiler_pic=
6517      lt_prog_compiler_can_build_shared=no
6518 fi
6519
6520 fi
6521 case "$host_os" in
6522   # For platforms which do not support PIC, -DPIC is meaningless:
6523   *djgpp*)
6524     lt_prog_compiler_pic=
6525     ;;
6526   *)
6527     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6528     ;;
6529 esac
6530
6531 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6532 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6533 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   lt_cv_prog_compiler_c_o=no
6537    $rm -r conftest 2>/dev/null
6538    mkdir conftest
6539    cd conftest
6540    mkdir out
6541    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6542
6543    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6544    # that will create temporary files in the current directory regardless of
6545    # the output directory.  Thus, making CWD read-only will cause this test
6546    # to fail, enabling locking or at least warning the user not to do parallel
6547    # builds.
6548    chmod -w .
6549
6550    lt_compiler_flag="-o out/conftest2.$ac_objext"
6551    # Insert the option either (1) after the last *FLAGS variable, or
6552    # (2) before a word containing "conftest.", or (3) at the end.
6553    # Note that $ac_compile itself does not contain backslashes and begins
6554    # with a dollar sign (not a hyphen), so the echo should work correctly.
6555    lt_compile=`echo "$ac_compile" | $SED \
6556    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6558    -e 's:$: $lt_compiler_flag:'`
6559    (eval echo "\"\$as_me:6559: $lt_compile\"" >&5)
6560    (eval "$lt_compile" 2>out/conftest.err)
6561    ac_status=$?
6562    cat out/conftest.err >&5
6563    echo "$as_me:6563: \$? = $ac_status" >&5
6564    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6565    then
6566      # The compiler can only warn and ignore the option if not recognized
6567      # So say no if there are warnings
6568      if test ! -s out/conftest.err; then
6569        lt_cv_prog_compiler_c_o=yes
6570      fi
6571    fi
6572    chmod u+w .
6573    $rm conftest* out/*
6574    rmdir out
6575    cd ..
6576    rmdir conftest
6577    $rm conftest*
6578
6579 fi
6580 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6581 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6582
6583
6584 hard_links="nottested"
6585 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6586   # do not overwrite the value of need_locks provided by the user
6587   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6588 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6589   hard_links=yes
6590   $rm conftest*
6591   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6592   touch conftest.a
6593   ln conftest.a conftest.b 2>&5 || hard_links=no
6594   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6595   echo "$as_me:$LINENO: result: $hard_links" >&5
6596 echo "${ECHO_T}$hard_links" >&6
6597   if test "$hard_links" = no; then
6598     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6599 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6600     need_locks=warn
6601   fi
6602 else
6603   need_locks=no
6604 fi
6605
6606 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6607 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6608
6609   runpath_var=
6610   allow_undefined_flag=
6611   enable_shared_with_static_runtimes=no
6612   archive_cmds=
6613   archive_expsym_cmds=
6614   old_archive_From_new_cmds=
6615   old_archive_from_expsyms_cmds=
6616   export_dynamic_flag_spec=
6617   whole_archive_flag_spec=
6618   thread_safe_flag_spec=
6619   hardcode_libdir_flag_spec=
6620   hardcode_libdir_flag_spec_ld=
6621   hardcode_libdir_separator=
6622   hardcode_direct=no
6623   hardcode_minus_L=no
6624   hardcode_shlibpath_var=unsupported
6625   link_all_deplibs=unknown
6626   hardcode_automatic=no
6627   module_cmds=
6628   module_expsym_cmds=
6629   always_export_symbols=no
6630   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6631   # include_expsyms should be a list of space-separated symbols to be *always*
6632   # included in the symbol list
6633   include_expsyms=
6634   # exclude_expsyms can be an extended regexp of symbols to exclude
6635   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6636   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6637   # as well as any symbol that contains `d'.
6638   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6639   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6640   # platforms (ab)use it in PIC code, but their linkers get confused if
6641   # the symbol is explicitly referenced.  Since portable code cannot
6642   # rely on this symbol name, it's probably fine to never include it in
6643   # preloaded symbol tables.
6644   extract_expsyms_cmds=
6645
6646   case $host_os in
6647   cygwin* | mingw* | pw32*)
6648     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6649     # When not using gcc, we currently assume that we are using
6650     # Microsoft Visual C++.
6651     if test "$GCC" != yes; then
6652       with_gnu_ld=no
6653     fi
6654     ;;
6655   openbsd*)
6656     with_gnu_ld=no
6657     ;;
6658   esac
6659
6660   ld_shlibs=yes
6661   if test "$with_gnu_ld" = yes; then
6662     # If archive_cmds runs LD, not CC, wlarc should be empty
6663     wlarc='${wl}'
6664
6665     # See if GNU ld supports shared libraries.
6666     case $host_os in
6667     aix3* | aix4* | aix5*)
6668       # On AIX/PPC, the GNU linker is very broken
6669       if test "$host_cpu" != ia64; then
6670         ld_shlibs=no
6671         cat <<EOF 1>&2
6672
6673 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6674 *** to be unable to reliably create shared libraries on AIX.
6675 *** Therefore, libtool is disabling shared libraries support.  If you
6676 *** really care for shared libraries, you may want to modify your PATH
6677 *** so that a non-GNU linker is found, and then restart.
6678
6679 EOF
6680       fi
6681       ;;
6682
6683     amigaos*)
6684       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)'
6685       hardcode_libdir_flag_spec='-L$libdir'
6686       hardcode_minus_L=yes
6687
6688       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6689       # that the semantics of dynamic libraries on AmigaOS, at least up
6690       # to version 4, is to share data among multiple programs linked
6691       # with the same dynamic library.  Since this doesn't match the
6692       # behavior of shared libraries on other platforms, we can't use
6693       # them.
6694       ld_shlibs=no
6695       ;;
6696
6697     beos*)
6698       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6699         allow_undefined_flag=unsupported
6700         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6701         # support --undefined.  This deserves some investigation.  FIXME
6702         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6703       else
6704         ld_shlibs=no
6705       fi
6706       ;;
6707
6708     cygwin* | mingw* | pw32*)
6709       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6710       # as there is no search path for DLLs.
6711       hardcode_libdir_flag_spec='-L$libdir'
6712       allow_undefined_flag=unsupported
6713       always_export_symbols=no
6714       enable_shared_with_static_runtimes=yes
6715       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6716
6717       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6718         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6719         # If the export-symbols file already is a .def file (1st line
6720         # is EXPORTS), use it as is; otherwise, prepend...
6721         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6722           cp $export_symbols $output_objdir/$soname.def;
6723         else
6724           echo EXPORTS > $output_objdir/$soname.def;
6725           cat $export_symbols >> $output_objdir/$soname.def;
6726         fi~
6727         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6728       else
6729         ld_shlibs=no
6730       fi
6731       ;;
6732
6733     netbsd*)
6734       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6735         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6736         wlarc=
6737       else
6738         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6739         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6740       fi
6741       ;;
6742
6743     solaris* | sysv5*)
6744       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6745         ld_shlibs=no
6746         cat <<EOF 1>&2
6747
6748 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6749 *** create shared libraries on Solaris systems.  Therefore, libtool
6750 *** is disabling shared libraries support.  We urge you to upgrade GNU
6751 *** binutils to release 2.9.1 or newer.  Another option is to modify
6752 *** your PATH or compiler configuration so that the native linker is
6753 *** used, and then restart.
6754
6755 EOF
6756       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6757         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759       else
6760         ld_shlibs=no
6761       fi
6762       ;;
6763
6764     sunos4*)
6765       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6766       wlarc=
6767       hardcode_direct=yes
6768       hardcode_shlibpath_var=no
6769       ;;
6770
6771     *)
6772       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6773         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6774         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6775       else
6776         ld_shlibs=no
6777       fi
6778       ;;
6779     esac
6780
6781     if test "$ld_shlibs" = yes; then
6782       runpath_var=LD_RUN_PATH
6783       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6784       export_dynamic_flag_spec='${wl}--export-dynamic'
6785       # ancient GNU ld didn't support --whole-archive et. al.
6786       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6787         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6788       else
6789         whole_archive_flag_spec=
6790       fi
6791     fi
6792   else
6793     # PORTME fill in a description of your system's linker (not GNU ld)
6794     case $host_os in
6795     aix3*)
6796       allow_undefined_flag=unsupported
6797       always_export_symbols=yes
6798       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'
6799       # Note: this linker hardcodes the directories in LIBPATH if there
6800       # are no directories specified by -L.
6801       hardcode_minus_L=yes
6802       if test "$GCC" = yes && test -z "$link_static_flag"; then
6803         # Neither direct hardcoding nor static linking is supported with a
6804         # broken collect2.
6805         hardcode_direct=unsupported
6806       fi
6807       ;;
6808
6809     aix4* | aix5*)
6810       if test "$host_cpu" = ia64; then
6811         # On IA64, the linker does run time linking by default, so we don't
6812         # have to do anything special.
6813         aix_use_runtimelinking=no
6814         exp_sym_flag='-Bexport'
6815         no_entry_flag=""
6816       else
6817         # If we're using GNU nm, then we don't want the "-C" option.
6818         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6819         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6820           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'
6821         else
6822           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'
6823         fi
6824         aix_use_runtimelinking=no
6825
6826         # Test if we are trying to use run time linking or normal
6827         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6828         # need to do runtime linking.
6829         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6830           for ld_flag in $LDFLAGS; do
6831           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6832             aix_use_runtimelinking=yes
6833             break
6834           fi
6835           done
6836         esac
6837
6838         exp_sym_flag='-bexport'
6839         no_entry_flag='-bnoentry'
6840       fi
6841
6842       # When large executables or shared objects are built, AIX ld can
6843       # have problems creating the table of contents.  If linking a library
6844       # or program results in "error TOC overflow" add -mminimal-toc to
6845       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6846       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6847
6848       archive_cmds=''
6849       hardcode_direct=yes
6850       hardcode_libdir_separator=':'
6851       link_all_deplibs=yes
6852
6853       if test "$GCC" = yes; then
6854         case $host_os in aix4.012|aix4.012.*)
6855         # We only want to do this on AIX 4.2 and lower, the check
6856         # below for broken collect2 doesn't work under 4.3+
6857           collect2name=`${CC} -print-prog-name=collect2`
6858           if test -f "$collect2name" && \
6859            strings "$collect2name" | grep resolve_lib_name >/dev/null
6860           then
6861           # We have reworked collect2
6862           hardcode_direct=yes
6863           else
6864           # We have old collect2
6865           hardcode_direct=unsupported
6866           # It fails to find uninstalled libraries when the uninstalled
6867           # path is not listed in the libpath.  Setting hardcode_minus_L
6868           # to unsupported forces relinking
6869           hardcode_minus_L=yes
6870           hardcode_libdir_flag_spec='-L$libdir'
6871           hardcode_libdir_separator=
6872           fi
6873         esac
6874         shared_flag='-shared'
6875       else
6876         # not using gcc
6877         if test "$host_cpu" = ia64; then
6878         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6879         # chokes on -Wl,-G. The following line is correct:
6880           shared_flag='-G'
6881         else
6882         if test "$aix_use_runtimelinking" = yes; then
6883             shared_flag='${wl}-G'
6884           else
6885             shared_flag='${wl}-bM:SRE'
6886         fi
6887         fi
6888       fi
6889
6890       # It seems that -bexpall does not export symbols beginning with
6891       # underscore (_), so it is better to generate a list of symbols to export.
6892       always_export_symbols=yes
6893       if test "$aix_use_runtimelinking" = yes; then
6894         # Warning - without using the other runtime loading flags (-brtl),
6895         # -berok will link without error, but may produce a broken library.
6896         allow_undefined_flag='-berok'
6897        # Determine the default libpath from the value encoded in an empty executable.
6898        cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 /* confdefs.h.  */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h.  */
6905
6906 int
6907 main ()
6908 {
6909
6910   ;
6911   return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916   (eval $ac_link) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } &&
6920          { ac_try='test -s conftest$ac_exeext'
6921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922   (eval $ac_try) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; }; then
6926
6927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6928 }'`
6929 # Check for a 64-bit object if we didn't find anything.
6930 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; }
6931 }'`; fi
6932 else
6933   echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 fi
6937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6939
6940        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6941         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"
6942        else
6943         if test "$host_cpu" = ia64; then
6944           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6945           allow_undefined_flag="-z nodefs"
6946           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"
6947         else
6948          # Determine the default libpath from the value encoded in an empty executable.
6949          cat >conftest.$ac_ext <<_ACEOF
6950 #line $LINENO "configure"
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956
6957 int
6958 main ()
6959 {
6960
6961   ;
6962   return 0;
6963 }
6964 _ACEOF
6965 rm -f conftest.$ac_objext conftest$ac_exeext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967   (eval $ac_link) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } &&
6971          { ac_try='test -s conftest$ac_exeext'
6972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973   (eval $ac_try) 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); }; }; then
6977
6978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6979 }'`
6980 # Check for a 64-bit object if we didn't find anything.
6981 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; }
6982 }'`; fi
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987 fi
6988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6990
6991          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6992           # Warning - without using the other run time loading flags,
6993           # -berok will link without error, but may produce a broken library.
6994           no_undefined_flag=' ${wl}-bernotok'
6995           allow_undefined_flag=' ${wl}-berok'
6996           # -bexpall does not export symbols beginning with underscore (_)
6997           always_export_symbols=yes
6998           # Exported symbols can be pulled into shared objects from archives
6999           whole_archive_flag_spec=' '
7000           archive_cmds_need_lc=yes
7001           # This is similar to how AIX traditionally builds it's shared libraries.
7002           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'
7003         fi
7004       fi
7005       ;;
7006
7007     amigaos*)
7008       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)'
7009       hardcode_libdir_flag_spec='-L$libdir'
7010       hardcode_minus_L=yes
7011       # see comment about different semantics on the GNU ld section
7012       ld_shlibs=no
7013       ;;
7014
7015     bsdi4*)
7016       export_dynamic_flag_spec=-rdynamic
7017       ;;
7018
7019     cygwin* | mingw* | pw32*)
7020       # When not using gcc, we currently assume that we are using
7021       # Microsoft Visual C++.
7022       # hardcode_libdir_flag_spec is actually meaningless, as there is
7023       # no search path for DLLs.
7024       hardcode_libdir_flag_spec=' '
7025       allow_undefined_flag=unsupported
7026       # Tell ltmain to make .lib files, not .a files.
7027       libext=lib
7028       # Tell ltmain to make .dll files, not .so files.
7029       shrext=".dll"
7030       # FIXME: Setting linknames here is a bad hack.
7031       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7032       # The linker will automatically build a .lib file if we build a DLL.
7033       old_archive_From_new_cmds='true'
7034       # FIXME: Should let the user specify the lib program.
7035       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7036       fix_srcfile_path='`cygpath -w "$srcfile"`'
7037       enable_shared_with_static_runtimes=yes
7038       ;;
7039
7040     darwin* | rhapsody*)
7041     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7042       archive_cmds_need_lc=no
7043       case "$host_os" in
7044       rhapsody* | darwin1.[012])
7045         allow_undefined_flag='-undefined suppress'
7046         ;;
7047       *) # Darwin 1.3 on
7048         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7049         ;;
7050       esac
7051       # FIXME: Relying on posixy $() will cause problems for
7052       #        cross-compilation, but unfortunately the echo tests do not
7053       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7054       #        `"' quotes if we put them in here... so don't!
7055         lt_int_apple_cc_single_mod=no
7056         output_verbose_link_cmd='echo'
7057         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7058           lt_int_apple_cc_single_mod=yes
7059         fi
7060         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7061           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7062         else
7063         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'
7064       fi
7065       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7066       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7067         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7068           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}'
7069         else
7070           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}'
7071         fi
7072           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}'
7073       hardcode_direct=no
7074       hardcode_automatic=yes
7075       hardcode_shlibpath_var=unsupported
7076       whole_archive_flag_spec='-all_load $convenience'
7077       link_all_deplibs=yes
7078     fi
7079       ;;
7080
7081     dgux*)
7082       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7083       hardcode_libdir_flag_spec='-L$libdir'
7084       hardcode_shlibpath_var=no
7085       ;;
7086
7087     freebsd1*)
7088       ld_shlibs=no
7089       ;;
7090
7091     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7092     # support.  Future versions do this automatically, but an explicit c++rt0.o
7093     # does not break anything, and helps significantly (at the cost of a little
7094     # extra space).
7095     freebsd2.2*)
7096       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7097       hardcode_libdir_flag_spec='-R$libdir'
7098       hardcode_direct=yes
7099       hardcode_shlibpath_var=no
7100       ;;
7101
7102     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7103     freebsd2*)
7104       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7105       hardcode_direct=yes
7106       hardcode_minus_L=yes
7107       hardcode_shlibpath_var=no
7108       ;;
7109
7110     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7111     freebsd*)
7112       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7113       hardcode_libdir_flag_spec='-R$libdir'
7114       hardcode_direct=yes
7115       hardcode_shlibpath_var=no
7116       ;;
7117
7118     hpux9*)
7119       if test "$GCC" = yes; then
7120         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'
7121       else
7122         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'
7123       fi
7124       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7125       hardcode_libdir_separator=:
7126       hardcode_direct=yes
7127
7128       # hardcode_minus_L: Not really in the search PATH,
7129       # but as the default location of the library.
7130       hardcode_minus_L=yes
7131       export_dynamic_flag_spec='${wl}-E'
7132       ;;
7133
7134     hpux10* | hpux11*)
7135       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7136         case "$host_cpu" in
7137         hppa*64*|ia64*)
7138           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7139           ;;
7140         *)
7141           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7142           ;;
7143         esac
7144       else
7145         case "$host_cpu" in
7146         hppa*64*|ia64*)
7147           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7148           ;;
7149         *)
7150           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7151           ;;
7152         esac
7153       fi
7154       if test "$with_gnu_ld" = no; then
7155         case "$host_cpu" in
7156         hppa*64*)
7157           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7158           hardcode_libdir_flag_spec_ld='+b $libdir'
7159           hardcode_libdir_separator=:
7160           hardcode_direct=no
7161           hardcode_shlibpath_var=no
7162           ;;
7163         ia64*)
7164           hardcode_libdir_flag_spec='-L$libdir'
7165           hardcode_direct=no
7166           hardcode_shlibpath_var=no
7167
7168           # hardcode_minus_L: Not really in the search PATH,
7169           # but as the default location of the library.
7170           hardcode_minus_L=yes
7171           ;;
7172         *)
7173           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7174           hardcode_libdir_separator=:
7175           hardcode_direct=yes
7176           export_dynamic_flag_spec='${wl}-E'
7177
7178           # hardcode_minus_L: Not really in the search PATH,
7179           # but as the default location of the library.
7180           hardcode_minus_L=yes
7181           ;;
7182         esac
7183       fi
7184       ;;
7185
7186     irix5* | irix6* | nonstopux*)
7187       if test "$GCC" = yes; then
7188         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'
7189       else
7190         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'
7191         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7192       fi
7193       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7194       hardcode_libdir_separator=:
7195       link_all_deplibs=yes
7196       ;;
7197
7198     netbsd*)
7199       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7200         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7201       else
7202         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7203       fi
7204       hardcode_libdir_flag_spec='-R$libdir'
7205       hardcode_direct=yes
7206       hardcode_shlibpath_var=no
7207       ;;
7208
7209     newsos6)
7210       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7211       hardcode_direct=yes
7212       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7213       hardcode_libdir_separator=:
7214       hardcode_shlibpath_var=no
7215       ;;
7216
7217     openbsd*)
7218       hardcode_direct=yes
7219       hardcode_shlibpath_var=no
7220       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7221         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7222         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7223         export_dynamic_flag_spec='${wl}-E'
7224       else
7225        case $host_os in
7226          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7227            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7228            hardcode_libdir_flag_spec='-R$libdir'
7229            ;;
7230          *)
7231            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7232            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7233            ;;
7234        esac
7235       fi
7236       ;;
7237
7238     os2*)
7239       hardcode_libdir_flag_spec='-L$libdir'
7240       hardcode_minus_L=yes
7241       allow_undefined_flag=unsupported
7242       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'
7243       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7244       ;;
7245
7246     osf3*)
7247       if test "$GCC" = yes; then
7248         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7249         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'
7250       else
7251         allow_undefined_flag=' -expect_unresolved \*'
7252         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'
7253       fi
7254       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7255       hardcode_libdir_separator=:
7256       ;;
7257
7258     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7259       if test "$GCC" = yes; then
7260         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7261         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'
7262         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7263       else
7264         allow_undefined_flag=' -expect_unresolved \*'
7265         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'
7266         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7267         $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'
7268
7269         # Both c and cxx compiler support -rpath directly
7270         hardcode_libdir_flag_spec='-rpath $libdir'
7271       fi
7272       hardcode_libdir_separator=:
7273       ;;
7274
7275     sco3.2v5*)
7276       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277       hardcode_shlibpath_var=no
7278       export_dynamic_flag_spec='${wl}-Bexport'
7279       runpath_var=LD_RUN_PATH
7280       hardcode_runpath_var=yes
7281       ;;
7282
7283     solaris*)
7284       no_undefined_flag=' -z text'
7285       if test "$GCC" = yes; then
7286         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7287         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7288           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7289       else
7290         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7291         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7292         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7293       fi
7294       hardcode_libdir_flag_spec='-R$libdir'
7295       hardcode_shlibpath_var=no
7296       case $host_os in
7297       solaris2.[0-5] | solaris2.[0-5].*) ;;
7298       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7299         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7300       esac
7301       link_all_deplibs=yes
7302       ;;
7303
7304     sunos4*)
7305       if test "x$host_vendor" = xsequent; then
7306         # Use $CC to link under sequent, because it throws in some extra .o
7307         # files that make .init and .fini sections work.
7308         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7309       else
7310         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7311       fi
7312       hardcode_libdir_flag_spec='-L$libdir'
7313       hardcode_direct=yes
7314       hardcode_minus_L=yes
7315       hardcode_shlibpath_var=no
7316       ;;
7317
7318     sysv4)
7319       case $host_vendor in
7320         sni)
7321           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7322           hardcode_direct=yes # is this really true???
7323         ;;
7324         siemens)
7325           ## LD is ld it makes a PLAMLIB
7326           ## CC just makes a GrossModule.
7327           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7328           reload_cmds='$CC -r -o $output$reload_objs'
7329           hardcode_direct=no
7330         ;;
7331         motorola)
7332           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7334         ;;
7335       esac
7336       runpath_var='LD_RUN_PATH'
7337       hardcode_shlibpath_var=no
7338       ;;
7339
7340     sysv4.3*)
7341       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342       hardcode_shlibpath_var=no
7343       export_dynamic_flag_spec='-Bexport'
7344       ;;
7345
7346     sysv4*MP*)
7347       if test -d /usr/nec; then
7348         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7349         hardcode_shlibpath_var=no
7350         runpath_var=LD_RUN_PATH
7351         hardcode_runpath_var=yes
7352         ld_shlibs=yes
7353       fi
7354       ;;
7355
7356     sysv4.2uw2*)
7357       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7358       hardcode_direct=yes
7359       hardcode_minus_L=no
7360       hardcode_shlibpath_var=no
7361       hardcode_runpath_var=yes
7362       runpath_var=LD_RUN_PATH
7363       ;;
7364
7365    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7366       no_undefined_flag='${wl}-z ${wl}text'
7367       if test "$GCC" = yes; then
7368         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7369       else
7370         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7371       fi
7372       runpath_var='LD_RUN_PATH'
7373       hardcode_shlibpath_var=no
7374       ;;
7375
7376     sysv5*)
7377       no_undefined_flag=' -z text'
7378       # $CC -shared without GNU ld will not create a library from C++
7379       # object files and a static libstdc++, better avoid it by now
7380       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7381       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7382                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7383       hardcode_libdir_flag_spec=
7384       hardcode_shlibpath_var=no
7385       runpath_var='LD_RUN_PATH'
7386       ;;
7387
7388     uts4*)
7389       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7390       hardcode_libdir_flag_spec='-L$libdir'
7391       hardcode_shlibpath_var=no
7392       ;;
7393
7394     *)
7395       ld_shlibs=no
7396       ;;
7397     esac
7398   fi
7399
7400 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7401 echo "${ECHO_T}$ld_shlibs" >&6
7402 test "$ld_shlibs" = no && can_build_shared=no
7403
7404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7405 if test "$GCC" = yes; then
7406   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7407 fi
7408
7409 #
7410 # Do we need to explicitly link libc?
7411 #
7412 case "x$archive_cmds_need_lc" in
7413 x|xyes)
7414   # Assume -lc should be added
7415   archive_cmds_need_lc=yes
7416
7417   if test "$enable_shared" = yes && test "$GCC" = yes; then
7418     case $archive_cmds in
7419     *'~'*)
7420       # FIXME: we may have to deal with multi-command sequences.
7421       ;;
7422     '$CC '*)
7423       # Test whether the compiler implicitly links with -lc since on some
7424       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7425       # to ld, don't add -lc before -lgcc.
7426       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7427 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7428       $rm conftest*
7429       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7430
7431       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7432   (eval $ac_compile) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); } 2>conftest.err; then
7436         soname=conftest
7437         lib=conftest
7438         libobjs=conftest.$ac_objext
7439         deplibs=
7440         wl=$lt_prog_compiler_wl
7441         compiler_flags=-v
7442         linker_flags=-v
7443         verstring=
7444         output_objdir=.
7445         libname=conftest
7446         lt_save_allow_undefined_flag=$allow_undefined_flag
7447         allow_undefined_flag=
7448         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7449   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); }
7453         then
7454           archive_cmds_need_lc=no
7455         else
7456           archive_cmds_need_lc=yes
7457         fi
7458         allow_undefined_flag=$lt_save_allow_undefined_flag
7459       else
7460         cat conftest.err 1>&5
7461       fi
7462       $rm conftest*
7463       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7464 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7465       ;;
7466     esac
7467   fi
7468   ;;
7469 esac
7470
7471 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7472 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7473 hardcode_action=
7474 if test -n "$hardcode_libdir_flag_spec" || \
7475    test -n "$runpath_var " || \
7476    test "X$hardcode_automatic"="Xyes" ; then
7477
7478   # We can hardcode non-existant directories.
7479   if test "$hardcode_direct" != no &&
7480      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7481      # have to relink, otherwise we might link with an installed library
7482      # when we should be linking with a yet-to-be-installed one
7483      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7484      test "$hardcode_minus_L" != no; then
7485     # Linking always hardcodes the temporary library directory.
7486     hardcode_action=relink
7487   else
7488     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7489     hardcode_action=immediate
7490   fi
7491 else
7492   # We cannot hardcode anything, or else we can only hardcode existing
7493   # directories.
7494   hardcode_action=unsupported
7495 fi
7496 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7497 echo "${ECHO_T}$hardcode_action" >&6
7498
7499 if test "$hardcode_action" = relink; then
7500   # Fast installation is not supported
7501   enable_fast_install=no
7502 elif test "$shlibpath_overrides_runpath" = yes ||
7503      test "$enable_shared" = no; then
7504   # Fast installation is not necessary
7505   enable_fast_install=needless
7506 fi
7507
7508 striplib=
7509 old_striplib=
7510 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7511 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7512 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7513   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7514   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7515   echo "$as_me:$LINENO: result: yes" >&5
7516 echo "${ECHO_T}yes" >&6
7517 else
7518 # FIXME - insert some real tests, host_os isn't really good enough
7519   case $host_os in
7520    darwin*)
7521        if test -n "$STRIP" ; then
7522          striplib="$STRIP -x"
7523          echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7525        else
7526   echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6
7528 fi
7529        ;;
7530    *)
7531   echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7533     ;;
7534   esac
7535 fi
7536
7537 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7538 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7539 library_names_spec=
7540 libname_spec='lib$name'
7541 soname_spec=
7542 shrext=".so"
7543 postinstall_cmds=
7544 postuninstall_cmds=
7545 finish_cmds=
7546 finish_eval=
7547 shlibpath_var=
7548 shlibpath_overrides_runpath=unknown
7549 version_type=none
7550 dynamic_linker="$host_os ld.so"
7551 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7552 if test "$GCC" = yes; then
7553   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7554   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7555     # if the path contains ";" then we assume it to be the separator
7556     # otherwise default to the standard path separator (i.e. ":") - it is
7557     # assumed that no part of a normal pathname contains ";" but that should
7558     # okay in the real world where ";" in dirpaths is itself problematic.
7559     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7560   else
7561     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7562   fi
7563 else
7564   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7565 fi
7566 need_lib_prefix=unknown
7567 hardcode_into_libs=no
7568
7569 # when you set need_version to no, make sure it does not cause -set_version
7570 # flags to be left without arguments
7571 need_version=unknown
7572
7573 case $host_os in
7574 aix3*)
7575   version_type=linux
7576   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7577   shlibpath_var=LIBPATH
7578
7579   # AIX 3 has no versioning support, so we append a major version to the name.
7580   soname_spec='${libname}${release}${shared_ext}$major'
7581   ;;
7582
7583 aix4* | aix5*)
7584   version_type=linux
7585   need_lib_prefix=no
7586   need_version=no
7587   hardcode_into_libs=yes
7588   if test "$host_cpu" = ia64; then
7589     # AIX 5 supports IA64
7590     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7591     shlibpath_var=LD_LIBRARY_PATH
7592   else
7593     # With GCC up to 2.95.x, collect2 would create an import file
7594     # for dependence libraries.  The import file would start with
7595     # the line `#! .'.  This would cause the generated library to
7596     # depend on `.', always an invalid library.  This was fixed in
7597     # development snapshots of GCC prior to 3.0.
7598     case $host_os in
7599       aix4 | aix4.[01] | aix4.[01].*)
7600       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7601            echo ' yes '
7602            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7603         :
7604       else
7605         can_build_shared=no
7606       fi
7607       ;;
7608     esac
7609     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7610     # soname into executable. Probably we can add versioning support to
7611     # collect2, so additional links can be useful in future.
7612     if test "$aix_use_runtimelinking" = yes; then
7613       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7614       # instead of lib<name>.a to let people know that these are not
7615       # typical AIX shared libraries.
7616       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7617     else
7618       # We preserve .a as extension for shared libraries through AIX4.2
7619       # and later when we are not doing run time linking.
7620       library_names_spec='${libname}${release}.a $libname.a'
7621       soname_spec='${libname}${release}${shared_ext}$major'
7622     fi
7623     shlibpath_var=LIBPATH
7624   fi
7625   ;;
7626
7627 amigaos*)
7628   library_names_spec='$libname.ixlibrary $libname.a'
7629   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7630   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'
7631   ;;
7632
7633 beos*)
7634   library_names_spec='${libname}${shared_ext}'
7635   dynamic_linker="$host_os ld.so"
7636   shlibpath_var=LIBRARY_PATH
7637   ;;
7638
7639 bsdi4*)
7640   version_type=linux
7641   need_version=no
7642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7643   soname_spec='${libname}${release}${shared_ext}$major'
7644   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7645   shlibpath_var=LD_LIBRARY_PATH
7646   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7647   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7648   # the default ld.so.conf also contains /usr/contrib/lib and
7649   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7650   # libtool to hard-code these into programs
7651   ;;
7652
7653 cygwin* | mingw* | pw32*)
7654   version_type=windows
7655   shrext=".dll"
7656   need_version=no
7657   need_lib_prefix=no
7658
7659   case $GCC,$host_os in
7660   yes,cygwin* | yes,mingw* | yes,pw32*)
7661     library_names_spec='$libname.dll.a'
7662     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7663     postinstall_cmds='base_file=`basename \${file}`~
7664       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7665       dldir=$destdir/`dirname \$dlpath`~
7666       test -d \$dldir || mkdir -p \$dldir~
7667       $install_prog $dir/$dlname \$dldir/$dlname'
7668     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7669       dlpath=$dir/\$dldll~
7670        $rm \$dlpath'
7671     shlibpath_overrides_runpath=yes
7672
7673     case $host_os in
7674     cygwin*)
7675       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7676       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7677       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7678       ;;
7679     mingw*)
7680       # MinGW DLLs use traditional 'lib' prefix
7681       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7682       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7683       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7684         # It is most probably a Windows format PATH printed by
7685         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7686         # path with ; separators, and with drive letters. We can handle the
7687         # drive letters (cygwin fileutils understands them), so leave them,
7688         # especially as we might pass files found there to a mingw objdump,
7689         # which wouldn't understand a cygwinified path. Ahh.
7690         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7691       else
7692         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7693       fi
7694       ;;
7695     pw32*)
7696       # pw32 DLLs use 'pw' prefix rather than 'lib'
7697       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7698       ;;
7699     esac
7700     ;;
7701
7702   *)
7703     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7704     ;;
7705   esac
7706   dynamic_linker='Win32 ld.exe'
7707   # FIXME: first we should search . and the directory the executable is in
7708   shlibpath_var=PATH
7709   ;;
7710
7711 darwin* | rhapsody*)
7712   dynamic_linker="$host_os dyld"
7713   version_type=darwin
7714   need_lib_prefix=no
7715   need_version=no
7716   # FIXME: Relying on posixy $() will cause problems for
7717   #        cross-compilation, but unfortunately the echo tests do not
7718   #        yet detect zsh echo's removal of \ escapes.
7719   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7720   soname_spec='${libname}${release}${major}$shared_ext'
7721   shlibpath_overrides_runpath=yes
7722   shlibpath_var=DYLD_LIBRARY_PATH
7723   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7724   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7725   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7726   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"`
7727   fi
7728   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7729   ;;
7730
7731 dgux*)
7732   version_type=linux
7733   need_lib_prefix=no
7734   need_version=no
7735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7736   soname_spec='${libname}${release}${shared_ext}$major'
7737   shlibpath_var=LD_LIBRARY_PATH
7738   ;;
7739
7740 freebsd1*)
7741   dynamic_linker=no
7742   ;;
7743
7744 freebsd*)
7745   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7746   version_type=freebsd-$objformat
7747   case $version_type in
7748     freebsd-elf*)
7749       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7750       need_version=no
7751       need_lib_prefix=no
7752       ;;
7753     freebsd-*)
7754       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7755       need_version=yes
7756       ;;
7757   esac
7758   shlibpath_var=LD_LIBRARY_PATH
7759   case $host_os in
7760   freebsd2*)
7761     shlibpath_overrides_runpath=yes
7762     ;;
7763   freebsd3.01* | freebsdelf3.01*)
7764     shlibpath_overrides_runpath=yes
7765     hardcode_into_libs=yes
7766     ;;
7767   *) # from 3.2 on
7768     shlibpath_overrides_runpath=no
7769     hardcode_into_libs=yes
7770     ;;
7771   esac
7772   ;;
7773
7774 gnu*)
7775   version_type=linux
7776   need_lib_prefix=no
7777   need_version=no
7778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7779   soname_spec='${libname}${release}${shared_ext}$major'
7780   shlibpath_var=LD_LIBRARY_PATH
7781   hardcode_into_libs=yes
7782   ;;
7783
7784 hpux9* | hpux10* | hpux11*)
7785   # Give a soname corresponding to the major version so that dld.sl refuses to
7786   # link against other versions.
7787   version_type=sunos
7788   need_lib_prefix=no
7789   need_version=no
7790   case "$host_cpu" in
7791   ia64*)
7792     shrext='.so'
7793     hardcode_into_libs=yes
7794     dynamic_linker="$host_os dld.so"
7795     shlibpath_var=LD_LIBRARY_PATH
7796     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7798     soname_spec='${libname}${release}${shared_ext}$major'
7799     if test "X$HPUX_IA64_MODE" = X32; then
7800       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7801     else
7802       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7803     fi
7804     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7805     ;;
7806    hppa*64*)
7807      shrext='.sl'
7808      hardcode_into_libs=yes
7809      dynamic_linker="$host_os dld.sl"
7810      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7811      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7812      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7813      soname_spec='${libname}${release}${shared_ext}$major'
7814      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7815      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7816      ;;
7817    *)
7818     shrext='.sl'
7819     dynamic_linker="$host_os dld.sl"
7820     shlibpath_var=SHLIB_PATH
7821     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7823     soname_spec='${libname}${release}${shared_ext}$major'
7824     ;;
7825   esac
7826   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7827   postinstall_cmds='chmod 555 $lib'
7828   ;;
7829
7830 irix5* | irix6* | nonstopux*)
7831   case $host_os in
7832     nonstopux*) version_type=nonstopux ;;
7833     *)
7834         if test "$lt_cv_prog_gnu_ld" = yes; then
7835                 version_type=linux
7836         else
7837                 version_type=irix
7838         fi ;;
7839   esac
7840   need_lib_prefix=no
7841   need_version=no
7842   soname_spec='${libname}${release}${shared_ext}$major'
7843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7844   case $host_os in
7845   irix5* | nonstopux*)
7846     libsuff= shlibsuff=
7847     ;;
7848   *)
7849     case $LD in # libtool.m4 will add one of these switches to LD
7850     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7851       libsuff= shlibsuff= libmagic=32-bit;;
7852     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7853       libsuff=32 shlibsuff=N32 libmagic=N32;;
7854     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7855       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7856     *) libsuff= shlibsuff= libmagic=never-match;;
7857     esac
7858     ;;
7859   esac
7860   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7861   shlibpath_overrides_runpath=no
7862   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7863   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7864   hardcode_into_libs=yes
7865   ;;
7866
7867 # No shared lib support for Linux oldld, aout, or coff.
7868 linux*oldld* | linux*aout* | linux*coff*)
7869   dynamic_linker=no
7870   ;;
7871
7872 # This must be Linux ELF.
7873 linux*)
7874   version_type=linux
7875   need_lib_prefix=no
7876   need_version=no
7877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7878   soname_spec='${libname}${release}${shared_ext}$major'
7879   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7880   shlibpath_var=LD_LIBRARY_PATH
7881   shlibpath_overrides_runpath=no
7882   # This implies no fast_install, which is unacceptable.
7883   # Some rework will be needed to allow for fast_install
7884   # before this can be enabled.
7885   hardcode_into_libs=yes
7886
7887   # We used to test for /lib/ld.so.1 and disable shared libraries on
7888   # powerpc, because MkLinux only supported shared libraries with the
7889   # GNU dynamic linker.  Since this was broken with cross compilers,
7890   # most powerpc-linux boxes support dynamic linking these days and
7891   # people can always --disable-shared, the test was removed, and we
7892   # assume the GNU/Linux dynamic linker is in use.
7893   dynamic_linker='GNU/Linux ld.so'
7894   ;;
7895
7896 netbsd*)
7897   version_type=sunos
7898   need_lib_prefix=no
7899   need_version=no
7900   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7902     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7903     dynamic_linker='NetBSD (a.out) ld.so'
7904   else
7905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7906     soname_spec='${libname}${release}${shared_ext}$major'
7907     dynamic_linker='NetBSD ld.elf_so'
7908   fi
7909   shlibpath_var=LD_LIBRARY_PATH
7910   shlibpath_overrides_runpath=yes
7911   hardcode_into_libs=yes
7912   ;;
7913
7914 newsos6)
7915   version_type=linux
7916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7917   shlibpath_var=LD_LIBRARY_PATH
7918   shlibpath_overrides_runpath=yes
7919   ;;
7920
7921 nto-qnx)
7922   version_type=linux
7923   need_lib_prefix=no
7924   need_version=no
7925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7926   soname_spec='${libname}${release}${shared_ext}$major'
7927   shlibpath_var=LD_LIBRARY_PATH
7928   shlibpath_overrides_runpath=yes
7929   ;;
7930
7931 openbsd*)
7932   version_type=sunos
7933   need_lib_prefix=no
7934   need_version=no
7935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7936   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7937   shlibpath_var=LD_LIBRARY_PATH
7938   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7939     case $host_os in
7940       openbsd2.[89] | openbsd2.[89].*)
7941         shlibpath_overrides_runpath=no
7942         ;;
7943       *)
7944         shlibpath_overrides_runpath=yes
7945         ;;
7946       esac
7947   else
7948     shlibpath_overrides_runpath=yes
7949   fi
7950   ;;
7951
7952 os2*)
7953   libname_spec='$name'
7954   shrext=".dll"
7955   need_lib_prefix=no
7956   library_names_spec='$libname${shared_ext} $libname.a'
7957   dynamic_linker='OS/2 ld.exe'
7958   shlibpath_var=LIBPATH
7959   ;;
7960
7961 osf3* | osf4* | osf5*)
7962   version_type=osf
7963   need_lib_prefix=no
7964   need_version=no
7965   soname_spec='${libname}${release}${shared_ext}$major'
7966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967   shlibpath_var=LD_LIBRARY_PATH
7968   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7969   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7970   ;;
7971
7972 sco3.2v5*)
7973   version_type=osf
7974   soname_spec='${libname}${release}${shared_ext}$major'
7975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7976   shlibpath_var=LD_LIBRARY_PATH
7977   ;;
7978
7979 solaris*)
7980   version_type=linux
7981   need_lib_prefix=no
7982   need_version=no
7983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7984   soname_spec='${libname}${release}${shared_ext}$major'
7985   shlibpath_var=LD_LIBRARY_PATH
7986   shlibpath_overrides_runpath=yes
7987   hardcode_into_libs=yes
7988   # ldd complains unless libraries are executable
7989   postinstall_cmds='chmod +x $lib'
7990   ;;
7991
7992 sunos4*)
7993   version_type=sunos
7994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7995   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7996   shlibpath_var=LD_LIBRARY_PATH
7997   shlibpath_overrides_runpath=yes
7998   if test "$with_gnu_ld" = yes; then
7999     need_lib_prefix=no
8000   fi
8001   need_version=yes
8002   ;;
8003
8004 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8005   version_type=linux
8006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8007   soname_spec='${libname}${release}${shared_ext}$major'
8008   shlibpath_var=LD_LIBRARY_PATH
8009   case $host_vendor in
8010     sni)
8011       shlibpath_overrides_runpath=no
8012       need_lib_prefix=no
8013       export_dynamic_flag_spec='${wl}-Blargedynsym'
8014       runpath_var=LD_RUN_PATH
8015       ;;
8016     siemens)
8017       need_lib_prefix=no
8018       ;;
8019     motorola)
8020       need_lib_prefix=no
8021       need_version=no
8022       shlibpath_overrides_runpath=no
8023       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8024       ;;
8025   esac
8026   ;;
8027
8028 sysv4*MP*)
8029   if test -d /usr/nec ;then
8030     version_type=linux
8031     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8032     soname_spec='$libname${shared_ext}.$major'
8033     shlibpath_var=LD_LIBRARY_PATH
8034   fi
8035   ;;
8036
8037 uts4*)
8038   version_type=linux
8039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040   soname_spec='${libname}${release}${shared_ext}$major'
8041   shlibpath_var=LD_LIBRARY_PATH
8042   ;;
8043
8044 *)
8045   dynamic_linker=no
8046   ;;
8047 esac
8048 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8049 echo "${ECHO_T}$dynamic_linker" >&6
8050 test "$dynamic_linker" = no && can_build_shared=no
8051
8052 if test "x$enable_dlopen" != xyes; then
8053   enable_dlopen=unknown
8054   enable_dlopen_self=unknown
8055   enable_dlopen_self_static=unknown
8056 else
8057   lt_cv_dlopen=no
8058   lt_cv_dlopen_libs=
8059
8060   case $host_os in
8061   beos*)
8062     lt_cv_dlopen="load_add_on"
8063     lt_cv_dlopen_libs=
8064     lt_cv_dlopen_self=yes
8065     ;;
8066
8067   mingw* | pw32*)
8068     lt_cv_dlopen="LoadLibrary"
8069     lt_cv_dlopen_libs=
8070    ;;
8071
8072   cygwin*)
8073     lt_cv_dlopen="dlopen"
8074     lt_cv_dlopen_libs=
8075    ;;
8076
8077   darwin*)
8078   # if libdl is installed we need to link against it
8079     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8080 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8081 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8082   echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084   ac_check_lib_save_LIBS=$LIBS
8085 LIBS="-ldl  $LIBS"
8086 cat >conftest.$ac_ext <<_ACEOF
8087 #line $LINENO "configure"
8088 /* confdefs.h.  */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h.  */
8093
8094 /* Override any gcc2 internal prototype to avoid an error.  */
8095 #ifdef __cplusplus
8096 extern "C"
8097 #endif
8098 /* We use char because int might match the return type of a gcc2
8099    builtin and then its argument prototype would still apply.  */
8100 char dlopen ();
8101 int
8102 main ()
8103 {
8104 dlopen ();
8105   ;
8106   return 0;
8107 }
8108 _ACEOF
8109 rm -f conftest.$ac_objext conftest$ac_exeext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8111   (eval $ac_link) 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); } &&
8115          { ac_try='test -s conftest$ac_exeext'
8116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117   (eval $ac_try) 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; }; then
8121   ac_cv_lib_dl_dlopen=yes
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 ac_cv_lib_dl_dlopen=no
8127 fi
8128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8129 LIBS=$ac_check_lib_save_LIBS
8130 fi
8131 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8132 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8133 if test $ac_cv_lib_dl_dlopen = yes; then
8134   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8135 else
8136
8137     lt_cv_dlopen="dyld"
8138     lt_cv_dlopen_libs=
8139     lt_cv_dlopen_self=yes
8140
8141 fi
8142
8143    ;;
8144
8145   *)
8146     echo "$as_me:$LINENO: checking for shl_load" >&5
8147 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8148 if test "${ac_cv_func_shl_load+set}" = set; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   cat >conftest.$ac_ext <<_ACEOF
8152 #line $LINENO "configure"
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158 /* System header to define __stub macros and hopefully few prototypes,
8159     which can conflict with char shl_load (); below.
8160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8161     <limits.h> exists even on freestanding compilers.  */
8162 #ifdef __STDC__
8163 # include <limits.h>
8164 #else
8165 # include <assert.h>
8166 #endif
8167 /* Override any gcc2 internal prototype to avoid an error.  */
8168 #ifdef __cplusplus
8169 extern "C"
8170 {
8171 #endif
8172 /* We use char because int might match the return type of a gcc2
8173    builtin and then its argument prototype would still apply.  */
8174 char shl_load ();
8175 /* The GNU C library defines this for functions which it implements
8176     to always fail with ENOSYS.  Some functions are actually named
8177     something starting with __ and the normal name is an alias.  */
8178 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8179 choke me
8180 #else
8181 char (*f) () = shl_load;
8182 #endif
8183 #ifdef __cplusplus
8184 }
8185 #endif
8186
8187 int
8188 main ()
8189 {
8190 return f != shl_load;
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197   (eval $ac_link) 2>&5
8198   ac_status=$?
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); } &&
8201          { ac_try='test -s conftest$ac_exeext'
8202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203   (eval $ac_try) 2>&5
8204   ac_status=$?
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); }; }; then
8207   ac_cv_func_shl_load=yes
8208 else
8209   echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8211
8212 ac_cv_func_shl_load=no
8213 fi
8214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8215 fi
8216 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8217 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8218 if test $ac_cv_func_shl_load = yes; then
8219   lt_cv_dlopen="shl_load"
8220 else
8221   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8222 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8223 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226   ac_check_lib_save_LIBS=$LIBS
8227 LIBS="-ldld  $LIBS"
8228 cat >conftest.$ac_ext <<_ACEOF
8229 #line $LINENO "configure"
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235
8236 /* Override any gcc2 internal prototype to avoid an error.  */
8237 #ifdef __cplusplus
8238 extern "C"
8239 #endif
8240 /* We use char because int might match the return type of a gcc2
8241    builtin and then its argument prototype would still apply.  */
8242 char shl_load ();
8243 int
8244 main ()
8245 {
8246 shl_load ();
8247   ;
8248   return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253   (eval $ac_link) 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); } &&
8257          { ac_try='test -s conftest$ac_exeext'
8258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259   (eval $ac_try) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); }; }; then
8263   ac_cv_lib_dld_shl_load=yes
8264 else
8265   echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 ac_cv_lib_dld_shl_load=no
8269 fi
8270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8271 LIBS=$ac_check_lib_save_LIBS
8272 fi
8273 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8274 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8275 if test $ac_cv_lib_dld_shl_load = yes; then
8276   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8277 else
8278   echo "$as_me:$LINENO: checking for dlopen" >&5
8279 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8280 if test "${ac_cv_func_dlopen+set}" = set; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283   cat >conftest.$ac_ext <<_ACEOF
8284 #line $LINENO "configure"
8285 /* confdefs.h.  */
8286 _ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h.  */
8290 /* System header to define __stub macros and hopefully few prototypes,
8291     which can conflict with char dlopen (); below.
8292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8293     <limits.h> exists even on freestanding compilers.  */
8294 #ifdef __STDC__
8295 # include <limits.h>
8296 #else
8297 # include <assert.h>
8298 #endif
8299 /* Override any gcc2 internal prototype to avoid an error.  */
8300 #ifdef __cplusplus
8301 extern "C"
8302 {
8303 #endif
8304 /* We use char because int might match the return type of a gcc2
8305    builtin and then its argument prototype would still apply.  */
8306 char dlopen ();
8307 /* The GNU C library defines this for functions which it implements
8308     to always fail with ENOSYS.  Some functions are actually named
8309     something starting with __ and the normal name is an alias.  */
8310 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8311 choke me
8312 #else
8313 char (*f) () = dlopen;
8314 #endif
8315 #ifdef __cplusplus
8316 }
8317 #endif
8318
8319 int
8320 main ()
8321 {
8322 return f != dlopen;
8323   ;
8324   return 0;
8325 }
8326 _ACEOF
8327 rm -f conftest.$ac_objext conftest$ac_exeext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329   (eval $ac_link) 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); } &&
8333          { ac_try='test -s conftest$ac_exeext'
8334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335   (eval $ac_try) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); }; }; then
8339   ac_cv_func_dlopen=yes
8340 else
8341   echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8343
8344 ac_cv_func_dlopen=no
8345 fi
8346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8347 fi
8348 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8349 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8350 if test $ac_cv_func_dlopen = yes; then
8351   lt_cv_dlopen="dlopen"
8352 else
8353   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8354 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8355 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8356   echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358   ac_check_lib_save_LIBS=$LIBS
8359 LIBS="-ldl  $LIBS"
8360 cat >conftest.$ac_ext <<_ACEOF
8361 #line $LINENO "configure"
8362 /* confdefs.h.  */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h.  */
8367
8368 /* Override any gcc2 internal prototype to avoid an error.  */
8369 #ifdef __cplusplus
8370 extern "C"
8371 #endif
8372 /* We use char because int might match the return type of a gcc2
8373    builtin and then its argument prototype would still apply.  */
8374 char dlopen ();
8375 int
8376 main ()
8377 {
8378 dlopen ();
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385   (eval $ac_link) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); } &&
8389          { ac_try='test -s conftest$ac_exeext'
8390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391   (eval $ac_try) 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); }; }; then
8395   ac_cv_lib_dl_dlopen=yes
8396 else
8397   echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400 ac_cv_lib_dl_dlopen=no
8401 fi
8402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8403 LIBS=$ac_check_lib_save_LIBS
8404 fi
8405 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8407 if test $ac_cv_lib_dl_dlopen = yes; then
8408   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8409 else
8410   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8411 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8412 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   ac_check_lib_save_LIBS=$LIBS
8416 LIBS="-lsvld  $LIBS"
8417 cat >conftest.$ac_ext <<_ACEOF
8418 #line $LINENO "configure"
8419 /* confdefs.h.  */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h.  */
8424
8425 /* Override any gcc2 internal prototype to avoid an error.  */
8426 #ifdef __cplusplus
8427 extern "C"
8428 #endif
8429 /* We use char because int might match the return type of a gcc2
8430    builtin and then its argument prototype would still apply.  */
8431 char dlopen ();
8432 int
8433 main ()
8434 {
8435 dlopen ();
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442   (eval $ac_link) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } &&
8446          { ac_try='test -s conftest$ac_exeext'
8447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448   (eval $ac_try) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452   ac_cv_lib_svld_dlopen=yes
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457 ac_cv_lib_svld_dlopen=no
8458 fi
8459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8460 LIBS=$ac_check_lib_save_LIBS
8461 fi
8462 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8463 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8464 if test $ac_cv_lib_svld_dlopen = yes; then
8465   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8466 else
8467   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8468 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8469 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8470   echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472   ac_check_lib_save_LIBS=$LIBS
8473 LIBS="-ldld  $LIBS"
8474 cat >conftest.$ac_ext <<_ACEOF
8475 #line $LINENO "configure"
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481
8482 /* Override any gcc2 internal prototype to avoid an error.  */
8483 #ifdef __cplusplus
8484 extern "C"
8485 #endif
8486 /* We use char because int might match the return type of a gcc2
8487    builtin and then its argument prototype would still apply.  */
8488 char dld_link ();
8489 int
8490 main ()
8491 {
8492 dld_link ();
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499   (eval $ac_link) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } &&
8503          { ac_try='test -s conftest$ac_exeext'
8504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505   (eval $ac_try) 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; }; then
8509   ac_cv_lib_dld_dld_link=yes
8510 else
8511   echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 ac_cv_lib_dld_dld_link=no
8515 fi
8516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8517 LIBS=$ac_check_lib_save_LIBS
8518 fi
8519 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8520 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8521 if test $ac_cv_lib_dld_dld_link = yes; then
8522   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8523 fi
8524
8525
8526 fi
8527
8528
8529 fi
8530
8531
8532 fi
8533
8534
8535 fi
8536
8537
8538 fi
8539
8540     ;;
8541   esac
8542
8543   if test "x$lt_cv_dlopen" != xno; then
8544     enable_dlopen=yes
8545   else
8546     enable_dlopen=no
8547   fi
8548
8549   case $lt_cv_dlopen in
8550   dlopen)
8551     save_CPPFLAGS="$CPPFLAGS"
8552     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8553
8554     save_LDFLAGS="$LDFLAGS"
8555     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8556
8557     save_LIBS="$LIBS"
8558     LIBS="$lt_cv_dlopen_libs $LIBS"
8559
8560     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8561 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8562 if test "${lt_cv_dlopen_self+set}" = set; then
8563   echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565           if test "$cross_compiling" = yes; then :
8566   lt_cv_dlopen_self=cross
8567 else
8568   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8569   lt_status=$lt_dlunknown
8570   cat > conftest.$ac_ext <<EOF
8571 #line 8571 "configure"
8572 #include "confdefs.h"
8573
8574 #if HAVE_DLFCN_H
8575 #include <dlfcn.h>
8576 #endif
8577
8578 #include <stdio.h>
8579
8580 #ifdef RTLD_GLOBAL
8581 #  define LT_DLGLOBAL           RTLD_GLOBAL
8582 #else
8583 #  ifdef DL_GLOBAL
8584 #    define LT_DLGLOBAL         DL_GLOBAL
8585 #  else
8586 #    define LT_DLGLOBAL         0
8587 #  endif
8588 #endif
8589
8590 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8591    find out it does not work in some platform. */
8592 #ifndef LT_DLLAZY_OR_NOW
8593 #  ifdef RTLD_LAZY
8594 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8595 #  else
8596 #    ifdef DL_LAZY
8597 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8598 #    else
8599 #      ifdef RTLD_NOW
8600 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8601 #      else
8602 #        ifdef DL_NOW
8603 #          define LT_DLLAZY_OR_NOW      DL_NOW
8604 #        else
8605 #          define LT_DLLAZY_OR_NOW      0
8606 #        endif
8607 #      endif
8608 #    endif
8609 #  endif
8610 #endif
8611
8612 #ifdef __cplusplus
8613 extern "C" void exit (int);
8614 #endif
8615
8616 void fnord() { int i=42;}
8617 int main ()
8618 {
8619   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8620   int status = $lt_dlunknown;
8621
8622   if (self)
8623     {
8624       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8625       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8626       /* dlclose (self); */
8627     }
8628
8629     exit (status);
8630 }
8631 EOF
8632   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633   (eval $ac_link) 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8637     (./conftest; exit; ) 2>/dev/null
8638     lt_status=$?
8639     case x$lt_status in
8640       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8641       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8642       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8643     esac
8644   else :
8645     # compilation failed
8646     lt_cv_dlopen_self=no
8647   fi
8648 fi
8649 rm -fr conftest*
8650
8651
8652 fi
8653 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8654 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8655
8656     if test "x$lt_cv_dlopen_self" = xyes; then
8657       LDFLAGS="$LDFLAGS $link_static_flag"
8658       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8659 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8660 if test "${lt_cv_dlopen_self_static+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663           if test "$cross_compiling" = yes; then :
8664   lt_cv_dlopen_self_static=cross
8665 else
8666   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8667   lt_status=$lt_dlunknown
8668   cat > conftest.$ac_ext <<EOF
8669 #line 8669 "configure"
8670 #include "confdefs.h"
8671
8672 #if HAVE_DLFCN_H
8673 #include <dlfcn.h>
8674 #endif
8675
8676 #include <stdio.h>
8677
8678 #ifdef RTLD_GLOBAL
8679 #  define LT_DLGLOBAL           RTLD_GLOBAL
8680 #else
8681 #  ifdef DL_GLOBAL
8682 #    define LT_DLGLOBAL         DL_GLOBAL
8683 #  else
8684 #    define LT_DLGLOBAL         0
8685 #  endif
8686 #endif
8687
8688 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8689    find out it does not work in some platform. */
8690 #ifndef LT_DLLAZY_OR_NOW
8691 #  ifdef RTLD_LAZY
8692 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8693 #  else
8694 #    ifdef DL_LAZY
8695 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8696 #    else
8697 #      ifdef RTLD_NOW
8698 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8699 #      else
8700 #        ifdef DL_NOW
8701 #          define LT_DLLAZY_OR_NOW      DL_NOW
8702 #        else
8703 #          define LT_DLLAZY_OR_NOW      0
8704 #        endif
8705 #      endif
8706 #    endif
8707 #  endif
8708 #endif
8709
8710 #ifdef __cplusplus
8711 extern "C" void exit (int);
8712 #endif
8713
8714 void fnord() { int i=42;}
8715 int main ()
8716 {
8717   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8718   int status = $lt_dlunknown;
8719
8720   if (self)
8721     {
8722       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8723       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8724       /* dlclose (self); */
8725     }
8726
8727     exit (status);
8728 }
8729 EOF
8730   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8731   (eval $ac_link) 2>&5
8732   ac_status=$?
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8735     (./conftest; exit; ) 2>/dev/null
8736     lt_status=$?
8737     case x$lt_status in
8738       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8739       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8740       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8741     esac
8742   else :
8743     # compilation failed
8744     lt_cv_dlopen_self_static=no
8745   fi
8746 fi
8747 rm -fr conftest*
8748
8749
8750 fi
8751 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8752 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8753     fi
8754
8755     CPPFLAGS="$save_CPPFLAGS"
8756     LDFLAGS="$save_LDFLAGS"
8757     LIBS="$save_LIBS"
8758     ;;
8759   esac
8760
8761   case $lt_cv_dlopen_self in
8762   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8763   *) enable_dlopen_self=unknown ;;
8764   esac
8765
8766   case $lt_cv_dlopen_self_static in
8767   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8768   *) enable_dlopen_self_static=unknown ;;
8769   esac
8770 fi
8771
8772
8773 # Report which librarie types wil actually be built
8774 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8775 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8776 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8777 echo "${ECHO_T}$can_build_shared" >&6
8778
8779 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8780 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8781 test "$can_build_shared" = "no" && enable_shared=no
8782
8783 # On AIX, shared libraries and static libraries use the same namespace, and
8784 # are all built from PIC.
8785 case "$host_os" in
8786 aix3*)
8787   test "$enable_shared" = yes && enable_static=no
8788   if test -n "$RANLIB"; then
8789     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8790     postinstall_cmds='$RANLIB $lib'
8791   fi
8792   ;;
8793
8794 aix4*)
8795   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8796     test "$enable_shared" = yes && enable_static=no
8797   fi
8798   ;;
8799   darwin* | rhapsody*)
8800   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8801     archive_cmds_need_lc=no
8802     case "$host_os" in
8803     rhapsody* | darwin1.[012])
8804       allow_undefined_flag='-undefined suppress'
8805       ;;
8806     *) # Darwin 1.3 on
8807       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8808       ;;
8809     esac
8810     # FIXME: Relying on posixy $() will cause problems for
8811     #        cross-compilation, but unfortunately the echo tests do not
8812     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8813     #          `"' quotes if we put them in here... so don't!
8814                 output_verbose_link_cmd='echo'
8815     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8816     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8817     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8818                   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}'
8819                   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}'
8820     hardcode_direct=no
8821     hardcode_automatic=yes
8822     hardcode_shlibpath_var=unsupported
8823     whole_archive_flag_spec='-all_load $convenience'
8824     link_all_deplibs=yes
8825     fi
8826     ;;
8827 esac
8828 echo "$as_me:$LINENO: result: $enable_shared" >&5
8829 echo "${ECHO_T}$enable_shared" >&6
8830
8831 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8832 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8833 # Make sure either enable_shared or enable_static is yes.
8834 test "$enable_shared" = yes || enable_static=yes
8835 echo "$as_me:$LINENO: result: $enable_static" >&5
8836 echo "${ECHO_T}$enable_static" >&6
8837
8838 # The else clause should only fire when bootstrapping the
8839 # libtool distribution, otherwise you forgot to ship ltmain.sh
8840 # with your package, and you will get complaints that there are
8841 # no rules to generate ltmain.sh.
8842 if test -f "$ltmain"; then
8843   # See if we are running on zsh, and set the options which allow our commands through
8844   # without removal of \ escapes.
8845   if test -n "${ZSH_VERSION+set}" ; then
8846     setopt NO_GLOB_SUBST
8847   fi
8848   # Now quote all the things that may contain metacharacters while being
8849   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8850   # variables and quote the copies for generation of the libtool script.
8851   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8852     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8853     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8854     deplibs_check_method reload_flag reload_cmds need_locks \
8855     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8856     lt_cv_sys_global_symbol_to_c_name_address \
8857     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8858     old_postinstall_cmds old_postuninstall_cmds \
8859     compiler \
8860     CC \
8861     LD \
8862     lt_prog_compiler_wl \
8863     lt_prog_compiler_pic \
8864     lt_prog_compiler_static \
8865     lt_prog_compiler_no_builtin_flag \
8866     export_dynamic_flag_spec \
8867     thread_safe_flag_spec \
8868     whole_archive_flag_spec \
8869     enable_shared_with_static_runtimes \
8870     old_archive_cmds \
8871     old_archive_from_new_cmds \
8872     predep_objects \
8873     postdep_objects \
8874     predeps \
8875     postdeps \
8876     compiler_lib_search_path \
8877     archive_cmds \
8878     archive_expsym_cmds \
8879     postinstall_cmds \
8880     postuninstall_cmds \
8881     old_archive_from_expsyms_cmds \
8882     allow_undefined_flag \
8883     no_undefined_flag \
8884     export_symbols_cmds \
8885     hardcode_libdir_flag_spec \
8886     hardcode_libdir_flag_spec_ld \
8887     hardcode_libdir_separator \
8888     hardcode_automatic \
8889     module_cmds \
8890     module_expsym_cmds \
8891     lt_cv_prog_compiler_c_o \
8892     exclude_expsyms \
8893     include_expsyms; do
8894
8895     case $var in
8896     old_archive_cmds | \
8897     old_archive_from_new_cmds | \
8898     archive_cmds | \
8899     archive_expsym_cmds | \
8900     module_cmds | \
8901     module_expsym_cmds | \
8902     old_archive_from_expsyms_cmds | \
8903     export_symbols_cmds | \
8904     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8905     postinstall_cmds | postuninstall_cmds | \
8906     old_postinstall_cmds | old_postuninstall_cmds | \
8907     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8908       # Double-quote double-evaled strings.
8909       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8910       ;;
8911     *)
8912       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8913       ;;
8914     esac
8915   done
8916
8917   case $lt_echo in
8918   *'\$0 --fallback-echo"')
8919     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8920     ;;
8921   esac
8922
8923 cfgfile="${ofile}T"
8924   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8925   $rm -f "$cfgfile"
8926   { echo "$as_me:$LINENO: creating $ofile" >&5
8927 echo "$as_me: creating $ofile" >&6;}
8928
8929   cat <<__EOF__ >> "$cfgfile"
8930 #! $SHELL
8931
8932 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8933 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8934 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8935 #
8936 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8937 # Free Software Foundation, Inc.
8938 #
8939 # This file is part of GNU Libtool:
8940 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8941 #
8942 # This program is free software; you can redistribute it and/or modify
8943 # it under the terms of the GNU General Public License as published by
8944 # the Free Software Foundation; either version 2 of the License, or
8945 # (at your option) any later version.
8946 #
8947 # This program is distributed in the hope that it will be useful, but
8948 # WITHOUT ANY WARRANTY; without even the implied warranty of
8949 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8950 # General Public License for more details.
8951 #
8952 # You should have received a copy of the GNU General Public License
8953 # along with this program; if not, write to the Free Software
8954 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8955 #
8956 # As a special exception to the GNU General Public License, if you
8957 # distribute this file as part of a program that contains a
8958 # configuration script generated by Autoconf, you may include it under
8959 # the same distribution terms that you use for the rest of that program.
8960
8961 # A sed program that does not truncate output.
8962 SED=$lt_SED
8963
8964 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8965 Xsed="$SED -e s/^X//"
8966
8967 # The HP-UX ksh and POSIX shell print the target directory to stdout
8968 # if CDPATH is set.
8969 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8970
8971 # The names of the tagged configurations supported by this script.
8972 available_tags=
8973
8974 # ### BEGIN LIBTOOL CONFIG
8975
8976 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8977
8978 # Shell to use when invoking shell scripts.
8979 SHELL=$lt_SHELL
8980
8981 # Whether or not to build shared libraries.
8982 build_libtool_libs=$enable_shared
8983
8984 # Whether or not to build static libraries.
8985 build_old_libs=$enable_static
8986
8987 # Whether or not to add -lc for building shared libraries.
8988 build_libtool_need_lc=$archive_cmds_need_lc
8989
8990 # Whether or not to disallow shared libs when runtime libs are static
8991 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8992
8993 # Whether or not to optimize for fast installation.
8994 fast_install=$enable_fast_install
8995
8996 # The host system.
8997 host_alias=$host_alias
8998 host=$host
8999
9000 # An echo program that does not interpret backslashes.
9001 echo=$lt_echo
9002
9003 # The archiver.
9004 AR=$lt_AR
9005 AR_FLAGS=$lt_AR_FLAGS
9006
9007 # A C compiler.
9008 LTCC=$lt_LTCC
9009
9010 # A language-specific compiler.
9011 CC=$lt_compiler
9012
9013 # Is the compiler the GNU C compiler?
9014 with_gcc=$GCC
9015
9016 # An ERE matcher.
9017 EGREP=$lt_EGREP
9018
9019 # The linker used to build libraries.
9020 LD=$lt_LD
9021
9022 # Whether we need hard or soft links.
9023 LN_S=$lt_LN_S
9024
9025 # A BSD-compatible nm program.
9026 NM=$lt_NM
9027
9028 # A symbol stripping program
9029 STRIP=$STRIP
9030
9031 # Used to examine libraries when file_magic_cmd begins "file"
9032 MAGIC_CMD=$MAGIC_CMD
9033
9034 # Used on cygwin: DLL creation program.
9035 DLLTOOL="$DLLTOOL"
9036
9037 # Used on cygwin: object dumper.
9038 OBJDUMP="$OBJDUMP"
9039
9040 # Used on cygwin: assembler.
9041 AS="$AS"
9042
9043 # The name of the directory that contains temporary libtool files.
9044 objdir=$objdir
9045
9046 # How to create reloadable object files.
9047 reload_flag=$lt_reload_flag
9048 reload_cmds=$lt_reload_cmds
9049
9050 # How to pass a linker flag through the compiler.
9051 wl=$lt_lt_prog_compiler_wl
9052
9053 # Object file suffix (normally "o").
9054 objext="$ac_objext"
9055
9056 # Old archive suffix (normally "a").
9057 libext="$libext"
9058
9059 # Shared library suffix (normally ".so").
9060 shrext='$shrext'
9061
9062 # Executable file suffix (normally "").
9063 exeext="$exeext"
9064
9065 # Additional compiler flags for building library objects.
9066 pic_flag=$lt_lt_prog_compiler_pic
9067 pic_mode=$pic_mode
9068
9069 # What is the maximum length of a command?
9070 max_cmd_len=$lt_cv_sys_max_cmd_len
9071
9072 # Does compiler simultaneously support -c and -o options?
9073 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9074
9075 # Must we lock files when doing compilation ?
9076 need_locks=$lt_need_locks
9077
9078 # Do we need the lib prefix for modules?
9079 need_lib_prefix=$need_lib_prefix
9080
9081 # Do we need a version for libraries?
9082 need_version=$need_version
9083
9084 # Whether dlopen is supported.
9085 dlopen_support=$enable_dlopen
9086
9087 # Whether dlopen of programs is supported.
9088 dlopen_self=$enable_dlopen_self
9089
9090 # Whether dlopen of statically linked programs is supported.
9091 dlopen_self_static=$enable_dlopen_self_static
9092
9093 # Compiler flag to prevent dynamic linking.
9094 link_static_flag=$lt_lt_prog_compiler_static
9095
9096 # Compiler flag to turn off builtin functions.
9097 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9098
9099 # Compiler flag to allow reflexive dlopens.
9100 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9101
9102 # Compiler flag to generate shared objects directly from archives.
9103 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9104
9105 # Compiler flag to generate thread-safe objects.
9106 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9107
9108 # Library versioning type.
9109 version_type=$version_type
9110
9111 # Format of library name prefix.
9112 libname_spec=$lt_libname_spec
9113
9114 # List of archive names.  First name is the real one, the rest are links.
9115 # The last name is the one that the linker finds with -lNAME.
9116 library_names_spec=$lt_library_names_spec
9117
9118 # The coded name of the library, if different from the real name.
9119 soname_spec=$lt_soname_spec
9120
9121 # Commands used to build and install an old-style archive.
9122 RANLIB=$lt_RANLIB
9123 old_archive_cmds=$lt_old_archive_cmds
9124 old_postinstall_cmds=$lt_old_postinstall_cmds
9125 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9126
9127 # Create an old-style archive from a shared archive.
9128 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9129
9130 # Create a temporary old-style archive to link instead of a shared archive.
9131 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9132
9133 # Commands used to build and install a shared archive.
9134 archive_cmds=$lt_archive_cmds
9135 archive_expsym_cmds=$lt_archive_expsym_cmds
9136 postinstall_cmds=$lt_postinstall_cmds
9137 postuninstall_cmds=$lt_postuninstall_cmds
9138
9139 # Commands used to build a loadable module (assumed same as above if empty)
9140 module_cmds=$lt_module_cmds
9141 module_expsym_cmds=$lt_module_expsym_cmds
9142
9143 # Commands to strip libraries.
9144 old_striplib=$lt_old_striplib
9145 striplib=$lt_striplib
9146
9147 # Dependencies to place before the objects being linked to create a
9148 # shared library.
9149 predep_objects=$lt_predep_objects
9150
9151 # Dependencies to place after the objects being linked to create a
9152 # shared library.
9153 postdep_objects=$lt_postdep_objects
9154
9155 # Dependencies to place before the objects being linked to create a
9156 # shared library.
9157 predeps=$lt_predeps
9158
9159 # Dependencies to place after the objects being linked to create a
9160 # shared library.
9161 postdeps=$lt_postdeps
9162
9163 # The library search path used internally by the compiler when linking
9164 # a shared library.
9165 compiler_lib_search_path=$lt_compiler_lib_search_path
9166
9167 # Method to check whether dependent libraries are shared objects.
9168 deplibs_check_method=$lt_deplibs_check_method
9169
9170 # Command to use when deplibs_check_method == file_magic.
9171 file_magic_cmd=$lt_file_magic_cmd
9172
9173 # Flag that allows shared libraries with undefined symbols to be built.
9174 allow_undefined_flag=$lt_allow_undefined_flag
9175
9176 # Flag that forces no undefined symbols.
9177 no_undefined_flag=$lt_no_undefined_flag
9178
9179 # Commands used to finish a libtool library installation in a directory.
9180 finish_cmds=$lt_finish_cmds
9181
9182 # Same as above, but a single script fragment to be evaled but not shown.
9183 finish_eval=$lt_finish_eval
9184
9185 # Take the output of nm and produce a listing of raw symbols and C names.
9186 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9187
9188 # Transform the output of nm in a proper C declaration
9189 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9190
9191 # Transform the output of nm in a C name address pair
9192 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9193
9194 # This is the shared library runtime path variable.
9195 runpath_var=$runpath_var
9196
9197 # This is the shared library path variable.
9198 shlibpath_var=$shlibpath_var
9199
9200 # Is shlibpath searched before the hard-coded library search path?
9201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9202
9203 # How to hardcode a shared library path into an executable.
9204 hardcode_action=$hardcode_action
9205
9206 # Whether we should hardcode library paths into libraries.
9207 hardcode_into_libs=$hardcode_into_libs
9208
9209 # Flag to hardcode \$libdir into a binary during linking.
9210 # This must work even if \$libdir does not exist.
9211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9212
9213 # If ld is used when linking, flag to hardcode \$libdir into
9214 # a binary during linking. This must work even if \$libdir does
9215 # not exist.
9216 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9217
9218 # Whether we need a single -rpath flag with a separated argument.
9219 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9220
9221 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9222 # resulting binary.
9223 hardcode_direct=$hardcode_direct
9224
9225 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9226 # resulting binary.
9227 hardcode_minus_L=$hardcode_minus_L
9228
9229 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9230 # the resulting binary.
9231 hardcode_shlibpath_var=$hardcode_shlibpath_var
9232
9233 # Set to yes if building a shared library automatically hardcodes DIR into the library
9234 # and all subsequent libraries and executables linked against it.
9235 hardcode_automatic=$hardcode_automatic
9236
9237 # Variables whose values should be saved in libtool wrapper scripts and
9238 # restored at relink time.
9239 variables_saved_for_relink="$variables_saved_for_relink"
9240
9241 # Whether libtool must link a program against all its dependency libraries.
9242 link_all_deplibs=$link_all_deplibs
9243
9244 # Compile-time system search path for libraries
9245 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9246
9247 # Run-time system search path for libraries
9248 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9249
9250 # Fix the shell variable \$srcfile for the compiler.
9251 fix_srcfile_path="$fix_srcfile_path"
9252
9253 # Set to yes if exported symbols are required.
9254 always_export_symbols=$always_export_symbols
9255
9256 # The commands to list exported symbols.
9257 export_symbols_cmds=$lt_export_symbols_cmds
9258
9259 # The commands to extract the exported symbol list from a shared archive.
9260 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9261
9262 # Symbols that should not be listed in the preloaded symbols.
9263 exclude_expsyms=$lt_exclude_expsyms
9264
9265 # Symbols that must always be exported.
9266 include_expsyms=$lt_include_expsyms
9267
9268 # ### END LIBTOOL CONFIG
9269
9270 __EOF__
9271
9272
9273   case $host_os in
9274   aix3*)
9275     cat <<\EOF >> "$cfgfile"
9276
9277 # AIX sometimes has problems with the GCC collect2 program.  For some
9278 # reason, if we set the COLLECT_NAMES environment variable, the problems
9279 # vanish in a puff of smoke.
9280 if test "X${COLLECT_NAMES+set}" != Xset; then
9281   COLLECT_NAMES=
9282   export COLLECT_NAMES
9283 fi
9284 EOF
9285     ;;
9286   esac
9287
9288   # We use sed instead of cat because bash on DJGPP gets confused if
9289   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9290   # text mode, it properly converts lines to CR/LF.  This bash problem
9291   # is reportedly fixed, but why not run on old versions too?
9292   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9293
9294   mv -f "$cfgfile" "$ofile" || \
9295     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9296   chmod +x "$ofile"
9297
9298 else
9299   # If there is no Makefile yet, we rely on a make rule to execute
9300   # `config.status --recheck' to rerun these tests and create the
9301   # libtool script then.
9302   test -f Makefile && make "$ltmain"
9303 fi
9304
9305
9306 ac_ext=c
9307 ac_cpp='$CPP $CPPFLAGS'
9308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9311
9312 CC="$lt_save_CC"
9313
9314
9315 # Check whether --with-tags or --without-tags was given.
9316 if test "${with_tags+set}" = set; then
9317   withval="$with_tags"
9318   tagnames="$withval"
9319 fi;
9320
9321 if test -f "$ltmain" && test -n "$tagnames"; then
9322   if test ! -f "${ofile}"; then
9323     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9324 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9325   fi
9326
9327   if test -z "$LTCC"; then
9328     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9329     if test -z "$LTCC"; then
9330       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9331 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9332     else
9333       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9334 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9335     fi
9336   fi
9337
9338   # Extract list of available tagged configurations in $ofile.
9339   # Note that this assumes the entire list is on one line.
9340   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9341
9342   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9343   for tagname in $tagnames; do
9344     IFS="$lt_save_ifs"
9345     # Check whether tagname contains only valid characters
9346     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9347     "") ;;
9348     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9349 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9350    { (exit 1); exit 1; }; }
9351         ;;
9352     esac
9353
9354     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9355     then
9356       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9357 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9358    { (exit 1); exit 1; }; }
9359     fi
9360
9361     # Update the list of available tags.
9362     if test -n "$tagname"; then
9363       echo appending configuration tag \"$tagname\" to $ofile
9364
9365       case $tagname in
9366       CXX)
9367         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9368           ac_ext=cc
9369 ac_cpp='$CXXCPP $CPPFLAGS'
9370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9373
9374
9375
9376
9377 archive_cmds_need_lc_CXX=no
9378 allow_undefined_flag_CXX=
9379 always_export_symbols_CXX=no
9380 archive_expsym_cmds_CXX=
9381 export_dynamic_flag_spec_CXX=
9382 hardcode_direct_CXX=no
9383 hardcode_libdir_flag_spec_CXX=
9384 hardcode_libdir_flag_spec_ld_CXX=
9385 hardcode_libdir_separator_CXX=
9386 hardcode_minus_L_CXX=no
9387 hardcode_automatic_CXX=no
9388 module_cmds_CXX=
9389 module_expsym_cmds_CXX=
9390 link_all_deplibs_CXX=unknown
9391 old_archive_cmds_CXX=$old_archive_cmds
9392 no_undefined_flag_CXX=
9393 whole_archive_flag_spec_CXX=
9394 enable_shared_with_static_runtimes_CXX=no
9395
9396 # Dependencies to place before and after the object being linked:
9397 predep_objects_CXX=
9398 postdep_objects_CXX=
9399 predeps_CXX=
9400 postdeps_CXX=
9401 compiler_lib_search_path_CXX=
9402
9403 # Source file extension for C++ test sources.
9404 ac_ext=cc
9405
9406 # Object file extension for compiled C++ test sources.
9407 objext=o
9408 objext_CXX=$objext
9409
9410 # Code to be used in simple compile tests
9411 lt_simple_compile_test_code="int some_variable = 0;\n"
9412
9413 # Code to be used in simple link tests
9414 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9415
9416 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9417
9418 # If no C compiler was specified, use CC.
9419 LTCC=${LTCC-"$CC"}
9420
9421 # Allow CC to be a program name with arguments.
9422 compiler=$CC
9423
9424
9425 # Allow CC to be a program name with arguments.
9426 lt_save_CC=$CC
9427 lt_save_LD=$LD
9428 lt_save_GCC=$GCC
9429 GCC=$GXX
9430 lt_save_with_gnu_ld=$with_gnu_ld
9431 lt_save_path_LD=$lt_cv_path_LD
9432 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9433   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9434 else
9435   unset lt_cv_prog_gnu_ld
9436 fi
9437 if test -n "${lt_cv_path_LDCXX+set}"; then
9438   lt_cv_path_LD=$lt_cv_path_LDCXX
9439 else
9440   unset lt_cv_path_LD
9441 fi
9442 test -z "${LDCXX+set}" || LD=$LDCXX
9443 CC=${CXX-"c++"}
9444 compiler=$CC
9445 compiler_CXX=$CC
9446 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9447
9448 # We don't want -fno-exception wen compiling C++ code, so set the
9449 # no_builtin_flag separately
9450 if test "$GXX" = yes; then
9451   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9452 else
9453   lt_prog_compiler_no_builtin_flag_CXX=
9454 fi
9455
9456 if test "$GXX" = yes; then
9457   # Set up default GNU C++ configuration
9458
9459
9460 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9461 if test "${with_gnu_ld+set}" = set; then
9462   withval="$with_gnu_ld"
9463   test "$withval" = no || with_gnu_ld=yes
9464 else
9465   with_gnu_ld=no
9466 fi;
9467 ac_prog=ld
9468 if test "$GCC" = yes; then
9469   # Check if gcc -print-prog-name=ld gives a path.
9470   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9471 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9472   case $host in
9473   *-*-mingw*)
9474     # gcc leaves a trailing carriage return which upsets mingw
9475     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9476   *)
9477     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9478   esac
9479   case $ac_prog in
9480     # Accept absolute paths.
9481     [\\/]* | ?:[\\/]*)
9482       re_direlt='/[^/][^/]*/\.\./'
9483       # Canonicalize the path of ld
9484       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9485       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9486         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9487       done
9488       test -z "$LD" && LD="$ac_prog"
9489       ;;
9490   "")
9491     # If it fails, then pretend we aren't using GCC.
9492     ac_prog=ld
9493     ;;
9494   *)
9495     # If it is relative, then search for the first ld in PATH.
9496     with_gnu_ld=unknown
9497     ;;
9498   esac
9499 elif test "$with_gnu_ld" = yes; then
9500   echo "$as_me:$LINENO: checking for GNU ld" >&5
9501 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9502 else
9503   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9504 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9505 fi
9506 if test "${lt_cv_path_LD+set}" = set; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509   if test -z "$LD"; then
9510   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9511   for ac_dir in $PATH; do
9512     IFS="$lt_save_ifs"
9513     test -z "$ac_dir" && ac_dir=.
9514     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9515       lt_cv_path_LD="$ac_dir/$ac_prog"
9516       # Check to see if the program is GNU ld.  I'd rather use --version,
9517       # but apparently some GNU ld's only accept -v.
9518       # Break only if it was the GNU/non-GNU ld that we prefer.
9519       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9520       *GNU* | *'with BFD'*)
9521         test "$with_gnu_ld" != no && break
9522         ;;
9523       *)
9524         test "$with_gnu_ld" != yes && break
9525         ;;
9526       esac
9527     fi
9528   done
9529   IFS="$lt_save_ifs"
9530 else
9531   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9532 fi
9533 fi
9534
9535 LD="$lt_cv_path_LD"
9536 if test -n "$LD"; then
9537   echo "$as_me:$LINENO: result: $LD" >&5
9538 echo "${ECHO_T}$LD" >&6
9539 else
9540   echo "$as_me:$LINENO: result: no" >&5
9541 echo "${ECHO_T}no" >&6
9542 fi
9543 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9544 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9545    { (exit 1); exit 1; }; }
9546 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9547 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9548 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9552 case `"$LD" -v 2>&1 </dev/null` in
9553 *GNU* | *'with BFD'*)
9554   lt_cv_prog_gnu_ld=yes
9555   ;;
9556 *)
9557   lt_cv_prog_gnu_ld=no
9558   ;;
9559 esac
9560 fi
9561 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9562 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9563 with_gnu_ld=$lt_cv_prog_gnu_ld
9564
9565
9566
9567   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9568   # archiving commands below assume that GNU ld is being used.
9569   if test "$with_gnu_ld" = yes; then
9570     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571     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'
9572
9573     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9574     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9575
9576     # If archive_cmds runs LD, not CC, wlarc should be empty
9577     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9578     #     investigate it a little bit more. (MM)
9579     wlarc='${wl}'
9580
9581     # ancient GNU ld didn't support --whole-archive et. al.
9582     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9583         grep 'no-whole-archive' > /dev/null; then
9584       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9585     else
9586       whole_archive_flag_spec_CXX=
9587     fi
9588   else
9589     with_gnu_ld=no
9590     wlarc=
9591
9592     # A generic and very simple default shared library creation
9593     # command for GNU C++ for the case where it uses the native
9594     # linker, instead of GNU ld.  If possible, this setting should
9595     # overridden to take advantage of the native linker features on
9596     # the platform it is being used on.
9597     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9598   fi
9599
9600   # Commands to make compiler produce verbose output that lists
9601   # what "hidden" libraries, object files and flags are used when
9602   # linking a shared library.
9603   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9604
9605 else
9606   GXX=no
9607   with_gnu_ld=no
9608   wlarc=
9609 fi
9610
9611 # PORTME: fill in a description of your system's C++ link characteristics
9612 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9614 ld_shlibs_CXX=yes
9615 case $host_os in
9616   aix3*)
9617     # FIXME: insert proper C++ library support
9618     ld_shlibs_CXX=no
9619     ;;
9620   aix4* | aix5*)
9621     if test "$host_cpu" = ia64; then
9622       # On IA64, the linker does run time linking by default, so we don't
9623       # have to do anything special.
9624       aix_use_runtimelinking=no
9625       exp_sym_flag='-Bexport'
9626       no_entry_flag=""
9627     else
9628       aix_use_runtimelinking=no
9629
9630       # Test if we are trying to use run time linking or normal
9631       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9632       # need to do runtime linking.
9633       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9634         for ld_flag in $LDFLAGS; do
9635           case $ld_flag in
9636           *-brtl*)
9637             aix_use_runtimelinking=yes
9638             break
9639             ;;
9640           esac
9641         done
9642       esac
9643
9644       exp_sym_flag='-bexport'
9645       no_entry_flag='-bnoentry'
9646     fi
9647
9648     # When large executables or shared objects are built, AIX ld can
9649     # have problems creating the table of contents.  If linking a library
9650     # or program results in "error TOC overflow" add -mminimal-toc to
9651     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9652     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9653
9654     archive_cmds_CXX=''
9655     hardcode_direct_CXX=yes
9656     hardcode_libdir_separator_CXX=':'
9657     link_all_deplibs_CXX=yes
9658
9659     if test "$GXX" = yes; then
9660       case $host_os in aix4.012|aix4.012.*)
9661       # We only want to do this on AIX 4.2 and lower, the check
9662       # below for broken collect2 doesn't work under 4.3+
9663         collect2name=`${CC} -print-prog-name=collect2`
9664         if test -f "$collect2name" && \
9665            strings "$collect2name" | grep resolve_lib_name >/dev/null
9666         then
9667           # We have reworked collect2
9668           hardcode_direct_CXX=yes
9669         else
9670           # We have old collect2
9671           hardcode_direct_CXX=unsupported
9672           # It fails to find uninstalled libraries when the uninstalled
9673           # path is not listed in the libpath.  Setting hardcode_minus_L
9674           # to unsupported forces relinking
9675           hardcode_minus_L_CXX=yes
9676           hardcode_libdir_flag_spec_CXX='-L$libdir'
9677           hardcode_libdir_separator_CXX=
9678         fi
9679       esac
9680       shared_flag='-shared'
9681     else
9682       # not using gcc
9683       if test "$host_cpu" = ia64; then
9684         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9685         # chokes on -Wl,-G. The following line is correct:
9686         shared_flag='-G'
9687       else
9688         if test "$aix_use_runtimelinking" = yes; then
9689           shared_flag='${wl}-G'
9690         else
9691           shared_flag='${wl}-bM:SRE'
9692         fi
9693       fi
9694     fi
9695
9696     # It seems that -bexpall does not export symbols beginning with
9697     # underscore (_), so it is better to generate a list of symbols to export.
9698     always_export_symbols_CXX=yes
9699     if test "$aix_use_runtimelinking" = yes; then
9700       # Warning - without using the other runtime loading flags (-brtl),
9701       # -berok will link without error, but may produce a broken library.
9702       allow_undefined_flag_CXX='-berok'
9703       # Determine the default libpath from the value encoded in an empty executable.
9704       cat >conftest.$ac_ext <<_ACEOF
9705 #line $LINENO "configure"
9706 /* confdefs.h.  */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h.  */
9711
9712 int
9713 main ()
9714 {
9715
9716   ;
9717   return 0;
9718 }
9719 _ACEOF
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9722   (eval $ac_link) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); } &&
9726          { ac_try='test -s conftest$ac_exeext'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; }; then
9732
9733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9734 }'`
9735 # Check for a 64-bit object if we didn't find anything.
9736 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; }
9737 }'`; fi
9738 else
9739   echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742 fi
9743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9744 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9745
9746       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9747
9748       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"
9749      else
9750       if test "$host_cpu" = ia64; then
9751         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9752         allow_undefined_flag_CXX="-z nodefs"
9753         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"
9754       else
9755         # Determine the default libpath from the value encoded in an empty executable.
9756         cat >conftest.$ac_ext <<_ACEOF
9757 #line $LINENO "configure"
9758 /* confdefs.h.  */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h.  */
9763
9764 int
9765 main ()
9766 {
9767
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774   (eval $ac_link) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); } &&
9778          { ac_try='test -s conftest$ac_exeext'
9779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780   (eval $ac_try) 2>&5
9781   ac_status=$?
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); }; }; then
9784
9785 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9786 }'`
9787 # Check for a 64-bit object if we didn't find anything.
9788 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; }
9789 }'`; fi
9790 else
9791   echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9793
9794 fi
9795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9797
9798         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9799         # Warning - without using the other run time loading flags,
9800         # -berok will link without error, but may produce a broken library.
9801         no_undefined_flag_CXX=' ${wl}-bernotok'
9802         allow_undefined_flag_CXX=' ${wl}-berok'
9803         # -bexpall does not export symbols beginning with underscore (_)
9804         always_export_symbols_CXX=yes
9805         # Exported symbols can be pulled into shared objects from archives
9806         whole_archive_flag_spec_CXX=' '
9807         archive_cmds_need_lc_CXX=yes
9808         # This is similar to how AIX traditionally builds it's shared libraries.
9809         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'
9810       fi
9811     fi
9812     ;;
9813   chorus*)
9814     case $cc_basename in
9815       *)
9816         # FIXME: insert proper C++ library support
9817         ld_shlibs_CXX=no
9818         ;;
9819     esac
9820     ;;
9821
9822   cygwin* | mingw* | pw32*)
9823     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9824     # as there is no search path for DLLs.
9825     hardcode_libdir_flag_spec_CXX='-L$libdir'
9826     allow_undefined_flag_CXX=unsupported
9827     always_export_symbols_CXX=no
9828     enable_shared_with_static_runtimes_CXX=yes
9829
9830     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9831       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'
9832       # If the export-symbols file already is a .def file (1st line
9833       # is EXPORTS), use it as is; otherwise, prepend...
9834       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9835         cp $export_symbols $output_objdir/$soname.def;
9836       else
9837         echo EXPORTS > $output_objdir/$soname.def;
9838         cat $export_symbols >> $output_objdir/$soname.def;
9839       fi~
9840       $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'
9841     else
9842       ld_shlibs_CXX=no
9843     fi
9844   ;;
9845
9846   darwin* | rhapsody*)
9847    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9848     archive_cmds_need_lc_CXX=no
9849     case "$host_os" in
9850     rhapsody* | darwin1.[012])
9851       allow_undefined_flag_CXX='-undefined suppress'
9852       ;;
9853     *) # Darwin 1.3 on
9854       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9855       ;;
9856     esac
9857         lt_int_apple_cc_single_mod=no
9858         output_verbose_link_cmd='echo'
9859         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9860           lt_int_apple_cc_single_mod=yes
9861         fi
9862         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9863           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9864         else
9865         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'
9866       fi
9867       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9868
9869     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9870       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9871         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}'
9872       else
9873         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}'
9874       fi
9875         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}'
9876     hardcode_direct_CXX=no
9877     hardcode_automatic_CXX=yes
9878     hardcode_shlibpath_var_CXX=unsupported
9879     whole_archive_flag_spec_CXX='-all_load $convenience'
9880     link_all_deplibs_CXX=yes
9881    fi
9882     ;;
9883
9884   dgux*)
9885     case $cc_basename in
9886       ec++)
9887         # FIXME: insert proper C++ library support
9888         ld_shlibs_CXX=no
9889         ;;
9890       ghcx)
9891         # Green Hills C++ Compiler
9892         # FIXME: insert proper C++ library support
9893         ld_shlibs_CXX=no
9894         ;;
9895       *)
9896         # FIXME: insert proper C++ library support
9897         ld_shlibs_CXX=no
9898         ;;
9899     esac
9900     ;;
9901   freebsd12*)
9902     # C++ shared libraries reported to be fairly broken before switch to ELF
9903     ld_shlibs_CXX=no
9904     ;;
9905   freebsd-elf*)
9906     archive_cmds_need_lc_CXX=no
9907     ;;
9908   freebsd*)
9909     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9910     # conventions
9911     ld_shlibs_CXX=yes
9912     ;;
9913   gnu*)
9914     ;;
9915   hpux9*)
9916     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9917     hardcode_libdir_separator_CXX=:
9918     export_dynamic_flag_spec_CXX='${wl}-E'
9919     hardcode_direct_CXX=yes
9920     hardcode_minus_L_CXX=yes # Not in the search PATH,
9921                                 # but as the default
9922                                 # location of the library.
9923
9924     case $cc_basename in
9925     CC)
9926       # FIXME: insert proper C++ library support
9927       ld_shlibs_CXX=no
9928       ;;
9929     aCC)
9930       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'
9931       # Commands to make compiler produce verbose output that lists
9932       # what "hidden" libraries, object files and flags are used when
9933       # linking a shared library.
9934       #
9935       # There doesn't appear to be a way to prevent this compiler from
9936       # explicitly linking system object files so we need to strip them
9937       # from the output so that they don't get included in the library
9938       # dependencies.
9939       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'
9940       ;;
9941     *)
9942       if test "$GXX" = yes; then
9943         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'
9944       else
9945         # FIXME: insert proper C++ library support
9946         ld_shlibs_CXX=no
9947       fi
9948       ;;
9949     esac
9950     ;;
9951   hpux10*|hpux11*)
9952     if test $with_gnu_ld = no; then
9953       case "$host_cpu" in
9954       hppa*64*)
9955         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9956         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9957         hardcode_libdir_separator_CXX=:
9958         ;;
9959       ia64*)
9960         hardcode_libdir_flag_spec_CXX='-L$libdir'
9961         ;;
9962       *)
9963         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9964         hardcode_libdir_separator_CXX=:
9965         export_dynamic_flag_spec_CXX='${wl}-E'
9966         ;;
9967       esac
9968     fi
9969     case "$host_cpu" in
9970     hppa*64*)
9971       hardcode_direct_CXX=no
9972       hardcode_shlibpath_var_CXX=no
9973       ;;
9974     ia64*)
9975       hardcode_direct_CXX=no
9976       hardcode_shlibpath_var_CXX=no
9977       hardcode_minus_L_CXX=yes # Not in the search PATH,
9978                                               # but as the default
9979                                               # location of the library.
9980       ;;
9981     *)
9982       hardcode_direct_CXX=yes
9983       hardcode_minus_L_CXX=yes # Not in the search PATH,
9984                                               # but as the default
9985                                               # location of the library.
9986       ;;
9987     esac
9988
9989     case $cc_basename in
9990       CC)
9991         # FIXME: insert proper C++ library support
9992         ld_shlibs_CXX=no
9993         ;;
9994       aCC)
9995         case "$host_cpu" in
9996         hppa*64*|ia64*)
9997           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9998           ;;
9999         *)
10000           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10001           ;;
10002         esac
10003         # Commands to make compiler produce verbose output that lists
10004         # what "hidden" libraries, object files and flags are used when
10005         # linking a shared library.
10006         #
10007         # There doesn't appear to be a way to prevent this compiler from
10008         # explicitly linking system object files so we need to strip them
10009         # from the output so that they don't get included in the library
10010         # dependencies.
10011         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'
10012         ;;
10013       *)
10014         if test "$GXX" = yes; then
10015           if test $with_gnu_ld = no; then
10016             case "$host_cpu" in
10017             ia64*|hppa*64*)
10018               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10019               ;;
10020             *)
10021               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'
10022               ;;
10023             esac
10024           fi
10025         else
10026           # FIXME: insert proper C++ library support
10027           ld_shlibs_CXX=no
10028         fi
10029         ;;
10030     esac
10031     ;;
10032   irix5* | irix6*)
10033     case $cc_basename in
10034       CC)
10035         # SGI C++
10036         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'
10037
10038         # Archives containing C++ object files must be created using
10039         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10040         # necessary to make sure instantiated templates are included
10041         # in the archive.
10042         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10043         ;;
10044       *)
10045         if test "$GXX" = yes; then
10046           if test "$with_gnu_ld" = no; then
10047             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'
10048           else
10049             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'
10050           fi
10051         fi
10052         link_all_deplibs_CXX=yes
10053         ;;
10054     esac
10055     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10056     hardcode_libdir_separator_CXX=:
10057     ;;
10058   linux*)
10059     case $cc_basename in
10060       KCC)
10061         # Kuck and Associates, Inc. (KAI) C++ Compiler
10062
10063         # KCC will only create a shared library if the output file
10064         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10065         # to its proper name (with version) after linking.
10066         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'
10067         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'
10068         # Commands to make compiler produce verbose output that lists
10069         # what "hidden" libraries, object files and flags are used when
10070         # linking a shared library.
10071         #
10072         # There doesn't appear to be a way to prevent this compiler from
10073         # explicitly linking system object files so we need to strip them
10074         # from the output so that they don't get included in the library
10075         # dependencies.
10076         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'
10077
10078         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10079         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10080
10081         # Archives containing C++ object files must be created using
10082         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10083         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10084         ;;
10085       icpc)
10086         # Intel C++
10087         with_gnu_ld=yes
10088         archive_cmds_need_lc_CXX=no
10089         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10090         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'
10091         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10092         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10093         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10094         ;;
10095       cxx)
10096         # Compaq C++
10097         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10098         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'
10099
10100         runpath_var=LD_RUN_PATH
10101         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10102         hardcode_libdir_separator_CXX=:
10103
10104         # Commands to make compiler produce verbose output that lists
10105         # what "hidden" libraries, object files and flags are used when
10106         # linking a shared library.
10107         #
10108         # There doesn't appear to be a way to prevent this compiler from
10109         # explicitly linking system object files so we need to strip them
10110         # from the output so that they don't get included in the library
10111         # dependencies.
10112         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'
10113         ;;
10114     esac
10115     ;;
10116   lynxos*)
10117     # FIXME: insert proper C++ library support
10118     ld_shlibs_CXX=no
10119     ;;
10120   m88k*)
10121     # FIXME: insert proper C++ library support
10122     ld_shlibs_CXX=no
10123     ;;
10124   mvs*)
10125     case $cc_basename in
10126       cxx)
10127         # FIXME: insert proper C++ library support
10128         ld_shlibs_CXX=no
10129         ;;
10130       *)
10131         # FIXME: insert proper C++ library support
10132         ld_shlibs_CXX=no
10133         ;;
10134     esac
10135     ;;
10136   netbsd*)
10137     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10138       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10139       wlarc=
10140       hardcode_libdir_flag_spec_CXX='-R$libdir'
10141       hardcode_direct_CXX=yes
10142       hardcode_shlibpath_var_CXX=no
10143     fi
10144     # Workaround some broken pre-1.5 toolchains
10145     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10146     ;;
10147   osf3*)
10148     case $cc_basename in
10149       KCC)
10150         # Kuck and Associates, Inc. (KAI) C++ Compiler
10151
10152         # KCC will only create a shared library if the output file
10153         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10154         # to its proper name (with version) after linking.
10155         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'
10156
10157         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10158         hardcode_libdir_separator_CXX=:
10159
10160         # Archives containing C++ object files must be created using
10161         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10162         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10163
10164         ;;
10165       RCC)
10166         # Rational C++ 2.4.1
10167         # FIXME: insert proper C++ library support
10168         ld_shlibs_CXX=no
10169         ;;
10170       cxx)
10171         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10172         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'
10173
10174         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10175         hardcode_libdir_separator_CXX=:
10176
10177         # Commands to make compiler produce verbose output that lists
10178         # what "hidden" libraries, object files and flags are used when
10179         # linking a shared library.
10180         #
10181         # There doesn't appear to be a way to prevent this compiler from
10182         # explicitly linking system object files so we need to strip them
10183         # from the output so that they don't get included in the library
10184         # dependencies.
10185         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'
10186         ;;
10187       *)
10188         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10189           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10190           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'
10191
10192           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10193           hardcode_libdir_separator_CXX=:
10194
10195           # Commands to make compiler produce verbose output that lists
10196           # what "hidden" libraries, object files and flags are used when
10197           # linking a shared library.
10198           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10199
10200         else
10201           # FIXME: insert proper C++ library support
10202           ld_shlibs_CXX=no
10203         fi
10204         ;;
10205     esac
10206     ;;
10207   osf4* | osf5*)
10208     case $cc_basename in
10209       KCC)
10210         # Kuck and Associates, Inc. (KAI) C++ Compiler
10211
10212         # KCC will only create a shared library if the output file
10213         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10214         # to its proper name (with version) after linking.
10215         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'
10216
10217         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10218         hardcode_libdir_separator_CXX=:
10219
10220         # Archives containing C++ object files must be created using
10221         # the KAI C++ compiler.
10222         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10223         ;;
10224       RCC)
10225         # Rational C++ 2.4.1
10226         # FIXME: insert proper C++ library support
10227         ld_shlibs_CXX=no
10228         ;;
10229       cxx)
10230         allow_undefined_flag_CXX=' -expect_unresolved \*'
10231         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'
10232         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10233           echo "-hidden">> $lib.exp~
10234           $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~
10235           $rm $lib.exp'
10236
10237         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10238         hardcode_libdir_separator_CXX=:
10239
10240         # Commands to make compiler produce verbose output that lists
10241         # what "hidden" libraries, object files and flags are used when
10242         # linking a shared library.
10243         #
10244         # There doesn't appear to be a way to prevent this compiler from
10245         # explicitly linking system object files so we need to strip them
10246         # from the output so that they don't get included in the library
10247         # dependencies.
10248         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'
10249         ;;
10250       *)
10251         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10252           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10253          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'
10254
10255           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10256           hardcode_libdir_separator_CXX=:
10257
10258           # Commands to make compiler produce verbose output that lists
10259           # what "hidden" libraries, object files and flags are used when
10260           # linking a shared library.
10261           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10262
10263         else
10264           # FIXME: insert proper C++ library support
10265           ld_shlibs_CXX=no
10266         fi
10267         ;;
10268     esac
10269     ;;
10270   psos*)
10271     # FIXME: insert proper C++ library support
10272     ld_shlibs_CXX=no
10273     ;;
10274   sco*)
10275     archive_cmds_need_lc_CXX=no
10276     case $cc_basename in
10277       CC)
10278         # FIXME: insert proper C++ library support
10279         ld_shlibs_CXX=no
10280         ;;
10281       *)
10282         # FIXME: insert proper C++ library support
10283         ld_shlibs_CXX=no
10284         ;;
10285     esac
10286     ;;
10287   sunos4*)
10288     case $cc_basename in
10289       CC)
10290         # Sun C++ 4.x
10291         # FIXME: insert proper C++ library support
10292         ld_shlibs_CXX=no
10293         ;;
10294       lcc)
10295         # Lucid
10296         # FIXME: insert proper C++ library support
10297         ld_shlibs_CXX=no
10298         ;;
10299       *)
10300         # FIXME: insert proper C++ library support
10301         ld_shlibs_CXX=no
10302         ;;
10303     esac
10304     ;;
10305   solaris*)
10306     case $cc_basename in
10307       CC)
10308         # Sun C++ 4.2, 5.x and Centerline C++
10309         no_undefined_flag_CXX=' -zdefs'
10310         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10311         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10312         $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'
10313
10314         hardcode_libdir_flag_spec_CXX='-R$libdir'
10315         hardcode_shlibpath_var_CXX=no
10316         case $host_os in
10317           solaris2.0-5 | solaris2.0-5.*) ;;
10318           *)
10319             # The C++ compiler is used as linker so we must use $wl
10320             # flag to pass the commands to the underlying system
10321             # linker.
10322             # Supported since Solaris 2.6 (maybe 2.5.1?)
10323             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10324             ;;
10325         esac
10326         link_all_deplibs_CXX=yes
10327
10328         # Commands to make compiler produce verbose output that lists
10329         # what "hidden" libraries, object files and flags are used when
10330         # linking a shared library.
10331         #
10332         # There doesn't appear to be a way to prevent this compiler from
10333         # explicitly linking system object files so we need to strip them
10334         # from the output so that they don't get included in the library
10335         # dependencies.
10336         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'
10337
10338         # Archives containing C++ object files must be created using
10339         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10340         # necessary to make sure instantiated templates are included
10341         # in the archive.
10342         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10343         ;;
10344       gcx)
10345         # Green Hills C++ Compiler
10346         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10347
10348         # The C++ compiler must be used to create the archive.
10349         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10350         ;;
10351       *)
10352         # GNU C++ compiler with Solaris linker
10353         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10354           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10355           if $CC --version | grep -v '^2\.7' > /dev/null; then
10356             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10357             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10358                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10359
10360             # Commands to make compiler produce verbose output that lists
10361             # what "hidden" libraries, object files and flags are used when
10362             # linking a shared library.
10363             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10364           else
10365             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10366             # platform.
10367             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10368             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10369                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10370
10371             # Commands to make compiler produce verbose output that lists
10372             # what "hidden" libraries, object files and flags are used when
10373             # linking a shared library.
10374             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10375           fi
10376
10377           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10378         fi
10379         ;;
10380     esac
10381     ;;
10382   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10383     archive_cmds_need_lc_CXX=no
10384     ;;
10385   tandem*)
10386     case $cc_basename in
10387       NCC)
10388         # NonStop-UX NCC 3.20
10389         # FIXME: insert proper C++ library support
10390         ld_shlibs_CXX=no
10391         ;;
10392       *)
10393         # FIXME: insert proper C++ library support
10394         ld_shlibs_CXX=no
10395         ;;
10396     esac
10397     ;;
10398   vxworks*)
10399     # FIXME: insert proper C++ library support
10400     ld_shlibs_CXX=no
10401     ;;
10402   *)
10403     # FIXME: insert proper C++ library support
10404     ld_shlibs_CXX=no
10405     ;;
10406 esac
10407 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10408 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10409 test "$ld_shlibs_CXX" = no && can_build_shared=no
10410
10411 GCC_CXX="$GXX"
10412 LD_CXX="$LD"
10413
10414 ## CAVEAT EMPTOR:
10415 ## There is no encapsulation within the following macros, do not change
10416 ## the running order or otherwise move them around unless you know exactly
10417 ## what you are doing...
10418
10419 cat > conftest.$ac_ext <<EOF
10420 class Foo
10421 {
10422 public:
10423   Foo (void) { a = 0; }
10424 private:
10425   int a;
10426 };
10427 EOF
10428
10429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430   (eval $ac_compile) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; then
10434   # Parse the compiler output and extract the necessary
10435   # objects, libraries and library flags.
10436
10437   # Sentinel used to keep track of whether or not we are before
10438   # the conftest object file.
10439   pre_test_object_deps_done=no
10440
10441   # The `*' in the case matches for architectures that use `case' in
10442   # $output_verbose_cmd can trigger glob expansion during the loop
10443   # eval without this substitution.
10444   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10445
10446   for p in `eval $output_verbose_link_cmd`; do
10447     case $p in
10448
10449     -L* | -R* | -l*)
10450        # Some compilers place space between "-{L,R}" and the path.
10451        # Remove the space.
10452        if test $p = "-L" \
10453           || test $p = "-R"; then
10454          prev=$p
10455          continue
10456        else
10457          prev=
10458        fi
10459
10460        if test "$pre_test_object_deps_done" = no; then
10461          case $p in
10462          -L* | -R*)
10463            # Internal compiler library paths should come after those
10464            # provided the user.  The postdeps already come after the
10465            # user supplied libs so there is no need to process them.
10466            if test -z "$compiler_lib_search_path_CXX"; then
10467              compiler_lib_search_path_CXX="${prev}${p}"
10468            else
10469              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10470            fi
10471            ;;
10472          # The "-l" case would never come before the object being
10473          # linked, so don't bother handling this case.
10474          esac
10475        else
10476          if test -z "$postdeps_CXX"; then
10477            postdeps_CXX="${prev}${p}"
10478          else
10479            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10480          fi
10481        fi
10482        ;;
10483
10484     *.$objext)
10485        # This assumes that the test object file only shows up
10486        # once in the compiler output.
10487        if test "$p" = "conftest.$objext"; then
10488          pre_test_object_deps_done=yes
10489          continue
10490        fi
10491
10492        if test "$pre_test_object_deps_done" = no; then
10493          if test -z "$predep_objects_CXX"; then
10494            predep_objects_CXX="$p"
10495          else
10496            predep_objects_CXX="$predep_objects_CXX $p"
10497          fi
10498        else
10499          if test -z "$postdep_objects_CXX"; then
10500            postdep_objects_CXX="$p"
10501          else
10502            postdep_objects_CXX="$postdep_objects_CXX $p"
10503          fi
10504        fi
10505        ;;
10506
10507     *) ;; # Ignore the rest.
10508
10509     esac
10510   done
10511
10512   # Clean up.
10513   rm -f a.out a.exe
10514 else
10515   echo "libtool.m4: error: problem compiling CXX test program"
10516 fi
10517
10518 $rm -f confest.$objext
10519
10520 case " $postdeps_CXX " in
10521 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10522 esac
10523
10524 lt_prog_compiler_wl_CXX=
10525 lt_prog_compiler_pic_CXX=
10526 lt_prog_compiler_static_CXX=
10527
10528 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10530
10531   # C++ specific cases for pic, static, wl, etc.
10532   if test "$GXX" = yes; then
10533     lt_prog_compiler_wl_CXX='-Wl,'
10534     lt_prog_compiler_static_CXX='-static'
10535
10536     case $host_os in
10537     aix*)
10538       # All AIX code is PIC.
10539       if test "$host_cpu" = ia64; then
10540         # AIX 5 now supports IA64 processor
10541         lt_prog_compiler_static_CXX='-Bstatic'
10542       fi
10543       ;;
10544     amigaos*)
10545       # FIXME: we need at least 68020 code to build shared libraries, but
10546       # adding the `-m68020' flag to GCC prevents building anything better,
10547       # like `-m68040'.
10548       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10549       ;;
10550     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10551       # PIC is the default for these OSes.
10552       ;;
10553     mingw* | os2* | pw32*)
10554       # This hack is so that the source file can tell whether it is being
10555       # built for inclusion in a dll (and should export symbols for example).
10556       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10557       ;;
10558     darwin* | rhapsody*)
10559       # PIC is the default on this platform
10560       # Common symbols not allowed in MH_DYLIB files
10561       lt_prog_compiler_pic_CXX='-fno-common'
10562       ;;
10563     *djgpp*)
10564       # DJGPP does not support shared libraries at all
10565       lt_prog_compiler_pic_CXX=
10566       ;;
10567     sysv4*MP*)
10568       if test -d /usr/nec; then
10569         lt_prog_compiler_pic_CXX=-Kconform_pic
10570       fi
10571       ;;
10572     hpux*)
10573       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10574       # not for PA HP-UX.
10575       case "$host_cpu" in
10576       hppa*64*|ia64*)
10577         ;;
10578       *)
10579         lt_prog_compiler_pic_CXX='-fPIC'
10580         ;;
10581       esac
10582       ;;
10583     *)
10584       lt_prog_compiler_pic_CXX='-fPIC'
10585       ;;
10586     esac
10587   else
10588     case $host_os in
10589       aix4* | aix5*)
10590         # All AIX code is PIC.
10591         if test "$host_cpu" = ia64; then
10592           # AIX 5 now supports IA64 processor
10593           lt_prog_compiler_static_CXX='-Bstatic'
10594         else
10595           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10596         fi
10597         ;;
10598       chorus*)
10599         case $cc_basename in
10600         cxch68)
10601           # Green Hills C++ Compiler
10602           # _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"
10603           ;;
10604         esac
10605         ;;
10606       dgux*)
10607         case $cc_basename in
10608           ec++)
10609             lt_prog_compiler_pic_CXX='-KPIC'
10610             ;;
10611           ghcx)
10612             # Green Hills C++ Compiler
10613             lt_prog_compiler_pic_CXX='-pic'
10614             ;;
10615           *)
10616             ;;
10617         esac
10618         ;;
10619       freebsd*)
10620         # FreeBSD uses GNU C++
10621         ;;
10622       hpux9* | hpux10* | hpux11*)
10623         case $cc_basename in
10624           CC)
10625             lt_prog_compiler_wl_CXX='-Wl,'
10626             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10627             if test "$host_cpu" != ia64; then
10628               lt_prog_compiler_pic_CXX='+Z'
10629             fi
10630             ;;
10631           aCC)
10632             lt_prog_compiler_wl_CXX='-Wl,'
10633             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10634             case "$host_cpu" in
10635             hppa*64*|ia64*)
10636               # +Z the default
10637               ;;
10638             *)
10639               lt_prog_compiler_pic_CXX='+Z'
10640               ;;
10641             esac
10642             ;;
10643           *)
10644             ;;
10645         esac
10646         ;;
10647       irix5* | irix6* | nonstopux*)
10648         case $cc_basename in
10649           CC)
10650             lt_prog_compiler_wl_CXX='-Wl,'
10651             lt_prog_compiler_static_CXX='-non_shared'
10652             # CC pic flag -KPIC is the default.
10653             ;;
10654           *)
10655             ;;
10656         esac
10657         ;;
10658       linux*)
10659         case $cc_basename in
10660           KCC)
10661             # KAI C++ Compiler
10662             lt_prog_compiler_wl_CXX='--backend -Wl,'
10663             lt_prog_compiler_pic_CXX='-fPIC'
10664             ;;
10665           icpc)
10666             # Intel C++
10667             lt_prog_compiler_wl_CXX='-Wl,'
10668             lt_prog_compiler_pic_CXX='-KPIC'
10669             lt_prog_compiler_static_CXX='-static'
10670             ;;
10671           cxx)
10672             # Compaq C++
10673             # Make sure the PIC flag is empty.  It appears that all Alpha
10674             # Linux and Compaq Tru64 Unix objects are PIC.
10675             lt_prog_compiler_pic_CXX=
10676             lt_prog_compiler_static_CXX='-non_shared'
10677             ;;
10678           *)
10679             ;;
10680         esac
10681         ;;
10682       lynxos*)
10683         ;;
10684       m88k*)
10685         ;;
10686       mvs*)
10687         case $cc_basename in
10688           cxx)
10689             lt_prog_compiler_pic_CXX='-W c,exportall'
10690             ;;
10691           *)
10692             ;;
10693         esac
10694         ;;
10695       netbsd*)
10696         ;;
10697       osf3* | osf4* | osf5*)
10698         case $cc_basename in
10699           KCC)
10700             lt_prog_compiler_wl_CXX='--backend -Wl,'
10701             ;;
10702           RCC)
10703             # Rational C++ 2.4.1
10704             lt_prog_compiler_pic_CXX='-pic'
10705             ;;
10706           cxx)
10707             # Digital/Compaq C++
10708             lt_prog_compiler_wl_CXX='-Wl,'
10709             # Make sure the PIC flag is empty.  It appears that all Alpha
10710             # Linux and Compaq Tru64 Unix objects are PIC.
10711             lt_prog_compiler_pic_CXX=
10712             lt_prog_compiler_static_CXX='-non_shared'
10713             ;;
10714           *)
10715             ;;
10716         esac
10717         ;;
10718       psos*)
10719         ;;
10720       sco*)
10721         case $cc_basename in
10722           CC)
10723             lt_prog_compiler_pic_CXX='-fPIC'
10724             ;;
10725           *)
10726             ;;
10727         esac
10728         ;;
10729       solaris*)
10730         case $cc_basename in
10731           CC)
10732             # Sun C++ 4.2, 5.x and Centerline C++
10733             lt_prog_compiler_pic_CXX='-KPIC'
10734             lt_prog_compiler_static_CXX='-Bstatic'
10735             lt_prog_compiler_wl_CXX='-Qoption ld '
10736             ;;
10737           gcx)
10738             # Green Hills C++ Compiler
10739             lt_prog_compiler_pic_CXX='-PIC'
10740             ;;
10741           *)
10742             ;;
10743         esac
10744         ;;
10745       sunos4*)
10746         case $cc_basename in
10747           CC)
10748             # Sun C++ 4.x
10749             lt_prog_compiler_pic_CXX='-pic'
10750             lt_prog_compiler_static_CXX='-Bstatic'
10751             ;;
10752           lcc)
10753             # Lucid
10754             lt_prog_compiler_pic_CXX='-pic'
10755             ;;
10756           *)
10757             ;;
10758         esac
10759         ;;
10760       tandem*)
10761         case $cc_basename in
10762           NCC)
10763             # NonStop-UX NCC 3.20
10764             lt_prog_compiler_pic_CXX='-KPIC'
10765             ;;
10766           *)
10767             ;;
10768         esac
10769         ;;
10770       unixware*)
10771         ;;
10772       vxworks*)
10773         ;;
10774       *)
10775         lt_prog_compiler_can_build_shared_CXX=no
10776         ;;
10777     esac
10778   fi
10779
10780 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10781 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10782
10783 #
10784 # Check to make sure the PIC flag actually works.
10785 #
10786 if test -n "$lt_prog_compiler_pic_CXX"; then
10787   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10788 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10789 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   lt_prog_compiler_pic_works_CXX=no
10793   ac_outfile=conftest.$ac_objext
10794    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10795    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10796    # Insert the option either (1) after the last *FLAGS variable, or
10797    # (2) before a word containing "conftest.", or (3) at the end.
10798    # Note that $ac_compile itself does not contain backslashes and begins
10799    # with a dollar sign (not a hyphen), so the echo should work correctly.
10800    # The option is referenced via a variable to avoid confusing sed.
10801    lt_compile=`echo "$ac_compile" | $SED \
10802    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10804    -e 's:$: $lt_compiler_flag:'`
10805    (eval echo "\"\$as_me:10805: $lt_compile\"" >&5)
10806    (eval "$lt_compile" 2>conftest.err)
10807    ac_status=$?
10808    cat conftest.err >&5
10809    echo "$as_me:10809: \$? = $ac_status" >&5
10810    if (exit $ac_status) && test -s "$ac_outfile"; then
10811      # The compiler can only warn and ignore the option if not recognized
10812      # So say no if there are warnings
10813      if test ! -s conftest.err; then
10814        lt_prog_compiler_pic_works_CXX=yes
10815      fi
10816    fi
10817    $rm conftest*
10818
10819 fi
10820 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10821 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10822
10823 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10824     case $lt_prog_compiler_pic_CXX in
10825      "" | " "*) ;;
10826      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10827      esac
10828 else
10829     lt_prog_compiler_pic_CXX=
10830      lt_prog_compiler_can_build_shared_CXX=no
10831 fi
10832
10833 fi
10834 case "$host_os" in
10835   # For platforms which do not support PIC, -DPIC is meaningless:
10836   *djgpp*)
10837     lt_prog_compiler_pic_CXX=
10838     ;;
10839   *)
10840     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10841     ;;
10842 esac
10843
10844 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10845 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10846 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10847   echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849   lt_cv_prog_compiler_c_o_CXX=no
10850    $rm -r conftest 2>/dev/null
10851    mkdir conftest
10852    cd conftest
10853    mkdir out
10854    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10855
10856    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10857    # that will create temporary files in the current directory regardless of
10858    # the output directory.  Thus, making CWD read-only will cause this test
10859    # to fail, enabling locking or at least warning the user not to do parallel
10860    # builds.
10861    chmod -w .
10862
10863    lt_compiler_flag="-o out/conftest2.$ac_objext"
10864    # Insert the option either (1) after the last *FLAGS variable, or
10865    # (2) before a word containing "conftest.", or (3) at the end.
10866    # Note that $ac_compile itself does not contain backslashes and begins
10867    # with a dollar sign (not a hyphen), so the echo should work correctly.
10868    lt_compile=`echo "$ac_compile" | $SED \
10869    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10870    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10871    -e 's:$: $lt_compiler_flag:'`
10872    (eval echo "\"\$as_me:10872: $lt_compile\"" >&5)
10873    (eval "$lt_compile" 2>out/conftest.err)
10874    ac_status=$?
10875    cat out/conftest.err >&5
10876    echo "$as_me:10876: \$? = $ac_status" >&5
10877    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10878    then
10879      # The compiler can only warn and ignore the option if not recognized
10880      # So say no if there are warnings
10881      if test ! -s out/conftest.err; then
10882        lt_cv_prog_compiler_c_o_CXX=yes
10883      fi
10884    fi
10885    chmod u+w .
10886    $rm conftest* out/*
10887    rmdir out
10888    cd ..
10889    rmdir conftest
10890    $rm conftest*
10891
10892 fi
10893 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10895
10896
10897 hard_links="nottested"
10898 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10899   # do not overwrite the value of need_locks provided by the user
10900   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10901 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10902   hard_links=yes
10903   $rm conftest*
10904   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10905   touch conftest.a
10906   ln conftest.a conftest.b 2>&5 || hard_links=no
10907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10908   echo "$as_me:$LINENO: result: $hard_links" >&5
10909 echo "${ECHO_T}$hard_links" >&6
10910   if test "$hard_links" = no; then
10911     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10912 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10913     need_locks=warn
10914   fi
10915 else
10916   need_locks=no
10917 fi
10918
10919 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10921
10922   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10923   case $host_os in
10924   aix4* | aix5*)
10925     # If we're using GNU nm, then we don't want the "-C" option.
10926     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10927     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10928       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'
10929     else
10930       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'
10931     fi
10932     ;;
10933   pw32*)
10934     export_symbols_cmds_CXX="$ltdll_cmds"
10935   ;;
10936   cygwin* | mingw*)
10937     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10938   ;;
10939   *)
10940     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10941   ;;
10942   esac
10943
10944 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10945 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10946 test "$ld_shlibs_CXX" = no && can_build_shared=no
10947
10948 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10949 if test "$GCC" = yes; then
10950   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10951 fi
10952
10953 #
10954 # Do we need to explicitly link libc?
10955 #
10956 case "x$archive_cmds_need_lc_CXX" in
10957 x|xyes)
10958   # Assume -lc should be added
10959   archive_cmds_need_lc_CXX=yes
10960
10961   if test "$enable_shared" = yes && test "$GCC" = yes; then
10962     case $archive_cmds_CXX in
10963     *'~'*)
10964       # FIXME: we may have to deal with multi-command sequences.
10965       ;;
10966     '$CC '*)
10967       # Test whether the compiler implicitly links with -lc since on some
10968       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10969       # to ld, don't add -lc before -lgcc.
10970       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10971 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10972       $rm conftest*
10973       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10974
10975       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10976   (eval $ac_compile) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); } 2>conftest.err; then
10980         soname=conftest
10981         lib=conftest
10982         libobjs=conftest.$ac_objext
10983         deplibs=
10984         wl=$lt_prog_compiler_wl_CXX
10985         compiler_flags=-v
10986         linker_flags=-v
10987         verstring=
10988         output_objdir=.
10989         libname=conftest
10990         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10991         allow_undefined_flag_CXX=
10992         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10993   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); }
10997         then
10998           archive_cmds_need_lc_CXX=no
10999         else
11000           archive_cmds_need_lc_CXX=yes
11001         fi
11002         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11003       else
11004         cat conftest.err 1>&5
11005       fi
11006       $rm conftest*
11007       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11008 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11009       ;;
11010     esac
11011   fi
11012   ;;
11013 esac
11014
11015 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11016 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11017 hardcode_action_CXX=
11018 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11019    test -n "$runpath_var CXX" || \
11020    test "X$hardcode_automatic_CXX"="Xyes" ; then
11021
11022   # We can hardcode non-existant directories.
11023   if test "$hardcode_direct_CXX" != no &&
11024      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11025      # have to relink, otherwise we might link with an installed library
11026      # when we should be linking with a yet-to-be-installed one
11027      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11028      test "$hardcode_minus_L_CXX" != no; then
11029     # Linking always hardcodes the temporary library directory.
11030     hardcode_action_CXX=relink
11031   else
11032     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11033     hardcode_action_CXX=immediate
11034   fi
11035 else
11036   # We cannot hardcode anything, or else we can only hardcode existing
11037   # directories.
11038   hardcode_action_CXX=unsupported
11039 fi
11040 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11041 echo "${ECHO_T}$hardcode_action_CXX" >&6
11042
11043 if test "$hardcode_action_CXX" = relink; then
11044   # Fast installation is not supported
11045   enable_fast_install=no
11046 elif test "$shlibpath_overrides_runpath" = yes ||
11047      test "$enable_shared" = no; then
11048   # Fast installation is not necessary
11049   enable_fast_install=needless
11050 fi
11051
11052 striplib=
11053 old_striplib=
11054 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11055 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11056 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11057   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11058   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11059   echo "$as_me:$LINENO: result: yes" >&5
11060 echo "${ECHO_T}yes" >&6
11061 else
11062 # FIXME - insert some real tests, host_os isn't really good enough
11063   case $host_os in
11064    darwin*)
11065        if test -n "$STRIP" ; then
11066          striplib="$STRIP -x"
11067          echo "$as_me:$LINENO: result: yes" >&5
11068 echo "${ECHO_T}yes" >&6
11069        else
11070   echo "$as_me:$LINENO: result: no" >&5
11071 echo "${ECHO_T}no" >&6
11072 fi
11073        ;;
11074    *)
11075   echo "$as_me:$LINENO: result: no" >&5
11076 echo "${ECHO_T}no" >&6
11077     ;;
11078   esac
11079 fi
11080
11081 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11082 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11083 library_names_spec=
11084 libname_spec='lib$name'
11085 soname_spec=
11086 shrext=".so"
11087 postinstall_cmds=
11088 postuninstall_cmds=
11089 finish_cmds=
11090 finish_eval=
11091 shlibpath_var=
11092 shlibpath_overrides_runpath=unknown
11093 version_type=none
11094 dynamic_linker="$host_os ld.so"
11095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11096 if test "$GCC" = yes; then
11097   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11098   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11099     # if the path contains ";" then we assume it to be the separator
11100     # otherwise default to the standard path separator (i.e. ":") - it is
11101     # assumed that no part of a normal pathname contains ";" but that should
11102     # okay in the real world where ";" in dirpaths is itself problematic.
11103     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11104   else
11105     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11106   fi
11107 else
11108   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11109 fi
11110 need_lib_prefix=unknown
11111 hardcode_into_libs=no
11112
11113 # when you set need_version to no, make sure it does not cause -set_version
11114 # flags to be left without arguments
11115 need_version=unknown
11116
11117 case $host_os in
11118 aix3*)
11119   version_type=linux
11120   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11121   shlibpath_var=LIBPATH
11122
11123   # AIX 3 has no versioning support, so we append a major version to the name.
11124   soname_spec='${libname}${release}${shared_ext}$major'
11125   ;;
11126
11127 aix4* | aix5*)
11128   version_type=linux
11129   need_lib_prefix=no
11130   need_version=no
11131   hardcode_into_libs=yes
11132   if test "$host_cpu" = ia64; then
11133     # AIX 5 supports IA64
11134     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11135     shlibpath_var=LD_LIBRARY_PATH
11136   else
11137     # With GCC up to 2.95.x, collect2 would create an import file
11138     # for dependence libraries.  The import file would start with
11139     # the line `#! .'.  This would cause the generated library to
11140     # depend on `.', always an invalid library.  This was fixed in
11141     # development snapshots of GCC prior to 3.0.
11142     case $host_os in
11143       aix4 | aix4.[01] | aix4.[01].*)
11144       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11145            echo ' yes '
11146            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11147         :
11148       else
11149         can_build_shared=no
11150       fi
11151       ;;
11152     esac
11153     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11154     # soname into executable. Probably we can add versioning support to
11155     # collect2, so additional links can be useful in future.
11156     if test "$aix_use_runtimelinking" = yes; then
11157       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11158       # instead of lib<name>.a to let people know that these are not
11159       # typical AIX shared libraries.
11160       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161     else
11162       # We preserve .a as extension for shared libraries through AIX4.2
11163       # and later when we are not doing run time linking.
11164       library_names_spec='${libname}${release}.a $libname.a'
11165       soname_spec='${libname}${release}${shared_ext}$major'
11166     fi
11167     shlibpath_var=LIBPATH
11168   fi
11169   ;;
11170
11171 amigaos*)
11172   library_names_spec='$libname.ixlibrary $libname.a'
11173   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11174   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'
11175   ;;
11176
11177 beos*)
11178   library_names_spec='${libname}${shared_ext}'
11179   dynamic_linker="$host_os ld.so"
11180   shlibpath_var=LIBRARY_PATH
11181   ;;
11182
11183 bsdi4*)
11184   version_type=linux
11185   need_version=no
11186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187   soname_spec='${libname}${release}${shared_ext}$major'
11188   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11189   shlibpath_var=LD_LIBRARY_PATH
11190   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11191   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11192   # the default ld.so.conf also contains /usr/contrib/lib and
11193   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11194   # libtool to hard-code these into programs
11195   ;;
11196
11197 cygwin* | mingw* | pw32*)
11198   version_type=windows
11199   shrext=".dll"
11200   need_version=no
11201   need_lib_prefix=no
11202
11203   case $GCC,$host_os in
11204   yes,cygwin* | yes,mingw* | yes,pw32*)
11205     library_names_spec='$libname.dll.a'
11206     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11207     postinstall_cmds='base_file=`basename \${file}`~
11208       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11209       dldir=$destdir/`dirname \$dlpath`~
11210       test -d \$dldir || mkdir -p \$dldir~
11211       $install_prog $dir/$dlname \$dldir/$dlname'
11212     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11213       dlpath=$dir/\$dldll~
11214        $rm \$dlpath'
11215     shlibpath_overrides_runpath=yes
11216
11217     case $host_os in
11218     cygwin*)
11219       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11220       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11221       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11222       ;;
11223     mingw*)
11224       # MinGW DLLs use traditional 'lib' prefix
11225       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11226       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11227       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11228         # It is most probably a Windows format PATH printed by
11229         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11230         # path with ; separators, and with drive letters. We can handle the
11231         # drive letters (cygwin fileutils understands them), so leave them,
11232         # especially as we might pass files found there to a mingw objdump,
11233         # which wouldn't understand a cygwinified path. Ahh.
11234         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11235       else
11236         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11237       fi
11238       ;;
11239     pw32*)
11240       # pw32 DLLs use 'pw' prefix rather than 'lib'
11241       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11242       ;;
11243     esac
11244     ;;
11245
11246   *)
11247     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11248     ;;
11249   esac
11250   dynamic_linker='Win32 ld.exe'
11251   # FIXME: first we should search . and the directory the executable is in
11252   shlibpath_var=PATH
11253   ;;
11254
11255 darwin* | rhapsody*)
11256   dynamic_linker="$host_os dyld"
11257   version_type=darwin
11258   need_lib_prefix=no
11259   need_version=no
11260   # FIXME: Relying on posixy $() will cause problems for
11261   #        cross-compilation, but unfortunately the echo tests do not
11262   #        yet detect zsh echo's removal of \ escapes.
11263   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11264   soname_spec='${libname}${release}${major}$shared_ext'
11265   shlibpath_overrides_runpath=yes
11266   shlibpath_var=DYLD_LIBRARY_PATH
11267   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11268   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11269   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11270   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"`
11271   fi
11272   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11273   ;;
11274
11275 dgux*)
11276   version_type=linux
11277   need_lib_prefix=no
11278   need_version=no
11279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11280   soname_spec='${libname}${release}${shared_ext}$major'
11281   shlibpath_var=LD_LIBRARY_PATH
11282   ;;
11283
11284 freebsd1*)
11285   dynamic_linker=no
11286   ;;
11287
11288 freebsd*)
11289   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11290   version_type=freebsd-$objformat
11291   case $version_type in
11292     freebsd-elf*)
11293       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11294       need_version=no
11295       need_lib_prefix=no
11296       ;;
11297     freebsd-*)
11298       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11299       need_version=yes
11300       ;;
11301   esac
11302   shlibpath_var=LD_LIBRARY_PATH
11303   case $host_os in
11304   freebsd2*)
11305     shlibpath_overrides_runpath=yes
11306     ;;
11307   freebsd3.01* | freebsdelf3.01*)
11308     shlibpath_overrides_runpath=yes
11309     hardcode_into_libs=yes
11310     ;;
11311   *) # from 3.2 on
11312     shlibpath_overrides_runpath=no
11313     hardcode_into_libs=yes
11314     ;;
11315   esac
11316   ;;
11317
11318 gnu*)
11319   version_type=linux
11320   need_lib_prefix=no
11321   need_version=no
11322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11323   soname_spec='${libname}${release}${shared_ext}$major'
11324   shlibpath_var=LD_LIBRARY_PATH
11325   hardcode_into_libs=yes
11326   ;;
11327
11328 hpux9* | hpux10* | hpux11*)
11329   # Give a soname corresponding to the major version so that dld.sl refuses to
11330   # link against other versions.
11331   version_type=sunos
11332   need_lib_prefix=no
11333   need_version=no
11334   case "$host_cpu" in
11335   ia64*)
11336     shrext='.so'
11337     hardcode_into_libs=yes
11338     dynamic_linker="$host_os dld.so"
11339     shlibpath_var=LD_LIBRARY_PATH
11340     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342     soname_spec='${libname}${release}${shared_ext}$major'
11343     if test "X$HPUX_IA64_MODE" = X32; then
11344       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11345     else
11346       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11347     fi
11348     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11349     ;;
11350    hppa*64*)
11351      shrext='.sl'
11352      hardcode_into_libs=yes
11353      dynamic_linker="$host_os dld.sl"
11354      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11355      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11356      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357      soname_spec='${libname}${release}${shared_ext}$major'
11358      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11359      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360      ;;
11361    *)
11362     shrext='.sl'
11363     dynamic_linker="$host_os dld.sl"
11364     shlibpath_var=SHLIB_PATH
11365     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367     soname_spec='${libname}${release}${shared_ext}$major'
11368     ;;
11369   esac
11370   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11371   postinstall_cmds='chmod 555 $lib'
11372   ;;
11373
11374 irix5* | irix6* | nonstopux*)
11375   case $host_os in
11376     nonstopux*) version_type=nonstopux ;;
11377     *)
11378         if test "$lt_cv_prog_gnu_ld" = yes; then
11379                 version_type=linux
11380         else
11381                 version_type=irix
11382         fi ;;
11383   esac
11384   need_lib_prefix=no
11385   need_version=no
11386   soname_spec='${libname}${release}${shared_ext}$major'
11387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11388   case $host_os in
11389   irix5* | nonstopux*)
11390     libsuff= shlibsuff=
11391     ;;
11392   *)
11393     case $LD in # libtool.m4 will add one of these switches to LD
11394     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11395       libsuff= shlibsuff= libmagic=32-bit;;
11396     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11397       libsuff=32 shlibsuff=N32 libmagic=N32;;
11398     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11399       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11400     *) libsuff= shlibsuff= libmagic=never-match;;
11401     esac
11402     ;;
11403   esac
11404   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11405   shlibpath_overrides_runpath=no
11406   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11407   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11408   hardcode_into_libs=yes
11409   ;;
11410
11411 # No shared lib support for Linux oldld, aout, or coff.
11412 linux*oldld* | linux*aout* | linux*coff*)
11413   dynamic_linker=no
11414   ;;
11415
11416 # This must be Linux ELF.
11417 linux*)
11418   version_type=linux
11419   need_lib_prefix=no
11420   need_version=no
11421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422   soname_spec='${libname}${release}${shared_ext}$major'
11423   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11424   shlibpath_var=LD_LIBRARY_PATH
11425   shlibpath_overrides_runpath=no
11426   # This implies no fast_install, which is unacceptable.
11427   # Some rework will be needed to allow for fast_install
11428   # before this can be enabled.
11429   hardcode_into_libs=yes
11430
11431   # We used to test for /lib/ld.so.1 and disable shared libraries on
11432   # powerpc, because MkLinux only supported shared libraries with the
11433   # GNU dynamic linker.  Since this was broken with cross compilers,
11434   # most powerpc-linux boxes support dynamic linking these days and
11435   # people can always --disable-shared, the test was removed, and we
11436   # assume the GNU/Linux dynamic linker is in use.
11437   dynamic_linker='GNU/Linux ld.so'
11438   ;;
11439
11440 netbsd*)
11441   version_type=sunos
11442   need_lib_prefix=no
11443   need_version=no
11444   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11446     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11447     dynamic_linker='NetBSD (a.out) ld.so'
11448   else
11449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11450     soname_spec='${libname}${release}${shared_ext}$major'
11451     dynamic_linker='NetBSD ld.elf_so'
11452   fi
11453   shlibpath_var=LD_LIBRARY_PATH
11454   shlibpath_overrides_runpath=yes
11455   hardcode_into_libs=yes
11456   ;;
11457
11458 newsos6)
11459   version_type=linux
11460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461   shlibpath_var=LD_LIBRARY_PATH
11462   shlibpath_overrides_runpath=yes
11463   ;;
11464
11465 nto-qnx)
11466   version_type=linux
11467   need_lib_prefix=no
11468   need_version=no
11469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470   soname_spec='${libname}${release}${shared_ext}$major'
11471   shlibpath_var=LD_LIBRARY_PATH
11472   shlibpath_overrides_runpath=yes
11473   ;;
11474
11475 openbsd*)
11476   version_type=sunos
11477   need_lib_prefix=no
11478   need_version=no
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11480   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11483     case $host_os in
11484       openbsd2.[89] | openbsd2.[89].*)
11485         shlibpath_overrides_runpath=no
11486         ;;
11487       *)
11488         shlibpath_overrides_runpath=yes
11489         ;;
11490       esac
11491   else
11492     shlibpath_overrides_runpath=yes
11493   fi
11494   ;;
11495
11496 os2*)
11497   libname_spec='$name'
11498   shrext=".dll"
11499   need_lib_prefix=no
11500   library_names_spec='$libname${shared_ext} $libname.a'
11501   dynamic_linker='OS/2 ld.exe'
11502   shlibpath_var=LIBPATH
11503   ;;
11504
11505 osf3* | osf4* | osf5*)
11506   version_type=osf
11507   need_lib_prefix=no
11508   need_version=no
11509   soname_spec='${libname}${release}${shared_ext}$major'
11510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511   shlibpath_var=LD_LIBRARY_PATH
11512   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11513   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11514   ;;
11515
11516 sco3.2v5*)
11517   version_type=osf
11518   soname_spec='${libname}${release}${shared_ext}$major'
11519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520   shlibpath_var=LD_LIBRARY_PATH
11521   ;;
11522
11523 solaris*)
11524   version_type=linux
11525   need_lib_prefix=no
11526   need_version=no
11527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528   soname_spec='${libname}${release}${shared_ext}$major'
11529   shlibpath_var=LD_LIBRARY_PATH
11530   shlibpath_overrides_runpath=yes
11531   hardcode_into_libs=yes
11532   # ldd complains unless libraries are executable
11533   postinstall_cmds='chmod +x $lib'
11534   ;;
11535
11536 sunos4*)
11537   version_type=sunos
11538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11539   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11540   shlibpath_var=LD_LIBRARY_PATH
11541   shlibpath_overrides_runpath=yes
11542   if test "$with_gnu_ld" = yes; then
11543     need_lib_prefix=no
11544   fi
11545   need_version=yes
11546   ;;
11547
11548 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11549   version_type=linux
11550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551   soname_spec='${libname}${release}${shared_ext}$major'
11552   shlibpath_var=LD_LIBRARY_PATH
11553   case $host_vendor in
11554     sni)
11555       shlibpath_overrides_runpath=no
11556       need_lib_prefix=no
11557       export_dynamic_flag_spec='${wl}-Blargedynsym'
11558       runpath_var=LD_RUN_PATH
11559       ;;
11560     siemens)
11561       need_lib_prefix=no
11562       ;;
11563     motorola)
11564       need_lib_prefix=no
11565       need_version=no
11566       shlibpath_overrides_runpath=no
11567       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11568       ;;
11569   esac
11570   ;;
11571
11572 sysv4*MP*)
11573   if test -d /usr/nec ;then
11574     version_type=linux
11575     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11576     soname_spec='$libname${shared_ext}.$major'
11577     shlibpath_var=LD_LIBRARY_PATH
11578   fi
11579   ;;
11580
11581 uts4*)
11582   version_type=linux
11583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584   soname_spec='${libname}${release}${shared_ext}$major'
11585   shlibpath_var=LD_LIBRARY_PATH
11586   ;;
11587
11588 *)
11589   dynamic_linker=no
11590   ;;
11591 esac
11592 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11593 echo "${ECHO_T}$dynamic_linker" >&6
11594 test "$dynamic_linker" = no && can_build_shared=no
11595
11596 if test "x$enable_dlopen" != xyes; then
11597   enable_dlopen=unknown
11598   enable_dlopen_self=unknown
11599   enable_dlopen_self_static=unknown
11600 else
11601   lt_cv_dlopen=no
11602   lt_cv_dlopen_libs=
11603
11604   case $host_os in
11605   beos*)
11606     lt_cv_dlopen="load_add_on"
11607     lt_cv_dlopen_libs=
11608     lt_cv_dlopen_self=yes
11609     ;;
11610
11611   mingw* | pw32*)
11612     lt_cv_dlopen="LoadLibrary"
11613     lt_cv_dlopen_libs=
11614    ;;
11615
11616   cygwin*)
11617     lt_cv_dlopen="dlopen"
11618     lt_cv_dlopen_libs=
11619    ;;
11620
11621   darwin*)
11622   # if libdl is installed we need to link against it
11623     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11624 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11625 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11626   echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628   ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-ldl  $LIBS"
11630 cat >conftest.$ac_ext <<_ACEOF
11631 #line $LINENO "configure"
11632 /* confdefs.h.  */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h.  */
11637
11638 /* Override any gcc2 internal prototype to avoid an error.  */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 /* We use char because int might match the return type of a gcc2
11643    builtin and then its argument prototype would still apply.  */
11644 char dlopen ();
11645 int
11646 main ()
11647 {
11648 dlopen ();
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655   (eval $ac_link) 2>&5
11656   ac_status=$?
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } &&
11659          { ac_try='test -s conftest$ac_exeext'
11660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661   (eval $ac_try) 2>&5
11662   ac_status=$?
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); }; }; then
11665   ac_cv_lib_dl_dlopen=yes
11666 else
11667   echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 ac_cv_lib_dl_dlopen=no
11671 fi
11672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11673 LIBS=$ac_check_lib_save_LIBS
11674 fi
11675 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11676 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11677 if test $ac_cv_lib_dl_dlopen = yes; then
11678   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11679 else
11680
11681     lt_cv_dlopen="dyld"
11682     lt_cv_dlopen_libs=
11683     lt_cv_dlopen_self=yes
11684
11685 fi
11686
11687    ;;
11688
11689   *)
11690     echo "$as_me:$LINENO: checking for shl_load" >&5
11691 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11692 if test "${ac_cv_func_shl_load+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   cat >conftest.$ac_ext <<_ACEOF
11696 #line $LINENO "configure"
11697 /* confdefs.h.  */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h.  */
11702 /* System header to define __stub macros and hopefully few prototypes,
11703     which can conflict with char shl_load (); below.
11704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705     <limits.h> exists even on freestanding compilers.  */
11706 #ifdef __STDC__
11707 # include <limits.h>
11708 #else
11709 # include <assert.h>
11710 #endif
11711 /* Override any gcc2 internal prototype to avoid an error.  */
11712 #ifdef __cplusplus
11713 extern "C"
11714 {
11715 #endif
11716 /* We use char because int might match the return type of a gcc2
11717    builtin and then its argument prototype would still apply.  */
11718 char shl_load ();
11719 /* The GNU C library defines this for functions which it implements
11720     to always fail with ENOSYS.  Some functions are actually named
11721     something starting with __ and the normal name is an alias.  */
11722 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11723 choke me
11724 #else
11725 char (*f) () = shl_load;
11726 #endif
11727 #ifdef __cplusplus
11728 }
11729 #endif
11730
11731 int
11732 main ()
11733 {
11734 return f != shl_load;
11735   ;
11736   return 0;
11737 }
11738 _ACEOF
11739 rm -f conftest.$ac_objext conftest$ac_exeext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11741   (eval $ac_link) 2>&5
11742   ac_status=$?
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); } &&
11745          { ac_try='test -s conftest$ac_exeext'
11746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747   (eval $ac_try) 2>&5
11748   ac_status=$?
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; }; then
11751   ac_cv_func_shl_load=yes
11752 else
11753   echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756 ac_cv_func_shl_load=no
11757 fi
11758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11759 fi
11760 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11761 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11762 if test $ac_cv_func_shl_load = yes; then
11763   lt_cv_dlopen="shl_load"
11764 else
11765   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11768   echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770   ac_check_lib_save_LIBS=$LIBS
11771 LIBS="-ldld  $LIBS"
11772 cat >conftest.$ac_ext <<_ACEOF
11773 #line $LINENO "configure"
11774 /* confdefs.h.  */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h.  */
11779
11780 /* Override any gcc2 internal prototype to avoid an error.  */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 /* We use char because int might match the return type of a gcc2
11785    builtin and then its argument prototype would still apply.  */
11786 char shl_load ();
11787 int
11788 main ()
11789 {
11790 shl_load ();
11791   ;
11792   return 0;
11793 }
11794 _ACEOF
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797   (eval $ac_link) 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); } &&
11801          { ac_try='test -s conftest$ac_exeext'
11802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803   (eval $ac_try) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; }; then
11807   ac_cv_lib_dld_shl_load=yes
11808 else
11809   echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812 ac_cv_lib_dld_shl_load=no
11813 fi
11814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11815 LIBS=$ac_check_lib_save_LIBS
11816 fi
11817 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11818 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11819 if test $ac_cv_lib_dld_shl_load = yes; then
11820   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11821 else
11822   echo "$as_me:$LINENO: checking for dlopen" >&5
11823 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11824 if test "${ac_cv_func_dlopen+set}" = set; then
11825   echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827   cat >conftest.$ac_ext <<_ACEOF
11828 #line $LINENO "configure"
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834 /* System header to define __stub macros and hopefully few prototypes,
11835     which can conflict with char dlopen (); below.
11836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11837     <limits.h> exists even on freestanding compilers.  */
11838 #ifdef __STDC__
11839 # include <limits.h>
11840 #else
11841 # include <assert.h>
11842 #endif
11843 /* Override any gcc2 internal prototype to avoid an error.  */
11844 #ifdef __cplusplus
11845 extern "C"
11846 {
11847 #endif
11848 /* We use char because int might match the return type of a gcc2
11849    builtin and then its argument prototype would still apply.  */
11850 char dlopen ();
11851 /* The GNU C library defines this for functions which it implements
11852     to always fail with ENOSYS.  Some functions are actually named
11853     something starting with __ and the normal name is an alias.  */
11854 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11855 choke me
11856 #else
11857 char (*f) () = dlopen;
11858 #endif
11859 #ifdef __cplusplus
11860 }
11861 #endif
11862
11863 int
11864 main ()
11865 {
11866 return f != dlopen;
11867   ;
11868   return 0;
11869 }
11870 _ACEOF
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11873   (eval $ac_link) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); } &&
11877          { ac_try='test -s conftest$ac_exeext'
11878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879   (eval $ac_try) 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; }; then
11883   ac_cv_func_dlopen=yes
11884 else
11885   echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 ac_cv_func_dlopen=no
11889 fi
11890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11891 fi
11892 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11893 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11894 if test $ac_cv_func_dlopen = yes; then
11895   lt_cv_dlopen="dlopen"
11896 else
11897   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11900   echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902   ac_check_lib_save_LIBS=$LIBS
11903 LIBS="-ldl  $LIBS"
11904 cat >conftest.$ac_ext <<_ACEOF
11905 #line $LINENO "configure"
11906 /* confdefs.h.  */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h.  */
11911
11912 /* Override any gcc2 internal prototype to avoid an error.  */
11913 #ifdef __cplusplus
11914 extern "C"
11915 #endif
11916 /* We use char because int might match the return type of a gcc2
11917    builtin and then its argument prototype would still apply.  */
11918 char dlopen ();
11919 int
11920 main ()
11921 {
11922 dlopen ();
11923   ;
11924   return 0;
11925 }
11926 _ACEOF
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929   (eval $ac_link) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); } &&
11933          { ac_try='test -s conftest$ac_exeext'
11934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935   (eval $ac_try) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; }; then
11939   ac_cv_lib_dl_dlopen=yes
11940 else
11941   echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11943
11944 ac_cv_lib_dl_dlopen=no
11945 fi
11946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11947 LIBS=$ac_check_lib_save_LIBS
11948 fi
11949 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11951 if test $ac_cv_lib_dl_dlopen = yes; then
11952   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11953 else
11954   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11955 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11956 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11957   echo $ECHO_N "(cached) $ECHO_C" >&6
11958 else
11959   ac_check_lib_save_LIBS=$LIBS
11960 LIBS="-lsvld  $LIBS"
11961 cat >conftest.$ac_ext <<_ACEOF
11962 #line $LINENO "configure"
11963 /* confdefs.h.  */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h.  */
11968
11969 /* Override any gcc2 internal prototype to avoid an error.  */
11970 #ifdef __cplusplus
11971 extern "C"
11972 #endif
11973 /* We use char because int might match the return type of a gcc2
11974    builtin and then its argument prototype would still apply.  */
11975 char dlopen ();
11976 int
11977 main ()
11978 {
11979 dlopen ();
11980   ;
11981   return 0;
11982 }
11983 _ACEOF
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11986   (eval $ac_link) 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); } &&
11990          { ac_try='test -s conftest$ac_exeext'
11991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992   (eval $ac_try) 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); }; }; then
11996   ac_cv_lib_svld_dlopen=yes
11997 else
11998   echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 ac_cv_lib_svld_dlopen=no
12002 fi
12003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12005 fi
12006 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12007 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12008 if test $ac_cv_lib_svld_dlopen = yes; then
12009   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12010 else
12011   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12012 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12014   echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016   ac_check_lib_save_LIBS=$LIBS
12017 LIBS="-ldld  $LIBS"
12018 cat >conftest.$ac_ext <<_ACEOF
12019 #line $LINENO "configure"
12020 /* confdefs.h.  */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h.  */
12025
12026 /* Override any gcc2 internal prototype to avoid an error.  */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 /* We use char because int might match the return type of a gcc2
12031    builtin and then its argument prototype would still apply.  */
12032 char dld_link ();
12033 int
12034 main ()
12035 {
12036 dld_link ();
12037   ;
12038   return 0;
12039 }
12040 _ACEOF
12041 rm -f conftest.$ac_objext conftest$ac_exeext
12042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12043   (eval $ac_link) 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); } &&
12047          { ac_try='test -s conftest$ac_exeext'
12048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049   (eval $ac_try) 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; }; then
12053   ac_cv_lib_dld_dld_link=yes
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 ac_cv_lib_dld_dld_link=no
12059 fi
12060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12061 LIBS=$ac_check_lib_save_LIBS
12062 fi
12063 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12064 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12065 if test $ac_cv_lib_dld_dld_link = yes; then
12066   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12067 fi
12068
12069
12070 fi
12071
12072
12073 fi
12074
12075
12076 fi
12077
12078
12079 fi
12080
12081
12082 fi
12083
12084     ;;
12085   esac
12086
12087   if test "x$lt_cv_dlopen" != xno; then
12088     enable_dlopen=yes
12089   else
12090     enable_dlopen=no
12091   fi
12092
12093   case $lt_cv_dlopen in
12094   dlopen)
12095     save_CPPFLAGS="$CPPFLAGS"
12096     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12097
12098     save_LDFLAGS="$LDFLAGS"
12099     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12100
12101     save_LIBS="$LIBS"
12102     LIBS="$lt_cv_dlopen_libs $LIBS"
12103
12104     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12105 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12106 if test "${lt_cv_dlopen_self+set}" = set; then
12107   echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109           if test "$cross_compiling" = yes; then :
12110   lt_cv_dlopen_self=cross
12111 else
12112   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12113   lt_status=$lt_dlunknown
12114   cat > conftest.$ac_ext <<EOF
12115 #line 12115 "configure"
12116 #include "confdefs.h"
12117
12118 #if HAVE_DLFCN_H
12119 #include <dlfcn.h>
12120 #endif
12121
12122 #include <stdio.h>
12123
12124 #ifdef RTLD_GLOBAL
12125 #  define LT_DLGLOBAL           RTLD_GLOBAL
12126 #else
12127 #  ifdef DL_GLOBAL
12128 #    define LT_DLGLOBAL         DL_GLOBAL
12129 #  else
12130 #    define LT_DLGLOBAL         0
12131 #  endif
12132 #endif
12133
12134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12135    find out it does not work in some platform. */
12136 #ifndef LT_DLLAZY_OR_NOW
12137 #  ifdef RTLD_LAZY
12138 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12139 #  else
12140 #    ifdef DL_LAZY
12141 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12142 #    else
12143 #      ifdef RTLD_NOW
12144 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12145 #      else
12146 #        ifdef DL_NOW
12147 #          define LT_DLLAZY_OR_NOW      DL_NOW
12148 #        else
12149 #          define LT_DLLAZY_OR_NOW      0
12150 #        endif
12151 #      endif
12152 #    endif
12153 #  endif
12154 #endif
12155
12156 #ifdef __cplusplus
12157 extern "C" void exit (int);
12158 #endif
12159
12160 void fnord() { int i=42;}
12161 int main ()
12162 {
12163   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12164   int status = $lt_dlunknown;
12165
12166   if (self)
12167     {
12168       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12169       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12170       /* dlclose (self); */
12171     }
12172
12173     exit (status);
12174 }
12175 EOF
12176   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177   (eval $ac_link) 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12181     (./conftest; exit; ) 2>/dev/null
12182     lt_status=$?
12183     case x$lt_status in
12184       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12185       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12186       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12187     esac
12188   else :
12189     # compilation failed
12190     lt_cv_dlopen_self=no
12191   fi
12192 fi
12193 rm -fr conftest*
12194
12195
12196 fi
12197 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12198 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12199
12200     if test "x$lt_cv_dlopen_self" = xyes; then
12201       LDFLAGS="$LDFLAGS $link_static_flag"
12202       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12203 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12204 if test "${lt_cv_dlopen_self_static+set}" = set; then
12205   echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207           if test "$cross_compiling" = yes; then :
12208   lt_cv_dlopen_self_static=cross
12209 else
12210   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12211   lt_status=$lt_dlunknown
12212   cat > conftest.$ac_ext <<EOF
12213 #line 12213 "configure"
12214 #include "confdefs.h"
12215
12216 #if HAVE_DLFCN_H
12217 #include <dlfcn.h>
12218 #endif
12219
12220 #include <stdio.h>
12221
12222 #ifdef RTLD_GLOBAL
12223 #  define LT_DLGLOBAL           RTLD_GLOBAL
12224 #else
12225 #  ifdef DL_GLOBAL
12226 #    define LT_DLGLOBAL         DL_GLOBAL
12227 #  else
12228 #    define LT_DLGLOBAL         0
12229 #  endif
12230 #endif
12231
12232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12233    find out it does not work in some platform. */
12234 #ifndef LT_DLLAZY_OR_NOW
12235 #  ifdef RTLD_LAZY
12236 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12237 #  else
12238 #    ifdef DL_LAZY
12239 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12240 #    else
12241 #      ifdef RTLD_NOW
12242 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12243 #      else
12244 #        ifdef DL_NOW
12245 #          define LT_DLLAZY_OR_NOW      DL_NOW
12246 #        else
12247 #          define LT_DLLAZY_OR_NOW      0
12248 #        endif
12249 #      endif
12250 #    endif
12251 #  endif
12252 #endif
12253
12254 #ifdef __cplusplus
12255 extern "C" void exit (int);
12256 #endif
12257
12258 void fnord() { int i=42;}
12259 int main ()
12260 {
12261   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12262   int status = $lt_dlunknown;
12263
12264   if (self)
12265     {
12266       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12267       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12268       /* dlclose (self); */
12269     }
12270
12271     exit (status);
12272 }
12273 EOF
12274   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275   (eval $ac_link) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12279     (./conftest; exit; ) 2>/dev/null
12280     lt_status=$?
12281     case x$lt_status in
12282       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12283       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12284       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12285     esac
12286   else :
12287     # compilation failed
12288     lt_cv_dlopen_self_static=no
12289   fi
12290 fi
12291 rm -fr conftest*
12292
12293
12294 fi
12295 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12296 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12297     fi
12298
12299     CPPFLAGS="$save_CPPFLAGS"
12300     LDFLAGS="$save_LDFLAGS"
12301     LIBS="$save_LIBS"
12302     ;;
12303   esac
12304
12305   case $lt_cv_dlopen_self in
12306   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12307   *) enable_dlopen_self=unknown ;;
12308   esac
12309
12310   case $lt_cv_dlopen_self_static in
12311   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12312   *) enable_dlopen_self_static=unknown ;;
12313   esac
12314 fi
12315
12316
12317 # The else clause should only fire when bootstrapping the
12318 # libtool distribution, otherwise you forgot to ship ltmain.sh
12319 # with your package, and you will get complaints that there are
12320 # no rules to generate ltmain.sh.
12321 if test -f "$ltmain"; then
12322   # See if we are running on zsh, and set the options which allow our commands through
12323   # without removal of \ escapes.
12324   if test -n "${ZSH_VERSION+set}" ; then
12325     setopt NO_GLOB_SUBST
12326   fi
12327   # Now quote all the things that may contain metacharacters while being
12328   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12329   # variables and quote the copies for generation of the libtool script.
12330   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12331     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12332     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12333     deplibs_check_method reload_flag reload_cmds need_locks \
12334     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12335     lt_cv_sys_global_symbol_to_c_name_address \
12336     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12337     old_postinstall_cmds old_postuninstall_cmds \
12338     compiler_CXX \
12339     CC_CXX \
12340     LD_CXX \
12341     lt_prog_compiler_wl_CXX \
12342     lt_prog_compiler_pic_CXX \
12343     lt_prog_compiler_static_CXX \
12344     lt_prog_compiler_no_builtin_flag_CXX \
12345     export_dynamic_flag_spec_CXX \
12346     thread_safe_flag_spec_CXX \
12347     whole_archive_flag_spec_CXX \
12348     enable_shared_with_static_runtimes_CXX \
12349     old_archive_cmds_CXX \
12350     old_archive_from_new_cmds_CXX \
12351     predep_objects_CXX \
12352     postdep_objects_CXX \
12353     predeps_CXX \
12354     postdeps_CXX \
12355     compiler_lib_search_path_CXX \
12356     archive_cmds_CXX \
12357     archive_expsym_cmds_CXX \
12358     postinstall_cmds_CXX \
12359     postuninstall_cmds_CXX \
12360     old_archive_from_expsyms_cmds_CXX \
12361     allow_undefined_flag_CXX \
12362     no_undefined_flag_CXX \
12363     export_symbols_cmds_CXX \
12364     hardcode_libdir_flag_spec_CXX \
12365     hardcode_libdir_flag_spec_ld_CXX \
12366     hardcode_libdir_separator_CXX \
12367     hardcode_automatic_CXX \
12368     module_cmds_CXX \
12369     module_expsym_cmds_CXX \
12370     lt_cv_prog_compiler_c_o_CXX \
12371     exclude_expsyms_CXX \
12372     include_expsyms_CXX; do
12373
12374     case $var in
12375     old_archive_cmds_CXX | \
12376     old_archive_from_new_cmds_CXX | \
12377     archive_cmds_CXX | \
12378     archive_expsym_cmds_CXX | \
12379     module_cmds_CXX | \
12380     module_expsym_cmds_CXX | \
12381     old_archive_from_expsyms_cmds_CXX | \
12382     export_symbols_cmds_CXX | \
12383     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12384     postinstall_cmds | postuninstall_cmds | \
12385     old_postinstall_cmds | old_postuninstall_cmds | \
12386     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12387       # Double-quote double-evaled strings.
12388       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12389       ;;
12390     *)
12391       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12392       ;;
12393     esac
12394   done
12395
12396   case $lt_echo in
12397   *'\$0 --fallback-echo"')
12398     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12399     ;;
12400   esac
12401
12402 cfgfile="$ofile"
12403
12404   cat <<__EOF__ >> "$cfgfile"
12405 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12406
12407 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12408
12409 # Shell to use when invoking shell scripts.
12410 SHELL=$lt_SHELL
12411
12412 # Whether or not to build shared libraries.
12413 build_libtool_libs=$enable_shared
12414
12415 # Whether or not to build static libraries.
12416 build_old_libs=$enable_static
12417
12418 # Whether or not to add -lc for building shared libraries.
12419 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12420
12421 # Whether or not to disallow shared libs when runtime libs are static
12422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12423
12424 # Whether or not to optimize for fast installation.
12425 fast_install=$enable_fast_install
12426
12427 # The host system.
12428 host_alias=$host_alias
12429 host=$host
12430
12431 # An echo program that does not interpret backslashes.
12432 echo=$lt_echo
12433
12434 # The archiver.
12435 AR=$lt_AR
12436 AR_FLAGS=$lt_AR_FLAGS
12437
12438 # A C compiler.
12439 LTCC=$lt_LTCC
12440
12441 # A language-specific compiler.
12442 CC=$lt_compiler_CXX
12443
12444 # Is the compiler the GNU C compiler?
12445 with_gcc=$GCC_CXX
12446
12447 # An ERE matcher.
12448 EGREP=$lt_EGREP
12449
12450 # The linker used to build libraries.
12451 LD=$lt_LD_CXX
12452
12453 # Whether we need hard or soft links.
12454 LN_S=$lt_LN_S
12455
12456 # A BSD-compatible nm program.
12457 NM=$lt_NM
12458
12459 # A symbol stripping program
12460 STRIP=$STRIP
12461
12462 # Used to examine libraries when file_magic_cmd begins "file"
12463 MAGIC_CMD=$MAGIC_CMD
12464
12465 # Used on cygwin: DLL creation program.
12466 DLLTOOL="$DLLTOOL"
12467
12468 # Used on cygwin: object dumper.
12469 OBJDUMP="$OBJDUMP"
12470
12471 # Used on cygwin: assembler.
12472 AS="$AS"
12473
12474 # The name of the directory that contains temporary libtool files.
12475 objdir=$objdir
12476
12477 # How to create reloadable object files.
12478 reload_flag=$lt_reload_flag
12479 reload_cmds=$lt_reload_cmds
12480
12481 # How to pass a linker flag through the compiler.
12482 wl=$lt_lt_prog_compiler_wl_CXX
12483
12484 # Object file suffix (normally "o").
12485 objext="$ac_objext"
12486
12487 # Old archive suffix (normally "a").
12488 libext="$libext"
12489
12490 # Shared library suffix (normally ".so").
12491 shrext='$shrext'
12492
12493 # Executable file suffix (normally "").
12494 exeext="$exeext"
12495
12496 # Additional compiler flags for building library objects.
12497 pic_flag=$lt_lt_prog_compiler_pic_CXX
12498 pic_mode=$pic_mode
12499
12500 # What is the maximum length of a command?
12501 max_cmd_len=$lt_cv_sys_max_cmd_len
12502
12503 # Does compiler simultaneously support -c and -o options?
12504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12505
12506 # Must we lock files when doing compilation ?
12507 need_locks=$lt_need_locks
12508
12509 # Do we need the lib prefix for modules?
12510 need_lib_prefix=$need_lib_prefix
12511
12512 # Do we need a version for libraries?
12513 need_version=$need_version
12514
12515 # Whether dlopen is supported.
12516 dlopen_support=$enable_dlopen
12517
12518 # Whether dlopen of programs is supported.
12519 dlopen_self=$enable_dlopen_self
12520
12521 # Whether dlopen of statically linked programs is supported.
12522 dlopen_self_static=$enable_dlopen_self_static
12523
12524 # Compiler flag to prevent dynamic linking.
12525 link_static_flag=$lt_lt_prog_compiler_static_CXX
12526
12527 # Compiler flag to turn off builtin functions.
12528 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12529
12530 # Compiler flag to allow reflexive dlopens.
12531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12532
12533 # Compiler flag to generate shared objects directly from archives.
12534 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12535
12536 # Compiler flag to generate thread-safe objects.
12537 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12538
12539 # Library versioning type.
12540 version_type=$version_type
12541
12542 # Format of library name prefix.
12543 libname_spec=$lt_libname_spec
12544
12545 # List of archive names.  First name is the real one, the rest are links.
12546 # The last name is the one that the linker finds with -lNAME.
12547 library_names_spec=$lt_library_names_spec
12548
12549 # The coded name of the library, if different from the real name.
12550 soname_spec=$lt_soname_spec
12551
12552 # Commands used to build and install an old-style archive.
12553 RANLIB=$lt_RANLIB
12554 old_archive_cmds=$lt_old_archive_cmds_CXX
12555 old_postinstall_cmds=$lt_old_postinstall_cmds
12556 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12557
12558 # Create an old-style archive from a shared archive.
12559 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12560
12561 # Create a temporary old-style archive to link instead of a shared archive.
12562 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12563
12564 # Commands used to build and install a shared archive.
12565 archive_cmds=$lt_archive_cmds_CXX
12566 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12567 postinstall_cmds=$lt_postinstall_cmds
12568 postuninstall_cmds=$lt_postuninstall_cmds
12569
12570 # Commands used to build a loadable module (assumed same as above if empty)
12571 module_cmds=$lt_module_cmds_CXX
12572 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12573
12574 # Commands to strip libraries.
12575 old_striplib=$lt_old_striplib
12576 striplib=$lt_striplib
12577
12578 # Dependencies to place before the objects being linked to create a
12579 # shared library.
12580 predep_objects=$lt_predep_objects_CXX
12581
12582 # Dependencies to place after the objects being linked to create a
12583 # shared library.
12584 postdep_objects=$lt_postdep_objects_CXX
12585
12586 # Dependencies to place before the objects being linked to create a
12587 # shared library.
12588 predeps=$lt_predeps_CXX
12589
12590 # Dependencies to place after the objects being linked to create a
12591 # shared library.
12592 postdeps=$lt_postdeps_CXX
12593
12594 # The library search path used internally by the compiler when linking
12595 # a shared library.
12596 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12597
12598 # Method to check whether dependent libraries are shared objects.
12599 deplibs_check_method=$lt_deplibs_check_method
12600
12601 # Command to use when deplibs_check_method == file_magic.
12602 file_magic_cmd=$lt_file_magic_cmd
12603
12604 # Flag that allows shared libraries with undefined symbols to be built.
12605 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12606
12607 # Flag that forces no undefined symbols.
12608 no_undefined_flag=$lt_no_undefined_flag_CXX
12609
12610 # Commands used to finish a libtool library installation in a directory.
12611 finish_cmds=$lt_finish_cmds
12612
12613 # Same as above, but a single script fragment to be evaled but not shown.
12614 finish_eval=$lt_finish_eval
12615
12616 # Take the output of nm and produce a listing of raw symbols and C names.
12617 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12618
12619 # Transform the output of nm in a proper C declaration
12620 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12621
12622 # Transform the output of nm in a C name address pair
12623 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12624
12625 # This is the shared library runtime path variable.
12626 runpath_var=$runpath_var
12627
12628 # This is the shared library path variable.
12629 shlibpath_var=$shlibpath_var
12630
12631 # Is shlibpath searched before the hard-coded library search path?
12632 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12633
12634 # How to hardcode a shared library path into an executable.
12635 hardcode_action=$hardcode_action_CXX
12636
12637 # Whether we should hardcode library paths into libraries.
12638 hardcode_into_libs=$hardcode_into_libs
12639
12640 # Flag to hardcode \$libdir into a binary during linking.
12641 # This must work even if \$libdir does not exist.
12642 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12643
12644 # If ld is used when linking, flag to hardcode \$libdir into
12645 # a binary during linking. This must work even if \$libdir does
12646 # not exist.
12647 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12648
12649 # Whether we need a single -rpath flag with a separated argument.
12650 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12651
12652 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12653 # resulting binary.
12654 hardcode_direct=$hardcode_direct_CXX
12655
12656 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12657 # resulting binary.
12658 hardcode_minus_L=$hardcode_minus_L_CXX
12659
12660 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12661 # the resulting binary.
12662 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12663
12664 # Set to yes if building a shared library automatically hardcodes DIR into the library
12665 # and all subsequent libraries and executables linked against it.
12666 hardcode_automatic=$hardcode_automatic_CXX
12667
12668 # Variables whose values should be saved in libtool wrapper scripts and
12669 # restored at relink time.
12670 variables_saved_for_relink="$variables_saved_for_relink"
12671
12672 # Whether libtool must link a program against all its dependency libraries.
12673 link_all_deplibs=$link_all_deplibs_CXX
12674
12675 # Compile-time system search path for libraries
12676 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12677
12678 # Run-time system search path for libraries
12679 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12680
12681 # Fix the shell variable \$srcfile for the compiler.
12682 fix_srcfile_path="$fix_srcfile_path_CXX"
12683
12684 # Set to yes if exported symbols are required.
12685 always_export_symbols=$always_export_symbols_CXX
12686
12687 # The commands to list exported symbols.
12688 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12689
12690 # The commands to extract the exported symbol list from a shared archive.
12691 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12692
12693 # Symbols that should not be listed in the preloaded symbols.
12694 exclude_expsyms=$lt_exclude_expsyms_CXX
12695
12696 # Symbols that must always be exported.
12697 include_expsyms=$lt_include_expsyms_CXX
12698
12699 # ### END LIBTOOL TAG CONFIG: $tagname
12700
12701 __EOF__
12702
12703
12704 else
12705   # If there is no Makefile yet, we rely on a make rule to execute
12706   # `config.status --recheck' to rerun these tests and create the
12707   # libtool script then.
12708   test -f Makefile && make "$ltmain"
12709 fi
12710
12711
12712 ac_ext=c
12713 ac_cpp='$CPP $CPPFLAGS'
12714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12717
12718 CC=$lt_save_CC
12719 LDCXX=$LD
12720 LD=$lt_save_LD
12721 GCC=$lt_save_GCC
12722 with_gnu_ldcxx=$with_gnu_ld
12723 with_gnu_ld=$lt_save_with_gnu_ld
12724 lt_cv_path_LDCXX=$lt_cv_path_LD
12725 lt_cv_path_LD=$lt_save_path_LD
12726 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12727 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12728
12729         else
12730           tagname=""
12731         fi
12732         ;;
12733
12734       F77)
12735         if test -n "$F77" && test "X$F77" != "Xno"; then
12736
12737 ac_ext=f
12738 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12739 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12741
12742
12743 archive_cmds_need_lc_F77=no
12744 allow_undefined_flag_F77=
12745 always_export_symbols_F77=no
12746 archive_expsym_cmds_F77=
12747 export_dynamic_flag_spec_F77=
12748 hardcode_direct_F77=no
12749 hardcode_libdir_flag_spec_F77=
12750 hardcode_libdir_flag_spec_ld_F77=
12751 hardcode_libdir_separator_F77=
12752 hardcode_minus_L_F77=no
12753 hardcode_automatic_F77=no
12754 module_cmds_F77=
12755 module_expsym_cmds_F77=
12756 link_all_deplibs_F77=unknown
12757 old_archive_cmds_F77=$old_archive_cmds
12758 no_undefined_flag_F77=
12759 whole_archive_flag_spec_F77=
12760 enable_shared_with_static_runtimes_F77=no
12761
12762 # Source file extension for f77 test sources.
12763 ac_ext=f
12764
12765 # Object file extension for compiled f77 test sources.
12766 objext=o
12767 objext_F77=$objext
12768
12769 # Code to be used in simple compile tests
12770 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12771
12772 # Code to be used in simple link tests
12773 lt_simple_link_test_code="      program t\n      end\n"
12774
12775 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12776
12777 # If no C compiler was specified, use CC.
12778 LTCC=${LTCC-"$CC"}
12779
12780 # Allow CC to be a program name with arguments.
12781 compiler=$CC
12782
12783
12784 # Allow CC to be a program name with arguments.
12785 lt_save_CC="$CC"
12786 CC=${F77-"f77"}
12787 compiler=$CC
12788 compiler_F77=$CC
12789 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12790
12791 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12792 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12793 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12794 echo "${ECHO_T}$can_build_shared" >&6
12795
12796 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12797 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12798 test "$can_build_shared" = "no" && enable_shared=no
12799
12800 # On AIX, shared libraries and static libraries use the same namespace, and
12801 # are all built from PIC.
12802 case "$host_os" in
12803 aix3*)
12804   test "$enable_shared" = yes && enable_static=no
12805   if test -n "$RANLIB"; then
12806     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12807     postinstall_cmds='$RANLIB $lib'
12808   fi
12809   ;;
12810 aix4*)
12811   test "$enable_shared" = yes && enable_static=no
12812   ;;
12813 esac
12814 echo "$as_me:$LINENO: result: $enable_shared" >&5
12815 echo "${ECHO_T}$enable_shared" >&6
12816
12817 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12818 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12819 # Make sure either enable_shared or enable_static is yes.
12820 test "$enable_shared" = yes || enable_static=yes
12821 echo "$as_me:$LINENO: result: $enable_static" >&5
12822 echo "${ECHO_T}$enable_static" >&6
12823
12824 test "$ld_shlibs_F77" = no && can_build_shared=no
12825
12826 GCC_F77="$G77"
12827 LD_F77="$LD"
12828
12829 lt_prog_compiler_wl_F77=
12830 lt_prog_compiler_pic_F77=
12831 lt_prog_compiler_static_F77=
12832
12833 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12834 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12835
12836   if test "$GCC" = yes; then
12837     lt_prog_compiler_wl_F77='-Wl,'
12838     lt_prog_compiler_static_F77='-static'
12839
12840     case $host_os in
12841       aix*)
12842       # All AIX code is PIC.
12843       if test "$host_cpu" = ia64; then
12844         # AIX 5 now supports IA64 processor
12845         lt_prog_compiler_static_F77='-Bstatic'
12846       fi
12847       ;;
12848
12849     amigaos*)
12850       # FIXME: we need at least 68020 code to build shared libraries, but
12851       # adding the `-m68020' flag to GCC prevents building anything better,
12852       # like `-m68040'.
12853       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12854       ;;
12855
12856     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12857       # PIC is the default for these OSes.
12858       ;;
12859
12860     mingw* | pw32* | os2*)
12861       # This hack is so that the source file can tell whether it is being
12862       # built for inclusion in a dll (and should export symbols for example).
12863       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12864       ;;
12865
12866     darwin* | rhapsody*)
12867       # PIC is the default on this platform
12868       # Common symbols not allowed in MH_DYLIB files
12869       lt_prog_compiler_pic_F77='-fno-common'
12870       ;;
12871
12872     msdosdjgpp*)
12873       # Just because we use GCC doesn't mean we suddenly get shared libraries
12874       # on systems that don't support them.
12875       lt_prog_compiler_can_build_shared_F77=no
12876       enable_shared=no
12877       ;;
12878
12879     sysv4*MP*)
12880       if test -d /usr/nec; then
12881         lt_prog_compiler_pic_F77=-Kconform_pic
12882       fi
12883       ;;
12884
12885     hpux*)
12886       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12887       # not for PA HP-UX.
12888       case "$host_cpu" in
12889       hppa*64*|ia64*)
12890         # +Z the default
12891         ;;
12892       *)
12893         lt_prog_compiler_pic_F77='-fPIC'
12894         ;;
12895       esac
12896       ;;
12897
12898     *)
12899       lt_prog_compiler_pic_F77='-fPIC'
12900       ;;
12901     esac
12902   else
12903     # PORTME Check for flag to pass linker flags through the system compiler.
12904     case $host_os in
12905     aix*)
12906       lt_prog_compiler_wl_F77='-Wl,'
12907       if test "$host_cpu" = ia64; then
12908         # AIX 5 now supports IA64 processor
12909         lt_prog_compiler_static_F77='-Bstatic'
12910       else
12911         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12912       fi
12913       ;;
12914
12915     mingw* | pw32* | os2*)
12916       # This hack is so that the source file can tell whether it is being
12917       # built for inclusion in a dll (and should export symbols for example).
12918       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12919       ;;
12920
12921     hpux9* | hpux10* | hpux11*)
12922       lt_prog_compiler_wl_F77='-Wl,'
12923       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12924       # not for PA HP-UX.
12925       case "$host_cpu" in
12926       hppa*64*|ia64*)
12927         # +Z the default
12928         ;;
12929       *)
12930         lt_prog_compiler_pic_F77='+Z'
12931         ;;
12932       esac
12933       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12934       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12935       ;;
12936
12937     irix5* | irix6* | nonstopux*)
12938       lt_prog_compiler_wl_F77='-Wl,'
12939       # PIC (with -KPIC) is the default.
12940       lt_prog_compiler_static_F77='-non_shared'
12941       ;;
12942
12943     newsos6)
12944       lt_prog_compiler_pic_F77='-KPIC'
12945       lt_prog_compiler_static_F77='-Bstatic'
12946       ;;
12947
12948     linux*)
12949       case $CC in
12950       icc|ecc)
12951         lt_prog_compiler_wl_F77='-Wl,'
12952         lt_prog_compiler_pic_F77='-KPIC'
12953         lt_prog_compiler_static_F77='-static'
12954         ;;
12955       ccc)
12956         lt_prog_compiler_wl_F77='-Wl,'
12957         # All Alpha code is PIC.
12958         lt_prog_compiler_static_F77='-non_shared'
12959         ;;
12960       esac
12961       ;;
12962
12963     osf3* | osf4* | osf5*)
12964       lt_prog_compiler_wl_F77='-Wl,'
12965       # All OSF/1 code is PIC.
12966       lt_prog_compiler_static_F77='-non_shared'
12967       ;;
12968
12969     sco3.2v5*)
12970       lt_prog_compiler_pic_F77='-Kpic'
12971       lt_prog_compiler_static_F77='-dn'
12972       ;;
12973
12974     solaris*)
12975       lt_prog_compiler_wl_F77='-Wl,'
12976       lt_prog_compiler_pic_F77='-KPIC'
12977       lt_prog_compiler_static_F77='-Bstatic'
12978       ;;
12979
12980     sunos4*)
12981       lt_prog_compiler_wl_F77='-Qoption ld '
12982       lt_prog_compiler_pic_F77='-PIC'
12983       lt_prog_compiler_static_F77='-Bstatic'
12984       ;;
12985
12986     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12987       lt_prog_compiler_wl_F77='-Wl,'
12988       lt_prog_compiler_pic_F77='-KPIC'
12989       lt_prog_compiler_static_F77='-Bstatic'
12990       ;;
12991
12992     sysv4*MP*)
12993       if test -d /usr/nec ;then
12994         lt_prog_compiler_pic_F77='-Kconform_pic'
12995         lt_prog_compiler_static_F77='-Bstatic'
12996       fi
12997       ;;
12998
12999     uts4*)
13000       lt_prog_compiler_pic_F77='-pic'
13001       lt_prog_compiler_static_F77='-Bstatic'
13002       ;;
13003
13004     *)
13005       lt_prog_compiler_can_build_shared_F77=no
13006       ;;
13007     esac
13008   fi
13009
13010 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13011 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13012
13013 #
13014 # Check to make sure the PIC flag actually works.
13015 #
13016 if test -n "$lt_prog_compiler_pic_F77"; then
13017   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13018 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13019 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   lt_prog_compiler_pic_works_F77=no
13023   ac_outfile=conftest.$ac_objext
13024    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13025    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13026    # Insert the option either (1) after the last *FLAGS variable, or
13027    # (2) before a word containing "conftest.", or (3) at the end.
13028    # Note that $ac_compile itself does not contain backslashes and begins
13029    # with a dollar sign (not a hyphen), so the echo should work correctly.
13030    # The option is referenced via a variable to avoid confusing sed.
13031    lt_compile=`echo "$ac_compile" | $SED \
13032    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13034    -e 's:$: $lt_compiler_flag:'`
13035    (eval echo "\"\$as_me:13035: $lt_compile\"" >&5)
13036    (eval "$lt_compile" 2>conftest.err)
13037    ac_status=$?
13038    cat conftest.err >&5
13039    echo "$as_me:13039: \$? = $ac_status" >&5
13040    if (exit $ac_status) && test -s "$ac_outfile"; then
13041      # The compiler can only warn and ignore the option if not recognized
13042      # So say no if there are warnings
13043      if test ! -s conftest.err; then
13044        lt_prog_compiler_pic_works_F77=yes
13045      fi
13046    fi
13047    $rm conftest*
13048
13049 fi
13050 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13051 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13052
13053 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13054     case $lt_prog_compiler_pic_F77 in
13055      "" | " "*) ;;
13056      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13057      esac
13058 else
13059     lt_prog_compiler_pic_F77=
13060      lt_prog_compiler_can_build_shared_F77=no
13061 fi
13062
13063 fi
13064 case "$host_os" in
13065   # For platforms which do not support PIC, -DPIC is meaningless:
13066   *djgpp*)
13067     lt_prog_compiler_pic_F77=
13068     ;;
13069   *)
13070     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13071     ;;
13072 esac
13073
13074 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13075 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13076 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13077   echo $ECHO_N "(cached) $ECHO_C" >&6
13078 else
13079   lt_cv_prog_compiler_c_o_F77=no
13080    $rm -r conftest 2>/dev/null
13081    mkdir conftest
13082    cd conftest
13083    mkdir out
13084    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13085
13086    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13087    # that will create temporary files in the current directory regardless of
13088    # the output directory.  Thus, making CWD read-only will cause this test
13089    # to fail, enabling locking or at least warning the user not to do parallel
13090    # builds.
13091    chmod -w .
13092
13093    lt_compiler_flag="-o out/conftest2.$ac_objext"
13094    # Insert the option either (1) after the last *FLAGS variable, or
13095    # (2) before a word containing "conftest.", or (3) at the end.
13096    # Note that $ac_compile itself does not contain backslashes and begins
13097    # with a dollar sign (not a hyphen), so the echo should work correctly.
13098    lt_compile=`echo "$ac_compile" | $SED \
13099    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13100    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13101    -e 's:$: $lt_compiler_flag:'`
13102    (eval echo "\"\$as_me:13102: $lt_compile\"" >&5)
13103    (eval "$lt_compile" 2>out/conftest.err)
13104    ac_status=$?
13105    cat out/conftest.err >&5
13106    echo "$as_me:13106: \$? = $ac_status" >&5
13107    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13108    then
13109      # The compiler can only warn and ignore the option if not recognized
13110      # So say no if there are warnings
13111      if test ! -s out/conftest.err; then
13112        lt_cv_prog_compiler_c_o_F77=yes
13113      fi
13114    fi
13115    chmod u+w .
13116    $rm conftest* out/*
13117    rmdir out
13118    cd ..
13119    rmdir conftest
13120    $rm conftest*
13121
13122 fi
13123 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13124 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13125
13126
13127 hard_links="nottested"
13128 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13129   # do not overwrite the value of need_locks provided by the user
13130   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13131 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13132   hard_links=yes
13133   $rm conftest*
13134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13135   touch conftest.a
13136   ln conftest.a conftest.b 2>&5 || hard_links=no
13137   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13138   echo "$as_me:$LINENO: result: $hard_links" >&5
13139 echo "${ECHO_T}$hard_links" >&6
13140   if test "$hard_links" = no; then
13141     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13142 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13143     need_locks=warn
13144   fi
13145 else
13146   need_locks=no
13147 fi
13148
13149 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13150 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13151
13152   runpath_var=
13153   allow_undefined_flag_F77=
13154   enable_shared_with_static_runtimes_F77=no
13155   archive_cmds_F77=
13156   archive_expsym_cmds_F77=
13157   old_archive_From_new_cmds_F77=
13158   old_archive_from_expsyms_cmds_F77=
13159   export_dynamic_flag_spec_F77=
13160   whole_archive_flag_spec_F77=
13161   thread_safe_flag_spec_F77=
13162   hardcode_libdir_flag_spec_F77=
13163   hardcode_libdir_flag_spec_ld_F77=
13164   hardcode_libdir_separator_F77=
13165   hardcode_direct_F77=no
13166   hardcode_minus_L_F77=no
13167   hardcode_shlibpath_var_F77=unsupported
13168   link_all_deplibs_F77=unknown
13169   hardcode_automatic_F77=no
13170   module_cmds_F77=
13171   module_expsym_cmds_F77=
13172   always_export_symbols_F77=no
13173   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13174   # include_expsyms should be a list of space-separated symbols to be *always*
13175   # included in the symbol list
13176   include_expsyms_F77=
13177   # exclude_expsyms can be an extended regexp of symbols to exclude
13178   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13179   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13180   # as well as any symbol that contains `d'.
13181   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13182   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13183   # platforms (ab)use it in PIC code, but their linkers get confused if
13184   # the symbol is explicitly referenced.  Since portable code cannot
13185   # rely on this symbol name, it's probably fine to never include it in
13186   # preloaded symbol tables.
13187   extract_expsyms_cmds=
13188
13189   case $host_os in
13190   cygwin* | mingw* | pw32*)
13191     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13192     # When not using gcc, we currently assume that we are using
13193     # Microsoft Visual C++.
13194     if test "$GCC" != yes; then
13195       with_gnu_ld=no
13196     fi
13197     ;;
13198   openbsd*)
13199     with_gnu_ld=no
13200     ;;
13201   esac
13202
13203   ld_shlibs_F77=yes
13204   if test "$with_gnu_ld" = yes; then
13205     # If archive_cmds runs LD, not CC, wlarc should be empty
13206     wlarc='${wl}'
13207
13208     # See if GNU ld supports shared libraries.
13209     case $host_os in
13210     aix3* | aix4* | aix5*)
13211       # On AIX/PPC, the GNU linker is very broken
13212       if test "$host_cpu" != ia64; then
13213         ld_shlibs_F77=no
13214         cat <<EOF 1>&2
13215
13216 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13217 *** to be unable to reliably create shared libraries on AIX.
13218 *** Therefore, libtool is disabling shared libraries support.  If you
13219 *** really care for shared libraries, you may want to modify your PATH
13220 *** so that a non-GNU linker is found, and then restart.
13221
13222 EOF
13223       fi
13224       ;;
13225
13226     amigaos*)
13227       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)'
13228       hardcode_libdir_flag_spec_F77='-L$libdir'
13229       hardcode_minus_L_F77=yes
13230
13231       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13232       # that the semantics of dynamic libraries on AmigaOS, at least up
13233       # to version 4, is to share data among multiple programs linked
13234       # with the same dynamic library.  Since this doesn't match the
13235       # behavior of shared libraries on other platforms, we can't use
13236       # them.
13237       ld_shlibs_F77=no
13238       ;;
13239
13240     beos*)
13241       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13242         allow_undefined_flag_F77=unsupported
13243         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13244         # support --undefined.  This deserves some investigation.  FIXME
13245         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13246       else
13247         ld_shlibs_F77=no
13248       fi
13249       ;;
13250
13251     cygwin* | mingw* | pw32*)
13252       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13253       # as there is no search path for DLLs.
13254       hardcode_libdir_flag_spec_F77='-L$libdir'
13255       allow_undefined_flag_F77=unsupported
13256       always_export_symbols_F77=no
13257       enable_shared_with_static_runtimes_F77=yes
13258       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13259
13260       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13261         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13262         # If the export-symbols file already is a .def file (1st line
13263         # is EXPORTS), use it as is; otherwise, prepend...
13264         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13265           cp $export_symbols $output_objdir/$soname.def;
13266         else
13267           echo EXPORTS > $output_objdir/$soname.def;
13268           cat $export_symbols >> $output_objdir/$soname.def;
13269         fi~
13270         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13271       else
13272         ld_shlibs=no
13273       fi
13274       ;;
13275
13276     netbsd*)
13277       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13278         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13279         wlarc=
13280       else
13281         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13282         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13283       fi
13284       ;;
13285
13286     solaris* | sysv5*)
13287       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13288         ld_shlibs_F77=no
13289         cat <<EOF 1>&2
13290
13291 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13292 *** create shared libraries on Solaris systems.  Therefore, libtool
13293 *** is disabling shared libraries support.  We urge you to upgrade GNU
13294 *** binutils to release 2.9.1 or newer.  Another option is to modify
13295 *** your PATH or compiler configuration so that the native linker is
13296 *** used, and then restart.
13297
13298 EOF
13299       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13300         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13302       else
13303         ld_shlibs_F77=no
13304       fi
13305       ;;
13306
13307     sunos4*)
13308       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13309       wlarc=
13310       hardcode_direct_F77=yes
13311       hardcode_shlibpath_var_F77=no
13312       ;;
13313
13314     *)
13315       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13316         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13317         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13318       else
13319         ld_shlibs_F77=no
13320       fi
13321       ;;
13322     esac
13323
13324     if test "$ld_shlibs_F77" = yes; then
13325       runpath_var=LD_RUN_PATH
13326       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13327       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13328       # ancient GNU ld didn't support --whole-archive et. al.
13329       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13330         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13331       else
13332         whole_archive_flag_spec_F77=
13333       fi
13334     fi
13335   else
13336     # PORTME fill in a description of your system's linker (not GNU ld)
13337     case $host_os in
13338     aix3*)
13339       allow_undefined_flag_F77=unsupported
13340       always_export_symbols_F77=yes
13341       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'
13342       # Note: this linker hardcodes the directories in LIBPATH if there
13343       # are no directories specified by -L.
13344       hardcode_minus_L_F77=yes
13345       if test "$GCC" = yes && test -z "$link_static_flag"; then
13346         # Neither direct hardcoding nor static linking is supported with a
13347         # broken collect2.
13348         hardcode_direct_F77=unsupported
13349       fi
13350       ;;
13351
13352     aix4* | aix5*)
13353       if test "$host_cpu" = ia64; then
13354         # On IA64, the linker does run time linking by default, so we don't
13355         # have to do anything special.
13356         aix_use_runtimelinking=no
13357         exp_sym_flag='-Bexport'
13358         no_entry_flag=""
13359       else
13360         # If we're using GNU nm, then we don't want the "-C" option.
13361         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13362         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13363           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'
13364         else
13365           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'
13366         fi
13367         aix_use_runtimelinking=no
13368
13369         # Test if we are trying to use run time linking or normal
13370         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13371         # need to do runtime linking.
13372         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13373           for ld_flag in $LDFLAGS; do
13374           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13375             aix_use_runtimelinking=yes
13376             break
13377           fi
13378           done
13379         esac
13380
13381         exp_sym_flag='-bexport'
13382         no_entry_flag='-bnoentry'
13383       fi
13384
13385       # When large executables or shared objects are built, AIX ld can
13386       # have problems creating the table of contents.  If linking a library
13387       # or program results in "error TOC overflow" add -mminimal-toc to
13388       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13389       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13390
13391       archive_cmds_F77=''
13392       hardcode_direct_F77=yes
13393       hardcode_libdir_separator_F77=':'
13394       link_all_deplibs_F77=yes
13395
13396       if test "$GCC" = yes; then
13397         case $host_os in aix4.012|aix4.012.*)
13398         # We only want to do this on AIX 4.2 and lower, the check
13399         # below for broken collect2 doesn't work under 4.3+
13400           collect2name=`${CC} -print-prog-name=collect2`
13401           if test -f "$collect2name" && \
13402            strings "$collect2name" | grep resolve_lib_name >/dev/null
13403           then
13404           # We have reworked collect2
13405           hardcode_direct_F77=yes
13406           else
13407           # We have old collect2
13408           hardcode_direct_F77=unsupported
13409           # It fails to find uninstalled libraries when the uninstalled
13410           # path is not listed in the libpath.  Setting hardcode_minus_L
13411           # to unsupported forces relinking
13412           hardcode_minus_L_F77=yes
13413           hardcode_libdir_flag_spec_F77='-L$libdir'
13414           hardcode_libdir_separator_F77=
13415           fi
13416         esac
13417         shared_flag='-shared'
13418       else
13419         # not using gcc
13420         if test "$host_cpu" = ia64; then
13421         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13422         # chokes on -Wl,-G. The following line is correct:
13423           shared_flag='-G'
13424         else
13425         if test "$aix_use_runtimelinking" = yes; then
13426             shared_flag='${wl}-G'
13427           else
13428             shared_flag='${wl}-bM:SRE'
13429         fi
13430         fi
13431       fi
13432
13433       # It seems that -bexpall does not export symbols beginning with
13434       # underscore (_), so it is better to generate a list of symbols to export.
13435       always_export_symbols_F77=yes
13436       if test "$aix_use_runtimelinking" = yes; then
13437         # Warning - without using the other runtime loading flags (-brtl),
13438         # -berok will link without error, but may produce a broken library.
13439         allow_undefined_flag_F77='-berok'
13440        # Determine the default libpath from the value encoded in an empty executable.
13441        cat >conftest.$ac_ext <<_ACEOF
13442       program main
13443
13444       end
13445 _ACEOF
13446 rm -f conftest.$ac_objext conftest$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448   (eval $ac_link) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); } &&
13452          { ac_try='test -s conftest$ac_exeext'
13453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454   (eval $ac_try) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; }; then
13458
13459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13460 }'`
13461 # Check for a 64-bit object if we didn't find anything.
13462 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; }
13463 }'`; fi
13464 else
13465   echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13467
13468 fi
13469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13470 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13471
13472        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13473         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"
13474        else
13475         if test "$host_cpu" = ia64; then
13476           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13477           allow_undefined_flag_F77="-z nodefs"
13478           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"
13479         else
13480          # Determine the default libpath from the value encoded in an empty executable.
13481          cat >conftest.$ac_ext <<_ACEOF
13482       program main
13483
13484       end
13485 _ACEOF
13486 rm -f conftest.$ac_objext conftest$ac_exeext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488   (eval $ac_link) 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -s conftest$ac_exeext'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498
13499 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13500 }'`
13501 # Check for a 64-bit object if we didn't find anything.
13502 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; }
13503 }'`; fi
13504 else
13505   echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 fi
13509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13511
13512          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13513           # Warning - without using the other run time loading flags,
13514           # -berok will link without error, but may produce a broken library.
13515           no_undefined_flag_F77=' ${wl}-bernotok'
13516           allow_undefined_flag_F77=' ${wl}-berok'
13517           # -bexpall does not export symbols beginning with underscore (_)
13518           always_export_symbols_F77=yes
13519           # Exported symbols can be pulled into shared objects from archives
13520           whole_archive_flag_spec_F77=' '
13521           archive_cmds_need_lc_F77=yes
13522           # This is similar to how AIX traditionally builds it's shared libraries.
13523           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'
13524         fi
13525       fi
13526       ;;
13527
13528     amigaos*)
13529       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)'
13530       hardcode_libdir_flag_spec_F77='-L$libdir'
13531       hardcode_minus_L_F77=yes
13532       # see comment about different semantics on the GNU ld section
13533       ld_shlibs_F77=no
13534       ;;
13535
13536     bsdi4*)
13537       export_dynamic_flag_spec_F77=-rdynamic
13538       ;;
13539
13540     cygwin* | mingw* | pw32*)
13541       # When not using gcc, we currently assume that we are using
13542       # Microsoft Visual C++.
13543       # hardcode_libdir_flag_spec is actually meaningless, as there is
13544       # no search path for DLLs.
13545       hardcode_libdir_flag_spec_F77=' '
13546       allow_undefined_flag_F77=unsupported
13547       # Tell ltmain to make .lib files, not .a files.
13548       libext=lib
13549       # Tell ltmain to make .dll files, not .so files.
13550       shrext=".dll"
13551       # FIXME: Setting linknames here is a bad hack.
13552       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13553       # The linker will automatically build a .lib file if we build a DLL.
13554       old_archive_From_new_cmds_F77='true'
13555       # FIXME: Should let the user specify the lib program.
13556       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13557       fix_srcfile_path='`cygpath -w "$srcfile"`'
13558       enable_shared_with_static_runtimes_F77=yes
13559       ;;
13560
13561     darwin* | rhapsody*)
13562     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13563       archive_cmds_need_lc_F77=no
13564       case "$host_os" in
13565       rhapsody* | darwin1.[012])
13566         allow_undefined_flag_F77='-undefined suppress'
13567         ;;
13568       *) # Darwin 1.3 on
13569         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13570         ;;
13571       esac
13572       # FIXME: Relying on posixy $() will cause problems for
13573       #        cross-compilation, but unfortunately the echo tests do not
13574       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13575       #        `"' quotes if we put them in here... so don't!
13576         lt_int_apple_cc_single_mod=no
13577         output_verbose_link_cmd='echo'
13578         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13579           lt_int_apple_cc_single_mod=yes
13580         fi
13581         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13582           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13583         else
13584         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'
13585       fi
13586       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13587       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13588         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13589           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}'
13590         else
13591           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}'
13592         fi
13593           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}'
13594       hardcode_direct_F77=no
13595       hardcode_automatic_F77=yes
13596       hardcode_shlibpath_var_F77=unsupported
13597       whole_archive_flag_spec_F77='-all_load $convenience'
13598       link_all_deplibs_F77=yes
13599     fi
13600       ;;
13601
13602     dgux*)
13603       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13604       hardcode_libdir_flag_spec_F77='-L$libdir'
13605       hardcode_shlibpath_var_F77=no
13606       ;;
13607
13608     freebsd1*)
13609       ld_shlibs_F77=no
13610       ;;
13611
13612     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13613     # support.  Future versions do this automatically, but an explicit c++rt0.o
13614     # does not break anything, and helps significantly (at the cost of a little
13615     # extra space).
13616     freebsd2.2*)
13617       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13618       hardcode_libdir_flag_spec_F77='-R$libdir'
13619       hardcode_direct_F77=yes
13620       hardcode_shlibpath_var_F77=no
13621       ;;
13622
13623     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13624     freebsd2*)
13625       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13626       hardcode_direct_F77=yes
13627       hardcode_minus_L_F77=yes
13628       hardcode_shlibpath_var_F77=no
13629       ;;
13630
13631     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13632     freebsd*)
13633       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13634       hardcode_libdir_flag_spec_F77='-R$libdir'
13635       hardcode_direct_F77=yes
13636       hardcode_shlibpath_var_F77=no
13637       ;;
13638
13639     hpux9*)
13640       if test "$GCC" = yes; then
13641         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'
13642       else
13643         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'
13644       fi
13645       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13646       hardcode_libdir_separator_F77=:
13647       hardcode_direct_F77=yes
13648
13649       # hardcode_minus_L: Not really in the search PATH,
13650       # but as the default location of the library.
13651       hardcode_minus_L_F77=yes
13652       export_dynamic_flag_spec_F77='${wl}-E'
13653       ;;
13654
13655     hpux10* | hpux11*)
13656       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13657         case "$host_cpu" in
13658         hppa*64*|ia64*)
13659           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13660           ;;
13661         *)
13662           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13663           ;;
13664         esac
13665       else
13666         case "$host_cpu" in
13667         hppa*64*|ia64*)
13668           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13669           ;;
13670         *)
13671           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13672           ;;
13673         esac
13674       fi
13675       if test "$with_gnu_ld" = no; then
13676         case "$host_cpu" in
13677         hppa*64*)
13678           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13679           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13680           hardcode_libdir_separator_F77=:
13681           hardcode_direct_F77=no
13682           hardcode_shlibpath_var_F77=no
13683           ;;
13684         ia64*)
13685           hardcode_libdir_flag_spec_F77='-L$libdir'
13686           hardcode_direct_F77=no
13687           hardcode_shlibpath_var_F77=no
13688
13689           # hardcode_minus_L: Not really in the search PATH,
13690           # but as the default location of the library.
13691           hardcode_minus_L_F77=yes
13692           ;;
13693         *)
13694           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13695           hardcode_libdir_separator_F77=:
13696           hardcode_direct_F77=yes
13697           export_dynamic_flag_spec_F77='${wl}-E'
13698
13699           # hardcode_minus_L: Not really in the search PATH,
13700           # but as the default location of the library.
13701           hardcode_minus_L_F77=yes
13702           ;;
13703         esac
13704       fi
13705       ;;
13706
13707     irix5* | irix6* | nonstopux*)
13708       if test "$GCC" = yes; then
13709         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'
13710       else
13711         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'
13712         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13713       fi
13714       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13715       hardcode_libdir_separator_F77=:
13716       link_all_deplibs_F77=yes
13717       ;;
13718
13719     netbsd*)
13720       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13721         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13722       else
13723         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13724       fi
13725       hardcode_libdir_flag_spec_F77='-R$libdir'
13726       hardcode_direct_F77=yes
13727       hardcode_shlibpath_var_F77=no
13728       ;;
13729
13730     newsos6)
13731       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13732       hardcode_direct_F77=yes
13733       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13734       hardcode_libdir_separator_F77=:
13735       hardcode_shlibpath_var_F77=no
13736       ;;
13737
13738     openbsd*)
13739       hardcode_direct_F77=yes
13740       hardcode_shlibpath_var_F77=no
13741       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13742         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13743         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13744         export_dynamic_flag_spec_F77='${wl}-E'
13745       else
13746        case $host_os in
13747          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13748            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13749            hardcode_libdir_flag_spec_F77='-R$libdir'
13750            ;;
13751          *)
13752            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13753            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13754            ;;
13755        esac
13756       fi
13757       ;;
13758
13759     os2*)
13760       hardcode_libdir_flag_spec_F77='-L$libdir'
13761       hardcode_minus_L_F77=yes
13762       allow_undefined_flag_F77=unsupported
13763       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'
13764       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13765       ;;
13766
13767     osf3*)
13768       if test "$GCC" = yes; then
13769         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13770         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'
13771       else
13772         allow_undefined_flag_F77=' -expect_unresolved \*'
13773         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'
13774       fi
13775       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13776       hardcode_libdir_separator_F77=:
13777       ;;
13778
13779     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13780       if test "$GCC" = yes; then
13781         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13782         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'
13783         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13784       else
13785         allow_undefined_flag_F77=' -expect_unresolved \*'
13786         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'
13787         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~
13788         $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'
13789
13790         # Both c and cxx compiler support -rpath directly
13791         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13792       fi
13793       hardcode_libdir_separator_F77=:
13794       ;;
13795
13796     sco3.2v5*)
13797       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798       hardcode_shlibpath_var_F77=no
13799       export_dynamic_flag_spec_F77='${wl}-Bexport'
13800       runpath_var=LD_RUN_PATH
13801       hardcode_runpath_var=yes
13802       ;;
13803
13804     solaris*)
13805       no_undefined_flag_F77=' -z text'
13806       if test "$GCC" = yes; then
13807         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13808         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13809           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13810       else
13811         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13812         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13813         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13814       fi
13815       hardcode_libdir_flag_spec_F77='-R$libdir'
13816       hardcode_shlibpath_var_F77=no
13817       case $host_os in
13818       solaris2.[0-5] | solaris2.[0-5].*) ;;
13819       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13820         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13821       esac
13822       link_all_deplibs_F77=yes
13823       ;;
13824
13825     sunos4*)
13826       if test "x$host_vendor" = xsequent; then
13827         # Use $CC to link under sequent, because it throws in some extra .o
13828         # files that make .init and .fini sections work.
13829         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13830       else
13831         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13832       fi
13833       hardcode_libdir_flag_spec_F77='-L$libdir'
13834       hardcode_direct_F77=yes
13835       hardcode_minus_L_F77=yes
13836       hardcode_shlibpath_var_F77=no
13837       ;;
13838
13839     sysv4)
13840       case $host_vendor in
13841         sni)
13842           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13843           hardcode_direct_F77=yes # is this really true???
13844         ;;
13845         siemens)
13846           ## LD is ld it makes a PLAMLIB
13847           ## CC just makes a GrossModule.
13848           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13849           reload_cmds_F77='$CC -r -o $output$reload_objs'
13850           hardcode_direct_F77=no
13851         ;;
13852         motorola)
13853           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13854           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13855         ;;
13856       esac
13857       runpath_var='LD_RUN_PATH'
13858       hardcode_shlibpath_var_F77=no
13859       ;;
13860
13861     sysv4.3*)
13862       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13863       hardcode_shlibpath_var_F77=no
13864       export_dynamic_flag_spec_F77='-Bexport'
13865       ;;
13866
13867     sysv4*MP*)
13868       if test -d /usr/nec; then
13869         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870         hardcode_shlibpath_var_F77=no
13871         runpath_var=LD_RUN_PATH
13872         hardcode_runpath_var=yes
13873         ld_shlibs_F77=yes
13874       fi
13875       ;;
13876
13877     sysv4.2uw2*)
13878       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13879       hardcode_direct_F77=yes
13880       hardcode_minus_L_F77=no
13881       hardcode_shlibpath_var_F77=no
13882       hardcode_runpath_var=yes
13883       runpath_var=LD_RUN_PATH
13884       ;;
13885
13886    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13887       no_undefined_flag_F77='${wl}-z ${wl}text'
13888       if test "$GCC" = yes; then
13889         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13890       else
13891         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13892       fi
13893       runpath_var='LD_RUN_PATH'
13894       hardcode_shlibpath_var_F77=no
13895       ;;
13896
13897     sysv5*)
13898       no_undefined_flag_F77=' -z text'
13899       # $CC -shared without GNU ld will not create a library from C++
13900       # object files and a static libstdc++, better avoid it by now
13901       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13903                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13904       hardcode_libdir_flag_spec_F77=
13905       hardcode_shlibpath_var_F77=no
13906       runpath_var='LD_RUN_PATH'
13907       ;;
13908
13909     uts4*)
13910       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13911       hardcode_libdir_flag_spec_F77='-L$libdir'
13912       hardcode_shlibpath_var_F77=no
13913       ;;
13914
13915     *)
13916       ld_shlibs_F77=no
13917       ;;
13918     esac
13919   fi
13920
13921 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13922 echo "${ECHO_T}$ld_shlibs_F77" >&6
13923 test "$ld_shlibs_F77" = no && can_build_shared=no
13924
13925 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13926 if test "$GCC" = yes; then
13927   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13928 fi
13929
13930 #
13931 # Do we need to explicitly link libc?
13932 #
13933 case "x$archive_cmds_need_lc_F77" in
13934 x|xyes)
13935   # Assume -lc should be added
13936   archive_cmds_need_lc_F77=yes
13937
13938   if test "$enable_shared" = yes && test "$GCC" = yes; then
13939     case $archive_cmds_F77 in
13940     *'~'*)
13941       # FIXME: we may have to deal with multi-command sequences.
13942       ;;
13943     '$CC '*)
13944       # Test whether the compiler implicitly links with -lc since on some
13945       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13946       # to ld, don't add -lc before -lgcc.
13947       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13948 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13949       $rm conftest*
13950       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13951
13952       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13953   (eval $ac_compile) 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); } 2>conftest.err; then
13957         soname=conftest
13958         lib=conftest
13959         libobjs=conftest.$ac_objext
13960         deplibs=
13961         wl=$lt_prog_compiler_wl_F77
13962         compiler_flags=-v
13963         linker_flags=-v
13964         verstring=
13965         output_objdir=.
13966         libname=conftest
13967         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13968         allow_undefined_flag_F77=
13969         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13970   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); }
13974         then
13975           archive_cmds_need_lc_F77=no
13976         else
13977           archive_cmds_need_lc_F77=yes
13978         fi
13979         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13980       else
13981         cat conftest.err 1>&5
13982       fi
13983       $rm conftest*
13984       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13985 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13986       ;;
13987     esac
13988   fi
13989   ;;
13990 esac
13991
13992 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13993 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13994 hardcode_action_F77=
13995 if test -n "$hardcode_libdir_flag_spec_F77" || \
13996    test -n "$runpath_var F77" || \
13997    test "X$hardcode_automatic_F77"="Xyes" ; then
13998
13999   # We can hardcode non-existant directories.
14000   if test "$hardcode_direct_F77" != no &&
14001      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14002      # have to relink, otherwise we might link with an installed library
14003      # when we should be linking with a yet-to-be-installed one
14004      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14005      test "$hardcode_minus_L_F77" != no; then
14006     # Linking always hardcodes the temporary library directory.
14007     hardcode_action_F77=relink
14008   else
14009     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14010     hardcode_action_F77=immediate
14011   fi
14012 else
14013   # We cannot hardcode anything, or else we can only hardcode existing
14014   # directories.
14015   hardcode_action_F77=unsupported
14016 fi
14017 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14018 echo "${ECHO_T}$hardcode_action_F77" >&6
14019
14020 if test "$hardcode_action_F77" = relink; then
14021   # Fast installation is not supported
14022   enable_fast_install=no
14023 elif test "$shlibpath_overrides_runpath" = yes ||
14024      test "$enable_shared" = no; then
14025   # Fast installation is not necessary
14026   enable_fast_install=needless
14027 fi
14028
14029 striplib=
14030 old_striplib=
14031 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14032 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14033 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14034   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14035   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14036   echo "$as_me:$LINENO: result: yes" >&5
14037 echo "${ECHO_T}yes" >&6
14038 else
14039 # FIXME - insert some real tests, host_os isn't really good enough
14040   case $host_os in
14041    darwin*)
14042        if test -n "$STRIP" ; then
14043          striplib="$STRIP -x"
14044          echo "$as_me:$LINENO: result: yes" >&5
14045 echo "${ECHO_T}yes" >&6
14046        else
14047   echo "$as_me:$LINENO: result: no" >&5
14048 echo "${ECHO_T}no" >&6
14049 fi
14050        ;;
14051    *)
14052   echo "$as_me:$LINENO: result: no" >&5
14053 echo "${ECHO_T}no" >&6
14054     ;;
14055   esac
14056 fi
14057
14058 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14059 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14060 library_names_spec=
14061 libname_spec='lib$name'
14062 soname_spec=
14063 shrext=".so"
14064 postinstall_cmds=
14065 postuninstall_cmds=
14066 finish_cmds=
14067 finish_eval=
14068 shlibpath_var=
14069 shlibpath_overrides_runpath=unknown
14070 version_type=none
14071 dynamic_linker="$host_os ld.so"
14072 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14073 if test "$GCC" = yes; then
14074   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14075   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14076     # if the path contains ";" then we assume it to be the separator
14077     # otherwise default to the standard path separator (i.e. ":") - it is
14078     # assumed that no part of a normal pathname contains ";" but that should
14079     # okay in the real world where ";" in dirpaths is itself problematic.
14080     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14081   else
14082     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14083   fi
14084 else
14085   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14086 fi
14087 need_lib_prefix=unknown
14088 hardcode_into_libs=no
14089
14090 # when you set need_version to no, make sure it does not cause -set_version
14091 # flags to be left without arguments
14092 need_version=unknown
14093
14094 case $host_os in
14095 aix3*)
14096   version_type=linux
14097   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14098   shlibpath_var=LIBPATH
14099
14100   # AIX 3 has no versioning support, so we append a major version to the name.
14101   soname_spec='${libname}${release}${shared_ext}$major'
14102   ;;
14103
14104 aix4* | aix5*)
14105   version_type=linux
14106   need_lib_prefix=no
14107   need_version=no
14108   hardcode_into_libs=yes
14109   if test "$host_cpu" = ia64; then
14110     # AIX 5 supports IA64
14111     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14112     shlibpath_var=LD_LIBRARY_PATH
14113   else
14114     # With GCC up to 2.95.x, collect2 would create an import file
14115     # for dependence libraries.  The import file would start with
14116     # the line `#! .'.  This would cause the generated library to
14117     # depend on `.', always an invalid library.  This was fixed in
14118     # development snapshots of GCC prior to 3.0.
14119     case $host_os in
14120       aix4 | aix4.[01] | aix4.[01].*)
14121       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14122            echo ' yes '
14123            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14124         :
14125       else
14126         can_build_shared=no
14127       fi
14128       ;;
14129     esac
14130     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14131     # soname into executable. Probably we can add versioning support to
14132     # collect2, so additional links can be useful in future.
14133     if test "$aix_use_runtimelinking" = yes; then
14134       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14135       # instead of lib<name>.a to let people know that these are not
14136       # typical AIX shared libraries.
14137       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138     else
14139       # We preserve .a as extension for shared libraries through AIX4.2
14140       # and later when we are not doing run time linking.
14141       library_names_spec='${libname}${release}.a $libname.a'
14142       soname_spec='${libname}${release}${shared_ext}$major'
14143     fi
14144     shlibpath_var=LIBPATH
14145   fi
14146   ;;
14147
14148 amigaos*)
14149   library_names_spec='$libname.ixlibrary $libname.a'
14150   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14151   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'
14152   ;;
14153
14154 beos*)
14155   library_names_spec='${libname}${shared_ext}'
14156   dynamic_linker="$host_os ld.so"
14157   shlibpath_var=LIBRARY_PATH
14158   ;;
14159
14160 bsdi4*)
14161   version_type=linux
14162   need_version=no
14163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164   soname_spec='${libname}${release}${shared_ext}$major'
14165   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14166   shlibpath_var=LD_LIBRARY_PATH
14167   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14168   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14169   # the default ld.so.conf also contains /usr/contrib/lib and
14170   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14171   # libtool to hard-code these into programs
14172   ;;
14173
14174 cygwin* | mingw* | pw32*)
14175   version_type=windows
14176   shrext=".dll"
14177   need_version=no
14178   need_lib_prefix=no
14179
14180   case $GCC,$host_os in
14181   yes,cygwin* | yes,mingw* | yes,pw32*)
14182     library_names_spec='$libname.dll.a'
14183     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14184     postinstall_cmds='base_file=`basename \${file}`~
14185       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14186       dldir=$destdir/`dirname \$dlpath`~
14187       test -d \$dldir || mkdir -p \$dldir~
14188       $install_prog $dir/$dlname \$dldir/$dlname'
14189     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14190       dlpath=$dir/\$dldll~
14191        $rm \$dlpath'
14192     shlibpath_overrides_runpath=yes
14193
14194     case $host_os in
14195     cygwin*)
14196       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14197       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14198       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14199       ;;
14200     mingw*)
14201       # MinGW DLLs use traditional 'lib' prefix
14202       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14203       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14204       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14205         # It is most probably a Windows format PATH printed by
14206         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14207         # path with ; separators, and with drive letters. We can handle the
14208         # drive letters (cygwin fileutils understands them), so leave them,
14209         # especially as we might pass files found there to a mingw objdump,
14210         # which wouldn't understand a cygwinified path. Ahh.
14211         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14212       else
14213         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14214       fi
14215       ;;
14216     pw32*)
14217       # pw32 DLLs use 'pw' prefix rather than 'lib'
14218       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14219       ;;
14220     esac
14221     ;;
14222
14223   *)
14224     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14225     ;;
14226   esac
14227   dynamic_linker='Win32 ld.exe'
14228   # FIXME: first we should search . and the directory the executable is in
14229   shlibpath_var=PATH
14230   ;;
14231
14232 darwin* | rhapsody*)
14233   dynamic_linker="$host_os dyld"
14234   version_type=darwin
14235   need_lib_prefix=no
14236   need_version=no
14237   # FIXME: Relying on posixy $() will cause problems for
14238   #        cross-compilation, but unfortunately the echo tests do not
14239   #        yet detect zsh echo's removal of \ escapes.
14240   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14241   soname_spec='${libname}${release}${major}$shared_ext'
14242   shlibpath_overrides_runpath=yes
14243   shlibpath_var=DYLD_LIBRARY_PATH
14244   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14245   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14246   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14247   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"`
14248   fi
14249   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14250   ;;
14251
14252 dgux*)
14253   version_type=linux
14254   need_lib_prefix=no
14255   need_version=no
14256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14257   soname_spec='${libname}${release}${shared_ext}$major'
14258   shlibpath_var=LD_LIBRARY_PATH
14259   ;;
14260
14261 freebsd1*)
14262   dynamic_linker=no
14263   ;;
14264
14265 freebsd*)
14266   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14267   version_type=freebsd-$objformat
14268   case $version_type in
14269     freebsd-elf*)
14270       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14271       need_version=no
14272       need_lib_prefix=no
14273       ;;
14274     freebsd-*)
14275       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14276       need_version=yes
14277       ;;
14278   esac
14279   shlibpath_var=LD_LIBRARY_PATH
14280   case $host_os in
14281   freebsd2*)
14282     shlibpath_overrides_runpath=yes
14283     ;;
14284   freebsd3.01* | freebsdelf3.01*)
14285     shlibpath_overrides_runpath=yes
14286     hardcode_into_libs=yes
14287     ;;
14288   *) # from 3.2 on
14289     shlibpath_overrides_runpath=no
14290     hardcode_into_libs=yes
14291     ;;
14292   esac
14293   ;;
14294
14295 gnu*)
14296   version_type=linux
14297   need_lib_prefix=no
14298   need_version=no
14299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14300   soname_spec='${libname}${release}${shared_ext}$major'
14301   shlibpath_var=LD_LIBRARY_PATH
14302   hardcode_into_libs=yes
14303   ;;
14304
14305 hpux9* | hpux10* | hpux11*)
14306   # Give a soname corresponding to the major version so that dld.sl refuses to
14307   # link against other versions.
14308   version_type=sunos
14309   need_lib_prefix=no
14310   need_version=no
14311   case "$host_cpu" in
14312   ia64*)
14313     shrext='.so'
14314     hardcode_into_libs=yes
14315     dynamic_linker="$host_os dld.so"
14316     shlibpath_var=LD_LIBRARY_PATH
14317     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14319     soname_spec='${libname}${release}${shared_ext}$major'
14320     if test "X$HPUX_IA64_MODE" = X32; then
14321       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14322     else
14323       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14324     fi
14325     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14326     ;;
14327    hppa*64*)
14328      shrext='.sl'
14329      hardcode_into_libs=yes
14330      dynamic_linker="$host_os dld.sl"
14331      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14332      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14333      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334      soname_spec='${libname}${release}${shared_ext}$major'
14335      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14336      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14337      ;;
14338    *)
14339     shrext='.sl'
14340     dynamic_linker="$host_os dld.sl"
14341     shlibpath_var=SHLIB_PATH
14342     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14344     soname_spec='${libname}${release}${shared_ext}$major'
14345     ;;
14346   esac
14347   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14348   postinstall_cmds='chmod 555 $lib'
14349   ;;
14350
14351 irix5* | irix6* | nonstopux*)
14352   case $host_os in
14353     nonstopux*) version_type=nonstopux ;;
14354     *)
14355         if test "$lt_cv_prog_gnu_ld" = yes; then
14356                 version_type=linux
14357         else
14358                 version_type=irix
14359         fi ;;
14360   esac
14361   need_lib_prefix=no
14362   need_version=no
14363   soname_spec='${libname}${release}${shared_ext}$major'
14364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14365   case $host_os in
14366   irix5* | nonstopux*)
14367     libsuff= shlibsuff=
14368     ;;
14369   *)
14370     case $LD in # libtool.m4 will add one of these switches to LD
14371     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14372       libsuff= shlibsuff= libmagic=32-bit;;
14373     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14374       libsuff=32 shlibsuff=N32 libmagic=N32;;
14375     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14376       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14377     *) libsuff= shlibsuff= libmagic=never-match;;
14378     esac
14379     ;;
14380   esac
14381   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14382   shlibpath_overrides_runpath=no
14383   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14384   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14385   hardcode_into_libs=yes
14386   ;;
14387
14388 # No shared lib support for Linux oldld, aout, or coff.
14389 linux*oldld* | linux*aout* | linux*coff*)
14390   dynamic_linker=no
14391   ;;
14392
14393 # This must be Linux ELF.
14394 linux*)
14395   version_type=linux
14396   need_lib_prefix=no
14397   need_version=no
14398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399   soname_spec='${libname}${release}${shared_ext}$major'
14400   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14401   shlibpath_var=LD_LIBRARY_PATH
14402   shlibpath_overrides_runpath=no
14403   # This implies no fast_install, which is unacceptable.
14404   # Some rework will be needed to allow for fast_install
14405   # before this can be enabled.
14406   hardcode_into_libs=yes
14407
14408   # We used to test for /lib/ld.so.1 and disable shared libraries on
14409   # powerpc, because MkLinux only supported shared libraries with the
14410   # GNU dynamic linker.  Since this was broken with cross compilers,
14411   # most powerpc-linux boxes support dynamic linking these days and
14412   # people can always --disable-shared, the test was removed, and we
14413   # assume the GNU/Linux dynamic linker is in use.
14414   dynamic_linker='GNU/Linux ld.so'
14415   ;;
14416
14417 netbsd*)
14418   version_type=sunos
14419   need_lib_prefix=no
14420   need_version=no
14421   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14423     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14424     dynamic_linker='NetBSD (a.out) ld.so'
14425   else
14426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14427     soname_spec='${libname}${release}${shared_ext}$major'
14428     dynamic_linker='NetBSD ld.elf_so'
14429   fi
14430   shlibpath_var=LD_LIBRARY_PATH
14431   shlibpath_overrides_runpath=yes
14432   hardcode_into_libs=yes
14433   ;;
14434
14435 newsos6)
14436   version_type=linux
14437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438   shlibpath_var=LD_LIBRARY_PATH
14439   shlibpath_overrides_runpath=yes
14440   ;;
14441
14442 nto-qnx)
14443   version_type=linux
14444   need_lib_prefix=no
14445   need_version=no
14446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14447   soname_spec='${libname}${release}${shared_ext}$major'
14448   shlibpath_var=LD_LIBRARY_PATH
14449   shlibpath_overrides_runpath=yes
14450   ;;
14451
14452 openbsd*)
14453   version_type=sunos
14454   need_lib_prefix=no
14455   need_version=no
14456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14457   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14458   shlibpath_var=LD_LIBRARY_PATH
14459   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14460     case $host_os in
14461       openbsd2.[89] | openbsd2.[89].*)
14462         shlibpath_overrides_runpath=no
14463         ;;
14464       *)
14465         shlibpath_overrides_runpath=yes
14466         ;;
14467       esac
14468   else
14469     shlibpath_overrides_runpath=yes
14470   fi
14471   ;;
14472
14473 os2*)
14474   libname_spec='$name'
14475   shrext=".dll"
14476   need_lib_prefix=no
14477   library_names_spec='$libname${shared_ext} $libname.a'
14478   dynamic_linker='OS/2 ld.exe'
14479   shlibpath_var=LIBPATH
14480   ;;
14481
14482 osf3* | osf4* | osf5*)
14483   version_type=osf
14484   need_lib_prefix=no
14485   need_version=no
14486   soname_spec='${libname}${release}${shared_ext}$major'
14487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488   shlibpath_var=LD_LIBRARY_PATH
14489   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14490   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14491   ;;
14492
14493 sco3.2v5*)
14494   version_type=osf
14495   soname_spec='${libname}${release}${shared_ext}$major'
14496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497   shlibpath_var=LD_LIBRARY_PATH
14498   ;;
14499
14500 solaris*)
14501   version_type=linux
14502   need_lib_prefix=no
14503   need_version=no
14504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505   soname_spec='${libname}${release}${shared_ext}$major'
14506   shlibpath_var=LD_LIBRARY_PATH
14507   shlibpath_overrides_runpath=yes
14508   hardcode_into_libs=yes
14509   # ldd complains unless libraries are executable
14510   postinstall_cmds='chmod +x $lib'
14511   ;;
14512
14513 sunos4*)
14514   version_type=sunos
14515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14516   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14517   shlibpath_var=LD_LIBRARY_PATH
14518   shlibpath_overrides_runpath=yes
14519   if test "$with_gnu_ld" = yes; then
14520     need_lib_prefix=no
14521   fi
14522   need_version=yes
14523   ;;
14524
14525 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14526   version_type=linux
14527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528   soname_spec='${libname}${release}${shared_ext}$major'
14529   shlibpath_var=LD_LIBRARY_PATH
14530   case $host_vendor in
14531     sni)
14532       shlibpath_overrides_runpath=no
14533       need_lib_prefix=no
14534       export_dynamic_flag_spec='${wl}-Blargedynsym'
14535       runpath_var=LD_RUN_PATH
14536       ;;
14537     siemens)
14538       need_lib_prefix=no
14539       ;;
14540     motorola)
14541       need_lib_prefix=no
14542       need_version=no
14543       shlibpath_overrides_runpath=no
14544       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14545       ;;
14546   esac
14547   ;;
14548
14549 sysv4*MP*)
14550   if test -d /usr/nec ;then
14551     version_type=linux
14552     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14553     soname_spec='$libname${shared_ext}.$major'
14554     shlibpath_var=LD_LIBRARY_PATH
14555   fi
14556   ;;
14557
14558 uts4*)
14559   version_type=linux
14560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561   soname_spec='${libname}${release}${shared_ext}$major'
14562   shlibpath_var=LD_LIBRARY_PATH
14563   ;;
14564
14565 *)
14566   dynamic_linker=no
14567   ;;
14568 esac
14569 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14570 echo "${ECHO_T}$dynamic_linker" >&6
14571 test "$dynamic_linker" = no && can_build_shared=no
14572
14573
14574 # The else clause should only fire when bootstrapping the
14575 # libtool distribution, otherwise you forgot to ship ltmain.sh
14576 # with your package, and you will get complaints that there are
14577 # no rules to generate ltmain.sh.
14578 if test -f "$ltmain"; then
14579   # See if we are running on zsh, and set the options which allow our commands through
14580   # without removal of \ escapes.
14581   if test -n "${ZSH_VERSION+set}" ; then
14582     setopt NO_GLOB_SUBST
14583   fi
14584   # Now quote all the things that may contain metacharacters while being
14585   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14586   # variables and quote the copies for generation of the libtool script.
14587   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14588     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14589     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14590     deplibs_check_method reload_flag reload_cmds need_locks \
14591     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14592     lt_cv_sys_global_symbol_to_c_name_address \
14593     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14594     old_postinstall_cmds old_postuninstall_cmds \
14595     compiler_F77 \
14596     CC_F77 \
14597     LD_F77 \
14598     lt_prog_compiler_wl_F77 \
14599     lt_prog_compiler_pic_F77 \
14600     lt_prog_compiler_static_F77 \
14601     lt_prog_compiler_no_builtin_flag_F77 \
14602     export_dynamic_flag_spec_F77 \
14603     thread_safe_flag_spec_F77 \
14604     whole_archive_flag_spec_F77 \
14605     enable_shared_with_static_runtimes_F77 \
14606     old_archive_cmds_F77 \
14607     old_archive_from_new_cmds_F77 \
14608     predep_objects_F77 \
14609     postdep_objects_F77 \
14610     predeps_F77 \
14611     postdeps_F77 \
14612     compiler_lib_search_path_F77 \
14613     archive_cmds_F77 \
14614     archive_expsym_cmds_F77 \
14615     postinstall_cmds_F77 \
14616     postuninstall_cmds_F77 \
14617     old_archive_from_expsyms_cmds_F77 \
14618     allow_undefined_flag_F77 \
14619     no_undefined_flag_F77 \
14620     export_symbols_cmds_F77 \
14621     hardcode_libdir_flag_spec_F77 \
14622     hardcode_libdir_flag_spec_ld_F77 \
14623     hardcode_libdir_separator_F77 \
14624     hardcode_automatic_F77 \
14625     module_cmds_F77 \
14626     module_expsym_cmds_F77 \
14627     lt_cv_prog_compiler_c_o_F77 \
14628     exclude_expsyms_F77 \
14629     include_expsyms_F77; do
14630
14631     case $var in
14632     old_archive_cmds_F77 | \
14633     old_archive_from_new_cmds_F77 | \
14634     archive_cmds_F77 | \
14635     archive_expsym_cmds_F77 | \
14636     module_cmds_F77 | \
14637     module_expsym_cmds_F77 | \
14638     old_archive_from_expsyms_cmds_F77 | \
14639     export_symbols_cmds_F77 | \
14640     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14641     postinstall_cmds | postuninstall_cmds | \
14642     old_postinstall_cmds | old_postuninstall_cmds | \
14643     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14644       # Double-quote double-evaled strings.
14645       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14646       ;;
14647     *)
14648       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14649       ;;
14650     esac
14651   done
14652
14653   case $lt_echo in
14654   *'\$0 --fallback-echo"')
14655     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14656     ;;
14657   esac
14658
14659 cfgfile="$ofile"
14660
14661   cat <<__EOF__ >> "$cfgfile"
14662 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14663
14664 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14665
14666 # Shell to use when invoking shell scripts.
14667 SHELL=$lt_SHELL
14668
14669 # Whether or not to build shared libraries.
14670 build_libtool_libs=$enable_shared
14671
14672 # Whether or not to build static libraries.
14673 build_old_libs=$enable_static
14674
14675 # Whether or not to add -lc for building shared libraries.
14676 build_libtool_need_lc=$archive_cmds_need_lc_F77
14677
14678 # Whether or not to disallow shared libs when runtime libs are static
14679 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14680
14681 # Whether or not to optimize for fast installation.
14682 fast_install=$enable_fast_install
14683
14684 # The host system.
14685 host_alias=$host_alias
14686 host=$host
14687
14688 # An echo program that does not interpret backslashes.
14689 echo=$lt_echo
14690
14691 # The archiver.
14692 AR=$lt_AR
14693 AR_FLAGS=$lt_AR_FLAGS
14694
14695 # A C compiler.
14696 LTCC=$lt_LTCC
14697
14698 # A language-specific compiler.
14699 CC=$lt_compiler_F77
14700
14701 # Is the compiler the GNU C compiler?
14702 with_gcc=$GCC_F77
14703
14704 # An ERE matcher.
14705 EGREP=$lt_EGREP
14706
14707 # The linker used to build libraries.
14708 LD=$lt_LD_F77
14709
14710 # Whether we need hard or soft links.
14711 LN_S=$lt_LN_S
14712
14713 # A BSD-compatible nm program.
14714 NM=$lt_NM
14715
14716 # A symbol stripping program
14717 STRIP=$STRIP
14718
14719 # Used to examine libraries when file_magic_cmd begins "file"
14720 MAGIC_CMD=$MAGIC_CMD
14721
14722 # Used on cygwin: DLL creation program.
14723 DLLTOOL="$DLLTOOL"
14724
14725 # Used on cygwin: object dumper.
14726 OBJDUMP="$OBJDUMP"
14727
14728 # Used on cygwin: assembler.
14729 AS="$AS"
14730
14731 # The name of the directory that contains temporary libtool files.
14732 objdir=$objdir
14733
14734 # How to create reloadable object files.
14735 reload_flag=$lt_reload_flag
14736 reload_cmds=$lt_reload_cmds
14737
14738 # How to pass a linker flag through the compiler.
14739 wl=$lt_lt_prog_compiler_wl_F77
14740
14741 # Object file suffix (normally "o").
14742 objext="$ac_objext"
14743
14744 # Old archive suffix (normally "a").
14745 libext="$libext"
14746
14747 # Shared library suffix (normally ".so").
14748 shrext='$shrext'
14749
14750 # Executable file suffix (normally "").
14751 exeext="$exeext"
14752
14753 # Additional compiler flags for building library objects.
14754 pic_flag=$lt_lt_prog_compiler_pic_F77
14755 pic_mode=$pic_mode
14756
14757 # What is the maximum length of a command?
14758 max_cmd_len=$lt_cv_sys_max_cmd_len
14759
14760 # Does compiler simultaneously support -c and -o options?
14761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14762
14763 # Must we lock files when doing compilation ?
14764 need_locks=$lt_need_locks
14765
14766 # Do we need the lib prefix for modules?
14767 need_lib_prefix=$need_lib_prefix
14768
14769 # Do we need a version for libraries?
14770 need_version=$need_version
14771
14772 # Whether dlopen is supported.
14773 dlopen_support=$enable_dlopen
14774
14775 # Whether dlopen of programs is supported.
14776 dlopen_self=$enable_dlopen_self
14777
14778 # Whether dlopen of statically linked programs is supported.
14779 dlopen_self_static=$enable_dlopen_self_static
14780
14781 # Compiler flag to prevent dynamic linking.
14782 link_static_flag=$lt_lt_prog_compiler_static_F77
14783
14784 # Compiler flag to turn off builtin functions.
14785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14786
14787 # Compiler flag to allow reflexive dlopens.
14788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14789
14790 # Compiler flag to generate shared objects directly from archives.
14791 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14792
14793 # Compiler flag to generate thread-safe objects.
14794 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14795
14796 # Library versioning type.
14797 version_type=$version_type
14798
14799 # Format of library name prefix.
14800 libname_spec=$lt_libname_spec
14801
14802 # List of archive names.  First name is the real one, the rest are links.
14803 # The last name is the one that the linker finds with -lNAME.
14804 library_names_spec=$lt_library_names_spec
14805
14806 # The coded name of the library, if different from the real name.
14807 soname_spec=$lt_soname_spec
14808
14809 # Commands used to build and install an old-style archive.
14810 RANLIB=$lt_RANLIB
14811 old_archive_cmds=$lt_old_archive_cmds_F77
14812 old_postinstall_cmds=$lt_old_postinstall_cmds
14813 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14814
14815 # Create an old-style archive from a shared archive.
14816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14817
14818 # Create a temporary old-style archive to link instead of a shared archive.
14819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14820
14821 # Commands used to build and install a shared archive.
14822 archive_cmds=$lt_archive_cmds_F77
14823 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14824 postinstall_cmds=$lt_postinstall_cmds
14825 postuninstall_cmds=$lt_postuninstall_cmds
14826
14827 # Commands used to build a loadable module (assumed same as above if empty)
14828 module_cmds=$lt_module_cmds_F77
14829 module_expsym_cmds=$lt_module_expsym_cmds_F77
14830
14831 # Commands to strip libraries.
14832 old_striplib=$lt_old_striplib
14833 striplib=$lt_striplib
14834
14835 # Dependencies to place before the objects being linked to create a
14836 # shared library.
14837 predep_objects=$lt_predep_objects_F77
14838
14839 # Dependencies to place after the objects being linked to create a
14840 # shared library.
14841 postdep_objects=$lt_postdep_objects_F77
14842
14843 # Dependencies to place before the objects being linked to create a
14844 # shared library.
14845 predeps=$lt_predeps_F77
14846
14847 # Dependencies to place after the objects being linked to create a
14848 # shared library.
14849 postdeps=$lt_postdeps_F77
14850
14851 # The library search path used internally by the compiler when linking
14852 # a shared library.
14853 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14854
14855 # Method to check whether dependent libraries are shared objects.
14856 deplibs_check_method=$lt_deplibs_check_method
14857
14858 # Command to use when deplibs_check_method == file_magic.
14859 file_magic_cmd=$lt_file_magic_cmd
14860
14861 # Flag that allows shared libraries with undefined symbols to be built.
14862 allow_undefined_flag=$lt_allow_undefined_flag_F77
14863
14864 # Flag that forces no undefined symbols.
14865 no_undefined_flag=$lt_no_undefined_flag_F77
14866
14867 # Commands used to finish a libtool library installation in a directory.
14868 finish_cmds=$lt_finish_cmds
14869
14870 # Same as above, but a single script fragment to be evaled but not shown.
14871 finish_eval=$lt_finish_eval
14872
14873 # Take the output of nm and produce a listing of raw symbols and C names.
14874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14875
14876 # Transform the output of nm in a proper C declaration
14877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14878
14879 # Transform the output of nm in a C name address pair
14880 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14881
14882 # This is the shared library runtime path variable.
14883 runpath_var=$runpath_var
14884
14885 # This is the shared library path variable.
14886 shlibpath_var=$shlibpath_var
14887
14888 # Is shlibpath searched before the hard-coded library search path?
14889 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14890
14891 # How to hardcode a shared library path into an executable.
14892 hardcode_action=$hardcode_action_F77
14893
14894 # Whether we should hardcode library paths into libraries.
14895 hardcode_into_libs=$hardcode_into_libs
14896
14897 # Flag to hardcode \$libdir into a binary during linking.
14898 # This must work even if \$libdir does not exist.
14899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14900
14901 # If ld is used when linking, flag to hardcode \$libdir into
14902 # a binary during linking. This must work even if \$libdir does
14903 # not exist.
14904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14905
14906 # Whether we need a single -rpath flag with a separated argument.
14907 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14908
14909 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14910 # resulting binary.
14911 hardcode_direct=$hardcode_direct_F77
14912
14913 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14914 # resulting binary.
14915 hardcode_minus_L=$hardcode_minus_L_F77
14916
14917 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14918 # the resulting binary.
14919 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14920
14921 # Set to yes if building a shared library automatically hardcodes DIR into the library
14922 # and all subsequent libraries and executables linked against it.
14923 hardcode_automatic=$hardcode_automatic_F77
14924
14925 # Variables whose values should be saved in libtool wrapper scripts and
14926 # restored at relink time.
14927 variables_saved_for_relink="$variables_saved_for_relink"
14928
14929 # Whether libtool must link a program against all its dependency libraries.
14930 link_all_deplibs=$link_all_deplibs_F77
14931
14932 # Compile-time system search path for libraries
14933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14934
14935 # Run-time system search path for libraries
14936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14937
14938 # Fix the shell variable \$srcfile for the compiler.
14939 fix_srcfile_path="$fix_srcfile_path_F77"
14940
14941 # Set to yes if exported symbols are required.
14942 always_export_symbols=$always_export_symbols_F77
14943
14944 # The commands to list exported symbols.
14945 export_symbols_cmds=$lt_export_symbols_cmds_F77
14946
14947 # The commands to extract the exported symbol list from a shared archive.
14948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14949
14950 # Symbols that should not be listed in the preloaded symbols.
14951 exclude_expsyms=$lt_exclude_expsyms_F77
14952
14953 # Symbols that must always be exported.
14954 include_expsyms=$lt_include_expsyms_F77
14955
14956 # ### END LIBTOOL TAG CONFIG: $tagname
14957
14958 __EOF__
14959
14960
14961 else
14962   # If there is no Makefile yet, we rely on a make rule to execute
14963   # `config.status --recheck' to rerun these tests and create the
14964   # libtool script then.
14965   test -f Makefile && make "$ltmain"
14966 fi
14967
14968
14969 ac_ext=c
14970 ac_cpp='$CPP $CPPFLAGS'
14971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14974
14975 CC="$lt_save_CC"
14976
14977         else
14978           tagname=""
14979         fi
14980         ;;
14981
14982       GCJ)
14983         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14984
14985
14986
14987 # Source file extension for Java test sources.
14988 ac_ext=java
14989
14990 # Object file extension for compiled Java test sources.
14991 objext=o
14992 objext_GCJ=$objext
14993
14994 # Code to be used in simple compile tests
14995 lt_simple_compile_test_code="class foo {}\n"
14996
14997 # Code to be used in simple link tests
14998 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14999
15000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15001
15002 # If no C compiler was specified, use CC.
15003 LTCC=${LTCC-"$CC"}
15004
15005 # Allow CC to be a program name with arguments.
15006 compiler=$CC
15007
15008
15009 # Allow CC to be a program name with arguments.
15010 lt_save_CC="$CC"
15011 CC=${GCJ-"gcj"}
15012 compiler=$CC
15013 compiler_GCJ=$CC
15014
15015 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15016 archive_cmds_need_lc_GCJ=no
15017
15018 ## CAVEAT EMPTOR:
15019 ## There is no encapsulation within the following macros, do not change
15020 ## the running order or otherwise move them around unless you know exactly
15021 ## what you are doing...
15022
15023 lt_prog_compiler_no_builtin_flag_GCJ=
15024
15025 if test "$GCC" = yes; then
15026   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15027
15028   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15029 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15030 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15031   echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033   lt_cv_prog_compiler_rtti_exceptions=no
15034   ac_outfile=conftest.$ac_objext
15035    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15036    lt_compiler_flag="-fno-rtti -fno-exceptions"
15037    # Insert the option either (1) after the last *FLAGS variable, or
15038    # (2) before a word containing "conftest.", or (3) at the end.
15039    # Note that $ac_compile itself does not contain backslashes and begins
15040    # with a dollar sign (not a hyphen), so the echo should work correctly.
15041    # The option is referenced via a variable to avoid confusing sed.
15042    lt_compile=`echo "$ac_compile" | $SED \
15043    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15045    -e 's:$: $lt_compiler_flag:'`
15046    (eval echo "\"\$as_me:15046: $lt_compile\"" >&5)
15047    (eval "$lt_compile" 2>conftest.err)
15048    ac_status=$?
15049    cat conftest.err >&5
15050    echo "$as_me:15050: \$? = $ac_status" >&5
15051    if (exit $ac_status) && test -s "$ac_outfile"; then
15052      # The compiler can only warn and ignore the option if not recognized
15053      # So say no if there are warnings
15054      if test ! -s conftest.err; then
15055        lt_cv_prog_compiler_rtti_exceptions=yes
15056      fi
15057    fi
15058    $rm conftest*
15059
15060 fi
15061 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15062 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15063
15064 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15065     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15066 else
15067     :
15068 fi
15069
15070 fi
15071
15072 lt_prog_compiler_wl_GCJ=
15073 lt_prog_compiler_pic_GCJ=
15074 lt_prog_compiler_static_GCJ=
15075
15076 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15077 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15078
15079   if test "$GCC" = yes; then
15080     lt_prog_compiler_wl_GCJ='-Wl,'
15081     lt_prog_compiler_static_GCJ='-static'
15082
15083     case $host_os in
15084       aix*)
15085       # All AIX code is PIC.
15086       if test "$host_cpu" = ia64; then
15087         # AIX 5 now supports IA64 processor
15088         lt_prog_compiler_static_GCJ='-Bstatic'
15089       fi
15090       ;;
15091
15092     amigaos*)
15093       # FIXME: we need at least 68020 code to build shared libraries, but
15094       # adding the `-m68020' flag to GCC prevents building anything better,
15095       # like `-m68040'.
15096       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15097       ;;
15098
15099     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15100       # PIC is the default for these OSes.
15101       ;;
15102
15103     mingw* | pw32* | os2*)
15104       # This hack is so that the source file can tell whether it is being
15105       # built for inclusion in a dll (and should export symbols for example).
15106       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15107       ;;
15108
15109     darwin* | rhapsody*)
15110       # PIC is the default on this platform
15111       # Common symbols not allowed in MH_DYLIB files
15112       lt_prog_compiler_pic_GCJ='-fno-common'
15113       ;;
15114
15115     msdosdjgpp*)
15116       # Just because we use GCC doesn't mean we suddenly get shared libraries
15117       # on systems that don't support them.
15118       lt_prog_compiler_can_build_shared_GCJ=no
15119       enable_shared=no
15120       ;;
15121
15122     sysv4*MP*)
15123       if test -d /usr/nec; then
15124         lt_prog_compiler_pic_GCJ=-Kconform_pic
15125       fi
15126       ;;
15127
15128     hpux*)
15129       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15130       # not for PA HP-UX.
15131       case "$host_cpu" in
15132       hppa*64*|ia64*)
15133         # +Z the default
15134         ;;
15135       *)
15136         lt_prog_compiler_pic_GCJ='-fPIC'
15137         ;;
15138       esac
15139       ;;
15140
15141     *)
15142       lt_prog_compiler_pic_GCJ='-fPIC'
15143       ;;
15144     esac
15145   else
15146     # PORTME Check for flag to pass linker flags through the system compiler.
15147     case $host_os in
15148     aix*)
15149       lt_prog_compiler_wl_GCJ='-Wl,'
15150       if test "$host_cpu" = ia64; then
15151         # AIX 5 now supports IA64 processor
15152         lt_prog_compiler_static_GCJ='-Bstatic'
15153       else
15154         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15155       fi
15156       ;;
15157
15158     mingw* | pw32* | os2*)
15159       # This hack is so that the source file can tell whether it is being
15160       # built for inclusion in a dll (and should export symbols for example).
15161       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15162       ;;
15163
15164     hpux9* | hpux10* | hpux11*)
15165       lt_prog_compiler_wl_GCJ='-Wl,'
15166       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15167       # not for PA HP-UX.
15168       case "$host_cpu" in
15169       hppa*64*|ia64*)
15170         # +Z the default
15171         ;;
15172       *)
15173         lt_prog_compiler_pic_GCJ='+Z'
15174         ;;
15175       esac
15176       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15177       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15178       ;;
15179
15180     irix5* | irix6* | nonstopux*)
15181       lt_prog_compiler_wl_GCJ='-Wl,'
15182       # PIC (with -KPIC) is the default.
15183       lt_prog_compiler_static_GCJ='-non_shared'
15184       ;;
15185
15186     newsos6)
15187       lt_prog_compiler_pic_GCJ='-KPIC'
15188       lt_prog_compiler_static_GCJ='-Bstatic'
15189       ;;
15190
15191     linux*)
15192       case $CC in
15193       icc|ecc)
15194         lt_prog_compiler_wl_GCJ='-Wl,'
15195         lt_prog_compiler_pic_GCJ='-KPIC'
15196         lt_prog_compiler_static_GCJ='-static'
15197         ;;
15198       ccc)
15199         lt_prog_compiler_wl_GCJ='-Wl,'
15200         # All Alpha code is PIC.
15201         lt_prog_compiler_static_GCJ='-non_shared'
15202         ;;
15203       esac
15204       ;;
15205
15206     osf3* | osf4* | osf5*)
15207       lt_prog_compiler_wl_GCJ='-Wl,'
15208       # All OSF/1 code is PIC.
15209       lt_prog_compiler_static_GCJ='-non_shared'
15210       ;;
15211
15212     sco3.2v5*)
15213       lt_prog_compiler_pic_GCJ='-Kpic'
15214       lt_prog_compiler_static_GCJ='-dn'
15215       ;;
15216
15217     solaris*)
15218       lt_prog_compiler_wl_GCJ='-Wl,'
15219       lt_prog_compiler_pic_GCJ='-KPIC'
15220       lt_prog_compiler_static_GCJ='-Bstatic'
15221       ;;
15222
15223     sunos4*)
15224       lt_prog_compiler_wl_GCJ='-Qoption ld '
15225       lt_prog_compiler_pic_GCJ='-PIC'
15226       lt_prog_compiler_static_GCJ='-Bstatic'
15227       ;;
15228
15229     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15230       lt_prog_compiler_wl_GCJ='-Wl,'
15231       lt_prog_compiler_pic_GCJ='-KPIC'
15232       lt_prog_compiler_static_GCJ='-Bstatic'
15233       ;;
15234
15235     sysv4*MP*)
15236       if test -d /usr/nec ;then
15237         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15238         lt_prog_compiler_static_GCJ='-Bstatic'
15239       fi
15240       ;;
15241
15242     uts4*)
15243       lt_prog_compiler_pic_GCJ='-pic'
15244       lt_prog_compiler_static_GCJ='-Bstatic'
15245       ;;
15246
15247     *)
15248       lt_prog_compiler_can_build_shared_GCJ=no
15249       ;;
15250     esac
15251   fi
15252
15253 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15254 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15255
15256 #
15257 # Check to make sure the PIC flag actually works.
15258 #
15259 if test -n "$lt_prog_compiler_pic_GCJ"; then
15260   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15261 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15262 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15263   echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265   lt_prog_compiler_pic_works_GCJ=no
15266   ac_outfile=conftest.$ac_objext
15267    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15268    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15269    # Insert the option either (1) after the last *FLAGS variable, or
15270    # (2) before a word containing "conftest.", or (3) at the end.
15271    # Note that $ac_compile itself does not contain backslashes and begins
15272    # with a dollar sign (not a hyphen), so the echo should work correctly.
15273    # The option is referenced via a variable to avoid confusing sed.
15274    lt_compile=`echo "$ac_compile" | $SED \
15275    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15277    -e 's:$: $lt_compiler_flag:'`
15278    (eval echo "\"\$as_me:15278: $lt_compile\"" >&5)
15279    (eval "$lt_compile" 2>conftest.err)
15280    ac_status=$?
15281    cat conftest.err >&5
15282    echo "$as_me:15282: \$? = $ac_status" >&5
15283    if (exit $ac_status) && test -s "$ac_outfile"; then
15284      # The compiler can only warn and ignore the option if not recognized
15285      # So say no if there are warnings
15286      if test ! -s conftest.err; then
15287        lt_prog_compiler_pic_works_GCJ=yes
15288      fi
15289    fi
15290    $rm conftest*
15291
15292 fi
15293 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15294 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15295
15296 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15297     case $lt_prog_compiler_pic_GCJ in
15298      "" | " "*) ;;
15299      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15300      esac
15301 else
15302     lt_prog_compiler_pic_GCJ=
15303      lt_prog_compiler_can_build_shared_GCJ=no
15304 fi
15305
15306 fi
15307 case "$host_os" in
15308   # For platforms which do not support PIC, -DPIC is meaningless:
15309   *djgpp*)
15310     lt_prog_compiler_pic_GCJ=
15311     ;;
15312   *)
15313     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15314     ;;
15315 esac
15316
15317 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15318 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15319 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15320   echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322   lt_cv_prog_compiler_c_o_GCJ=no
15323    $rm -r conftest 2>/dev/null
15324    mkdir conftest
15325    cd conftest
15326    mkdir out
15327    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15328
15329    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15330    # that will create temporary files in the current directory regardless of
15331    # the output directory.  Thus, making CWD read-only will cause this test
15332    # to fail, enabling locking or at least warning the user not to do parallel
15333    # builds.
15334    chmod -w .
15335
15336    lt_compiler_flag="-o out/conftest2.$ac_objext"
15337    # Insert the option either (1) after the last *FLAGS variable, or
15338    # (2) before a word containing "conftest.", or (3) at the end.
15339    # Note that $ac_compile itself does not contain backslashes and begins
15340    # with a dollar sign (not a hyphen), so the echo should work correctly.
15341    lt_compile=`echo "$ac_compile" | $SED \
15342    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15343    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15344    -e 's:$: $lt_compiler_flag:'`
15345    (eval echo "\"\$as_me:15345: $lt_compile\"" >&5)
15346    (eval "$lt_compile" 2>out/conftest.err)
15347    ac_status=$?
15348    cat out/conftest.err >&5
15349    echo "$as_me:15349: \$? = $ac_status" >&5
15350    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15351    then
15352      # The compiler can only warn and ignore the option if not recognized
15353      # So say no if there are warnings
15354      if test ! -s out/conftest.err; then
15355        lt_cv_prog_compiler_c_o_GCJ=yes
15356      fi
15357    fi
15358    chmod u+w .
15359    $rm conftest* out/*
15360    rmdir out
15361    cd ..
15362    rmdir conftest
15363    $rm conftest*
15364
15365 fi
15366 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15367 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15368
15369
15370 hard_links="nottested"
15371 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15372   # do not overwrite the value of need_locks provided by the user
15373   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15374 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15375   hard_links=yes
15376   $rm conftest*
15377   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15378   touch conftest.a
15379   ln conftest.a conftest.b 2>&5 || hard_links=no
15380   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15381   echo "$as_me:$LINENO: result: $hard_links" >&5
15382 echo "${ECHO_T}$hard_links" >&6
15383   if test "$hard_links" = no; then
15384     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15385 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15386     need_locks=warn
15387   fi
15388 else
15389   need_locks=no
15390 fi
15391
15392 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15393 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15394
15395   runpath_var=
15396   allow_undefined_flag_GCJ=
15397   enable_shared_with_static_runtimes_GCJ=no
15398   archive_cmds_GCJ=
15399   archive_expsym_cmds_GCJ=
15400   old_archive_From_new_cmds_GCJ=
15401   old_archive_from_expsyms_cmds_GCJ=
15402   export_dynamic_flag_spec_GCJ=
15403   whole_archive_flag_spec_GCJ=
15404   thread_safe_flag_spec_GCJ=
15405   hardcode_libdir_flag_spec_GCJ=
15406   hardcode_libdir_flag_spec_ld_GCJ=
15407   hardcode_libdir_separator_GCJ=
15408   hardcode_direct_GCJ=no
15409   hardcode_minus_L_GCJ=no
15410   hardcode_shlibpath_var_GCJ=unsupported
15411   link_all_deplibs_GCJ=unknown
15412   hardcode_automatic_GCJ=no
15413   module_cmds_GCJ=
15414   module_expsym_cmds_GCJ=
15415   always_export_symbols_GCJ=no
15416   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15417   # include_expsyms should be a list of space-separated symbols to be *always*
15418   # included in the symbol list
15419   include_expsyms_GCJ=
15420   # exclude_expsyms can be an extended regexp of symbols to exclude
15421   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15422   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15423   # as well as any symbol that contains `d'.
15424   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15425   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15426   # platforms (ab)use it in PIC code, but their linkers get confused if
15427   # the symbol is explicitly referenced.  Since portable code cannot
15428   # rely on this symbol name, it's probably fine to never include it in
15429   # preloaded symbol tables.
15430   extract_expsyms_cmds=
15431
15432   case $host_os in
15433   cygwin* | mingw* | pw32*)
15434     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15435     # When not using gcc, we currently assume that we are using
15436     # Microsoft Visual C++.
15437     if test "$GCC" != yes; then
15438       with_gnu_ld=no
15439     fi
15440     ;;
15441   openbsd*)
15442     with_gnu_ld=no
15443     ;;
15444   esac
15445
15446   ld_shlibs_GCJ=yes
15447   if test "$with_gnu_ld" = yes; then
15448     # If archive_cmds runs LD, not CC, wlarc should be empty
15449     wlarc='${wl}'
15450
15451     # See if GNU ld supports shared libraries.
15452     case $host_os in
15453     aix3* | aix4* | aix5*)
15454       # On AIX/PPC, the GNU linker is very broken
15455       if test "$host_cpu" != ia64; then
15456         ld_shlibs_GCJ=no
15457         cat <<EOF 1>&2
15458
15459 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15460 *** to be unable to reliably create shared libraries on AIX.
15461 *** Therefore, libtool is disabling shared libraries support.  If you
15462 *** really care for shared libraries, you may want to modify your PATH
15463 *** so that a non-GNU linker is found, and then restart.
15464
15465 EOF
15466       fi
15467       ;;
15468
15469     amigaos*)
15470       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)'
15471       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15472       hardcode_minus_L_GCJ=yes
15473
15474       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15475       # that the semantics of dynamic libraries on AmigaOS, at least up
15476       # to version 4, is to share data among multiple programs linked
15477       # with the same dynamic library.  Since this doesn't match the
15478       # behavior of shared libraries on other platforms, we can't use
15479       # them.
15480       ld_shlibs_GCJ=no
15481       ;;
15482
15483     beos*)
15484       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15485         allow_undefined_flag_GCJ=unsupported
15486         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15487         # support --undefined.  This deserves some investigation.  FIXME
15488         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15489       else
15490         ld_shlibs_GCJ=no
15491       fi
15492       ;;
15493
15494     cygwin* | mingw* | pw32*)
15495       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15496       # as there is no search path for DLLs.
15497       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15498       allow_undefined_flag_GCJ=unsupported
15499       always_export_symbols_GCJ=no
15500       enable_shared_with_static_runtimes_GCJ=yes
15501       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15502
15503       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15504         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15505         # If the export-symbols file already is a .def file (1st line
15506         # is EXPORTS), use it as is; otherwise, prepend...
15507         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15508           cp $export_symbols $output_objdir/$soname.def;
15509         else
15510           echo EXPORTS > $output_objdir/$soname.def;
15511           cat $export_symbols >> $output_objdir/$soname.def;
15512         fi~
15513         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15514       else
15515         ld_shlibs=no
15516       fi
15517       ;;
15518
15519     netbsd*)
15520       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15521         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15522         wlarc=
15523       else
15524         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15525         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15526       fi
15527       ;;
15528
15529     solaris* | sysv5*)
15530       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15531         ld_shlibs_GCJ=no
15532         cat <<EOF 1>&2
15533
15534 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15535 *** create shared libraries on Solaris systems.  Therefore, libtool
15536 *** is disabling shared libraries support.  We urge you to upgrade GNU
15537 *** binutils to release 2.9.1 or newer.  Another option is to modify
15538 *** your PATH or compiler configuration so that the native linker is
15539 *** used, and then restart.
15540
15541 EOF
15542       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15543         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15545       else
15546         ld_shlibs_GCJ=no
15547       fi
15548       ;;
15549
15550     sunos4*)
15551       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15552       wlarc=
15553       hardcode_direct_GCJ=yes
15554       hardcode_shlibpath_var_GCJ=no
15555       ;;
15556
15557     *)
15558       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15559         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15560         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15561       else
15562         ld_shlibs_GCJ=no
15563       fi
15564       ;;
15565     esac
15566
15567     if test "$ld_shlibs_GCJ" = yes; then
15568       runpath_var=LD_RUN_PATH
15569       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15570       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15571       # ancient GNU ld didn't support --whole-archive et. al.
15572       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15573         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15574       else
15575         whole_archive_flag_spec_GCJ=
15576       fi
15577     fi
15578   else
15579     # PORTME fill in a description of your system's linker (not GNU ld)
15580     case $host_os in
15581     aix3*)
15582       allow_undefined_flag_GCJ=unsupported
15583       always_export_symbols_GCJ=yes
15584       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'
15585       # Note: this linker hardcodes the directories in LIBPATH if there
15586       # are no directories specified by -L.
15587       hardcode_minus_L_GCJ=yes
15588       if test "$GCC" = yes && test -z "$link_static_flag"; then
15589         # Neither direct hardcoding nor static linking is supported with a
15590         # broken collect2.
15591         hardcode_direct_GCJ=unsupported
15592       fi
15593       ;;
15594
15595     aix4* | aix5*)
15596       if test "$host_cpu" = ia64; then
15597         # On IA64, the linker does run time linking by default, so we don't
15598         # have to do anything special.
15599         aix_use_runtimelinking=no
15600         exp_sym_flag='-Bexport'
15601         no_entry_flag=""
15602       else
15603         # If we're using GNU nm, then we don't want the "-C" option.
15604         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15605         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15606           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'
15607         else
15608           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'
15609         fi
15610         aix_use_runtimelinking=no
15611
15612         # Test if we are trying to use run time linking or normal
15613         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15614         # need to do runtime linking.
15615         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15616           for ld_flag in $LDFLAGS; do
15617           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15618             aix_use_runtimelinking=yes
15619             break
15620           fi
15621           done
15622         esac
15623
15624         exp_sym_flag='-bexport'
15625         no_entry_flag='-bnoentry'
15626       fi
15627
15628       # When large executables or shared objects are built, AIX ld can
15629       # have problems creating the table of contents.  If linking a library
15630       # or program results in "error TOC overflow" add -mminimal-toc to
15631       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15632       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15633
15634       archive_cmds_GCJ=''
15635       hardcode_direct_GCJ=yes
15636       hardcode_libdir_separator_GCJ=':'
15637       link_all_deplibs_GCJ=yes
15638
15639       if test "$GCC" = yes; then
15640         case $host_os in aix4.012|aix4.012.*)
15641         # We only want to do this on AIX 4.2 and lower, the check
15642         # below for broken collect2 doesn't work under 4.3+
15643           collect2name=`${CC} -print-prog-name=collect2`
15644           if test -f "$collect2name" && \
15645            strings "$collect2name" | grep resolve_lib_name >/dev/null
15646           then
15647           # We have reworked collect2
15648           hardcode_direct_GCJ=yes
15649           else
15650           # We have old collect2
15651           hardcode_direct_GCJ=unsupported
15652           # It fails to find uninstalled libraries when the uninstalled
15653           # path is not listed in the libpath.  Setting hardcode_minus_L
15654           # to unsupported forces relinking
15655           hardcode_minus_L_GCJ=yes
15656           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15657           hardcode_libdir_separator_GCJ=
15658           fi
15659         esac
15660         shared_flag='-shared'
15661       else
15662         # not using gcc
15663         if test "$host_cpu" = ia64; then
15664         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15665         # chokes on -Wl,-G. The following line is correct:
15666           shared_flag='-G'
15667         else
15668         if test "$aix_use_runtimelinking" = yes; then
15669             shared_flag='${wl}-G'
15670           else
15671             shared_flag='${wl}-bM:SRE'
15672         fi
15673         fi
15674       fi
15675
15676       # It seems that -bexpall does not export symbols beginning with
15677       # underscore (_), so it is better to generate a list of symbols to export.
15678       always_export_symbols_GCJ=yes
15679       if test "$aix_use_runtimelinking" = yes; then
15680         # Warning - without using the other runtime loading flags (-brtl),
15681         # -berok will link without error, but may produce a broken library.
15682         allow_undefined_flag_GCJ='-berok'
15683        # Determine the default libpath from the value encoded in an empty executable.
15684        cat >conftest.$ac_ext <<_ACEOF
15685 #line $LINENO "configure"
15686 /* confdefs.h.  */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h.  */
15691
15692 int
15693 main ()
15694 {
15695
15696   ;
15697   return 0;
15698 }
15699 _ACEOF
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702   (eval $ac_link) 2>&5
15703   ac_status=$?
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); } &&
15706          { ac_try='test -s conftest$ac_exeext'
15707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708   (eval $ac_try) 2>&5
15709   ac_status=$?
15710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711   (exit $ac_status); }; }; then
15712
15713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15714 }'`
15715 # Check for a 64-bit object if we didn't find anything.
15716 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; }
15717 }'`; fi
15718 else
15719   echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 fi
15723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15725
15726        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15727         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"
15728        else
15729         if test "$host_cpu" = ia64; then
15730           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15731           allow_undefined_flag_GCJ="-z nodefs"
15732           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"
15733         else
15734          # Determine the default libpath from the value encoded in an empty executable.
15735          cat >conftest.$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15737 /* confdefs.h.  */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h.  */
15742
15743 int
15744 main ()
15745 {
15746
15747   ;
15748   return 0;
15749 }
15750 _ACEOF
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15753   (eval $ac_link) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } &&
15757          { ac_try='test -s conftest$ac_exeext'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763
15764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15765 }'`
15766 # Check for a 64-bit object if we didn't find anything.
15767 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; }
15768 }'`; fi
15769 else
15770   echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15772
15773 fi
15774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15776
15777          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15778           # Warning - without using the other run time loading flags,
15779           # -berok will link without error, but may produce a broken library.
15780           no_undefined_flag_GCJ=' ${wl}-bernotok'
15781           allow_undefined_flag_GCJ=' ${wl}-berok'
15782           # -bexpall does not export symbols beginning with underscore (_)
15783           always_export_symbols_GCJ=yes
15784           # Exported symbols can be pulled into shared objects from archives
15785           whole_archive_flag_spec_GCJ=' '
15786           archive_cmds_need_lc_GCJ=yes
15787           # This is similar to how AIX traditionally builds it's shared libraries.
15788           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'
15789         fi
15790       fi
15791       ;;
15792
15793     amigaos*)
15794       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)'
15795       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15796       hardcode_minus_L_GCJ=yes
15797       # see comment about different semantics on the GNU ld section
15798       ld_shlibs_GCJ=no
15799       ;;
15800
15801     bsdi4*)
15802       export_dynamic_flag_spec_GCJ=-rdynamic
15803       ;;
15804
15805     cygwin* | mingw* | pw32*)
15806       # When not using gcc, we currently assume that we are using
15807       # Microsoft Visual C++.
15808       # hardcode_libdir_flag_spec is actually meaningless, as there is
15809       # no search path for DLLs.
15810       hardcode_libdir_flag_spec_GCJ=' '
15811       allow_undefined_flag_GCJ=unsupported
15812       # Tell ltmain to make .lib files, not .a files.
15813       libext=lib
15814       # Tell ltmain to make .dll files, not .so files.
15815       shrext=".dll"
15816       # FIXME: Setting linknames here is a bad hack.
15817       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15818       # The linker will automatically build a .lib file if we build a DLL.
15819       old_archive_From_new_cmds_GCJ='true'
15820       # FIXME: Should let the user specify the lib program.
15821       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15822       fix_srcfile_path='`cygpath -w "$srcfile"`'
15823       enable_shared_with_static_runtimes_GCJ=yes
15824       ;;
15825
15826     darwin* | rhapsody*)
15827     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15828       archive_cmds_need_lc_GCJ=no
15829       case "$host_os" in
15830       rhapsody* | darwin1.[012])
15831         allow_undefined_flag_GCJ='-undefined suppress'
15832         ;;
15833       *) # Darwin 1.3 on
15834         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15835         ;;
15836       esac
15837       # FIXME: Relying on posixy $() will cause problems for
15838       #        cross-compilation, but unfortunately the echo tests do not
15839       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15840       #        `"' quotes if we put them in here... so don't!
15841         lt_int_apple_cc_single_mod=no
15842         output_verbose_link_cmd='echo'
15843         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15844           lt_int_apple_cc_single_mod=yes
15845         fi
15846         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15847           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15848         else
15849         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'
15850       fi
15851       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15852       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15853         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15854           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}'
15855         else
15856           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}'
15857         fi
15858           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}'
15859       hardcode_direct_GCJ=no
15860       hardcode_automatic_GCJ=yes
15861       hardcode_shlibpath_var_GCJ=unsupported
15862       whole_archive_flag_spec_GCJ='-all_load $convenience'
15863       link_all_deplibs_GCJ=yes
15864     fi
15865       ;;
15866
15867     dgux*)
15868       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15869       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15870       hardcode_shlibpath_var_GCJ=no
15871       ;;
15872
15873     freebsd1*)
15874       ld_shlibs_GCJ=no
15875       ;;
15876
15877     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15878     # support.  Future versions do this automatically, but an explicit c++rt0.o
15879     # does not break anything, and helps significantly (at the cost of a little
15880     # extra space).
15881     freebsd2.2*)
15882       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15883       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15884       hardcode_direct_GCJ=yes
15885       hardcode_shlibpath_var_GCJ=no
15886       ;;
15887
15888     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15889     freebsd2*)
15890       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15891       hardcode_direct_GCJ=yes
15892       hardcode_minus_L_GCJ=yes
15893       hardcode_shlibpath_var_GCJ=no
15894       ;;
15895
15896     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15897     freebsd*)
15898       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15899       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15900       hardcode_direct_GCJ=yes
15901       hardcode_shlibpath_var_GCJ=no
15902       ;;
15903
15904     hpux9*)
15905       if test "$GCC" = yes; then
15906         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'
15907       else
15908         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'
15909       fi
15910       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15911       hardcode_libdir_separator_GCJ=:
15912       hardcode_direct_GCJ=yes
15913
15914       # hardcode_minus_L: Not really in the search PATH,
15915       # but as the default location of the library.
15916       hardcode_minus_L_GCJ=yes
15917       export_dynamic_flag_spec_GCJ='${wl}-E'
15918       ;;
15919
15920     hpux10* | hpux11*)
15921       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15922         case "$host_cpu" in
15923         hppa*64*|ia64*)
15924           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925           ;;
15926         *)
15927           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15928           ;;
15929         esac
15930       else
15931         case "$host_cpu" in
15932         hppa*64*|ia64*)
15933           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15934           ;;
15935         *)
15936           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15937           ;;
15938         esac
15939       fi
15940       if test "$with_gnu_ld" = no; then
15941         case "$host_cpu" in
15942         hppa*64*)
15943           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15944           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15945           hardcode_libdir_separator_GCJ=:
15946           hardcode_direct_GCJ=no
15947           hardcode_shlibpath_var_GCJ=no
15948           ;;
15949         ia64*)
15950           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15951           hardcode_direct_GCJ=no
15952           hardcode_shlibpath_var_GCJ=no
15953
15954           # hardcode_minus_L: Not really in the search PATH,
15955           # but as the default location of the library.
15956           hardcode_minus_L_GCJ=yes
15957           ;;
15958         *)
15959           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15960           hardcode_libdir_separator_GCJ=:
15961           hardcode_direct_GCJ=yes
15962           export_dynamic_flag_spec_GCJ='${wl}-E'
15963
15964           # hardcode_minus_L: Not really in the search PATH,
15965           # but as the default location of the library.
15966           hardcode_minus_L_GCJ=yes
15967           ;;
15968         esac
15969       fi
15970       ;;
15971
15972     irix5* | irix6* | nonstopux*)
15973       if test "$GCC" = yes; then
15974         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'
15975       else
15976         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'
15977         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15978       fi
15979       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15980       hardcode_libdir_separator_GCJ=:
15981       link_all_deplibs_GCJ=yes
15982       ;;
15983
15984     netbsd*)
15985       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15986         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15987       else
15988         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15989       fi
15990       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15991       hardcode_direct_GCJ=yes
15992       hardcode_shlibpath_var_GCJ=no
15993       ;;
15994
15995     newsos6)
15996       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15997       hardcode_direct_GCJ=yes
15998       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15999       hardcode_libdir_separator_GCJ=:
16000       hardcode_shlibpath_var_GCJ=no
16001       ;;
16002
16003     openbsd*)
16004       hardcode_direct_GCJ=yes
16005       hardcode_shlibpath_var_GCJ=no
16006       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16007         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16008         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16009         export_dynamic_flag_spec_GCJ='${wl}-E'
16010       else
16011        case $host_os in
16012          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16013            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16014            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16015            ;;
16016          *)
16017            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16018            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16019            ;;
16020        esac
16021       fi
16022       ;;
16023
16024     os2*)
16025       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16026       hardcode_minus_L_GCJ=yes
16027       allow_undefined_flag_GCJ=unsupported
16028       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'
16029       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16030       ;;
16031
16032     osf3*)
16033       if test "$GCC" = yes; then
16034         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16035         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'
16036       else
16037         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16038         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'
16039       fi
16040       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16041       hardcode_libdir_separator_GCJ=:
16042       ;;
16043
16044     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16045       if test "$GCC" = yes; then
16046         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16047         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'
16048         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16049       else
16050         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16051         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'
16052         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~
16053         $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'
16054
16055         # Both c and cxx compiler support -rpath directly
16056         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16057       fi
16058       hardcode_libdir_separator_GCJ=:
16059       ;;
16060
16061     sco3.2v5*)
16062       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16063       hardcode_shlibpath_var_GCJ=no
16064       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16065       runpath_var=LD_RUN_PATH
16066       hardcode_runpath_var=yes
16067       ;;
16068
16069     solaris*)
16070       no_undefined_flag_GCJ=' -z text'
16071       if test "$GCC" = yes; then
16072         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16073         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16074           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16075       else
16076         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16078         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16079       fi
16080       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16081       hardcode_shlibpath_var_GCJ=no
16082       case $host_os in
16083       solaris2.[0-5] | solaris2.[0-5].*) ;;
16084       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16085         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16086       esac
16087       link_all_deplibs_GCJ=yes
16088       ;;
16089
16090     sunos4*)
16091       if test "x$host_vendor" = xsequent; then
16092         # Use $CC to link under sequent, because it throws in some extra .o
16093         # files that make .init and .fini sections work.
16094         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16095       else
16096         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16097       fi
16098       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16099       hardcode_direct_GCJ=yes
16100       hardcode_minus_L_GCJ=yes
16101       hardcode_shlibpath_var_GCJ=no
16102       ;;
16103
16104     sysv4)
16105       case $host_vendor in
16106         sni)
16107           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108           hardcode_direct_GCJ=yes # is this really true???
16109         ;;
16110         siemens)
16111           ## LD is ld it makes a PLAMLIB
16112           ## CC just makes a GrossModule.
16113           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16114           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16115           hardcode_direct_GCJ=no
16116         ;;
16117         motorola)
16118           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16120         ;;
16121       esac
16122       runpath_var='LD_RUN_PATH'
16123       hardcode_shlibpath_var_GCJ=no
16124       ;;
16125
16126     sysv4.3*)
16127       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128       hardcode_shlibpath_var_GCJ=no
16129       export_dynamic_flag_spec_GCJ='-Bexport'
16130       ;;
16131
16132     sysv4*MP*)
16133       if test -d /usr/nec; then
16134         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135         hardcode_shlibpath_var_GCJ=no
16136         runpath_var=LD_RUN_PATH
16137         hardcode_runpath_var=yes
16138         ld_shlibs_GCJ=yes
16139       fi
16140       ;;
16141
16142     sysv4.2uw2*)
16143       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16144       hardcode_direct_GCJ=yes
16145       hardcode_minus_L_GCJ=no
16146       hardcode_shlibpath_var_GCJ=no
16147       hardcode_runpath_var=yes
16148       runpath_var=LD_RUN_PATH
16149       ;;
16150
16151    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16152       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16153       if test "$GCC" = yes; then
16154         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16155       else
16156         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16157       fi
16158       runpath_var='LD_RUN_PATH'
16159       hardcode_shlibpath_var_GCJ=no
16160       ;;
16161
16162     sysv5*)
16163       no_undefined_flag_GCJ=' -z text'
16164       # $CC -shared without GNU ld will not create a library from C++
16165       # object files and a static libstdc++, better avoid it by now
16166       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16168                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16169       hardcode_libdir_flag_spec_GCJ=
16170       hardcode_shlibpath_var_GCJ=no
16171       runpath_var='LD_RUN_PATH'
16172       ;;
16173
16174     uts4*)
16175       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16177       hardcode_shlibpath_var_GCJ=no
16178       ;;
16179
16180     *)
16181       ld_shlibs_GCJ=no
16182       ;;
16183     esac
16184   fi
16185
16186 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16187 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16188 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16189
16190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16191 if test "$GCC" = yes; then
16192   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16193 fi
16194
16195 #
16196 # Do we need to explicitly link libc?
16197 #
16198 case "x$archive_cmds_need_lc_GCJ" in
16199 x|xyes)
16200   # Assume -lc should be added
16201   archive_cmds_need_lc_GCJ=yes
16202
16203   if test "$enable_shared" = yes && test "$GCC" = yes; then
16204     case $archive_cmds_GCJ in
16205     *'~'*)
16206       # FIXME: we may have to deal with multi-command sequences.
16207       ;;
16208     '$CC '*)
16209       # Test whether the compiler implicitly links with -lc since on some
16210       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16211       # to ld, don't add -lc before -lgcc.
16212       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16213 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16214       $rm conftest*
16215       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16216
16217       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16218   (eval $ac_compile) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); } 2>conftest.err; then
16222         soname=conftest
16223         lib=conftest
16224         libobjs=conftest.$ac_objext
16225         deplibs=
16226         wl=$lt_prog_compiler_wl_GCJ
16227         compiler_flags=-v
16228         linker_flags=-v
16229         verstring=
16230         output_objdir=.
16231         libname=conftest
16232         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16233         allow_undefined_flag_GCJ=
16234         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16235   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }
16239         then
16240           archive_cmds_need_lc_GCJ=no
16241         else
16242           archive_cmds_need_lc_GCJ=yes
16243         fi
16244         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16245       else
16246         cat conftest.err 1>&5
16247       fi
16248       $rm conftest*
16249       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16250 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16251       ;;
16252     esac
16253   fi
16254   ;;
16255 esac
16256
16257 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16258 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16259 hardcode_action_GCJ=
16260 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16261    test -n "$runpath_var GCJ" || \
16262    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16263
16264   # We can hardcode non-existant directories.
16265   if test "$hardcode_direct_GCJ" != no &&
16266      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16267      # have to relink, otherwise we might link with an installed library
16268      # when we should be linking with a yet-to-be-installed one
16269      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16270      test "$hardcode_minus_L_GCJ" != no; then
16271     # Linking always hardcodes the temporary library directory.
16272     hardcode_action_GCJ=relink
16273   else
16274     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16275     hardcode_action_GCJ=immediate
16276   fi
16277 else
16278   # We cannot hardcode anything, or else we can only hardcode existing
16279   # directories.
16280   hardcode_action_GCJ=unsupported
16281 fi
16282 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16283 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16284
16285 if test "$hardcode_action_GCJ" = relink; then
16286   # Fast installation is not supported
16287   enable_fast_install=no
16288 elif test "$shlibpath_overrides_runpath" = yes ||
16289      test "$enable_shared" = no; then
16290   # Fast installation is not necessary
16291   enable_fast_install=needless
16292 fi
16293
16294 striplib=
16295 old_striplib=
16296 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16297 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16298 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16299   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16300   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16301   echo "$as_me:$LINENO: result: yes" >&5
16302 echo "${ECHO_T}yes" >&6
16303 else
16304 # FIXME - insert some real tests, host_os isn't really good enough
16305   case $host_os in
16306    darwin*)
16307        if test -n "$STRIP" ; then
16308          striplib="$STRIP -x"
16309          echo "$as_me:$LINENO: result: yes" >&5
16310 echo "${ECHO_T}yes" >&6
16311        else
16312   echo "$as_me:$LINENO: result: no" >&5
16313 echo "${ECHO_T}no" >&6
16314 fi
16315        ;;
16316    *)
16317   echo "$as_me:$LINENO: result: no" >&5
16318 echo "${ECHO_T}no" >&6
16319     ;;
16320   esac
16321 fi
16322
16323 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16324 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16325 library_names_spec=
16326 libname_spec='lib$name'
16327 soname_spec=
16328 shrext=".so"
16329 postinstall_cmds=
16330 postuninstall_cmds=
16331 finish_cmds=
16332 finish_eval=
16333 shlibpath_var=
16334 shlibpath_overrides_runpath=unknown
16335 version_type=none
16336 dynamic_linker="$host_os ld.so"
16337 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16338 if test "$GCC" = yes; then
16339   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16340   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16341     # if the path contains ";" then we assume it to be the separator
16342     # otherwise default to the standard path separator (i.e. ":") - it is
16343     # assumed that no part of a normal pathname contains ";" but that should
16344     # okay in the real world where ";" in dirpaths is itself problematic.
16345     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16346   else
16347     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16348   fi
16349 else
16350   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16351 fi
16352 need_lib_prefix=unknown
16353 hardcode_into_libs=no
16354
16355 # when you set need_version to no, make sure it does not cause -set_version
16356 # flags to be left without arguments
16357 need_version=unknown
16358
16359 case $host_os in
16360 aix3*)
16361   version_type=linux
16362   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16363   shlibpath_var=LIBPATH
16364
16365   # AIX 3 has no versioning support, so we append a major version to the name.
16366   soname_spec='${libname}${release}${shared_ext}$major'
16367   ;;
16368
16369 aix4* | aix5*)
16370   version_type=linux
16371   need_lib_prefix=no
16372   need_version=no
16373   hardcode_into_libs=yes
16374   if test "$host_cpu" = ia64; then
16375     # AIX 5 supports IA64
16376     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16377     shlibpath_var=LD_LIBRARY_PATH
16378   else
16379     # With GCC up to 2.95.x, collect2 would create an import file
16380     # for dependence libraries.  The import file would start with
16381     # the line `#! .'.  This would cause the generated library to
16382     # depend on `.', always an invalid library.  This was fixed in
16383     # development snapshots of GCC prior to 3.0.
16384     case $host_os in
16385       aix4 | aix4.[01] | aix4.[01].*)
16386       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16387            echo ' yes '
16388            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16389         :
16390       else
16391         can_build_shared=no
16392       fi
16393       ;;
16394     esac
16395     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16396     # soname into executable. Probably we can add versioning support to
16397     # collect2, so additional links can be useful in future.
16398     if test "$aix_use_runtimelinking" = yes; then
16399       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16400       # instead of lib<name>.a to let people know that these are not
16401       # typical AIX shared libraries.
16402       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403     else
16404       # We preserve .a as extension for shared libraries through AIX4.2
16405       # and later when we are not doing run time linking.
16406       library_names_spec='${libname}${release}.a $libname.a'
16407       soname_spec='${libname}${release}${shared_ext}$major'
16408     fi
16409     shlibpath_var=LIBPATH
16410   fi
16411   ;;
16412
16413 amigaos*)
16414   library_names_spec='$libname.ixlibrary $libname.a'
16415   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16416   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'
16417   ;;
16418
16419 beos*)
16420   library_names_spec='${libname}${shared_ext}'
16421   dynamic_linker="$host_os ld.so"
16422   shlibpath_var=LIBRARY_PATH
16423   ;;
16424
16425 bsdi4*)
16426   version_type=linux
16427   need_version=no
16428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16429   soname_spec='${libname}${release}${shared_ext}$major'
16430   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16431   shlibpath_var=LD_LIBRARY_PATH
16432   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16433   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16434   # the default ld.so.conf also contains /usr/contrib/lib and
16435   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16436   # libtool to hard-code these into programs
16437   ;;
16438
16439 cygwin* | mingw* | pw32*)
16440   version_type=windows
16441   shrext=".dll"
16442   need_version=no
16443   need_lib_prefix=no
16444
16445   case $GCC,$host_os in
16446   yes,cygwin* | yes,mingw* | yes,pw32*)
16447     library_names_spec='$libname.dll.a'
16448     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16449     postinstall_cmds='base_file=`basename \${file}`~
16450       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16451       dldir=$destdir/`dirname \$dlpath`~
16452       test -d \$dldir || mkdir -p \$dldir~
16453       $install_prog $dir/$dlname \$dldir/$dlname'
16454     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16455       dlpath=$dir/\$dldll~
16456        $rm \$dlpath'
16457     shlibpath_overrides_runpath=yes
16458
16459     case $host_os in
16460     cygwin*)
16461       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16462       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16463       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16464       ;;
16465     mingw*)
16466       # MinGW DLLs use traditional 'lib' prefix
16467       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16468       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16469       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16470         # It is most probably a Windows format PATH printed by
16471         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16472         # path with ; separators, and with drive letters. We can handle the
16473         # drive letters (cygwin fileutils understands them), so leave them,
16474         # especially as we might pass files found there to a mingw objdump,
16475         # which wouldn't understand a cygwinified path. Ahh.
16476         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16477       else
16478         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16479       fi
16480       ;;
16481     pw32*)
16482       # pw32 DLLs use 'pw' prefix rather than 'lib'
16483       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16484       ;;
16485     esac
16486     ;;
16487
16488   *)
16489     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16490     ;;
16491   esac
16492   dynamic_linker='Win32 ld.exe'
16493   # FIXME: first we should search . and the directory the executable is in
16494   shlibpath_var=PATH
16495   ;;
16496
16497 darwin* | rhapsody*)
16498   dynamic_linker="$host_os dyld"
16499   version_type=darwin
16500   need_lib_prefix=no
16501   need_version=no
16502   # FIXME: Relying on posixy $() will cause problems for
16503   #        cross-compilation, but unfortunately the echo tests do not
16504   #        yet detect zsh echo's removal of \ escapes.
16505   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16506   soname_spec='${libname}${release}${major}$shared_ext'
16507   shlibpath_overrides_runpath=yes
16508   shlibpath_var=DYLD_LIBRARY_PATH
16509   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16510   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16511   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16512   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"`
16513   fi
16514   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16515   ;;
16516
16517 dgux*)
16518   version_type=linux
16519   need_lib_prefix=no
16520   need_version=no
16521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16522   soname_spec='${libname}${release}${shared_ext}$major'
16523   shlibpath_var=LD_LIBRARY_PATH
16524   ;;
16525
16526 freebsd1*)
16527   dynamic_linker=no
16528   ;;
16529
16530 freebsd*)
16531   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16532   version_type=freebsd-$objformat
16533   case $version_type in
16534     freebsd-elf*)
16535       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16536       need_version=no
16537       need_lib_prefix=no
16538       ;;
16539     freebsd-*)
16540       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16541       need_version=yes
16542       ;;
16543   esac
16544   shlibpath_var=LD_LIBRARY_PATH
16545   case $host_os in
16546   freebsd2*)
16547     shlibpath_overrides_runpath=yes
16548     ;;
16549   freebsd3.01* | freebsdelf3.01*)
16550     shlibpath_overrides_runpath=yes
16551     hardcode_into_libs=yes
16552     ;;
16553   *) # from 3.2 on
16554     shlibpath_overrides_runpath=no
16555     hardcode_into_libs=yes
16556     ;;
16557   esac
16558   ;;
16559
16560 gnu*)
16561   version_type=linux
16562   need_lib_prefix=no
16563   need_version=no
16564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16565   soname_spec='${libname}${release}${shared_ext}$major'
16566   shlibpath_var=LD_LIBRARY_PATH
16567   hardcode_into_libs=yes
16568   ;;
16569
16570 hpux9* | hpux10* | hpux11*)
16571   # Give a soname corresponding to the major version so that dld.sl refuses to
16572   # link against other versions.
16573   version_type=sunos
16574   need_lib_prefix=no
16575   need_version=no
16576   case "$host_cpu" in
16577   ia64*)
16578     shrext='.so'
16579     hardcode_into_libs=yes
16580     dynamic_linker="$host_os dld.so"
16581     shlibpath_var=LD_LIBRARY_PATH
16582     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584     soname_spec='${libname}${release}${shared_ext}$major'
16585     if test "X$HPUX_IA64_MODE" = X32; then
16586       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16587     else
16588       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16589     fi
16590     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16591     ;;
16592    hppa*64*)
16593      shrext='.sl'
16594      hardcode_into_libs=yes
16595      dynamic_linker="$host_os dld.sl"
16596      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16597      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16598      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16599      soname_spec='${libname}${release}${shared_ext}$major'
16600      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16601      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16602      ;;
16603    *)
16604     shrext='.sl'
16605     dynamic_linker="$host_os dld.sl"
16606     shlibpath_var=SHLIB_PATH
16607     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609     soname_spec='${libname}${release}${shared_ext}$major'
16610     ;;
16611   esac
16612   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16613   postinstall_cmds='chmod 555 $lib'
16614   ;;
16615
16616 irix5* | irix6* | nonstopux*)
16617   case $host_os in
16618     nonstopux*) version_type=nonstopux ;;
16619     *)
16620         if test "$lt_cv_prog_gnu_ld" = yes; then
16621                 version_type=linux
16622         else
16623                 version_type=irix
16624         fi ;;
16625   esac
16626   need_lib_prefix=no
16627   need_version=no
16628   soname_spec='${libname}${release}${shared_ext}$major'
16629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16630   case $host_os in
16631   irix5* | nonstopux*)
16632     libsuff= shlibsuff=
16633     ;;
16634   *)
16635     case $LD in # libtool.m4 will add one of these switches to LD
16636     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16637       libsuff= shlibsuff= libmagic=32-bit;;
16638     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16639       libsuff=32 shlibsuff=N32 libmagic=N32;;
16640     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16641       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16642     *) libsuff= shlibsuff= libmagic=never-match;;
16643     esac
16644     ;;
16645   esac
16646   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16647   shlibpath_overrides_runpath=no
16648   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16649   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16650   hardcode_into_libs=yes
16651   ;;
16652
16653 # No shared lib support for Linux oldld, aout, or coff.
16654 linux*oldld* | linux*aout* | linux*coff*)
16655   dynamic_linker=no
16656   ;;
16657
16658 # This must be Linux ELF.
16659 linux*)
16660   version_type=linux
16661   need_lib_prefix=no
16662   need_version=no
16663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16664   soname_spec='${libname}${release}${shared_ext}$major'
16665   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16666   shlibpath_var=LD_LIBRARY_PATH
16667   shlibpath_overrides_runpath=no
16668   # This implies no fast_install, which is unacceptable.
16669   # Some rework will be needed to allow for fast_install
16670   # before this can be enabled.
16671   hardcode_into_libs=yes
16672
16673   # We used to test for /lib/ld.so.1 and disable shared libraries on
16674   # powerpc, because MkLinux only supported shared libraries with the
16675   # GNU dynamic linker.  Since this was broken with cross compilers,
16676   # most powerpc-linux boxes support dynamic linking these days and
16677   # people can always --disable-shared, the test was removed, and we
16678   # assume the GNU/Linux dynamic linker is in use.
16679   dynamic_linker='GNU/Linux ld.so'
16680   ;;
16681
16682 netbsd*)
16683   version_type=sunos
16684   need_lib_prefix=no
16685   need_version=no
16686   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16688     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16689     dynamic_linker='NetBSD (a.out) ld.so'
16690   else
16691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16692     soname_spec='${libname}${release}${shared_ext}$major'
16693     dynamic_linker='NetBSD ld.elf_so'
16694   fi
16695   shlibpath_var=LD_LIBRARY_PATH
16696   shlibpath_overrides_runpath=yes
16697   hardcode_into_libs=yes
16698   ;;
16699
16700 newsos6)
16701   version_type=linux
16702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703   shlibpath_var=LD_LIBRARY_PATH
16704   shlibpath_overrides_runpath=yes
16705   ;;
16706
16707 nto-qnx)
16708   version_type=linux
16709   need_lib_prefix=no
16710   need_version=no
16711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712   soname_spec='${libname}${release}${shared_ext}$major'
16713   shlibpath_var=LD_LIBRARY_PATH
16714   shlibpath_overrides_runpath=yes
16715   ;;
16716
16717 openbsd*)
16718   version_type=sunos
16719   need_lib_prefix=no
16720   need_version=no
16721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16722   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16723   shlibpath_var=LD_LIBRARY_PATH
16724   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16725     case $host_os in
16726       openbsd2.[89] | openbsd2.[89].*)
16727         shlibpath_overrides_runpath=no
16728         ;;
16729       *)
16730         shlibpath_overrides_runpath=yes
16731         ;;
16732       esac
16733   else
16734     shlibpath_overrides_runpath=yes
16735   fi
16736   ;;
16737
16738 os2*)
16739   libname_spec='$name'
16740   shrext=".dll"
16741   need_lib_prefix=no
16742   library_names_spec='$libname${shared_ext} $libname.a'
16743   dynamic_linker='OS/2 ld.exe'
16744   shlibpath_var=LIBPATH
16745   ;;
16746
16747 osf3* | osf4* | osf5*)
16748   version_type=osf
16749   need_lib_prefix=no
16750   need_version=no
16751   soname_spec='${libname}${release}${shared_ext}$major'
16752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753   shlibpath_var=LD_LIBRARY_PATH
16754   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16755   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16756   ;;
16757
16758 sco3.2v5*)
16759   version_type=osf
16760   soname_spec='${libname}${release}${shared_ext}$major'
16761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762   shlibpath_var=LD_LIBRARY_PATH
16763   ;;
16764
16765 solaris*)
16766   version_type=linux
16767   need_lib_prefix=no
16768   need_version=no
16769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16770   soname_spec='${libname}${release}${shared_ext}$major'
16771   shlibpath_var=LD_LIBRARY_PATH
16772   shlibpath_overrides_runpath=yes
16773   hardcode_into_libs=yes
16774   # ldd complains unless libraries are executable
16775   postinstall_cmds='chmod +x $lib'
16776   ;;
16777
16778 sunos4*)
16779   version_type=sunos
16780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16781   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16782   shlibpath_var=LD_LIBRARY_PATH
16783   shlibpath_overrides_runpath=yes
16784   if test "$with_gnu_ld" = yes; then
16785     need_lib_prefix=no
16786   fi
16787   need_version=yes
16788   ;;
16789
16790 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16791   version_type=linux
16792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793   soname_spec='${libname}${release}${shared_ext}$major'
16794   shlibpath_var=LD_LIBRARY_PATH
16795   case $host_vendor in
16796     sni)
16797       shlibpath_overrides_runpath=no
16798       need_lib_prefix=no
16799       export_dynamic_flag_spec='${wl}-Blargedynsym'
16800       runpath_var=LD_RUN_PATH
16801       ;;
16802     siemens)
16803       need_lib_prefix=no
16804       ;;
16805     motorola)
16806       need_lib_prefix=no
16807       need_version=no
16808       shlibpath_overrides_runpath=no
16809       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16810       ;;
16811   esac
16812   ;;
16813
16814 sysv4*MP*)
16815   if test -d /usr/nec ;then
16816     version_type=linux
16817     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16818     soname_spec='$libname${shared_ext}.$major'
16819     shlibpath_var=LD_LIBRARY_PATH
16820   fi
16821   ;;
16822
16823 uts4*)
16824   version_type=linux
16825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826   soname_spec='${libname}${release}${shared_ext}$major'
16827   shlibpath_var=LD_LIBRARY_PATH
16828   ;;
16829
16830 *)
16831   dynamic_linker=no
16832   ;;
16833 esac
16834 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16835 echo "${ECHO_T}$dynamic_linker" >&6
16836 test "$dynamic_linker" = no && can_build_shared=no
16837
16838 if test "x$enable_dlopen" != xyes; then
16839   enable_dlopen=unknown
16840   enable_dlopen_self=unknown
16841   enable_dlopen_self_static=unknown
16842 else
16843   lt_cv_dlopen=no
16844   lt_cv_dlopen_libs=
16845
16846   case $host_os in
16847   beos*)
16848     lt_cv_dlopen="load_add_on"
16849     lt_cv_dlopen_libs=
16850     lt_cv_dlopen_self=yes
16851     ;;
16852
16853   mingw* | pw32*)
16854     lt_cv_dlopen="LoadLibrary"
16855     lt_cv_dlopen_libs=
16856    ;;
16857
16858   cygwin*)
16859     lt_cv_dlopen="dlopen"
16860     lt_cv_dlopen_libs=
16861    ;;
16862
16863   darwin*)
16864   # if libdl is installed we need to link against it
16865     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16868   echo $ECHO_N "(cached) $ECHO_C" >&6
16869 else
16870   ac_check_lib_save_LIBS=$LIBS
16871 LIBS="-ldl  $LIBS"
16872 cat >conftest.$ac_ext <<_ACEOF
16873 #line $LINENO "configure"
16874 /* confdefs.h.  */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h.  */
16879
16880 /* Override any gcc2 internal prototype to avoid an error.  */
16881 #ifdef __cplusplus
16882 extern "C"
16883 #endif
16884 /* We use char because int might match the return type of a gcc2
16885    builtin and then its argument prototype would still apply.  */
16886 char dlopen ();
16887 int
16888 main ()
16889 {
16890 dlopen ();
16891   ;
16892   return 0;
16893 }
16894 _ACEOF
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16897   (eval $ac_link) 2>&5
16898   ac_status=$?
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); } &&
16901          { ac_try='test -s conftest$ac_exeext'
16902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903   (eval $ac_try) 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); }; }; then
16907   ac_cv_lib_dl_dlopen=yes
16908 else
16909   echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16911
16912 ac_cv_lib_dl_dlopen=no
16913 fi
16914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16915 LIBS=$ac_check_lib_save_LIBS
16916 fi
16917 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16918 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16919 if test $ac_cv_lib_dl_dlopen = yes; then
16920   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16921 else
16922
16923     lt_cv_dlopen="dyld"
16924     lt_cv_dlopen_libs=
16925     lt_cv_dlopen_self=yes
16926
16927 fi
16928
16929    ;;
16930
16931   *)
16932     echo "$as_me:$LINENO: checking for shl_load" >&5
16933 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16934 if test "${ac_cv_func_shl_load+set}" = set; then
16935   echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937   cat >conftest.$ac_ext <<_ACEOF
16938 #line $LINENO "configure"
16939 /* confdefs.h.  */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h.  */
16944 /* System header to define __stub macros and hopefully few prototypes,
16945     which can conflict with char shl_load (); below.
16946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16947     <limits.h> exists even on freestanding compilers.  */
16948 #ifdef __STDC__
16949 # include <limits.h>
16950 #else
16951 # include <assert.h>
16952 #endif
16953 /* Override any gcc2 internal prototype to avoid an error.  */
16954 #ifdef __cplusplus
16955 extern "C"
16956 {
16957 #endif
16958 /* We use char because int might match the return type of a gcc2
16959    builtin and then its argument prototype would still apply.  */
16960 char shl_load ();
16961 /* The GNU C library defines this for functions which it implements
16962     to always fail with ENOSYS.  Some functions are actually named
16963     something starting with __ and the normal name is an alias.  */
16964 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16965 choke me
16966 #else
16967 char (*f) () = shl_load;
16968 #endif
16969 #ifdef __cplusplus
16970 }
16971 #endif
16972
16973 int
16974 main ()
16975 {
16976 return f != shl_load;
16977   ;
16978   return 0;
16979 }
16980 _ACEOF
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16983   (eval $ac_link) 2>&5
16984   ac_status=$?
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } &&
16987          { ac_try='test -s conftest$ac_exeext'
16988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989   (eval $ac_try) 2>&5
16990   ac_status=$?
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); }; }; then
16993   ac_cv_func_shl_load=yes
16994 else
16995   echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16997
16998 ac_cv_func_shl_load=no
16999 fi
17000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17001 fi
17002 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17003 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17004 if test $ac_cv_func_shl_load = yes; then
17005   lt_cv_dlopen="shl_load"
17006 else
17007   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17008 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17009 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   ac_check_lib_save_LIBS=$LIBS
17013 LIBS="-ldld  $LIBS"
17014 cat >conftest.$ac_ext <<_ACEOF
17015 #line $LINENO "configure"
17016 /* confdefs.h.  */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h.  */
17021
17022 /* Override any gcc2 internal prototype to avoid an error.  */
17023 #ifdef __cplusplus
17024 extern "C"
17025 #endif
17026 /* We use char because int might match the return type of a gcc2
17027    builtin and then its argument prototype would still apply.  */
17028 char shl_load ();
17029 int
17030 main ()
17031 {
17032 shl_load ();
17033   ;
17034   return 0;
17035 }
17036 _ACEOF
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17039   (eval $ac_link) 2>&5
17040   ac_status=$?
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); } &&
17043          { ac_try='test -s conftest$ac_exeext'
17044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045   (eval $ac_try) 2>&5
17046   ac_status=$?
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); }; }; then
17049   ac_cv_lib_dld_shl_load=yes
17050 else
17051   echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17053
17054 ac_cv_lib_dld_shl_load=no
17055 fi
17056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17057 LIBS=$ac_check_lib_save_LIBS
17058 fi
17059 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17060 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17061 if test $ac_cv_lib_dld_shl_load = yes; then
17062   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17063 else
17064   echo "$as_me:$LINENO: checking for dlopen" >&5
17065 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17066 if test "${ac_cv_func_dlopen+set}" = set; then
17067   echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069   cat >conftest.$ac_ext <<_ACEOF
17070 #line $LINENO "configure"
17071 /* confdefs.h.  */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h.  */
17076 /* System header to define __stub macros and hopefully few prototypes,
17077     which can conflict with char dlopen (); below.
17078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079     <limits.h> exists even on freestanding compilers.  */
17080 #ifdef __STDC__
17081 # include <limits.h>
17082 #else
17083 # include <assert.h>
17084 #endif
17085 /* Override any gcc2 internal prototype to avoid an error.  */
17086 #ifdef __cplusplus
17087 extern "C"
17088 {
17089 #endif
17090 /* We use char because int might match the return type of a gcc2
17091    builtin and then its argument prototype would still apply.  */
17092 char dlopen ();
17093 /* The GNU C library defines this for functions which it implements
17094     to always fail with ENOSYS.  Some functions are actually named
17095     something starting with __ and the normal name is an alias.  */
17096 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17097 choke me
17098 #else
17099 char (*f) () = dlopen;
17100 #endif
17101 #ifdef __cplusplus
17102 }
17103 #endif
17104
17105 int
17106 main ()
17107 {
17108 return f != dlopen;
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115   (eval $ac_link) 2>&5
17116   ac_status=$?
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); } &&
17119          { ac_try='test -s conftest$ac_exeext'
17120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121   (eval $ac_try) 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; }; then
17125   ac_cv_func_dlopen=yes
17126 else
17127   echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 ac_cv_func_dlopen=no
17131 fi
17132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17133 fi
17134 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17135 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17136 if test $ac_cv_func_dlopen = yes; then
17137   lt_cv_dlopen="dlopen"
17138 else
17139   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17140 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17141 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17142   echo $ECHO_N "(cached) $ECHO_C" >&6
17143 else
17144   ac_check_lib_save_LIBS=$LIBS
17145 LIBS="-ldl  $LIBS"
17146 cat >conftest.$ac_ext <<_ACEOF
17147 #line $LINENO "configure"
17148 /* confdefs.h.  */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h.  */
17153
17154 /* Override any gcc2 internal prototype to avoid an error.  */
17155 #ifdef __cplusplus
17156 extern "C"
17157 #endif
17158 /* We use char because int might match the return type of a gcc2
17159    builtin and then its argument prototype would still apply.  */
17160 char dlopen ();
17161 int
17162 main ()
17163 {
17164 dlopen ();
17165   ;
17166   return 0;
17167 }
17168 _ACEOF
17169 rm -f conftest.$ac_objext conftest$ac_exeext
17170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17171   (eval $ac_link) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); } &&
17175          { ac_try='test -s conftest$ac_exeext'
17176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177   (eval $ac_try) 2>&5
17178   ac_status=$?
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); }; }; then
17181   ac_cv_lib_dl_dlopen=yes
17182 else
17183   echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186 ac_cv_lib_dl_dlopen=no
17187 fi
17188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17189 LIBS=$ac_check_lib_save_LIBS
17190 fi
17191 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17192 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17193 if test $ac_cv_lib_dl_dlopen = yes; then
17194   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17195 else
17196   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17197 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17198 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17199   echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201   ac_check_lib_save_LIBS=$LIBS
17202 LIBS="-lsvld  $LIBS"
17203 cat >conftest.$ac_ext <<_ACEOF
17204 #line $LINENO "configure"
17205 /* confdefs.h.  */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h.  */
17210
17211 /* Override any gcc2 internal prototype to avoid an error.  */
17212 #ifdef __cplusplus
17213 extern "C"
17214 #endif
17215 /* We use char because int might match the return type of a gcc2
17216    builtin and then its argument prototype would still apply.  */
17217 char dlopen ();
17218 int
17219 main ()
17220 {
17221 dlopen ();
17222   ;
17223   return 0;
17224 }
17225 _ACEOF
17226 rm -f conftest.$ac_objext conftest$ac_exeext
17227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17228   (eval $ac_link) 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } &&
17232          { ac_try='test -s conftest$ac_exeext'
17233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234   (eval $ac_try) 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); }; }; then
17238   ac_cv_lib_svld_dlopen=yes
17239 else
17240   echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17242
17243 ac_cv_lib_svld_dlopen=no
17244 fi
17245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17246 LIBS=$ac_check_lib_save_LIBS
17247 fi
17248 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17249 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17250 if test $ac_cv_lib_svld_dlopen = yes; then
17251   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17252 else
17253   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17254 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17255 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17256   echo $ECHO_N "(cached) $ECHO_C" >&6
17257 else
17258   ac_check_lib_save_LIBS=$LIBS
17259 LIBS="-ldld  $LIBS"
17260 cat >conftest.$ac_ext <<_ACEOF
17261 #line $LINENO "configure"
17262 /* confdefs.h.  */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h.  */
17267
17268 /* Override any gcc2 internal prototype to avoid an error.  */
17269 #ifdef __cplusplus
17270 extern "C"
17271 #endif
17272 /* We use char because int might match the return type of a gcc2
17273    builtin and then its argument prototype would still apply.  */
17274 char dld_link ();
17275 int
17276 main ()
17277 {
17278 dld_link ();
17279   ;
17280   return 0;
17281 }
17282 _ACEOF
17283 rm -f conftest.$ac_objext conftest$ac_exeext
17284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17285   (eval $ac_link) 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); } &&
17289          { ac_try='test -s conftest$ac_exeext'
17290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291   (eval $ac_try) 2>&5
17292   ac_status=$?
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); }; }; then
17295   ac_cv_lib_dld_dld_link=yes
17296 else
17297   echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17299
17300 ac_cv_lib_dld_dld_link=no
17301 fi
17302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17303 LIBS=$ac_check_lib_save_LIBS
17304 fi
17305 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17306 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17307 if test $ac_cv_lib_dld_dld_link = yes; then
17308   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17309 fi
17310
17311
17312 fi
17313
17314
17315 fi
17316
17317
17318 fi
17319
17320
17321 fi
17322
17323
17324 fi
17325
17326     ;;
17327   esac
17328
17329   if test "x$lt_cv_dlopen" != xno; then
17330     enable_dlopen=yes
17331   else
17332     enable_dlopen=no
17333   fi
17334
17335   case $lt_cv_dlopen in
17336   dlopen)
17337     save_CPPFLAGS="$CPPFLAGS"
17338     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17339
17340     save_LDFLAGS="$LDFLAGS"
17341     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17342
17343     save_LIBS="$LIBS"
17344     LIBS="$lt_cv_dlopen_libs $LIBS"
17345
17346     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17347 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17348 if test "${lt_cv_dlopen_self+set}" = set; then
17349   echo $ECHO_N "(cached) $ECHO_C" >&6
17350 else
17351           if test "$cross_compiling" = yes; then :
17352   lt_cv_dlopen_self=cross
17353 else
17354   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17355   lt_status=$lt_dlunknown
17356   cat > conftest.$ac_ext <<EOF
17357 #line 17357 "configure"
17358 #include "confdefs.h"
17359
17360 #if HAVE_DLFCN_H
17361 #include <dlfcn.h>
17362 #endif
17363
17364 #include <stdio.h>
17365
17366 #ifdef RTLD_GLOBAL
17367 #  define LT_DLGLOBAL           RTLD_GLOBAL
17368 #else
17369 #  ifdef DL_GLOBAL
17370 #    define LT_DLGLOBAL         DL_GLOBAL
17371 #  else
17372 #    define LT_DLGLOBAL         0
17373 #  endif
17374 #endif
17375
17376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17377    find out it does not work in some platform. */
17378 #ifndef LT_DLLAZY_OR_NOW
17379 #  ifdef RTLD_LAZY
17380 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17381 #  else
17382 #    ifdef DL_LAZY
17383 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17384 #    else
17385 #      ifdef RTLD_NOW
17386 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17387 #      else
17388 #        ifdef DL_NOW
17389 #          define LT_DLLAZY_OR_NOW      DL_NOW
17390 #        else
17391 #          define LT_DLLAZY_OR_NOW      0
17392 #        endif
17393 #      endif
17394 #    endif
17395 #  endif
17396 #endif
17397
17398 #ifdef __cplusplus
17399 extern "C" void exit (int);
17400 #endif
17401
17402 void fnord() { int i=42;}
17403 int main ()
17404 {
17405   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17406   int status = $lt_dlunknown;
17407
17408   if (self)
17409     {
17410       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17411       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17412       /* dlclose (self); */
17413     }
17414
17415     exit (status);
17416 }
17417 EOF
17418   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419   (eval $ac_link) 2>&5
17420   ac_status=$?
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17423     (./conftest; exit; ) 2>/dev/null
17424     lt_status=$?
17425     case x$lt_status in
17426       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17427       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17428       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17429     esac
17430   else :
17431     # compilation failed
17432     lt_cv_dlopen_self=no
17433   fi
17434 fi
17435 rm -fr conftest*
17436
17437
17438 fi
17439 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17440 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17441
17442     if test "x$lt_cv_dlopen_self" = xyes; then
17443       LDFLAGS="$LDFLAGS $link_static_flag"
17444       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17445 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17446 if test "${lt_cv_dlopen_self_static+set}" = set; then
17447   echo $ECHO_N "(cached) $ECHO_C" >&6
17448 else
17449           if test "$cross_compiling" = yes; then :
17450   lt_cv_dlopen_self_static=cross
17451 else
17452   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17453   lt_status=$lt_dlunknown
17454   cat > conftest.$ac_ext <<EOF
17455 #line 17455 "configure"
17456 #include "confdefs.h"
17457
17458 #if HAVE_DLFCN_H
17459 #include <dlfcn.h>
17460 #endif
17461
17462 #include <stdio.h>
17463
17464 #ifdef RTLD_GLOBAL
17465 #  define LT_DLGLOBAL           RTLD_GLOBAL
17466 #else
17467 #  ifdef DL_GLOBAL
17468 #    define LT_DLGLOBAL         DL_GLOBAL
17469 #  else
17470 #    define LT_DLGLOBAL         0
17471 #  endif
17472 #endif
17473
17474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17475    find out it does not work in some platform. */
17476 #ifndef LT_DLLAZY_OR_NOW
17477 #  ifdef RTLD_LAZY
17478 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17479 #  else
17480 #    ifdef DL_LAZY
17481 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17482 #    else
17483 #      ifdef RTLD_NOW
17484 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17485 #      else
17486 #        ifdef DL_NOW
17487 #          define LT_DLLAZY_OR_NOW      DL_NOW
17488 #        else
17489 #          define LT_DLLAZY_OR_NOW      0
17490 #        endif
17491 #      endif
17492 #    endif
17493 #  endif
17494 #endif
17495
17496 #ifdef __cplusplus
17497 extern "C" void exit (int);
17498 #endif
17499
17500 void fnord() { int i=42;}
17501 int main ()
17502 {
17503   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17504   int status = $lt_dlunknown;
17505
17506   if (self)
17507     {
17508       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17509       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17510       /* dlclose (self); */
17511     }
17512
17513     exit (status);
17514 }
17515 EOF
17516   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17517   (eval $ac_link) 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17521     (./conftest; exit; ) 2>/dev/null
17522     lt_status=$?
17523     case x$lt_status in
17524       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17525       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17526       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17527     esac
17528   else :
17529     # compilation failed
17530     lt_cv_dlopen_self_static=no
17531   fi
17532 fi
17533 rm -fr conftest*
17534
17535
17536 fi
17537 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17538 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17539     fi
17540
17541     CPPFLAGS="$save_CPPFLAGS"
17542     LDFLAGS="$save_LDFLAGS"
17543     LIBS="$save_LIBS"
17544     ;;
17545   esac
17546
17547   case $lt_cv_dlopen_self in
17548   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17549   *) enable_dlopen_self=unknown ;;
17550   esac
17551
17552   case $lt_cv_dlopen_self_static in
17553   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17554   *) enable_dlopen_self_static=unknown ;;
17555   esac
17556 fi
17557
17558
17559 # The else clause should only fire when bootstrapping the
17560 # libtool distribution, otherwise you forgot to ship ltmain.sh
17561 # with your package, and you will get complaints that there are
17562 # no rules to generate ltmain.sh.
17563 if test -f "$ltmain"; then
17564   # See if we are running on zsh, and set the options which allow our commands through
17565   # without removal of \ escapes.
17566   if test -n "${ZSH_VERSION+set}" ; then
17567     setopt NO_GLOB_SUBST
17568   fi
17569   # Now quote all the things that may contain metacharacters while being
17570   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17571   # variables and quote the copies for generation of the libtool script.
17572   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17573     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17574     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17575     deplibs_check_method reload_flag reload_cmds need_locks \
17576     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17577     lt_cv_sys_global_symbol_to_c_name_address \
17578     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17579     old_postinstall_cmds old_postuninstall_cmds \
17580     compiler_GCJ \
17581     CC_GCJ \
17582     LD_GCJ \
17583     lt_prog_compiler_wl_GCJ \
17584     lt_prog_compiler_pic_GCJ \
17585     lt_prog_compiler_static_GCJ \
17586     lt_prog_compiler_no_builtin_flag_GCJ \
17587     export_dynamic_flag_spec_GCJ \
17588     thread_safe_flag_spec_GCJ \
17589     whole_archive_flag_spec_GCJ \
17590     enable_shared_with_static_runtimes_GCJ \
17591     old_archive_cmds_GCJ \
17592     old_archive_from_new_cmds_GCJ \
17593     predep_objects_GCJ \
17594     postdep_objects_GCJ \
17595     predeps_GCJ \
17596     postdeps_GCJ \
17597     compiler_lib_search_path_GCJ \
17598     archive_cmds_GCJ \
17599     archive_expsym_cmds_GCJ \
17600     postinstall_cmds_GCJ \
17601     postuninstall_cmds_GCJ \
17602     old_archive_from_expsyms_cmds_GCJ \
17603     allow_undefined_flag_GCJ \
17604     no_undefined_flag_GCJ \
17605     export_symbols_cmds_GCJ \
17606     hardcode_libdir_flag_spec_GCJ \
17607     hardcode_libdir_flag_spec_ld_GCJ \
17608     hardcode_libdir_separator_GCJ \
17609     hardcode_automatic_GCJ \
17610     module_cmds_GCJ \
17611     module_expsym_cmds_GCJ \
17612     lt_cv_prog_compiler_c_o_GCJ \
17613     exclude_expsyms_GCJ \
17614     include_expsyms_GCJ; do
17615
17616     case $var in
17617     old_archive_cmds_GCJ | \
17618     old_archive_from_new_cmds_GCJ | \
17619     archive_cmds_GCJ | \
17620     archive_expsym_cmds_GCJ | \
17621     module_cmds_GCJ | \
17622     module_expsym_cmds_GCJ | \
17623     old_archive_from_expsyms_cmds_GCJ | \
17624     export_symbols_cmds_GCJ | \
17625     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17626     postinstall_cmds | postuninstall_cmds | \
17627     old_postinstall_cmds | old_postuninstall_cmds | \
17628     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17629       # Double-quote double-evaled strings.
17630       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17631       ;;
17632     *)
17633       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17634       ;;
17635     esac
17636   done
17637
17638   case $lt_echo in
17639   *'\$0 --fallback-echo"')
17640     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17641     ;;
17642   esac
17643
17644 cfgfile="$ofile"
17645
17646   cat <<__EOF__ >> "$cfgfile"
17647 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17648
17649 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17650
17651 # Shell to use when invoking shell scripts.
17652 SHELL=$lt_SHELL
17653
17654 # Whether or not to build shared libraries.
17655 build_libtool_libs=$enable_shared
17656
17657 # Whether or not to build static libraries.
17658 build_old_libs=$enable_static
17659
17660 # Whether or not to add -lc for building shared libraries.
17661 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17662
17663 # Whether or not to disallow shared libs when runtime libs are static
17664 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17665
17666 # Whether or not to optimize for fast installation.
17667 fast_install=$enable_fast_install
17668
17669 # The host system.
17670 host_alias=$host_alias
17671 host=$host
17672
17673 # An echo program that does not interpret backslashes.
17674 echo=$lt_echo
17675
17676 # The archiver.
17677 AR=$lt_AR
17678 AR_FLAGS=$lt_AR_FLAGS
17679
17680 # A C compiler.
17681 LTCC=$lt_LTCC
17682
17683 # A language-specific compiler.
17684 CC=$lt_compiler_GCJ
17685
17686 # Is the compiler the GNU C compiler?
17687 with_gcc=$GCC_GCJ
17688
17689 # An ERE matcher.
17690 EGREP=$lt_EGREP
17691
17692 # The linker used to build libraries.
17693 LD=$lt_LD_GCJ
17694
17695 # Whether we need hard or soft links.
17696 LN_S=$lt_LN_S
17697
17698 # A BSD-compatible nm program.
17699 NM=$lt_NM
17700
17701 # A symbol stripping program
17702 STRIP=$STRIP
17703
17704 # Used to examine libraries when file_magic_cmd begins "file"
17705 MAGIC_CMD=$MAGIC_CMD
17706
17707 # Used on cygwin: DLL creation program.
17708 DLLTOOL="$DLLTOOL"
17709
17710 # Used on cygwin: object dumper.
17711 OBJDUMP="$OBJDUMP"
17712
17713 # Used on cygwin: assembler.
17714 AS="$AS"
17715
17716 # The name of the directory that contains temporary libtool files.
17717 objdir=$objdir
17718
17719 # How to create reloadable object files.
17720 reload_flag=$lt_reload_flag
17721 reload_cmds=$lt_reload_cmds
17722
17723 # How to pass a linker flag through the compiler.
17724 wl=$lt_lt_prog_compiler_wl_GCJ
17725
17726 # Object file suffix (normally "o").
17727 objext="$ac_objext"
17728
17729 # Old archive suffix (normally "a").
17730 libext="$libext"
17731
17732 # Shared library suffix (normally ".so").
17733 shrext='$shrext'
17734
17735 # Executable file suffix (normally "").
17736 exeext="$exeext"
17737
17738 # Additional compiler flags for building library objects.
17739 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17740 pic_mode=$pic_mode
17741
17742 # What is the maximum length of a command?
17743 max_cmd_len=$lt_cv_sys_max_cmd_len
17744
17745 # Does compiler simultaneously support -c and -o options?
17746 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17747
17748 # Must we lock files when doing compilation ?
17749 need_locks=$lt_need_locks
17750
17751 # Do we need the lib prefix for modules?
17752 need_lib_prefix=$need_lib_prefix
17753
17754 # Do we need a version for libraries?
17755 need_version=$need_version
17756
17757 # Whether dlopen is supported.
17758 dlopen_support=$enable_dlopen
17759
17760 # Whether dlopen of programs is supported.
17761 dlopen_self=$enable_dlopen_self
17762
17763 # Whether dlopen of statically linked programs is supported.
17764 dlopen_self_static=$enable_dlopen_self_static
17765
17766 # Compiler flag to prevent dynamic linking.
17767 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17768
17769 # Compiler flag to turn off builtin functions.
17770 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17771
17772 # Compiler flag to allow reflexive dlopens.
17773 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17774
17775 # Compiler flag to generate shared objects directly from archives.
17776 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17777
17778 # Compiler flag to generate thread-safe objects.
17779 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17780
17781 # Library versioning type.
17782 version_type=$version_type
17783
17784 # Format of library name prefix.
17785 libname_spec=$lt_libname_spec
17786
17787 # List of archive names.  First name is the real one, the rest are links.
17788 # The last name is the one that the linker finds with -lNAME.
17789 library_names_spec=$lt_library_names_spec
17790
17791 # The coded name of the library, if different from the real name.
17792 soname_spec=$lt_soname_spec
17793
17794 # Commands used to build and install an old-style archive.
17795 RANLIB=$lt_RANLIB
17796 old_archive_cmds=$lt_old_archive_cmds_GCJ
17797 old_postinstall_cmds=$lt_old_postinstall_cmds
17798 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17799
17800 # Create an old-style archive from a shared archive.
17801 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17802
17803 # Create a temporary old-style archive to link instead of a shared archive.
17804 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17805
17806 # Commands used to build and install a shared archive.
17807 archive_cmds=$lt_archive_cmds_GCJ
17808 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17809 postinstall_cmds=$lt_postinstall_cmds
17810 postuninstall_cmds=$lt_postuninstall_cmds
17811
17812 # Commands used to build a loadable module (assumed same as above if empty)
17813 module_cmds=$lt_module_cmds_GCJ
17814 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17815
17816 # Commands to strip libraries.
17817 old_striplib=$lt_old_striplib
17818 striplib=$lt_striplib
17819
17820 # Dependencies to place before the objects being linked to create a
17821 # shared library.
17822 predep_objects=$lt_predep_objects_GCJ
17823
17824 # Dependencies to place after the objects being linked to create a
17825 # shared library.
17826 postdep_objects=$lt_postdep_objects_GCJ
17827
17828 # Dependencies to place before the objects being linked to create a
17829 # shared library.
17830 predeps=$lt_predeps_GCJ
17831
17832 # Dependencies to place after the objects being linked to create a
17833 # shared library.
17834 postdeps=$lt_postdeps_GCJ
17835
17836 # The library search path used internally by the compiler when linking
17837 # a shared library.
17838 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17839
17840 # Method to check whether dependent libraries are shared objects.
17841 deplibs_check_method=$lt_deplibs_check_method
17842
17843 # Command to use when deplibs_check_method == file_magic.
17844 file_magic_cmd=$lt_file_magic_cmd
17845
17846 # Flag that allows shared libraries with undefined symbols to be built.
17847 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17848
17849 # Flag that forces no undefined symbols.
17850 no_undefined_flag=$lt_no_undefined_flag_GCJ
17851
17852 # Commands used to finish a libtool library installation in a directory.
17853 finish_cmds=$lt_finish_cmds
17854
17855 # Same as above, but a single script fragment to be evaled but not shown.
17856 finish_eval=$lt_finish_eval
17857
17858 # Take the output of nm and produce a listing of raw symbols and C names.
17859 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17860
17861 # Transform the output of nm in a proper C declaration
17862 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17863
17864 # Transform the output of nm in a C name address pair
17865 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17866
17867 # This is the shared library runtime path variable.
17868 runpath_var=$runpath_var
17869
17870 # This is the shared library path variable.
17871 shlibpath_var=$shlibpath_var
17872
17873 # Is shlibpath searched before the hard-coded library search path?
17874 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17875
17876 # How to hardcode a shared library path into an executable.
17877 hardcode_action=$hardcode_action_GCJ
17878
17879 # Whether we should hardcode library paths into libraries.
17880 hardcode_into_libs=$hardcode_into_libs
17881
17882 # Flag to hardcode \$libdir into a binary during linking.
17883 # This must work even if \$libdir does not exist.
17884 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17885
17886 # If ld is used when linking, flag to hardcode \$libdir into
17887 # a binary during linking. This must work even if \$libdir does
17888 # not exist.
17889 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17890
17891 # Whether we need a single -rpath flag with a separated argument.
17892 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17893
17894 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17895 # resulting binary.
17896 hardcode_direct=$hardcode_direct_GCJ
17897
17898 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17899 # resulting binary.
17900 hardcode_minus_L=$hardcode_minus_L_GCJ
17901
17902 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17903 # the resulting binary.
17904 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17905
17906 # Set to yes if building a shared library automatically hardcodes DIR into the library
17907 # and all subsequent libraries and executables linked against it.
17908 hardcode_automatic=$hardcode_automatic_GCJ
17909
17910 # Variables whose values should be saved in libtool wrapper scripts and
17911 # restored at relink time.
17912 variables_saved_for_relink="$variables_saved_for_relink"
17913
17914 # Whether libtool must link a program against all its dependency libraries.
17915 link_all_deplibs=$link_all_deplibs_GCJ
17916
17917 # Compile-time system search path for libraries
17918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17919
17920 # Run-time system search path for libraries
17921 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17922
17923 # Fix the shell variable \$srcfile for the compiler.
17924 fix_srcfile_path="$fix_srcfile_path_GCJ"
17925
17926 # Set to yes if exported symbols are required.
17927 always_export_symbols=$always_export_symbols_GCJ
17928
17929 # The commands to list exported symbols.
17930 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17931
17932 # The commands to extract the exported symbol list from a shared archive.
17933 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17934
17935 # Symbols that should not be listed in the preloaded symbols.
17936 exclude_expsyms=$lt_exclude_expsyms_GCJ
17937
17938 # Symbols that must always be exported.
17939 include_expsyms=$lt_include_expsyms_GCJ
17940
17941 # ### END LIBTOOL TAG CONFIG: $tagname
17942
17943 __EOF__
17944
17945
17946 else
17947   # If there is no Makefile yet, we rely on a make rule to execute
17948   # `config.status --recheck' to rerun these tests and create the
17949   # libtool script then.
17950   test -f Makefile && make "$ltmain"
17951 fi
17952
17953
17954 ac_ext=c
17955 ac_cpp='$CPP $CPPFLAGS'
17956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17959
17960 CC="$lt_save_CC"
17961
17962         else
17963           tagname=""
17964         fi
17965         ;;
17966
17967       RC)
17968
17969
17970
17971 # Source file extension for RC test sources.
17972 ac_ext=rc
17973
17974 # Object file extension for compiled RC test sources.
17975 objext=o
17976 objext_RC=$objext
17977
17978 # Code to be used in simple compile tests
17979 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17980
17981 # Code to be used in simple link tests
17982 lt_simple_link_test_code="$lt_simple_compile_test_code"
17983
17984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17985
17986 # If no C compiler was specified, use CC.
17987 LTCC=${LTCC-"$CC"}
17988
17989 # Allow CC to be a program name with arguments.
17990 compiler=$CC
17991
17992
17993 # Allow CC to be a program name with arguments.
17994 lt_save_CC="$CC"
17995 CC=${RC-"windres"}
17996 compiler=$CC
17997 compiler_RC=$CC
17998 lt_cv_prog_compiler_c_o_RC=yes
17999
18000 # The else clause should only fire when bootstrapping the
18001 # libtool distribution, otherwise you forgot to ship ltmain.sh
18002 # with your package, and you will get complaints that there are
18003 # no rules to generate ltmain.sh.
18004 if test -f "$ltmain"; then
18005   # See if we are running on zsh, and set the options which allow our commands through
18006   # without removal of \ escapes.
18007   if test -n "${ZSH_VERSION+set}" ; then
18008     setopt NO_GLOB_SUBST
18009   fi
18010   # Now quote all the things that may contain metacharacters while being
18011   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18012   # variables and quote the copies for generation of the libtool script.
18013   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18014     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18015     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18016     deplibs_check_method reload_flag reload_cmds need_locks \
18017     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18018     lt_cv_sys_global_symbol_to_c_name_address \
18019     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18020     old_postinstall_cmds old_postuninstall_cmds \
18021     compiler_RC \
18022     CC_RC \
18023     LD_RC \
18024     lt_prog_compiler_wl_RC \
18025     lt_prog_compiler_pic_RC \
18026     lt_prog_compiler_static_RC \
18027     lt_prog_compiler_no_builtin_flag_RC \
18028     export_dynamic_flag_spec_RC \
18029     thread_safe_flag_spec_RC \
18030     whole_archive_flag_spec_RC \
18031     enable_shared_with_static_runtimes_RC \
18032     old_archive_cmds_RC \
18033     old_archive_from_new_cmds_RC \
18034     predep_objects_RC \
18035     postdep_objects_RC \
18036     predeps_RC \
18037     postdeps_RC \
18038     compiler_lib_search_path_RC \
18039     archive_cmds_RC \
18040     archive_expsym_cmds_RC \
18041     postinstall_cmds_RC \
18042     postuninstall_cmds_RC \
18043     old_archive_from_expsyms_cmds_RC \
18044     allow_undefined_flag_RC \
18045     no_undefined_flag_RC \
18046     export_symbols_cmds_RC \
18047     hardcode_libdir_flag_spec_RC \
18048     hardcode_libdir_flag_spec_ld_RC \
18049     hardcode_libdir_separator_RC \
18050     hardcode_automatic_RC \
18051     module_cmds_RC \
18052     module_expsym_cmds_RC \
18053     lt_cv_prog_compiler_c_o_RC \
18054     exclude_expsyms_RC \
18055     include_expsyms_RC; do
18056
18057     case $var in
18058     old_archive_cmds_RC | \
18059     old_archive_from_new_cmds_RC | \
18060     archive_cmds_RC | \
18061     archive_expsym_cmds_RC | \
18062     module_cmds_RC | \
18063     module_expsym_cmds_RC | \
18064     old_archive_from_expsyms_cmds_RC | \
18065     export_symbols_cmds_RC | \
18066     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18067     postinstall_cmds | postuninstall_cmds | \
18068     old_postinstall_cmds | old_postuninstall_cmds | \
18069     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18070       # Double-quote double-evaled strings.
18071       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18072       ;;
18073     *)
18074       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18075       ;;
18076     esac
18077   done
18078
18079   case $lt_echo in
18080   *'\$0 --fallback-echo"')
18081     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18082     ;;
18083   esac
18084
18085 cfgfile="$ofile"
18086
18087   cat <<__EOF__ >> "$cfgfile"
18088 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18089
18090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18091
18092 # Shell to use when invoking shell scripts.
18093 SHELL=$lt_SHELL
18094
18095 # Whether or not to build shared libraries.
18096 build_libtool_libs=$enable_shared
18097
18098 # Whether or not to build static libraries.
18099 build_old_libs=$enable_static
18100
18101 # Whether or not to add -lc for building shared libraries.
18102 build_libtool_need_lc=$archive_cmds_need_lc_RC
18103
18104 # Whether or not to disallow shared libs when runtime libs are static
18105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18106
18107 # Whether or not to optimize for fast installation.
18108 fast_install=$enable_fast_install
18109
18110 # The host system.
18111 host_alias=$host_alias
18112 host=$host
18113
18114 # An echo program that does not interpret backslashes.
18115 echo=$lt_echo
18116
18117 # The archiver.
18118 AR=$lt_AR
18119 AR_FLAGS=$lt_AR_FLAGS
18120
18121 # A C compiler.
18122 LTCC=$lt_LTCC
18123
18124 # A language-specific compiler.
18125 CC=$lt_compiler_RC
18126
18127 # Is the compiler the GNU C compiler?
18128 with_gcc=$GCC_RC
18129
18130 # An ERE matcher.
18131 EGREP=$lt_EGREP
18132
18133 # The linker used to build libraries.
18134 LD=$lt_LD_RC
18135
18136 # Whether we need hard or soft links.
18137 LN_S=$lt_LN_S
18138
18139 # A BSD-compatible nm program.
18140 NM=$lt_NM
18141
18142 # A symbol stripping program
18143 STRIP=$STRIP
18144
18145 # Used to examine libraries when file_magic_cmd begins "file"
18146 MAGIC_CMD=$MAGIC_CMD
18147
18148 # Used on cygwin: DLL creation program.
18149 DLLTOOL="$DLLTOOL"
18150
18151 # Used on cygwin: object dumper.
18152 OBJDUMP="$OBJDUMP"
18153
18154 # Used on cygwin: assembler.
18155 AS="$AS"
18156
18157 # The name of the directory that contains temporary libtool files.
18158 objdir=$objdir
18159
18160 # How to create reloadable object files.
18161 reload_flag=$lt_reload_flag
18162 reload_cmds=$lt_reload_cmds
18163
18164 # How to pass a linker flag through the compiler.
18165 wl=$lt_lt_prog_compiler_wl_RC
18166
18167 # Object file suffix (normally "o").
18168 objext="$ac_objext"
18169
18170 # Old archive suffix (normally "a").
18171 libext="$libext"
18172
18173 # Shared library suffix (normally ".so").
18174 shrext='$shrext'
18175
18176 # Executable file suffix (normally "").
18177 exeext="$exeext"
18178
18179 # Additional compiler flags for building library objects.
18180 pic_flag=$lt_lt_prog_compiler_pic_RC
18181 pic_mode=$pic_mode
18182
18183 # What is the maximum length of a command?
18184 max_cmd_len=$lt_cv_sys_max_cmd_len
18185
18186 # Does compiler simultaneously support -c and -o options?
18187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18188
18189 # Must we lock files when doing compilation ?
18190 need_locks=$lt_need_locks
18191
18192 # Do we need the lib prefix for modules?
18193 need_lib_prefix=$need_lib_prefix
18194
18195 # Do we need a version for libraries?
18196 need_version=$need_version
18197
18198 # Whether dlopen is supported.
18199 dlopen_support=$enable_dlopen
18200
18201 # Whether dlopen of programs is supported.
18202 dlopen_self=$enable_dlopen_self
18203
18204 # Whether dlopen of statically linked programs is supported.
18205 dlopen_self_static=$enable_dlopen_self_static
18206
18207 # Compiler flag to prevent dynamic linking.
18208 link_static_flag=$lt_lt_prog_compiler_static_RC
18209
18210 # Compiler flag to turn off builtin functions.
18211 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18212
18213 # Compiler flag to allow reflexive dlopens.
18214 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18215
18216 # Compiler flag to generate shared objects directly from archives.
18217 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18218
18219 # Compiler flag to generate thread-safe objects.
18220 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18221
18222 # Library versioning type.
18223 version_type=$version_type
18224
18225 # Format of library name prefix.
18226 libname_spec=$lt_libname_spec
18227
18228 # List of archive names.  First name is the real one, the rest are links.
18229 # The last name is the one that the linker finds with -lNAME.
18230 library_names_spec=$lt_library_names_spec
18231
18232 # The coded name of the library, if different from the real name.
18233 soname_spec=$lt_soname_spec
18234
18235 # Commands used to build and install an old-style archive.
18236 RANLIB=$lt_RANLIB
18237 old_archive_cmds=$lt_old_archive_cmds_RC
18238 old_postinstall_cmds=$lt_old_postinstall_cmds
18239 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18240
18241 # Create an old-style archive from a shared archive.
18242 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18243
18244 # Create a temporary old-style archive to link instead of a shared archive.
18245 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18246
18247 # Commands used to build and install a shared archive.
18248 archive_cmds=$lt_archive_cmds_RC
18249 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18250 postinstall_cmds=$lt_postinstall_cmds
18251 postuninstall_cmds=$lt_postuninstall_cmds
18252
18253 # Commands used to build a loadable module (assumed same as above if empty)
18254 module_cmds=$lt_module_cmds_RC
18255 module_expsym_cmds=$lt_module_expsym_cmds_RC
18256
18257 # Commands to strip libraries.
18258 old_striplib=$lt_old_striplib
18259 striplib=$lt_striplib
18260
18261 # Dependencies to place before the objects being linked to create a
18262 # shared library.
18263 predep_objects=$lt_predep_objects_RC
18264
18265 # Dependencies to place after the objects being linked to create a
18266 # shared library.
18267 postdep_objects=$lt_postdep_objects_RC
18268
18269 # Dependencies to place before the objects being linked to create a
18270 # shared library.
18271 predeps=$lt_predeps_RC
18272
18273 # Dependencies to place after the objects being linked to create a
18274 # shared library.
18275 postdeps=$lt_postdeps_RC
18276
18277 # The library search path used internally by the compiler when linking
18278 # a shared library.
18279 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18280
18281 # Method to check whether dependent libraries are shared objects.
18282 deplibs_check_method=$lt_deplibs_check_method
18283
18284 # Command to use when deplibs_check_method == file_magic.
18285 file_magic_cmd=$lt_file_magic_cmd
18286
18287 # Flag that allows shared libraries with undefined symbols to be built.
18288 allow_undefined_flag=$lt_allow_undefined_flag_RC
18289
18290 # Flag that forces no undefined symbols.
18291 no_undefined_flag=$lt_no_undefined_flag_RC
18292
18293 # Commands used to finish a libtool library installation in a directory.
18294 finish_cmds=$lt_finish_cmds
18295
18296 # Same as above, but a single script fragment to be evaled but not shown.
18297 finish_eval=$lt_finish_eval
18298
18299 # Take the output of nm and produce a listing of raw symbols and C names.
18300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18301
18302 # Transform the output of nm in a proper C declaration
18303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18304
18305 # Transform the output of nm in a C name address pair
18306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18307
18308 # This is the shared library runtime path variable.
18309 runpath_var=$runpath_var
18310
18311 # This is the shared library path variable.
18312 shlibpath_var=$shlibpath_var
18313
18314 # Is shlibpath searched before the hard-coded library search path?
18315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18316
18317 # How to hardcode a shared library path into an executable.
18318 hardcode_action=$hardcode_action_RC
18319
18320 # Whether we should hardcode library paths into libraries.
18321 hardcode_into_libs=$hardcode_into_libs
18322
18323 # Flag to hardcode \$libdir into a binary during linking.
18324 # This must work even if \$libdir does not exist.
18325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18326
18327 # If ld is used when linking, flag to hardcode \$libdir into
18328 # a binary during linking. This must work even if \$libdir does
18329 # not exist.
18330 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18331
18332 # Whether we need a single -rpath flag with a separated argument.
18333 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18334
18335 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18336 # resulting binary.
18337 hardcode_direct=$hardcode_direct_RC
18338
18339 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18340 # resulting binary.
18341 hardcode_minus_L=$hardcode_minus_L_RC
18342
18343 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18344 # the resulting binary.
18345 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18346
18347 # Set to yes if building a shared library automatically hardcodes DIR into the library
18348 # and all subsequent libraries and executables linked against it.
18349 hardcode_automatic=$hardcode_automatic_RC
18350
18351 # Variables whose values should be saved in libtool wrapper scripts and
18352 # restored at relink time.
18353 variables_saved_for_relink="$variables_saved_for_relink"
18354
18355 # Whether libtool must link a program against all its dependency libraries.
18356 link_all_deplibs=$link_all_deplibs_RC
18357
18358 # Compile-time system search path for libraries
18359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18360
18361 # Run-time system search path for libraries
18362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18363
18364 # Fix the shell variable \$srcfile for the compiler.
18365 fix_srcfile_path="$fix_srcfile_path_RC"
18366
18367 # Set to yes if exported symbols are required.
18368 always_export_symbols=$always_export_symbols_RC
18369
18370 # The commands to list exported symbols.
18371 export_symbols_cmds=$lt_export_symbols_cmds_RC
18372
18373 # The commands to extract the exported symbol list from a shared archive.
18374 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18375
18376 # Symbols that should not be listed in the preloaded symbols.
18377 exclude_expsyms=$lt_exclude_expsyms_RC
18378
18379 # Symbols that must always be exported.
18380 include_expsyms=$lt_include_expsyms_RC
18381
18382 # ### END LIBTOOL TAG CONFIG: $tagname
18383
18384 __EOF__
18385
18386
18387 else
18388   # If there is no Makefile yet, we rely on a make rule to execute
18389   # `config.status --recheck' to rerun these tests and create the
18390   # libtool script then.
18391   test -f Makefile && make "$ltmain"
18392 fi
18393
18394
18395 ac_ext=c
18396 ac_cpp='$CPP $CPPFLAGS'
18397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18400
18401 CC="$lt_save_CC"
18402
18403         ;;
18404
18405       *)
18406         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18407 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18408    { (exit 1); exit 1; }; }
18409         ;;
18410       esac
18411
18412       # Append the new tag name to the list of available tags.
18413       if test -n "$tagname" ; then
18414       available_tags="$available_tags $tagname"
18415     fi
18416     fi
18417   done
18418   IFS="$lt_save_ifs"
18419
18420   # Now substitute the updated list of available tags.
18421   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18422     mv "${ofile}T" "$ofile"
18423     chmod +x "$ofile"
18424   else
18425     rm -f "${ofile}T"
18426     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18427 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18428    { (exit 1); exit 1; }; }
18429   fi
18430 fi
18431
18432
18433
18434 # This can be used to rebuild libtool when needed
18435 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18436
18437 # Always use our own libtool.
18438 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18439
18440 # Prevent multiple expansion
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462 # Extract the first word of "pwd", so it can be a program name with args.
18463 set dummy pwd; ac_word=$2
18464 echo "$as_me:$LINENO: checking for $ac_word" >&5
18465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18466 if test "${ac_cv_path_RPWD+set}" = set; then
18467   echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469   case $RPWD in
18470   [\\/]* | ?:[\\/]*)
18471   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18472   ;;
18473   *)
18474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18475 for as_dir in $PATH
18476 do
18477   IFS=$as_save_IFS
18478   test -z "$as_dir" && as_dir=.
18479   for ac_exec_ext in '' $ac_executable_extensions; do
18480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18481     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18483     break 2
18484   fi
18485 done
18486 done
18487
18488   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18489   ;;
18490 esac
18491 fi
18492 RPWD=$ac_cv_path_RPWD
18493
18494 if test -n "$RPWD"; then
18495   echo "$as_me:$LINENO: result: $RPWD" >&5
18496 echo "${ECHO_T}$RPWD" >&6
18497 else
18498   echo "$as_me:$LINENO: result: no" >&5
18499 echo "${ECHO_T}no" >&6
18500 fi
18501
18502 if test ${RPWD} = "false"
18503 then
18504         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18505 echo "$as_me: error: pwd required but not found" >&2;}
18506    { (exit 1); exit 1; }; }
18507 fi
18508
18509 # Extract the first word of "ar", so it can be a program name with args.
18510 set dummy ar; ac_word=$2
18511 echo "$as_me:$LINENO: checking for $ac_word" >&5
18512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18513 if test "${ac_cv_path_AR+set}" = set; then
18514   echo $ECHO_N "(cached) $ECHO_C" >&6
18515 else
18516   case $AR in
18517   [\\/]* | ?:[\\/]*)
18518   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18519   ;;
18520   *)
18521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18522 for as_dir in $PATH
18523 do
18524   IFS=$as_save_IFS
18525   test -z "$as_dir" && as_dir=.
18526   for ac_exec_ext in '' $ac_executable_extensions; do
18527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18528     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18530     break 2
18531   fi
18532 done
18533 done
18534
18535   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18536   ;;
18537 esac
18538 fi
18539 AR=$ac_cv_path_AR
18540
18541 if test -n "$AR"; then
18542   echo "$as_me:$LINENO: result: $AR" >&5
18543 echo "${ECHO_T}$AR" >&6
18544 else
18545   echo "$as_me:$LINENO: result: no" >&5
18546 echo "${ECHO_T}no" >&6
18547 fi
18548
18549 if test ${AR} = "false"
18550 then
18551         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18552 echo "$as_me: error: ar required but not found" >&2;}
18553    { (exit 1); exit 1; }; }
18554 fi
18555
18556 # Extract the first word of "sed", so it can be a program name with args.
18557 set dummy sed; ac_word=$2
18558 echo "$as_me:$LINENO: checking for $ac_word" >&5
18559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18560 if test "${ac_cv_path_SED+set}" = set; then
18561   echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563   case $SED in
18564   [\\/]* | ?:[\\/]*)
18565   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18566   ;;
18567   *)
18568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18569 for as_dir in $PATH
18570 do
18571   IFS=$as_save_IFS
18572   test -z "$as_dir" && as_dir=.
18573   for ac_exec_ext in '' $ac_executable_extensions; do
18574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18575     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18577     break 2
18578   fi
18579 done
18580 done
18581
18582   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18583   ;;
18584 esac
18585 fi
18586 SED=$ac_cv_path_SED
18587
18588 if test -n "$SED"; then
18589   echo "$as_me:$LINENO: result: $SED" >&5
18590 echo "${ECHO_T}$SED" >&6
18591 else
18592   echo "$as_me:$LINENO: result: no" >&5
18593 echo "${ECHO_T}no" >&6
18594 fi
18595
18596 if test ${SED} = "false"
18597 then
18598         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18599 echo "$as_me: error: sed required but not found" >&2;}
18600    { (exit 1); exit 1; }; }
18601 fi
18602
18603 # Extract the first word of "rm", so it can be a program name with args.
18604 set dummy rm; ac_word=$2
18605 echo "$as_me:$LINENO: checking for $ac_word" >&5
18606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18607 if test "${ac_cv_path_RM+set}" = set; then
18608   echo $ECHO_N "(cached) $ECHO_C" >&6
18609 else
18610   case $RM in
18611   [\\/]* | ?:[\\/]*)
18612   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18613   ;;
18614   *)
18615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 for as_dir in $PATH
18617 do
18618   IFS=$as_save_IFS
18619   test -z "$as_dir" && as_dir=.
18620   for ac_exec_ext in '' $ac_executable_extensions; do
18621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18624     break 2
18625   fi
18626 done
18627 done
18628
18629   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18630   ;;
18631 esac
18632 fi
18633 RM=$ac_cv_path_RM
18634
18635 if test -n "$RM"; then
18636   echo "$as_me:$LINENO: result: $RM" >&5
18637 echo "${ECHO_T}$RM" >&6
18638 else
18639   echo "$as_me:$LINENO: result: no" >&5
18640 echo "${ECHO_T}no" >&6
18641 fi
18642
18643 if test ${RM} = "false"
18644 then
18645         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18646 echo "$as_me: error: rm required but not found" >&2;}
18647    { (exit 1); exit 1; }; }
18648 fi
18649
18650 # Extract the first word of "echo", so it can be a program name with args.
18651 set dummy echo; ac_word=$2
18652 echo "$as_me:$LINENO: checking for $ac_word" >&5
18653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18654 if test "${ac_cv_path_ECHO+set}" = set; then
18655   echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657   case $ECHO in
18658   [\\/]* | ?:[\\/]*)
18659   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18660   ;;
18661   *)
18662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18663 for as_dir in $PATH
18664 do
18665   IFS=$as_save_IFS
18666   test -z "$as_dir" && as_dir=.
18667   for ac_exec_ext in '' $ac_executable_extensions; do
18668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18669     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18671     break 2
18672   fi
18673 done
18674 done
18675
18676   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18677   ;;
18678 esac
18679 fi
18680 ECHO=$ac_cv_path_ECHO
18681
18682 if test -n "$ECHO"; then
18683   echo "$as_me:$LINENO: result: $ECHO" >&5
18684 echo "${ECHO_T}$ECHO" >&6
18685 else
18686   echo "$as_me:$LINENO: result: no" >&5
18687 echo "${ECHO_T}no" >&6
18688 fi
18689
18690 if test ${ECHO} = "false"
18691 then
18692         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18693 echo "$as_me: error: echo required but not found" >&2;}
18694    { (exit 1); exit 1; }; }
18695 fi
18696
18697 # Extract the first word of "mkdir", so it can be a program name with args.
18698 set dummy mkdir; ac_word=$2
18699 echo "$as_me:$LINENO: checking for $ac_word" >&5
18700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18701 if test "${ac_cv_path_MKDIR+set}" = set; then
18702   echo $ECHO_N "(cached) $ECHO_C" >&6
18703 else
18704   case $MKDIR in
18705   [\\/]* | ?:[\\/]*)
18706   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18707   ;;
18708   *)
18709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18710 for as_dir in $PATH
18711 do
18712   IFS=$as_save_IFS
18713   test -z "$as_dir" && as_dir=.
18714   for ac_exec_ext in '' $ac_executable_extensions; do
18715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18716     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18718     break 2
18719   fi
18720 done
18721 done
18722
18723   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18724   ;;
18725 esac
18726 fi
18727 MKDIR=$ac_cv_path_MKDIR
18728
18729 if test -n "$MKDIR"; then
18730   echo "$as_me:$LINENO: result: $MKDIR" >&5
18731 echo "${ECHO_T}$MKDIR" >&6
18732 else
18733   echo "$as_me:$LINENO: result: no" >&5
18734 echo "${ECHO_T}no" >&6
18735 fi
18736
18737 if test ${MKDIR} = "false"
18738 then
18739         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18740 echo "$as_me: error: mkdir required but not found" >&2;}
18741    { (exit 1); exit 1; }; }
18742 fi
18743
18744 # Extract the first word of "date", so it can be a program name with args.
18745 set dummy date; ac_word=$2
18746 echo "$as_me:$LINENO: checking for $ac_word" >&5
18747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18748 if test "${ac_cv_path_DATE+set}" = set; then
18749   echo $ECHO_N "(cached) $ECHO_C" >&6
18750 else
18751   case $DATE in
18752   [\\/]* | ?:[\\/]*)
18753   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18754   ;;
18755   *)
18756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18757 for as_dir in $PATH
18758 do
18759   IFS=$as_save_IFS
18760   test -z "$as_dir" && as_dir=.
18761   for ac_exec_ext in '' $ac_executable_extensions; do
18762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18763     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18765     break 2
18766   fi
18767 done
18768 done
18769
18770   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18771   ;;
18772 esac
18773 fi
18774 DATE=$ac_cv_path_DATE
18775
18776 if test -n "$DATE"; then
18777   echo "$as_me:$LINENO: result: $DATE" >&5
18778 echo "${ECHO_T}$DATE" >&6
18779 else
18780   echo "$as_me:$LINENO: result: no" >&5
18781 echo "${ECHO_T}no" >&6
18782 fi
18783
18784 if test ${DATE} = "false"
18785 then
18786         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18787 echo "$as_me: error: date required but not found" >&2;}
18788    { (exit 1); exit 1; }; }
18789 fi
18790
18791 # Extract the first word of "mv", so it can be a program name with args.
18792 set dummy mv; ac_word=$2
18793 echo "$as_me:$LINENO: checking for $ac_word" >&5
18794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18795 if test "${ac_cv_path_MV+set}" = set; then
18796   echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798   case $MV in
18799   [\\/]* | ?:[\\/]*)
18800   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18801   ;;
18802   *)
18803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18804 for as_dir in $PATH
18805 do
18806   IFS=$as_save_IFS
18807   test -z "$as_dir" && as_dir=.
18808   for ac_exec_ext in '' $ac_executable_extensions; do
18809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18810     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18812     break 2
18813   fi
18814 done
18815 done
18816
18817   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18818   ;;
18819 esac
18820 fi
18821 MV=$ac_cv_path_MV
18822
18823 if test -n "$MV"; then
18824   echo "$as_me:$LINENO: result: $MV" >&5
18825 echo "${ECHO_T}$MV" >&6
18826 else
18827   echo "$as_me:$LINENO: result: no" >&5
18828 echo "${ECHO_T}no" >&6
18829 fi
18830
18831 if test ${MV} = "false"
18832 then
18833         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18834 echo "$as_me: error: mv required but not found" >&2;}
18835    { (exit 1); exit 1; }; }
18836 fi
18837
18838 # Extract the first word of "dot", so it can be a program name with args.
18839 set dummy dot; ac_word=$2
18840 echo "$as_me:$LINENO: checking for $ac_word" >&5
18841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18842 if test "${ac_cv_path_DOT+set}" = set; then
18843   echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845   case $DOT in
18846   [\\/]* | ?:[\\/]*)
18847   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18848   ;;
18849   *)
18850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18851 for as_dir in $PATH
18852 do
18853   IFS=$as_save_IFS
18854   test -z "$as_dir" && as_dir=.
18855   for ac_exec_ext in '' $ac_executable_extensions; do
18856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18857     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18859     break 2
18860   fi
18861 done
18862 done
18863
18864   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18865   ;;
18866 esac
18867 fi
18868 DOT=$ac_cv_path_DOT
18869
18870 if test -n "$DOT"; then
18871   echo "$as_me:$LINENO: result: $DOT" >&5
18872 echo "${ECHO_T}$DOT" >&6
18873 else
18874   echo "$as_me:$LINENO: result: no" >&5
18875 echo "${ECHO_T}no" >&6
18876 fi
18877
18878
18879 # Extract the first word of "etags", so it can be a program name with args.
18880 set dummy etags; ac_word=$2
18881 echo "$as_me:$LINENO: checking for $ac_word" >&5
18882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18883 if test "${ac_cv_path_ETAGS+set}" = set; then
18884   echo $ECHO_N "(cached) $ECHO_C" >&6
18885 else
18886   case $ETAGS in
18887   [\\/]* | ?:[\\/]*)
18888   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18889   ;;
18890   *)
18891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18893 do
18894   IFS=$as_save_IFS
18895   test -z "$as_dir" && as_dir=.
18896   for ac_exec_ext in '' $ac_executable_extensions; do
18897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18898     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18900     break 2
18901   fi
18902 done
18903 done
18904
18905   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18906   ;;
18907 esac
18908 fi
18909 ETAGS=$ac_cv_path_ETAGS
18910
18911 if test -n "$ETAGS"; then
18912   echo "$as_me:$LINENO: result: $ETAGS" >&5
18913 echo "${ECHO_T}$ETAGS" >&6
18914 else
18915   echo "$as_me:$LINENO: result: no" >&5
18916 echo "${ECHO_T}no" >&6
18917 fi
18918
18919
18920 # Extract the first word of "python", so it can be a program name with args.
18921 set dummy python; ac_word=$2
18922 echo "$as_me:$LINENO: checking for $ac_word" >&5
18923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18924 if test "${ac_cv_path_PYTHON+set}" = set; then
18925   echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927   case $PYTHON in
18928   [\\/]* | ?:[\\/]*)
18929   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18930   ;;
18931   *)
18932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18933 for as_dir in $PATH
18934 do
18935   IFS=$as_save_IFS
18936   test -z "$as_dir" && as_dir=.
18937   for ac_exec_ext in '' $ac_executable_extensions; do
18938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18939     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18941     break 2
18942   fi
18943 done
18944 done
18945
18946   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18947   ;;
18948 esac
18949 fi
18950 PYTHON=$ac_cv_path_PYTHON
18951
18952 if test -n "$PYTHON"; then
18953   echo "$as_me:$LINENO: result: $PYTHON" >&5
18954 echo "${ECHO_T}$PYTHON" >&6
18955 else
18956   echo "$as_me:$LINENO: result: no" >&5
18957 echo "${ECHO_T}no" >&6
18958 fi
18959
18960 if test ${PYTHON} = "false"
18961 then
18962         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18963 echo "$as_me: WARNING: python required but not found" >&2;}
18964 fi
18965
18966 # Extract the first word of "qmtest", so it can be a program name with args.
18967 set dummy qmtest; ac_word=$2
18968 echo "$as_me:$LINENO: checking for $ac_word" >&5
18969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18970 if test "${ac_cv_path_QMTEST+set}" = set; then
18971   echo $ECHO_N "(cached) $ECHO_C" >&6
18972 else
18973   case $QMTEST in
18974   [\\/]* | ?:[\\/]*)
18975   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18976   ;;
18977   *)
18978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18979 for as_dir in $PATH
18980 do
18981   IFS=$as_save_IFS
18982   test -z "$as_dir" && as_dir=.
18983   for ac_exec_ext in '' $ac_executable_extensions; do
18984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18985     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18987     break 2
18988   fi
18989 done
18990 done
18991
18992   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18993   ;;
18994 esac
18995 fi
18996 QMTEST=$ac_cv_path_QMTEST
18997
18998 if test -n "$QMTEST"; then
18999   echo "$as_me:$LINENO: result: $QMTEST" >&5
19000 echo "${ECHO_T}$QMTEST" >&6
19001 else
19002   echo "$as_me:$LINENO: result: no" >&5
19003 echo "${ECHO_T}no" >&6
19004 fi
19005
19006 if test ${QMTEST} = "false"
19007 then
19008         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19009 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19010 fi
19011
19012 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19013 pymajor=`echo $pyversion | cut -d. -f1`
19014 pyminor=`echo $pyversion | cut -d. -f2`
19015
19016 if test "$pymajor" -ge "2"
19017 then
19018         if test "$pymajor" -eq "2"
19019         then
19020                 if test "$pyminor" -lt "2"
19021                 then
19022                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19023 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19024    { (exit 1); exit 1; }; }
19025                 fi
19026         fi
19027 else
19028         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19029 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19030    { (exit 1); exit 1; }; }
19031 fi
19032
19033
19034
19035
19036
19037 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19038 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19039 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19040   echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042   ac_check_lib_save_LIBS=$LIBS
19043 LIBS="-lelf  $LIBS"
19044 cat >conftest.$ac_ext <<_ACEOF
19045 #line $LINENO "configure"
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051
19052 /* Override any gcc2 internal prototype to avoid an error.  */
19053 #ifdef __cplusplus
19054 extern "C"
19055 #endif
19056 /* We use char because int might match the return type of a gcc2
19057    builtin and then its argument prototype would still apply.  */
19058 char elf_begin ();
19059 int
19060 main ()
19061 {
19062 elf_begin ();
19063   ;
19064   return 0;
19065 }
19066 _ACEOF
19067 rm -f conftest.$ac_objext conftest$ac_exeext
19068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19069   (eval $ac_link) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); } &&
19073          { ac_try='test -s conftest$ac_exeext'
19074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075   (eval $ac_try) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079   ac_cv_lib_elf_elf_begin=yes
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084 ac_cv_lib_elf_elf_begin=no
19085 fi
19086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19087 LIBS=$ac_check_lib_save_LIBS
19088 fi
19089 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19090 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19091 if test $ac_cv_lib_elf_elf_begin = yes; then
19092   cat >>confdefs.h <<_ACEOF
19093 #define HAVE_LIBELF 1
19094 _ACEOF
19095
19096   LIBS="-lelf $LIBS"
19097
19098 fi
19099
19100
19101 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19102 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19103 if test "${ac_cv_search_dlopen+set}" = set; then
19104   echo $ECHO_N "(cached) $ECHO_C" >&6
19105 else
19106   ac_func_search_save_LIBS=$LIBS
19107 ac_cv_search_dlopen=no
19108 cat >conftest.$ac_ext <<_ACEOF
19109 #line $LINENO "configure"
19110 /* confdefs.h.  */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h.  */
19115
19116 /* Override any gcc2 internal prototype to avoid an error.  */
19117 #ifdef __cplusplus
19118 extern "C"
19119 #endif
19120 /* We use char because int might match the return type of a gcc2
19121    builtin and then its argument prototype would still apply.  */
19122 char dlopen ();
19123 int
19124 main ()
19125 {
19126 dlopen ();
19127   ;
19128   return 0;
19129 }
19130 _ACEOF
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19133   (eval $ac_link) 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); } &&
19137          { ac_try='test -s conftest$ac_exeext'
19138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139   (eval $ac_try) 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); }; }; then
19143   ac_cv_search_dlopen="none required"
19144 else
19145   echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19147
19148 fi
19149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19150 if test "$ac_cv_search_dlopen" = no; then
19151   for ac_lib in dl; do
19152     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19153     cat >conftest.$ac_ext <<_ACEOF
19154 #line $LINENO "configure"
19155 /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160
19161 /* Override any gcc2 internal prototype to avoid an error.  */
19162 #ifdef __cplusplus
19163 extern "C"
19164 #endif
19165 /* We use char because int might match the return type of a gcc2
19166    builtin and then its argument prototype would still apply.  */
19167 char dlopen ();
19168 int
19169 main ()
19170 {
19171 dlopen ();
19172   ;
19173   return 0;
19174 }
19175 _ACEOF
19176 rm -f conftest.$ac_objext conftest$ac_exeext
19177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19178   (eval $ac_link) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); } &&
19182          { ac_try='test -s conftest$ac_exeext'
19183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184   (eval $ac_try) 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); }; }; then
19188   ac_cv_search_dlopen="-l$ac_lib"
19189 break
19190 else
19191   echo "$as_me: failed program was:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19193
19194 fi
19195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19196   done
19197 fi
19198 LIBS=$ac_func_search_save_LIBS
19199 fi
19200 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19201 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19202 if test "$ac_cv_search_dlopen" != no; then
19203   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19204
19205 cat >>confdefs.h <<\_ACEOF
19206 #define HAVE_DLOPEN 1
19207 _ACEOF
19208
19209 else
19210   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19211 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19212 fi
19213
19214
19215 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19216 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19217 if test "${ac_cv_search_mallinfo+set}" = set; then
19218   echo $ECHO_N "(cached) $ECHO_C" >&6
19219 else
19220   ac_func_search_save_LIBS=$LIBS
19221 ac_cv_search_mallinfo=no
19222 cat >conftest.$ac_ext <<_ACEOF
19223 #line $LINENO "configure"
19224 /* confdefs.h.  */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h.  */
19229
19230 /* Override any gcc2 internal prototype to avoid an error.  */
19231 #ifdef __cplusplus
19232 extern "C"
19233 #endif
19234 /* We use char because int might match the return type of a gcc2
19235    builtin and then its argument prototype would still apply.  */
19236 char mallinfo ();
19237 int
19238 main ()
19239 {
19240 mallinfo ();
19241   ;
19242   return 0;
19243 }
19244 _ACEOF
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19247   (eval $ac_link) 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); } &&
19251          { ac_try='test -s conftest$ac_exeext'
19252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253   (eval $ac_try) 2>&5
19254   ac_status=$?
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); }; }; then
19257   ac_cv_search_mallinfo="none required"
19258 else
19259   echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19261
19262 fi
19263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19264 if test "$ac_cv_search_mallinfo" = no; then
19265   for ac_lib in malloc; do
19266     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19267     cat >conftest.$ac_ext <<_ACEOF
19268 #line $LINENO "configure"
19269 /* confdefs.h.  */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h.  */
19274
19275 /* Override any gcc2 internal prototype to avoid an error.  */
19276 #ifdef __cplusplus
19277 extern "C"
19278 #endif
19279 /* We use char because int might match the return type of a gcc2
19280    builtin and then its argument prototype would still apply.  */
19281 char mallinfo ();
19282 int
19283 main ()
19284 {
19285 mallinfo ();
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292   (eval $ac_link) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } &&
19296          { ac_try='test -s conftest$ac_exeext'
19297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298   (eval $ac_try) 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302   ac_cv_search_mallinfo="-l$ac_lib"
19303 break
19304 else
19305   echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308 fi
19309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19310   done
19311 fi
19312 LIBS=$ac_func_search_save_LIBS
19313 fi
19314 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19315 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19316 if test "$ac_cv_search_mallinfo" != no; then
19317   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19318
19319 cat >>confdefs.h <<\_ACEOF
19320 #define HAVE_MALLINFO 1
19321 _ACEOF
19322
19323 fi
19324
19325
19326
19327 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19329 if test "${ac_cv_header_stdc+set}" = set; then
19330   echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332   cat >conftest.$ac_ext <<_ACEOF
19333 #line $LINENO "configure"
19334 /* confdefs.h.  */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h.  */
19339 #include <stdlib.h>
19340 #include <stdarg.h>
19341 #include <string.h>
19342 #include <float.h>
19343
19344 int
19345 main ()
19346 {
19347
19348   ;
19349   return 0;
19350 }
19351 _ACEOF
19352 rm -f conftest.$ac_objext
19353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19354   (eval $ac_compile) 2>&5
19355   ac_status=$?
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); } &&
19358          { ac_try='test -s conftest.$ac_objext'
19359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360   (eval $ac_try) 2>&5
19361   ac_status=$?
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); }; }; then
19364   ac_cv_header_stdc=yes
19365 else
19366   echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19368
19369 ac_cv_header_stdc=no
19370 fi
19371 rm -f conftest.$ac_objext conftest.$ac_ext
19372
19373 if test $ac_cv_header_stdc = yes; then
19374   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19375   cat >conftest.$ac_ext <<_ACEOF
19376 #line $LINENO "configure"
19377 /* confdefs.h.  */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h.  */
19382 #include <string.h>
19383
19384 _ACEOF
19385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19386   $EGREP "memchr" >/dev/null 2>&1; then
19387   :
19388 else
19389   ac_cv_header_stdc=no
19390 fi
19391 rm -f conftest*
19392
19393 fi
19394
19395 if test $ac_cv_header_stdc = yes; then
19396   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19397   cat >conftest.$ac_ext <<_ACEOF
19398 #line $LINENO "configure"
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404 #include <stdlib.h>
19405
19406 _ACEOF
19407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19408   $EGREP "free" >/dev/null 2>&1; then
19409   :
19410 else
19411   ac_cv_header_stdc=no
19412 fi
19413 rm -f conftest*
19414
19415 fi
19416
19417 if test $ac_cv_header_stdc = yes; then
19418   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19419   if test "$cross_compiling" = yes; then
19420   :
19421 else
19422   cat >conftest.$ac_ext <<_ACEOF
19423 #line $LINENO "configure"
19424 /* confdefs.h.  */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h.  */
19429 #include <ctype.h>
19430 #if ((' ' & 0x0FF) == 0x020)
19431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19433 #else
19434 # define ISLOWER(c) \
19435                    (('a' <= (c) && (c) <= 'i') \
19436                      || ('j' <= (c) && (c) <= 'r') \
19437                      || ('s' <= (c) && (c) <= 'z'))
19438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19439 #endif
19440
19441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19442 int
19443 main ()
19444 {
19445   int i;
19446   for (i = 0; i < 256; i++)
19447     if (XOR (islower (i), ISLOWER (i))
19448         || toupper (i) != TOUPPER (i))
19449       exit(2);
19450   exit (0);
19451 }
19452 _ACEOF
19453 rm -f conftest$ac_exeext
19454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19455   (eval $ac_link) 2>&5
19456   ac_status=$?
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460   (eval $ac_try) 2>&5
19461   ac_status=$?
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); }; }; then
19464   :
19465 else
19466   echo "$as_me: program exited with status $ac_status" >&5
19467 echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19469
19470 ( exit $ac_status )
19471 ac_cv_header_stdc=no
19472 fi
19473 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19474 fi
19475 fi
19476 fi
19477 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19478 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19479 if test $ac_cv_header_stdc = yes; then
19480
19481 cat >>confdefs.h <<\_ACEOF
19482 #define STDC_HEADERS 1
19483 _ACEOF
19484
19485 fi
19486
19487 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19488 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19489 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19490   echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492   cat >conftest.$ac_ext <<_ACEOF
19493 #line $LINENO "configure"
19494 /* confdefs.h.  */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h.  */
19499 #include <sys/types.h>
19500 #include <sys/wait.h>
19501 #ifndef WEXITSTATUS
19502 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19503 #endif
19504 #ifndef WIFEXITED
19505 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19506 #endif
19507
19508 int
19509 main ()
19510 {
19511   int s;
19512   wait (&s);
19513   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19514   ;
19515   return 0;
19516 }
19517 _ACEOF
19518 rm -f conftest.$ac_objext
19519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19520   (eval $ac_compile) 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); } &&
19524          { ac_try='test -s conftest.$ac_objext'
19525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526   (eval $ac_try) 2>&5
19527   ac_status=$?
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); }; }; then
19530   ac_cv_header_sys_wait_h=yes
19531 else
19532   echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19534
19535 ac_cv_header_sys_wait_h=no
19536 fi
19537 rm -f conftest.$ac_objext conftest.$ac_ext
19538 fi
19539 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19540 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19541 if test $ac_cv_header_sys_wait_h = yes; then
19542
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE_SYS_WAIT_H 1
19545 _ACEOF
19546
19547 fi
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19559 do
19560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19562   echo "$as_me:$LINENO: checking for $ac_header" >&5
19563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19565   echo $ECHO_N "(cached) $ECHO_C" >&6
19566 fi
19567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19569 else
19570   # Is the header compilable?
19571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19573 cat >conftest.$ac_ext <<_ACEOF
19574 #line $LINENO "configure"
19575 /* confdefs.h.  */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h.  */
19580 $ac_includes_default
19581 #include <$ac_header>
19582 _ACEOF
19583 rm -f conftest.$ac_objext
19584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19585   (eval $ac_compile) 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); } &&
19589          { ac_try='test -s conftest.$ac_objext'
19590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591   (eval $ac_try) 2>&5
19592   ac_status=$?
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); }; }; then
19595   ac_header_compiler=yes
19596 else
19597   echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600 ac_header_compiler=no
19601 fi
19602 rm -f conftest.$ac_objext conftest.$ac_ext
19603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19604 echo "${ECHO_T}$ac_header_compiler" >&6
19605
19606 # Is the header present?
19607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19609 cat >conftest.$ac_ext <<_ACEOF
19610 #line $LINENO "configure"
19611 /* confdefs.h.  */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h.  */
19616 #include <$ac_header>
19617 _ACEOF
19618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19620   ac_status=$?
19621   grep -v '^ *+' conftest.er1 >conftest.err
19622   rm -f conftest.er1
19623   cat conftest.err >&5
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); } >/dev/null; then
19626   if test -s conftest.err; then
19627     ac_cpp_err=$ac_c_preproc_warn_flag
19628   else
19629     ac_cpp_err=
19630   fi
19631 else
19632   ac_cpp_err=yes
19633 fi
19634 if test -z "$ac_cpp_err"; then
19635   ac_header_preproc=yes
19636 else
19637   echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19639
19640   ac_header_preproc=no
19641 fi
19642 rm -f conftest.err conftest.$ac_ext
19643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19644 echo "${ECHO_T}$ac_header_preproc" >&6
19645
19646 # So?  What about this header?
19647 case $ac_header_compiler:$ac_header_preproc in
19648   yes:no )
19649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19653     (
19654       cat <<\_ASBOX
19655 ## ------------------------------------ ##
19656 ## Report this to bug-autoconf@gnu.org. ##
19657 ## ------------------------------------ ##
19658 _ASBOX
19659     ) |
19660       sed "s/^/$as_me: WARNING:     /" >&2
19661     ;;
19662   no:yes )
19663     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19665     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19669     (
19670       cat <<\_ASBOX
19671 ## ------------------------------------ ##
19672 ## Report this to bug-autoconf@gnu.org. ##
19673 ## ------------------------------------ ##
19674 _ASBOX
19675     ) |
19676       sed "s/^/$as_me: WARNING:     /" >&2
19677     ;;
19678 esac
19679 echo "$as_me:$LINENO: checking for $ac_header" >&5
19680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19682   echo $ECHO_N "(cached) $ECHO_C" >&6
19683 else
19684   eval "$as_ac_Header=$ac_header_preproc"
19685 fi
19686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19688
19689 fi
19690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19691   cat >>confdefs.h <<_ACEOF
19692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19693 _ACEOF
19694
19695 fi
19696
19697 done
19698
19699
19700
19701
19702
19703 for ac_header in malloc.h sys/mman.h sys/resource.h
19704 do
19705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19707   echo "$as_me:$LINENO: checking for $ac_header" >&5
19708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19710   echo $ECHO_N "(cached) $ECHO_C" >&6
19711 fi
19712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19714 else
19715   # Is the header compilable?
19716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19718 cat >conftest.$ac_ext <<_ACEOF
19719 #line $LINENO "configure"
19720 /* confdefs.h.  */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h.  */
19725 $ac_includes_default
19726 #include <$ac_header>
19727 _ACEOF
19728 rm -f conftest.$ac_objext
19729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730   (eval $ac_compile) 2>&5
19731   ac_status=$?
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); } &&
19734          { ac_try='test -s conftest.$ac_objext'
19735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736   (eval $ac_try) 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); }; }; then
19740   ac_header_compiler=yes
19741 else
19742   echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19744
19745 ac_header_compiler=no
19746 fi
19747 rm -f conftest.$ac_objext conftest.$ac_ext
19748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19749 echo "${ECHO_T}$ac_header_compiler" >&6
19750
19751 # Is the header present?
19752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19754 cat >conftest.$ac_ext <<_ACEOF
19755 #line $LINENO "configure"
19756 /* confdefs.h.  */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h.  */
19761 #include <$ac_header>
19762 _ACEOF
19763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19765   ac_status=$?
19766   grep -v '^ *+' conftest.er1 >conftest.err
19767   rm -f conftest.er1
19768   cat conftest.err >&5
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); } >/dev/null; then
19771   if test -s conftest.err; then
19772     ac_cpp_err=$ac_c_preproc_warn_flag
19773   else
19774     ac_cpp_err=
19775   fi
19776 else
19777   ac_cpp_err=yes
19778 fi
19779 if test -z "$ac_cpp_err"; then
19780   ac_header_preproc=yes
19781 else
19782   echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785   ac_header_preproc=no
19786 fi
19787 rm -f conftest.err conftest.$ac_ext
19788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19789 echo "${ECHO_T}$ac_header_preproc" >&6
19790
19791 # So?  What about this header?
19792 case $ac_header_compiler:$ac_header_preproc in
19793   yes:no )
19794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19798     (
19799       cat <<\_ASBOX
19800 ## ------------------------------------ ##
19801 ## Report this to bug-autoconf@gnu.org. ##
19802 ## ------------------------------------ ##
19803 _ASBOX
19804     ) |
19805       sed "s/^/$as_me: WARNING:     /" >&2
19806     ;;
19807   no:yes )
19808     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19810     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19814     (
19815       cat <<\_ASBOX
19816 ## ------------------------------------ ##
19817 ## Report this to bug-autoconf@gnu.org. ##
19818 ## ------------------------------------ ##
19819 _ASBOX
19820     ) |
19821       sed "s/^/$as_me: WARNING:     /" >&2
19822     ;;
19823 esac
19824 echo "$as_me:$LINENO: checking for $ac_header" >&5
19825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829   eval "$as_ac_Header=$ac_header_preproc"
19830 fi
19831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19833
19834 fi
19835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19836   cat >>confdefs.h <<_ACEOF
19837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19838 _ACEOF
19839
19840 fi
19841
19842 done
19843
19844
19845
19846
19847 for ac_header in dlfcn.h link.h
19848 do
19849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19851   echo "$as_me:$LINENO: checking for $ac_header" >&5
19852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19854   echo $ECHO_N "(cached) $ECHO_C" >&6
19855 fi
19856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19858 else
19859   # Is the header compilable?
19860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19862 cat >conftest.$ac_ext <<_ACEOF
19863 #line $LINENO "configure"
19864 /* confdefs.h.  */
19865 _ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h.  */
19869 $ac_includes_default
19870 #include <$ac_header>
19871 _ACEOF
19872 rm -f conftest.$ac_objext
19873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19874   (eval $ac_compile) 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } &&
19878          { ac_try='test -s conftest.$ac_objext'
19879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880   (eval $ac_try) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; }; then
19884   ac_header_compiler=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_header_compiler=no
19890 fi
19891 rm -f conftest.$ac_objext conftest.$ac_ext
19892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19893 echo "${ECHO_T}$ac_header_compiler" >&6
19894
19895 # Is the header present?
19896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19898 cat >conftest.$ac_ext <<_ACEOF
19899 #line $LINENO "configure"
19900 /* confdefs.h.  */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h.  */
19905 #include <$ac_header>
19906 _ACEOF
19907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19908   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19909   ac_status=$?
19910   grep -v '^ *+' conftest.er1 >conftest.err
19911   rm -f conftest.er1
19912   cat conftest.err >&5
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); } >/dev/null; then
19915   if test -s conftest.err; then
19916     ac_cpp_err=$ac_c_preproc_warn_flag
19917   else
19918     ac_cpp_err=
19919   fi
19920 else
19921   ac_cpp_err=yes
19922 fi
19923 if test -z "$ac_cpp_err"; then
19924   ac_header_preproc=yes
19925 else
19926   echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929   ac_header_preproc=no
19930 fi
19931 rm -f conftest.err conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19933 echo "${ECHO_T}$ac_header_preproc" >&6
19934
19935 # So?  What about this header?
19936 case $ac_header_compiler:$ac_header_preproc in
19937   yes:no )
19938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19942     (
19943       cat <<\_ASBOX
19944 ## ------------------------------------ ##
19945 ## Report this to bug-autoconf@gnu.org. ##
19946 ## ------------------------------------ ##
19947 _ASBOX
19948     ) |
19949       sed "s/^/$as_me: WARNING:     /" >&2
19950     ;;
19951   no:yes )
19952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19954     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19956     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19958     (
19959       cat <<\_ASBOX
19960 ## ------------------------------------ ##
19961 ## Report this to bug-autoconf@gnu.org. ##
19962 ## ------------------------------------ ##
19963 _ASBOX
19964     ) |
19965       sed "s/^/$as_me: WARNING:     /" >&2
19966     ;;
19967 esac
19968 echo "$as_me:$LINENO: checking for $ac_header" >&5
19969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   eval "$as_ac_Header=$ac_header_preproc"
19974 fi
19975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19977
19978 fi
19979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19980   cat >>confdefs.h <<_ACEOF
19981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19982 _ACEOF
19983
19984 fi
19985
19986 done
19987
19988
19989
19990 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19991 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19992 if test "${ac_cv_c_const+set}" = set; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995   cat >conftest.$ac_ext <<_ACEOF
19996 #line $LINENO "configure"
19997 /* confdefs.h.  */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h.  */
20002
20003 int
20004 main ()
20005 {
20006 /* FIXME: Include the comments suggested by Paul. */
20007 #ifndef __cplusplus
20008   /* Ultrix mips cc rejects this.  */
20009   typedef int charset[2];
20010   const charset x;
20011   /* SunOS 4.1.1 cc rejects this.  */
20012   char const *const *ccp;
20013   char **p;
20014   /* NEC SVR4.0.2 mips cc rejects this.  */
20015   struct point {int x, y;};
20016   static struct point const zero = {0,0};
20017   /* AIX XL C 1.02.0.0 rejects this.
20018      It does not let you subtract one const X* pointer from another in
20019      an arm of an if-expression whose if-part is not a constant
20020      expression */
20021   const char *g = "string";
20022   ccp = &g + (g ? g-g : 0);
20023   /* HPUX 7.0 cc rejects these. */
20024   ++ccp;
20025   p = (char**) ccp;
20026   ccp = (char const *const *) p;
20027   { /* SCO 3.2v4 cc rejects this.  */
20028     char *t;
20029     char const *s = 0 ? (char *) 0 : (char const *) 0;
20030
20031     *t++ = 0;
20032   }
20033   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20034     int x[] = {25, 17};
20035     const int *foo = &x[0];
20036     ++foo;
20037   }
20038   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20039     typedef const int *iptr;
20040     iptr p = 0;
20041     ++p;
20042   }
20043   { /* AIX XL C 1.02.0.0 rejects this saying
20044        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20045     struct s { int j; const int *ap[3]; };
20046     struct s *b; b->j = 5;
20047   }
20048   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20049     const int foo = 10;
20050   }
20051 #endif
20052
20053   ;
20054   return 0;
20055 }
20056 _ACEOF
20057 rm -f conftest.$ac_objext
20058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20059   (eval $ac_compile) 2>&5
20060   ac_status=$?
20061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062   (exit $ac_status); } &&
20063          { ac_try='test -s conftest.$ac_objext'
20064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065   (eval $ac_try) 2>&5
20066   ac_status=$?
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); }; }; then
20069   ac_cv_c_const=yes
20070 else
20071   echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074 ac_cv_c_const=no
20075 fi
20076 rm -f conftest.$ac_objext conftest.$ac_ext
20077 fi
20078 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20079 echo "${ECHO_T}$ac_cv_c_const" >&6
20080 if test $ac_cv_c_const = no; then
20081
20082 cat >>confdefs.h <<\_ACEOF
20083 #define const
20084 _ACEOF
20085
20086 fi
20087
20088 echo "$as_me:$LINENO: checking for inline" >&5
20089 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20090 if test "${ac_cv_c_inline+set}" = set; then
20091   echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093   ac_cv_c_inline=no
20094 for ac_kw in inline __inline__ __inline; do
20095   cat >conftest.$ac_ext <<_ACEOF
20096 #line $LINENO "configure"
20097 /* confdefs.h.  */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h.  */
20102 #ifndef __cplusplus
20103 typedef int foo_t;
20104 static $ac_kw foo_t static_foo () {return 0; }
20105 $ac_kw foo_t foo () {return 0; }
20106 #endif
20107
20108 _ACEOF
20109 rm -f conftest.$ac_objext
20110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20111   (eval $ac_compile) 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); } &&
20115          { ac_try='test -s conftest.$ac_objext'
20116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117   (eval $ac_try) 2>&5
20118   ac_status=$?
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); }; }; then
20121   ac_cv_c_inline=$ac_kw; break
20122 else
20123   echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126 fi
20127 rm -f conftest.$ac_objext conftest.$ac_ext
20128 done
20129
20130 fi
20131 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20132 echo "${ECHO_T}$ac_cv_c_inline" >&6
20133 case $ac_cv_c_inline in
20134   inline | yes) ;;
20135   no)
20136 cat >>confdefs.h <<\_ACEOF
20137 #define inline
20138 _ACEOF
20139  ;;
20140   *)  cat >>confdefs.h <<_ACEOF
20141 #define inline $ac_cv_c_inline
20142 _ACEOF
20143  ;;
20144 esac
20145
20146
20147 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20148 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20149 if test "${ac_cv_c_bigendian+set}" = set; then
20150   echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152   # See if sys/param.h defines the BYTE_ORDER macro.
20153 cat >conftest.$ac_ext <<_ACEOF
20154 #line $LINENO "configure"
20155 /* confdefs.h.  */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h.  */
20160 #include <sys/types.h>
20161 #include <sys/param.h>
20162
20163 int
20164 main ()
20165 {
20166 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20167  bogus endian macros
20168 #endif
20169
20170   ;
20171   return 0;
20172 }
20173 _ACEOF
20174 rm -f conftest.$ac_objext
20175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20176   (eval $ac_compile) 2>&5
20177   ac_status=$?
20178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179   (exit $ac_status); } &&
20180          { ac_try='test -s conftest.$ac_objext'
20181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182   (eval $ac_try) 2>&5
20183   ac_status=$?
20184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185   (exit $ac_status); }; }; then
20186   # It does; now see whether it defined to BIG_ENDIAN or not.
20187 cat >conftest.$ac_ext <<_ACEOF
20188 #line $LINENO "configure"
20189 /* confdefs.h.  */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h.  */
20194 #include <sys/types.h>
20195 #include <sys/param.h>
20196
20197 int
20198 main ()
20199 {
20200 #if BYTE_ORDER != BIG_ENDIAN
20201  not big endian
20202 #endif
20203
20204   ;
20205   return 0;
20206 }
20207 _ACEOF
20208 rm -f conftest.$ac_objext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210   (eval $ac_compile) 2>&5
20211   ac_status=$?
20212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213   (exit $ac_status); } &&
20214          { ac_try='test -s conftest.$ac_objext'
20215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216   (eval $ac_try) 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); }; }; then
20220   ac_cv_c_bigendian=yes
20221 else
20222   echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20224
20225 ac_cv_c_bigendian=no
20226 fi
20227 rm -f conftest.$ac_objext conftest.$ac_ext
20228 else
20229   echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 # It does not; compile a test program.
20233 if test "$cross_compiling" = yes; then
20234   # try to guess the endianness by grepping values into an object file
20235   ac_cv_c_bigendian=unknown
20236   cat >conftest.$ac_ext <<_ACEOF
20237 #line $LINENO "configure"
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20244 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20245 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20246 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20247 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20248 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20249 int
20250 main ()
20251 {
20252  _ascii (); _ebcdic ();
20253   ;
20254   return 0;
20255 }
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259   (eval $ac_compile) 2>&5
20260   ac_status=$?
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); } &&
20263          { ac_try='test -s conftest.$ac_objext'
20264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265   (eval $ac_try) 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; }; then
20269   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20270   ac_cv_c_bigendian=yes
20271 fi
20272 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20273   if test "$ac_cv_c_bigendian" = unknown; then
20274     ac_cv_c_bigendian=no
20275   else
20276     # finding both strings is unlikely to happen, but who knows?
20277     ac_cv_c_bigendian=unknown
20278   fi
20279 fi
20280 else
20281   echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20283
20284 fi
20285 rm -f conftest.$ac_objext conftest.$ac_ext
20286 else
20287   cat >conftest.$ac_ext <<_ACEOF
20288 #line $LINENO "configure"
20289 /* confdefs.h.  */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h.  */
20294 int
20295 main ()
20296 {
20297   /* Are we little or big endian?  From Harbison&Steele.  */
20298   union
20299   {
20300     long l;
20301     char c[sizeof (long)];
20302   } u;
20303   u.l = 1;
20304   exit (u.c[sizeof (long) - 1] == 1);
20305 }
20306 _ACEOF
20307 rm -f conftest$ac_exeext
20308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20309   (eval $ac_link) 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314   (eval $ac_try) 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); }; }; then
20318   ac_cv_c_bigendian=no
20319 else
20320   echo "$as_me: program exited with status $ac_status" >&5
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20323
20324 ( exit $ac_status )
20325 ac_cv_c_bigendian=yes
20326 fi
20327 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20328 fi
20329 fi
20330 rm -f conftest.$ac_objext conftest.$ac_ext
20331 fi
20332 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20333 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20334 case $ac_cv_c_bigendian in
20335   yes)
20336
20337 cat >>confdefs.h <<\_ACEOF
20338 #define ENDIAN_BIG
20339 _ACEOF
20340  ;;
20341   no)
20342
20343 cat >>confdefs.h <<\_ACEOF
20344 #define ENDIAN_LITTLE
20345 _ACEOF
20346  ;;
20347   *)
20348     { { echo "$as_me:$LINENO: error: unknown endianness
20349 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20350 echo "$as_me: error: unknown endianness
20351 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20352    { (exit 1); exit 1; }; } ;;
20353 esac
20354
20355
20356 echo "$as_me:$LINENO: checking for pid_t" >&5
20357 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20358 if test "${ac_cv_type_pid_t+set}" = set; then
20359   echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361   cat >conftest.$ac_ext <<_ACEOF
20362 #line $LINENO "configure"
20363 /* confdefs.h.  */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h.  */
20368 $ac_includes_default
20369 int
20370 main ()
20371 {
20372 if ((pid_t *) 0)
20373   return 0;
20374 if (sizeof (pid_t))
20375   return 0;
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 rm -f conftest.$ac_objext
20381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20382   (eval $ac_compile) 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); } &&
20386          { ac_try='test -s conftest.$ac_objext'
20387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388   (eval $ac_try) 2>&5
20389   ac_status=$?
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); }; }; then
20392   ac_cv_type_pid_t=yes
20393 else
20394   echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20396
20397 ac_cv_type_pid_t=no
20398 fi
20399 rm -f conftest.$ac_objext conftest.$ac_ext
20400 fi
20401 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20402 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20403 if test $ac_cv_type_pid_t = yes; then
20404   :
20405 else
20406
20407 cat >>confdefs.h <<_ACEOF
20408 #define pid_t int
20409 _ACEOF
20410
20411 fi
20412
20413 echo "$as_me:$LINENO: checking for size_t" >&5
20414 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20415 if test "${ac_cv_type_size_t+set}" = set; then
20416   echo $ECHO_N "(cached) $ECHO_C" >&6
20417 else
20418   cat >conftest.$ac_ext <<_ACEOF
20419 #line $LINENO "configure"
20420 /* confdefs.h.  */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h.  */
20425 $ac_includes_default
20426 int
20427 main ()
20428 {
20429 if ((size_t *) 0)
20430   return 0;
20431 if (sizeof (size_t))
20432   return 0;
20433   ;
20434   return 0;
20435 }
20436 _ACEOF
20437 rm -f conftest.$ac_objext
20438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20439   (eval $ac_compile) 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } &&
20443          { ac_try='test -s conftest.$ac_objext'
20444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445   (eval $ac_try) 2>&5
20446   ac_status=$?
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); }; }; then
20449   ac_cv_type_size_t=yes
20450 else
20451   echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20453
20454 ac_cv_type_size_t=no
20455 fi
20456 rm -f conftest.$ac_objext conftest.$ac_ext
20457 fi
20458 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20459 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20460 if test $ac_cv_type_size_t = yes; then
20461   :
20462 else
20463
20464 cat >>confdefs.h <<_ACEOF
20465 #define size_t unsigned
20466 _ACEOF
20467
20468 fi
20469
20470 echo "$as_me:$LINENO: checking for int64_t" >&5
20471 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20472 if test "${ac_cv_type_int64_t+set}" = set; then
20473   echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475   cat >conftest.$ac_ext <<_ACEOF
20476 #line $LINENO "configure"
20477 /* confdefs.h.  */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h.  */
20482 $ac_includes_default
20483 int
20484 main ()
20485 {
20486 if ((int64_t *) 0)
20487   return 0;
20488 if (sizeof (int64_t))
20489   return 0;
20490   ;
20491   return 0;
20492 }
20493 _ACEOF
20494 rm -f conftest.$ac_objext
20495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496   (eval $ac_compile) 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); } &&
20500          { ac_try='test -s conftest.$ac_objext'
20501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502   (eval $ac_try) 2>&5
20503   ac_status=$?
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); }; }; then
20506   ac_cv_type_int64_t=yes
20507 else
20508   echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 ac_cv_type_int64_t=no
20512 fi
20513 rm -f conftest.$ac_objext conftest.$ac_ext
20514 fi
20515 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20516 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20517 if test $ac_cv_type_int64_t = yes; then
20518
20519 cat >>confdefs.h <<_ACEOF
20520 #define HAVE_INT64_T 1
20521 _ACEOF
20522
20523
20524 else
20525   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20526 echo "$as_me: error: Type int64_t required but not found" >&2;}
20527    { (exit 1); exit 1; }; }
20528 fi
20529
20530 echo "$as_me:$LINENO: checking for uint64_t" >&5
20531 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20532 if test "${ac_cv_type_uint64_t+set}" = set; then
20533   echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535   cat >conftest.$ac_ext <<_ACEOF
20536 #line $LINENO "configure"
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 $ac_includes_default
20543 int
20544 main ()
20545 {
20546 if ((uint64_t *) 0)
20547   return 0;
20548 if (sizeof (uint64_t))
20549   return 0;
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext
20555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20556   (eval $ac_compile) 2>&5
20557   ac_status=$?
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); } &&
20560          { ac_try='test -s conftest.$ac_objext'
20561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562   (eval $ac_try) 2>&5
20563   ac_status=$?
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); }; }; then
20566   ac_cv_type_uint64_t=yes
20567 else
20568   echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571 ac_cv_type_uint64_t=no
20572 fi
20573 rm -f conftest.$ac_objext conftest.$ac_ext
20574 fi
20575 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20576 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20577 if test $ac_cv_type_uint64_t = yes; then
20578
20579 cat >>confdefs.h <<_ACEOF
20580 #define HAVE_UINT64_T 1
20581 _ACEOF
20582
20583
20584 else
20585   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20586 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20587    { (exit 1); exit 1; }; }
20588 fi
20589
20590 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20591 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20592 if test "${ac_cv_header_time+set}" = set; then
20593   echo $ECHO_N "(cached) $ECHO_C" >&6
20594 else
20595   cat >conftest.$ac_ext <<_ACEOF
20596 #line $LINENO "configure"
20597 /* confdefs.h.  */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h.  */
20602 #include <sys/types.h>
20603 #include <sys/time.h>
20604 #include <time.h>
20605
20606 int
20607 main ()
20608 {
20609 if ((struct tm *) 0)
20610 return 0;
20611   ;
20612   return 0;
20613 }
20614 _ACEOF
20615 rm -f conftest.$ac_objext
20616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617   (eval $ac_compile) 2>&5
20618   ac_status=$?
20619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620   (exit $ac_status); } &&
20621          { ac_try='test -s conftest.$ac_objext'
20622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623   (eval $ac_try) 2>&5
20624   ac_status=$?
20625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626   (exit $ac_status); }; }; then
20627   ac_cv_header_time=yes
20628 else
20629   echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632 ac_cv_header_time=no
20633 fi
20634 rm -f conftest.$ac_objext conftest.$ac_ext
20635 fi
20636 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20637 echo "${ECHO_T}$ac_cv_header_time" >&6
20638 if test $ac_cv_header_time = yes; then
20639
20640 cat >>confdefs.h <<\_ACEOF
20641 #define TIME_WITH_SYS_TIME 1
20642 _ACEOF
20643
20644 fi
20645
20646 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20647 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20648 if test "${ac_cv_struct_tm+set}" = set; then
20649   echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651   cat >conftest.$ac_ext <<_ACEOF
20652 #line $LINENO "configure"
20653 /* confdefs.h.  */
20654 _ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h.  */
20658 #include <sys/types.h>
20659 #include <time.h>
20660
20661 int
20662 main ()
20663 {
20664 struct tm *tp; tp->tm_sec;
20665   ;
20666   return 0;
20667 }
20668 _ACEOF
20669 rm -f conftest.$ac_objext
20670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20671   (eval $ac_compile) 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); } &&
20675          { ac_try='test -s conftest.$ac_objext'
20676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677   (eval $ac_try) 2>&5
20678   ac_status=$?
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); }; }; then
20681   ac_cv_struct_tm=time.h
20682 else
20683   echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20685
20686 ac_cv_struct_tm=sys/time.h
20687 fi
20688 rm -f conftest.$ac_objext conftest.$ac_ext
20689 fi
20690 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20691 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20692 if test $ac_cv_struct_tm = sys/time.h; then
20693
20694 cat >>confdefs.h <<\_ACEOF
20695 #define TM_IN_SYS_TIME 1
20696 _ACEOF
20697
20698 fi
20699
20700
20701
20702
20703
20704         ac_ext=c
20705 ac_cpp='$CPP $CPPFLAGS'
20706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20709
20710         if test "$cross_compiling" = yes; then
20711   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20712 See \`config.log' for more details." >&5
20713 echo "$as_me: error: cannot run test program while cross compiling
20714 See \`config.log' for more details." >&2;}
20715    { (exit 1); exit 1; }; }
20716 else
20717   cat >conftest.$ac_ext <<_ACEOF
20718 #line $LINENO "configure"
20719 /* confdefs.h.  */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h.  */
20724 #include <stdio.h>
20725                                  #include <stdlib.h>
20726 int
20727 main ()
20728 {
20729
20730                                  volatile double A, B;
20731                                  char Buffer[100];
20732                                  A = 1;
20733                                  A /= 10.0;
20734                                  sprintf(Buffer, "%a", A);
20735                                  B = atof(Buffer);
20736                                  if (A != B)
20737                                                          return (1);
20738                                  if (A != 0x1.999999999999ap-4)
20739                                                          return (1);
20740                                  return (0);
20741   ;
20742   return 0;
20743 }
20744 _ACEOF
20745 rm -f conftest$ac_exeext
20746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20747   (eval $ac_link) 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752   (eval $ac_try) 2>&5
20753   ac_status=$?
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); }; }; then
20756   ac_c_printf_a=yes
20757 else
20758   echo "$as_me: program exited with status $ac_status" >&5
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20761
20762 ( exit $ac_status )
20763 ac_c_printf_a=no
20764 fi
20765 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20766 fi
20767         ac_ext=c
20768 ac_cpp='$CPP $CPPFLAGS'
20769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20772
20773         if test "$ac_c_printf_a" = "yes"; then
20774
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_PRINTF_A 1
20777 _ACEOF
20778
20779         fi
20780
20781
20782 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20783 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20784 if test "${ac_cv_cxx_namespaces+set}" = set; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787
20788
20789  ac_ext=cc
20790 ac_cpp='$CXXCPP $CPPFLAGS'
20791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20794
20795  cat >conftest.$ac_ext <<_ACEOF
20796 #line $LINENO "configure"
20797 /* confdefs.h.  */
20798 _ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h.  */
20802 namespace Outer { namespace Inner { int i = 0; }}
20803 int
20804 main ()
20805 {
20806 using namespace Outer::Inner; return i;
20807   ;
20808   return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest.$ac_objext
20812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20813   (eval $ac_compile) 2>&5
20814   ac_status=$?
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } &&
20817          { ac_try='test -s conftest.$ac_objext'
20818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819   (eval $ac_try) 2>&5
20820   ac_status=$?
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); }; }; then
20823   ac_cv_cxx_namespaces=yes
20824 else
20825   echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20827
20828 ac_cv_cxx_namespaces=no
20829 fi
20830 rm -f conftest.$ac_objext conftest.$ac_ext
20831  ac_ext=c
20832 ac_cpp='$CPP $CPPFLAGS'
20833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20836
20837
20838 fi
20839 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20840 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20841 if test "$ac_cv_cxx_namespaces" = yes; then
20842
20843 cat >>confdefs.h <<\_ACEOF
20844 #define HAVE_NAMESPACES
20845 _ACEOF
20846
20847 fi
20848
20849 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20850 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20851 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20852   echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854
20855
20856
20857   ac_ext=cc
20858 ac_cpp='$CXXCPP $CPPFLAGS'
20859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20862
20863   cat >conftest.$ac_ext <<_ACEOF
20864 #line $LINENO "configure"
20865 /* confdefs.h.  */
20866 _ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h.  */
20870 #include <ext/hash_map>
20871 #ifdef HAVE_NAMESPACES
20872 using namespace std;
20873 #endif
20874 int
20875 main ()
20876 {
20877 hash_map<int, int> t;
20878   ;
20879   return 0;
20880 }
20881 _ACEOF
20882 rm -f conftest.$ac_objext
20883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20884   (eval $ac_compile) 2>&5
20885   ac_status=$?
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); } &&
20888          { ac_try='test -s conftest.$ac_objext'
20889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890   (eval $ac_try) 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; }; then
20894   ac_cv_cxx_have_std_ext_hash_map=yes
20895 else
20896   echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20898
20899 ac_cv_cxx_have_std_ext_hash_map=no
20900 fi
20901 rm -f conftest.$ac_objext conftest.$ac_ext
20902   ac_ext=c
20903 ac_cpp='$CPP $CPPFLAGS'
20904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20907
20908 fi
20909 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20910 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20911  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
20912
20913 cat >>confdefs.h <<\_ACEOF
20914 #define HAVE_STD_EXT_HASH_MAP
20915 _ACEOF
20916
20917  fi
20918  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20919 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20920 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20921   echo $ECHO_N "(cached) $ECHO_C" >&6
20922 else
20923
20924
20925
20926   ac_ext=cc
20927 ac_cpp='$CXXCPP $CPPFLAGS'
20928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20931
20932   cat >conftest.$ac_ext <<_ACEOF
20933 #line $LINENO "configure"
20934 /* confdefs.h.  */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h.  */
20939 #include <ext/hash_map>
20940 #ifdef HAVE_NAMESPACES
20941 using namespace __gnu_cxx;
20942 #endif
20943 int
20944 main ()
20945 {
20946 hash_map<int,int> t;
20947   ;
20948   return 0;
20949 }
20950 _ACEOF
20951 rm -f conftest.$ac_objext
20952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20953   (eval $ac_compile) 2>&5
20954   ac_status=$?
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); } &&
20957          { ac_try='test -s conftest.$ac_objext'
20958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959   (eval $ac_try) 2>&5
20960   ac_status=$?
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); }; }; then
20963   ac_cv_cxx_have_gnu_ext_hash_map=yes
20964 else
20965   echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968 ac_cv_cxx_have_gnu_ext_hash_map=no
20969 fi
20970 rm -f conftest.$ac_objext conftest.$ac_ext
20971   ac_ext=c
20972 ac_cpp='$CPP $CPPFLAGS'
20973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20976
20977 fi
20978 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20979 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20980  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
20981
20982 cat >>confdefs.h <<\_ACEOF
20983 #define HAVE_GNU_EXT_HASH_MAP
20984 _ACEOF
20985
20986  fi
20987  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20988 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20989 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20990   echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992
20993
20994
20995   ac_ext=cc
20996 ac_cpp='$CXXCPP $CPPFLAGS'
20997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21000
21001   cat >conftest.$ac_ext <<_ACEOF
21002 #line $LINENO "configure"
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 #include <hash_map>
21009 int
21010 main ()
21011 {
21012 hash_map<int,int> t;
21013   ;
21014   return 0;
21015 }
21016 _ACEOF
21017 rm -f conftest.$ac_objext
21018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21019   (eval $ac_compile) 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } &&
21023          { ac_try='test -s conftest.$ac_objext'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; }; then
21029   ac_cv_cxx_have_global_hash_map=yes
21030 else
21031   echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21033
21034 ac_cv_cxx_have_global_hash_map=no
21035 fi
21036 rm -f conftest.$ac_objext conftest.$ac_ext
21037   ac_ext=c
21038 ac_cpp='$CPP $CPPFLAGS'
21039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21042
21043 fi
21044 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21045 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21046  if test "$ac_cv_cxx_have_global_hash_map" = yes; then
21047
21048 cat >>confdefs.h <<\_ACEOF
21049 #define HAVE_GLOBAL_HASH_MAP
21050 _ACEOF
21051
21052  fi
21053 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21054 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21055 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21056   echo $ECHO_N "(cached) $ECHO_C" >&6
21057 else
21058
21059
21060
21061   ac_ext=cc
21062 ac_cpp='$CXXCPP $CPPFLAGS'
21063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21066
21067   cat >conftest.$ac_ext <<_ACEOF
21068 #line $LINENO "configure"
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 #include <ext/hash_set>
21075 #ifdef HAVE_NAMESPACES
21076 using namespace std;
21077 #endif
21078 int
21079 main ()
21080 {
21081 hash_set<int> t;
21082   ;
21083   return 0;
21084 }
21085 _ACEOF
21086 rm -f conftest.$ac_objext
21087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088   (eval $ac_compile) 2>&5
21089   ac_status=$?
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); } &&
21092          { ac_try='test -s conftest.$ac_objext'
21093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094   (eval $ac_try) 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; }; then
21098   ac_cv_cxx_have_std_ext_hash_set=yes
21099 else
21100   echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103 ac_cv_cxx_have_std_ext_hash_set=no
21104 fi
21105 rm -f conftest.$ac_objext conftest.$ac_ext
21106   ac_ext=c
21107 ac_cpp='$CPP $CPPFLAGS'
21108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111
21112 fi
21113 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21114 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21115  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
21116
21117 cat >>confdefs.h <<\_ACEOF
21118 #define HAVE_STD_EXT_HASH_SET
21119 _ACEOF
21120
21121  fi
21122  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21123 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21124 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21125   echo $ECHO_N "(cached) $ECHO_C" >&6
21126 else
21127
21128
21129
21130   ac_ext=cc
21131 ac_cpp='$CXXCPP $CPPFLAGS'
21132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21135
21136   cat >conftest.$ac_ext <<_ACEOF
21137 #line $LINENO "configure"
21138 /* confdefs.h.  */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h.  */
21143 #include <ext/hash_set>
21144 #ifdef HAVE_NAMESPACES
21145 using namespace __gnu_cxx;
21146 #endif
21147 int
21148 main ()
21149 {
21150 hash_set<int> t;
21151   ;
21152   return 0;
21153 }
21154 _ACEOF
21155 rm -f conftest.$ac_objext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21157   (eval $ac_compile) 2>&5
21158   ac_status=$?
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); } &&
21161          { ac_try='test -s conftest.$ac_objext'
21162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163   (eval $ac_try) 2>&5
21164   ac_status=$?
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); }; }; then
21167   ac_cv_cxx_have_gnu_ext_hash_set=yes
21168 else
21169   echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172 ac_cv_cxx_have_gnu_ext_hash_set=no
21173 fi
21174 rm -f conftest.$ac_objext conftest.$ac_ext
21175   ac_ext=c
21176 ac_cpp='$CPP $CPPFLAGS'
21177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21180
21181 fi
21182 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21183 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21184  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
21185
21186 cat >>confdefs.h <<\_ACEOF
21187 #define HAVE_GNU_EXT_HASH_SET
21188 _ACEOF
21189
21190  fi
21191  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21192 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21193 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21194   echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196
21197
21198
21199   ac_ext=cc
21200 ac_cpp='$CXXCPP $CPPFLAGS'
21201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21204
21205   cat >conftest.$ac_ext <<_ACEOF
21206 #line $LINENO "configure"
21207 /* confdefs.h.  */
21208 _ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h.  */
21212 #include <hash_set>
21213 int
21214 main ()
21215 {
21216 hash_set<int> t; return 0;
21217   ;
21218   return 0;
21219 }
21220 _ACEOF
21221 rm -f conftest.$ac_objext
21222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21223   (eval $ac_compile) 2>&5
21224   ac_status=$?
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); } &&
21227          { ac_try='test -s conftest.$ac_objext'
21228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229   (eval $ac_try) 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); }; }; then
21233   ac_cv_cxx_have_global_hash_set=yes
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238 ac_cv_cxx_have_global_hash_set=no
21239 fi
21240 rm -f conftest.$ac_objext conftest.$ac_ext
21241   ac_ext=c
21242 ac_cpp='$CPP $CPPFLAGS'
21243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21246
21247 fi
21248 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21249 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21250  if test "$ac_cv_cxx_have_global_hash_set" = yes; then
21251
21252 cat >>confdefs.h <<\_ACEOF
21253 #define HAVE_GLOBAL_HASH_SET
21254 _ACEOF
21255
21256  fi
21257 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21258 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21259 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21260   echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262
21263
21264
21265   ac_ext=cc
21266 ac_cpp='$CXXCPP $CPPFLAGS'
21267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21270
21271   cat >conftest.$ac_ext <<_ACEOF
21272 #line $LINENO "configure"
21273 /* confdefs.h.  */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h.  */
21278 #include <ext/slist>
21279 #ifdef HAVE_NAMESPACES
21280 using namespace std;
21281 #endif
21282 int
21283 main ()
21284 {
21285 slist<int> s; return 0;
21286   ;
21287   return 0;
21288 }
21289 _ACEOF
21290 rm -f conftest.$ac_objext
21291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21292   (eval $ac_compile) 2>&5
21293   ac_status=$?
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } &&
21296          { ac_try='test -s conftest.$ac_objext'
21297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298   (eval $ac_try) 2>&5
21299   ac_status=$?
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); }; }; then
21302   ac_cv_cxx_have_ext_slist=std
21303 else
21304   echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307 ac_cv_cxx_have_ext_slist=no
21308 fi
21309 rm -f conftest.$ac_objext conftest.$ac_ext
21310   cat >conftest.$ac_ext <<_ACEOF
21311 #line $LINENO "configure"
21312 /* confdefs.h.  */
21313 _ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h.  */
21317 #include <ext/slist>
21318 #ifdef HAVE_NAMESPACES
21319 using namespace __gnu_cxx;
21320 #endif
21321 int
21322 main ()
21323 {
21324 slist<int> s; return 0;
21325   ;
21326   return 0;
21327 }
21328 _ACEOF
21329 rm -f conftest.$ac_objext
21330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21331   (eval $ac_compile) 2>&5
21332   ac_status=$?
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); } &&
21335          { ac_try='test -s conftest.$ac_objext'
21336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337   (eval $ac_try) 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); }; }; then
21341   ac_cv_cxx_have_ext_slist=gnu
21342 else
21343   echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21345
21346 ac_cv_cxx_have_ext_slist=no
21347 fi
21348 rm -f conftest.$ac_objext conftest.$ac_ext
21349
21350   ac_ext=c
21351 ac_cpp='$CPP $CPPFLAGS'
21352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21355
21356
21357 fi
21358 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21359 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21360 if test "$ac_cv_cxx_have_ext_slist" = std; then
21361
21362 cat >>confdefs.h <<\_ACEOF
21363 #define HAVE_EXT_SLIST std
21364 _ACEOF
21365
21366 fi
21367 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21368
21369 cat >>confdefs.h <<\_ACEOF
21370 #define HAVE_EXT_SLIST gnu
21371 _ACEOF
21372
21373 fi
21374
21375 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21376 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21377 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21378   echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380
21381
21382
21383   ac_ext=cc
21384 ac_cpp='$CXXCPP $CPPFLAGS'
21385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21388
21389   cat >conftest.$ac_ext <<_ACEOF
21390 #line $LINENO "configure"
21391 /* confdefs.h.  */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h.  */
21396 #include <iterator>
21397 #ifdef HAVE_NAMESPACES
21398 using namespace std;
21399 #endif
21400 int
21401 main ()
21402 {
21403 iterator<int,int,int> t; return 0;
21404   ;
21405   return 0;
21406 }
21407 _ACEOF
21408 rm -f conftest.$ac_objext
21409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21410   (eval $ac_compile) 2>&5
21411   ac_status=$?
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); } &&
21414          { ac_try='test -s conftest.$ac_objext'
21415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416   (eval $ac_try) 2>&5
21417   ac_status=$?
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); }; }; then
21420   ac_cv_cxx_have_std_iterator=yes
21421 else
21422   echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425 ac_cv_cxx_have_std_iterator=no
21426 fi
21427 rm -f conftest.$ac_objext conftest.$ac_ext
21428   ac_ext=c
21429 ac_cpp='$CPP $CPPFLAGS'
21430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21433
21434
21435 fi
21436 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21437 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21438 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21439
21440 cat >>confdefs.h <<\_ACEOF
21441 #define HAVE_STD_ITERATOR
21442 _ACEOF
21443
21444 fi
21445
21446 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21447 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21448 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21449   echo $ECHO_N "(cached) $ECHO_C" >&6
21450 else
21451
21452
21453
21454   ac_ext=cc
21455 ac_cpp='$CXXCPP $CPPFLAGS'
21456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21459
21460   cat >conftest.$ac_ext <<_ACEOF
21461 #line $LINENO "configure"
21462 /* confdefs.h.  */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h.  */
21467 #include <iterator>
21468 #ifdef HAVE_NAMESPACES
21469 using namespace std;
21470 #endif
21471 int
21472 main ()
21473 {
21474 bidirectional_iterator<int,int> t; return 0;
21475   ;
21476   return 0;
21477 }
21478 _ACEOF
21479 rm -f conftest.$ac_objext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21481   (eval $ac_compile) 2>&5
21482   ac_status=$?
21483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484   (exit $ac_status); } &&
21485          { ac_try='test -s conftest.$ac_objext'
21486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487   (eval $ac_try) 2>&5
21488   ac_status=$?
21489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); }; }; then
21491   ac_cv_cxx_have_bi_iterator=yes
21492 else
21493   echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21495
21496 ac_cv_cxx_have_bi_iterator=no
21497 fi
21498 rm -f conftest.$ac_objext conftest.$ac_ext
21499   ac_ext=c
21500 ac_cpp='$CPP $CPPFLAGS'
21501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21504
21505
21506 fi
21507 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21508 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21509 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21510
21511 cat >>confdefs.h <<\_ACEOF
21512 #define HAVE_BI_ITERATOR
21513 _ACEOF
21514
21515 fi
21516
21517 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21518 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21519 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21520   echo $ECHO_N "(cached) $ECHO_C" >&6
21521 else
21522
21523
21524
21525   ac_ext=cc
21526 ac_cpp='$CXXCPP $CPPFLAGS'
21527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21530
21531   cat >conftest.$ac_ext <<_ACEOF
21532 #line $LINENO "configure"
21533 /* confdefs.h.  */
21534 _ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h.  */
21538 #include <iterator>
21539 #ifdef HAVE_NAMESPACES
21540 using namespace std;
21541 #endif
21542 int
21543 main ()
21544 {
21545 forward_iterator<int,int> t; return 0;
21546   ;
21547   return 0;
21548 }
21549 _ACEOF
21550 rm -f conftest.$ac_objext
21551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21552   (eval $ac_compile) 2>&5
21553   ac_status=$?
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } &&
21556          { ac_try='test -s conftest.$ac_objext'
21557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558   (eval $ac_try) 2>&5
21559   ac_status=$?
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); }; }; then
21562   ac_cv_cxx_have_fwd_iterator=yes
21563 else
21564   echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21566
21567 ac_cv_cxx_have_fwd_iterator=no
21568 fi
21569 rm -f conftest.$ac_objext conftest.$ac_ext
21570   ac_ext=c
21571 ac_cpp='$CPP $CPPFLAGS'
21572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21575
21576
21577 fi
21578 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21579 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21580 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21581
21582 cat >>confdefs.h <<\_ACEOF
21583 #define HAVE_FWD_ITERATOR
21584 _ACEOF
21585
21586 fi
21587
21588
21589 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21590 # for constant arguments.  Useless!
21591 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21592 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21593 if test "${ac_cv_working_alloca_h+set}" = set; then
21594   echo $ECHO_N "(cached) $ECHO_C" >&6
21595 else
21596   cat >conftest.$ac_ext <<_ACEOF
21597 #line $LINENO "configure"
21598 /* confdefs.h.  */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h.  */
21603 #include <alloca.h>
21604 int
21605 main ()
21606 {
21607 char *p = (char *) alloca (2 * sizeof (int));
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   ac_cv_working_alloca_h=yes
21625 else
21626   echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629 ac_cv_working_alloca_h=no
21630 fi
21631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21632 fi
21633 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21634 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21635 if test $ac_cv_working_alloca_h = yes; then
21636
21637 cat >>confdefs.h <<\_ACEOF
21638 #define HAVE_ALLOCA_H 1
21639 _ACEOF
21640
21641 fi
21642
21643 echo "$as_me:$LINENO: checking for alloca" >&5
21644 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21645 if test "${ac_cv_func_alloca_works+set}" = set; then
21646   echo $ECHO_N "(cached) $ECHO_C" >&6
21647 else
21648   cat >conftest.$ac_ext <<_ACEOF
21649 #line $LINENO "configure"
21650 /* confdefs.h.  */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h.  */
21655 #ifdef __GNUC__
21656 # define alloca __builtin_alloca
21657 #else
21658 # ifdef _MSC_VER
21659 #  include <malloc.h>
21660 #  define alloca _alloca
21661 # else
21662 #  if HAVE_ALLOCA_H
21663 #   include <alloca.h>
21664 #  else
21665 #   ifdef _AIX
21666  #pragma alloca
21667 #   else
21668 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21669 char *alloca ();
21670 #    endif
21671 #   endif
21672 #  endif
21673 # endif
21674 #endif
21675
21676 int
21677 main ()
21678 {
21679 char *p = (char *) alloca (1);
21680   ;
21681   return 0;
21682 }
21683 _ACEOF
21684 rm -f conftest.$ac_objext conftest$ac_exeext
21685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21686   (eval $ac_link) 2>&5
21687   ac_status=$?
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); } &&
21690          { ac_try='test -s conftest$ac_exeext'
21691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692   (eval $ac_try) 2>&5
21693   ac_status=$?
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); }; }; then
21696   ac_cv_func_alloca_works=yes
21697 else
21698   echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21700
21701 ac_cv_func_alloca_works=no
21702 fi
21703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21704 fi
21705 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21706 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21707
21708 if test $ac_cv_func_alloca_works = yes; then
21709
21710 cat >>confdefs.h <<\_ACEOF
21711 #define HAVE_ALLOCA 1
21712 _ACEOF
21713
21714 else
21715   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21716 # that cause trouble.  Some versions do not even contain alloca or
21717 # contain a buggy version.  If you still want to use their alloca,
21718 # use ar to extract alloca.o from them instead of compiling alloca.c.
21719
21720 ALLOCA=alloca.$ac_objext
21721
21722 cat >>confdefs.h <<\_ACEOF
21723 #define C_ALLOCA 1
21724 _ACEOF
21725
21726
21727 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21728 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21729 if test "${ac_cv_os_cray+set}" = set; then
21730   echo $ECHO_N "(cached) $ECHO_C" >&6
21731 else
21732   cat >conftest.$ac_ext <<_ACEOF
21733 #line $LINENO "configure"
21734 /* confdefs.h.  */
21735 _ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h.  */
21739 #if defined(CRAY) && ! defined(CRAY2)
21740 webecray
21741 #else
21742 wenotbecray
21743 #endif
21744
21745 _ACEOF
21746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21747   $EGREP "webecray" >/dev/null 2>&1; then
21748   ac_cv_os_cray=yes
21749 else
21750   ac_cv_os_cray=no
21751 fi
21752 rm -f conftest*
21753
21754 fi
21755 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21756 echo "${ECHO_T}$ac_cv_os_cray" >&6
21757 if test $ac_cv_os_cray = yes; then
21758   for ac_func in _getb67 GETB67 getb67; do
21759     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21760 echo "$as_me:$LINENO: checking for $ac_func" >&5
21761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21762 if eval "test \"\${$as_ac_var+set}\" = set"; then
21763   echo $ECHO_N "(cached) $ECHO_C" >&6
21764 else
21765   cat >conftest.$ac_ext <<_ACEOF
21766 #line $LINENO "configure"
21767 /* confdefs.h.  */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h.  */
21772 /* System header to define __stub macros and hopefully few prototypes,
21773     which can conflict with char $ac_func (); below.
21774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21775     <limits.h> exists even on freestanding compilers.  */
21776 #ifdef __STDC__
21777 # include <limits.h>
21778 #else
21779 # include <assert.h>
21780 #endif
21781 /* Override any gcc2 internal prototype to avoid an error.  */
21782 #ifdef __cplusplus
21783 extern "C"
21784 {
21785 #endif
21786 /* We use char because int might match the return type of a gcc2
21787    builtin and then its argument prototype would still apply.  */
21788 char $ac_func ();
21789 /* The GNU C library defines this for functions which it implements
21790     to always fail with ENOSYS.  Some functions are actually named
21791     something starting with __ and the normal name is an alias.  */
21792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21793 choke me
21794 #else
21795 char (*f) () = $ac_func;
21796 #endif
21797 #ifdef __cplusplus
21798 }
21799 #endif
21800
21801 int
21802 main ()
21803 {
21804 return f != $ac_func;
21805   ;
21806   return 0;
21807 }
21808 _ACEOF
21809 rm -f conftest.$ac_objext conftest$ac_exeext
21810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21811   (eval $ac_link) 2>&5
21812   ac_status=$?
21813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814   (exit $ac_status); } &&
21815          { ac_try='test -s conftest$ac_exeext'
21816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817   (eval $ac_try) 2>&5
21818   ac_status=$?
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); }; }; then
21821   eval "$as_ac_var=yes"
21822 else
21823   echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21825
21826 eval "$as_ac_var=no"
21827 fi
21828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21829 fi
21830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21832 if test `eval echo '${'$as_ac_var'}'` = yes; then
21833
21834 cat >>confdefs.h <<_ACEOF
21835 #define CRAY_STACKSEG_END $ac_func
21836 _ACEOF
21837
21838     break
21839 fi
21840
21841   done
21842 fi
21843
21844 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21845 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21846 if test "${ac_cv_c_stack_direction+set}" = set; then
21847   echo $ECHO_N "(cached) $ECHO_C" >&6
21848 else
21849   if test "$cross_compiling" = yes; then
21850   ac_cv_c_stack_direction=0
21851 else
21852   cat >conftest.$ac_ext <<_ACEOF
21853 #line $LINENO "configure"
21854 /* confdefs.h.  */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h.  */
21859 int
21860 find_stack_direction ()
21861 {
21862   static char *addr = 0;
21863   auto char dummy;
21864   if (addr == 0)
21865     {
21866       addr = &dummy;
21867       return find_stack_direction ();
21868     }
21869   else
21870     return (&dummy > addr) ? 1 : -1;
21871 }
21872
21873 int
21874 main ()
21875 {
21876   exit (find_stack_direction () < 0);
21877 }
21878 _ACEOF
21879 rm -f conftest$ac_exeext
21880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21881   (eval $ac_link) 2>&5
21882   ac_status=$?
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886   (eval $ac_try) 2>&5
21887   ac_status=$?
21888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889   (exit $ac_status); }; }; then
21890   ac_cv_c_stack_direction=1
21891 else
21892   echo "$as_me: program exited with status $ac_status" >&5
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21895
21896 ( exit $ac_status )
21897 ac_cv_c_stack_direction=-1
21898 fi
21899 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21900 fi
21901 fi
21902 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21903 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21904
21905 cat >>confdefs.h <<_ACEOF
21906 #define STACK_DIRECTION $ac_cv_c_stack_direction
21907 _ACEOF
21908
21909
21910 fi
21911
21912 if test $ac_cv_c_compiler_gnu = yes; then
21913     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21914 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21915 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21916   echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21918     ac_pattern="Autoconf.*'x'"
21919   cat >conftest.$ac_ext <<_ACEOF
21920 #line $LINENO "configure"
21921 /* confdefs.h.  */
21922 _ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h.  */
21926 #include <sgtty.h>
21927 Autoconf TIOCGETP
21928 _ACEOF
21929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21930   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21931   ac_cv_prog_gcc_traditional=yes
21932 else
21933   ac_cv_prog_gcc_traditional=no
21934 fi
21935 rm -f conftest*
21936
21937
21938   if test $ac_cv_prog_gcc_traditional = no; then
21939     cat >conftest.$ac_ext <<_ACEOF
21940 #line $LINENO "configure"
21941 /* confdefs.h.  */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h.  */
21946 #include <termio.h>
21947 Autoconf TCGETA
21948 _ACEOF
21949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21950   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21951   ac_cv_prog_gcc_traditional=yes
21952 fi
21953 rm -f conftest*
21954
21955   fi
21956 fi
21957 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21958 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21959   if test $ac_cv_prog_gcc_traditional = yes; then
21960     CC="$CC -traditional"
21961   fi
21962 fi
21963
21964 echo "$as_me:$LINENO: checking for working memcmp" >&5
21965 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21966 if test "${ac_cv_func_memcmp_working+set}" = set; then
21967   echo $ECHO_N "(cached) $ECHO_C" >&6
21968 else
21969   if test "$cross_compiling" = yes; then
21970   ac_cv_func_memcmp_working=no
21971 else
21972   cat >conftest.$ac_ext <<_ACEOF
21973 #line $LINENO "configure"
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979
21980 int
21981 main ()
21982 {
21983
21984   /* Some versions of memcmp are not 8-bit clean.  */
21985   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21986   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21987     exit (1);
21988
21989   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21990      or more and with at least one buffer not starting on a 4-byte boundary.
21991      William Lewis provided this test program.   */
21992   {
21993     char foo[21];
21994     char bar[21];
21995     int i;
21996     for (i = 0; i < 4; i++)
21997       {
21998         char *a = foo + i;
21999         char *b = bar + i;
22000         strcpy (a, "--------01111111");
22001         strcpy (b, "--------10000000");
22002         if (memcmp (a, b, 16) >= 0)
22003           exit (1);
22004       }
22005     exit (0);
22006   }
22007
22008   ;
22009   return 0;
22010 }
22011 _ACEOF
22012 rm -f conftest$ac_exeext
22013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22014   (eval $ac_link) 2>&5
22015   ac_status=$?
22016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019   (eval $ac_try) 2>&5
22020   ac_status=$?
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); }; }; then
22023   ac_cv_func_memcmp_working=yes
22024 else
22025   echo "$as_me: program exited with status $ac_status" >&5
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029 ( exit $ac_status )
22030 ac_cv_func_memcmp_working=no
22031 fi
22032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22033 fi
22034 fi
22035 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22036 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22037 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22038
22039
22040
22041 for ac_header in stdlib.h unistd.h
22042 do
22043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22045   echo "$as_me:$LINENO: checking for $ac_header" >&5
22046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22048   echo $ECHO_N "(cached) $ECHO_C" >&6
22049 fi
22050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22052 else
22053   # Is the header compilable?
22054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22056 cat >conftest.$ac_ext <<_ACEOF
22057 #line $LINENO "configure"
22058 /* confdefs.h.  */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h.  */
22063 $ac_includes_default
22064 #include <$ac_header>
22065 _ACEOF
22066 rm -f conftest.$ac_objext
22067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22068   (eval $ac_compile) 2>&5
22069   ac_status=$?
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); } &&
22072          { ac_try='test -s conftest.$ac_objext'
22073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074   (eval $ac_try) 2>&5
22075   ac_status=$?
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); }; }; then
22078   ac_header_compiler=yes
22079 else
22080   echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22082
22083 ac_header_compiler=no
22084 fi
22085 rm -f conftest.$ac_objext conftest.$ac_ext
22086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22087 echo "${ECHO_T}$ac_header_compiler" >&6
22088
22089 # Is the header present?
22090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22092 cat >conftest.$ac_ext <<_ACEOF
22093 #line $LINENO "configure"
22094 /* confdefs.h.  */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h.  */
22099 #include <$ac_header>
22100 _ACEOF
22101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } >/dev/null; then
22109   if test -s conftest.err; then
22110     ac_cpp_err=$ac_c_preproc_warn_flag
22111   else
22112     ac_cpp_err=
22113   fi
22114 else
22115   ac_cpp_err=yes
22116 fi
22117 if test -z "$ac_cpp_err"; then
22118   ac_header_preproc=yes
22119 else
22120   echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123   ac_header_preproc=no
22124 fi
22125 rm -f conftest.err conftest.$ac_ext
22126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22127 echo "${ECHO_T}$ac_header_preproc" >&6
22128
22129 # So?  What about this header?
22130 case $ac_header_compiler:$ac_header_preproc in
22131   yes:no )
22132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22136     (
22137       cat <<\_ASBOX
22138 ## ------------------------------------ ##
22139 ## Report this to bug-autoconf@gnu.org. ##
22140 ## ------------------------------------ ##
22141 _ASBOX
22142     ) |
22143       sed "s/^/$as_me: WARNING:     /" >&2
22144     ;;
22145   no:yes )
22146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22148     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22152     (
22153       cat <<\_ASBOX
22154 ## ------------------------------------ ##
22155 ## Report this to bug-autoconf@gnu.org. ##
22156 ## ------------------------------------ ##
22157 _ASBOX
22158     ) |
22159       sed "s/^/$as_me: WARNING:     /" >&2
22160     ;;
22161 esac
22162 echo "$as_me:$LINENO: checking for $ac_header" >&5
22163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22165   echo $ECHO_N "(cached) $ECHO_C" >&6
22166 else
22167   eval "$as_ac_Header=$ac_header_preproc"
22168 fi
22169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22171
22172 fi
22173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22174   cat >>confdefs.h <<_ACEOF
22175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22176 _ACEOF
22177
22178 fi
22179
22180 done
22181
22182
22183 for ac_func in getpagesize
22184 do
22185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22186 echo "$as_me:$LINENO: checking for $ac_func" >&5
22187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22188 if eval "test \"\${$as_ac_var+set}\" = set"; then
22189   echo $ECHO_N "(cached) $ECHO_C" >&6
22190 else
22191   cat >conftest.$ac_ext <<_ACEOF
22192 #line $LINENO "configure"
22193 /* confdefs.h.  */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h.  */
22198 /* System header to define __stub macros and hopefully few prototypes,
22199     which can conflict with char $ac_func (); below.
22200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22201     <limits.h> exists even on freestanding compilers.  */
22202 #ifdef __STDC__
22203 # include <limits.h>
22204 #else
22205 # include <assert.h>
22206 #endif
22207 /* Override any gcc2 internal prototype to avoid an error.  */
22208 #ifdef __cplusplus
22209 extern "C"
22210 {
22211 #endif
22212 /* We use char because int might match the return type of a gcc2
22213    builtin and then its argument prototype would still apply.  */
22214 char $ac_func ();
22215 /* The GNU C library defines this for functions which it implements
22216     to always fail with ENOSYS.  Some functions are actually named
22217     something starting with __ and the normal name is an alias.  */
22218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22219 choke me
22220 #else
22221 char (*f) () = $ac_func;
22222 #endif
22223 #ifdef __cplusplus
22224 }
22225 #endif
22226
22227 int
22228 main ()
22229 {
22230 return f != $ac_func;
22231   ;
22232   return 0;
22233 }
22234 _ACEOF
22235 rm -f conftest.$ac_objext conftest$ac_exeext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22237   (eval $ac_link) 2>&5
22238   ac_status=$?
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); } &&
22241          { ac_try='test -s conftest$ac_exeext'
22242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243   (eval $ac_try) 2>&5
22244   ac_status=$?
22245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246   (exit $ac_status); }; }; then
22247   eval "$as_ac_var=yes"
22248 else
22249   echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22251
22252 eval "$as_ac_var=no"
22253 fi
22254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22255 fi
22256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22258 if test `eval echo '${'$as_ac_var'}'` = yes; then
22259   cat >>confdefs.h <<_ACEOF
22260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22261 _ACEOF
22262
22263 fi
22264 done
22265
22266 echo "$as_me:$LINENO: checking for working mmap" >&5
22267 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22268 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22269   echo $ECHO_N "(cached) $ECHO_C" >&6
22270 else
22271   if test "$cross_compiling" = yes; then
22272   ac_cv_func_mmap_fixed_mapped=no
22273 else
22274   cat >conftest.$ac_ext <<_ACEOF
22275 #line $LINENO "configure"
22276 /* confdefs.h.  */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h.  */
22281 $ac_includes_default
22282 /* malloc might have been renamed as rpl_malloc. */
22283 #undef malloc
22284
22285 /* Thanks to Mike Haertel and Jim Avera for this test.
22286    Here is a matrix of mmap possibilities:
22287         mmap private not fixed
22288         mmap private fixed at somewhere currently unmapped
22289         mmap private fixed at somewhere already mapped
22290         mmap shared not fixed
22291         mmap shared fixed at somewhere currently unmapped
22292         mmap shared fixed at somewhere already mapped
22293    For private mappings, we should verify that changes cannot be read()
22294    back from the file, nor mmap's back from the file at a different
22295    address.  (There have been systems where private was not correctly
22296    implemented like the infamous i386 svr4.0, and systems where the
22297    VM page cache was not coherent with the file system buffer cache
22298    like early versions of FreeBSD and possibly contemporary NetBSD.)
22299    For shared mappings, we should conversely verify that changes get
22300    propagated back to all the places they're supposed to be.
22301
22302    Grep wants private fixed already mapped.
22303    The main things grep needs to know about mmap are:
22304    * does it exist and is it safe to write into the mmap'd area
22305    * how to use it (BSD variants)  */
22306
22307 #include <fcntl.h>
22308 #include <sys/mman.h>
22309
22310 #if !STDC_HEADERS && !HAVE_STDLIB_H
22311 char *malloc ();
22312 #endif
22313
22314 /* This mess was copied from the GNU getpagesize.h.  */
22315 #if !HAVE_GETPAGESIZE
22316 /* Assume that all systems that can run configure have sys/param.h.  */
22317 # if !HAVE_SYS_PARAM_H
22318 #  define HAVE_SYS_PARAM_H 1
22319 # endif
22320
22321 # ifdef _SC_PAGESIZE
22322 #  define getpagesize() sysconf(_SC_PAGESIZE)
22323 # else /* no _SC_PAGESIZE */
22324 #  if HAVE_SYS_PARAM_H
22325 #   include <sys/param.h>
22326 #   ifdef EXEC_PAGESIZE
22327 #    define getpagesize() EXEC_PAGESIZE
22328 #   else /* no EXEC_PAGESIZE */
22329 #    ifdef NBPG
22330 #     define getpagesize() NBPG * CLSIZE
22331 #     ifndef CLSIZE
22332 #      define CLSIZE 1
22333 #     endif /* no CLSIZE */
22334 #    else /* no NBPG */
22335 #     ifdef NBPC
22336 #      define getpagesize() NBPC
22337 #     else /* no NBPC */
22338 #      ifdef PAGESIZE
22339 #       define getpagesize() PAGESIZE
22340 #      endif /* PAGESIZE */
22341 #     endif /* no NBPC */
22342 #    endif /* no NBPG */
22343 #   endif /* no EXEC_PAGESIZE */
22344 #  else /* no HAVE_SYS_PARAM_H */
22345 #   define getpagesize() 8192   /* punt totally */
22346 #  endif /* no HAVE_SYS_PARAM_H */
22347 # endif /* no _SC_PAGESIZE */
22348
22349 #endif /* no HAVE_GETPAGESIZE */
22350
22351 int
22352 main ()
22353 {
22354   char *data, *data2, *data3;
22355   int i, pagesize;
22356   int fd;
22357
22358   pagesize = getpagesize ();
22359
22360   /* First, make a file with some known garbage in it. */
22361   data = (char *) malloc (pagesize);
22362   if (!data)
22363     exit (1);
22364   for (i = 0; i < pagesize; ++i)
22365     *(data + i) = rand ();
22366   umask (0);
22367   fd = creat ("conftest.mmap", 0600);
22368   if (fd < 0)
22369     exit (1);
22370   if (write (fd, data, pagesize) != pagesize)
22371     exit (1);
22372   close (fd);
22373
22374   /* Next, try to mmap the file at a fixed address which already has
22375      something else allocated at it.  If we can, also make sure that
22376      we see the same garbage.  */
22377   fd = open ("conftest.mmap", O_RDWR);
22378   if (fd < 0)
22379     exit (1);
22380   data2 = (char *) malloc (2 * pagesize);
22381   if (!data2)
22382     exit (1);
22383   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22384   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22385                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22386     exit (1);
22387   for (i = 0; i < pagesize; ++i)
22388     if (*(data + i) != *(data2 + i))
22389       exit (1);
22390
22391   /* Finally, make sure that changes to the mapped area do not
22392      percolate back to the file as seen by read().  (This is a bug on
22393      some variants of i386 svr4.0.)  */
22394   for (i = 0; i < pagesize; ++i)
22395     *(data2 + i) = *(data2 + i) + 1;
22396   data3 = (char *) malloc (pagesize);
22397   if (!data3)
22398     exit (1);
22399   if (read (fd, data3, pagesize) != pagesize)
22400     exit (1);
22401   for (i = 0; i < pagesize; ++i)
22402     if (*(data + i) != *(data3 + i))
22403       exit (1);
22404   close (fd);
22405   exit (0);
22406 }
22407 _ACEOF
22408 rm -f conftest$ac_exeext
22409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22410   (eval $ac_link) 2>&5
22411   ac_status=$?
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415   (eval $ac_try) 2>&5
22416   ac_status=$?
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); }; }; then
22419   ac_cv_func_mmap_fixed_mapped=yes
22420 else
22421   echo "$as_me: program exited with status $ac_status" >&5
22422 echo "$as_me: failed program was:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22424
22425 ( exit $ac_status )
22426 ac_cv_func_mmap_fixed_mapped=no
22427 fi
22428 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22429 fi
22430 fi
22431 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22432 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22433 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22434
22435 cat >>confdefs.h <<\_ACEOF
22436 #define HAVE_MMAP 1
22437 _ACEOF
22438
22439 fi
22440 rm -f conftest.mmap
22441
22442 echo "$as_me:$LINENO: checking for mmap of files" >&5
22443 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22444 if test "${ac_cv_func_mmap_file+set}" = set; then
22445   echo $ECHO_N "(cached) $ECHO_C" >&6
22446 else
22447
22448
22449   ac_ext=c
22450 ac_cpp='$CPP $CPPFLAGS'
22451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22454
22455   if test "$cross_compiling" = yes; then
22456   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22457 See \`config.log' for more details." >&5
22458 echo "$as_me: error: cannot run test program while cross compiling
22459 See \`config.log' for more details." >&2;}
22460    { (exit 1); exit 1; }; }
22461 else
22462   cat >conftest.$ac_ext <<_ACEOF
22463 #line $LINENO "configure"
22464 /* confdefs.h.  */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h.  */
22469
22470 #ifdef HAVE_SYS_TYPES_H
22471 #include <sys/types.h>
22472 #endif
22473
22474 #ifdef HAVE_SYS_MMAN_H
22475 #include <sys/mman.h>
22476 #endif
22477
22478 #ifdef HAVE_FCNTL_H
22479 #include <fcntl.h>
22480 #endif
22481
22482   int fd;
22483   int main () {
22484   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22485 _ACEOF
22486 rm -f conftest$ac_exeext
22487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22488   (eval $ac_link) 2>&5
22489   ac_status=$?
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; }; then
22497   ac_cv_func_mmap_file=yes
22498 else
22499   echo "$as_me: program exited with status $ac_status" >&5
22500 echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503 ( exit $ac_status )
22504 ac_cv_func_mmap_file=no
22505 fi
22506 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22507 fi
22508   ac_ext=c
22509 ac_cpp='$CPP $CPPFLAGS'
22510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22513
22514
22515 fi
22516 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22517 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22518 if test "$ac_cv_func_mmap_file" = yes; then
22519
22520 cat >>confdefs.h <<\_ACEOF
22521 #define HAVE_MMAP_FILE
22522 _ACEOF
22523
22524    MMAP_FILE=yes
22525
22526 fi
22527
22528 if test ${ac_cv_func_mmap_file} = "no"
22529 then
22530         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22531 echo "$as_me: error: mmap() of files required but not found" >&2;}
22532    { (exit 1); exit 1; }; }
22533 fi
22534 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22535 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22536 if test "${ac_cv_header_mmap_anon+set}" = set; then
22537   echo $ECHO_N "(cached) $ECHO_C" >&6
22538 else
22539
22540
22541   ac_ext=c
22542 ac_cpp='$CPP $CPPFLAGS'
22543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22546
22547   cat >conftest.$ac_ext <<_ACEOF
22548 #line $LINENO "configure"
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 #include <sys/mman.h>
22555   #include <unistd.h>
22556   #include <fcntl.h>
22557 int
22558 main ()
22559 {
22560 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22561   ;
22562   return 0;
22563 }
22564 _ACEOF
22565 rm -f conftest.$ac_objext
22566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22567   (eval $ac_compile) 2>&5
22568   ac_status=$?
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } &&
22571          { ac_try='test -s conftest.$ac_objext'
22572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573   (eval $ac_try) 2>&5
22574   ac_status=$?
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); }; }; then
22577   ac_cv_header_mmap_anon=yes
22578 else
22579   echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22581
22582 ac_cv_header_mmap_anon=no
22583 fi
22584 rm -f conftest.$ac_objext conftest.$ac_ext
22585   ac_ext=c
22586 ac_cpp='$CPP $CPPFLAGS'
22587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22590
22591
22592 fi
22593 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22594 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22595 if test "$ac_cv_header_mmap_anon" = yes; then
22596
22597 cat >>confdefs.h <<\_ACEOF
22598 #define HAVE_MMAP_ANONYMOUS
22599 _ACEOF
22600
22601 fi
22602
22603 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22604 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22605 if test "${ac_cv_type_signal+set}" = set; then
22606   echo $ECHO_N "(cached) $ECHO_C" >&6
22607 else
22608   cat >conftest.$ac_ext <<_ACEOF
22609 #line $LINENO "configure"
22610 /* confdefs.h.  */
22611 _ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h.  */
22615 #include <sys/types.h>
22616 #include <signal.h>
22617 #ifdef signal
22618 # undef signal
22619 #endif
22620 #ifdef __cplusplus
22621 extern "C" void (*signal (int, void (*)(int)))(int);
22622 #else
22623 void (*signal ()) ();
22624 #endif
22625
22626 int
22627 main ()
22628 {
22629 int i;
22630   ;
22631   return 0;
22632 }
22633 _ACEOF
22634 rm -f conftest.$ac_objext
22635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22636   (eval $ac_compile) 2>&5
22637   ac_status=$?
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); } &&
22640          { ac_try='test -s conftest.$ac_objext'
22641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642   (eval $ac_try) 2>&5
22643   ac_status=$?
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); }; }; then
22646   ac_cv_type_signal=void
22647 else
22648   echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651 ac_cv_type_signal=int
22652 fi
22653 rm -f conftest.$ac_objext conftest.$ac_ext
22654 fi
22655 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22656 echo "${ECHO_T}$ac_cv_type_signal" >&6
22657
22658 cat >>confdefs.h <<_ACEOF
22659 #define RETSIGTYPE $ac_cv_type_signal
22660 _ACEOF
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22675 do
22676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22677 echo "$as_me:$LINENO: checking for $ac_func" >&5
22678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22679 if eval "test \"\${$as_ac_var+set}\" = set"; then
22680   echo $ECHO_N "(cached) $ECHO_C" >&6
22681 else
22682   cat >conftest.$ac_ext <<_ACEOF
22683 #line $LINENO "configure"
22684 /* confdefs.h.  */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h.  */
22689 /* System header to define __stub macros and hopefully few prototypes,
22690     which can conflict with char $ac_func (); below.
22691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22692     <limits.h> exists even on freestanding compilers.  */
22693 #ifdef __STDC__
22694 # include <limits.h>
22695 #else
22696 # include <assert.h>
22697 #endif
22698 /* Override any gcc2 internal prototype to avoid an error.  */
22699 #ifdef __cplusplus
22700 extern "C"
22701 {
22702 #endif
22703 /* We use char because int might match the return type of a gcc2
22704    builtin and then its argument prototype would still apply.  */
22705 char $ac_func ();
22706 /* The GNU C library defines this for functions which it implements
22707     to always fail with ENOSYS.  Some functions are actually named
22708     something starting with __ and the normal name is an alias.  */
22709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22710 choke me
22711 #else
22712 char (*f) () = $ac_func;
22713 #endif
22714 #ifdef __cplusplus
22715 }
22716 #endif
22717
22718 int
22719 main ()
22720 {
22721 return f != $ac_func;
22722   ;
22723   return 0;
22724 }
22725 _ACEOF
22726 rm -f conftest.$ac_objext conftest$ac_exeext
22727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22728   (eval $ac_link) 2>&5
22729   ac_status=$?
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); } &&
22732          { ac_try='test -s conftest$ac_exeext'
22733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734   (eval $ac_try) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); }; }; then
22738   eval "$as_ac_var=yes"
22739 else
22740   echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22742
22743 eval "$as_ac_var=no"
22744 fi
22745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22746 fi
22747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22749 if test `eval echo '${'$as_ac_var'}'` = yes; then
22750   cat >>confdefs.h <<_ACEOF
22751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22752 _ACEOF
22753
22754 fi
22755 done
22756
22757
22758
22759 echo "$as_me:$LINENO: checking for mmap" >&5
22760 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22761 if test "${ac_cv_func_mmap+set}" = set; then
22762   echo $ECHO_N "(cached) $ECHO_C" >&6
22763 else
22764   cat >conftest.$ac_ext <<_ACEOF
22765 #line $LINENO "configure"
22766 /* confdefs.h.  */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h.  */
22771 /* System header to define __stub macros and hopefully few prototypes,
22772     which can conflict with char mmap (); below.
22773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22774     <limits.h> exists even on freestanding compilers.  */
22775 #ifdef __STDC__
22776 # include <limits.h>
22777 #else
22778 # include <assert.h>
22779 #endif
22780 /* Override any gcc2 internal prototype to avoid an error.  */
22781 #ifdef __cplusplus
22782 extern "C"
22783 {
22784 #endif
22785 /* We use char because int might match the return type of a gcc2
22786    builtin and then its argument prototype would still apply.  */
22787 char mmap ();
22788 /* The GNU C library defines this for functions which it implements
22789     to always fail with ENOSYS.  Some functions are actually named
22790     something starting with __ and the normal name is an alias.  */
22791 #if defined (__stub_mmap) || defined (__stub___mmap)
22792 choke me
22793 #else
22794 char (*f) () = mmap;
22795 #endif
22796 #ifdef __cplusplus
22797 }
22798 #endif
22799
22800 int
22801 main ()
22802 {
22803 return f != mmap;
22804   ;
22805   return 0;
22806 }
22807 _ACEOF
22808 rm -f conftest.$ac_objext conftest$ac_exeext
22809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22810   (eval $ac_link) 2>&5
22811   ac_status=$?
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); } &&
22814          { ac_try='test -s conftest$ac_exeext'
22815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816   (eval $ac_try) 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); }; }; then
22820   ac_cv_func_mmap=yes
22821 else
22822   echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22824
22825 ac_cv_func_mmap=no
22826 fi
22827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22828 fi
22829 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22830 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22831 if test $ac_cv_func_mmap = yes; then
22832   :
22833 else
22834   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22835 echo "$as_me: error: Function mmap() required but not found" >&2;}
22836    { (exit 1); exit 1; }; }
22837 fi
22838
22839 echo "$as_me:$LINENO: checking for mprotect" >&5
22840 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22841 if test "${ac_cv_func_mprotect+set}" = set; then
22842   echo $ECHO_N "(cached) $ECHO_C" >&6
22843 else
22844   cat >conftest.$ac_ext <<_ACEOF
22845 #line $LINENO "configure"
22846 /* confdefs.h.  */
22847 _ACEOF
22848 cat confdefs.h >>conftest.$ac_ext
22849 cat >>conftest.$ac_ext <<_ACEOF
22850 /* end confdefs.h.  */
22851 /* System header to define __stub macros and hopefully few prototypes,
22852     which can conflict with char mprotect (); below.
22853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22854     <limits.h> exists even on freestanding compilers.  */
22855 #ifdef __STDC__
22856 # include <limits.h>
22857 #else
22858 # include <assert.h>
22859 #endif
22860 /* Override any gcc2 internal prototype to avoid an error.  */
22861 #ifdef __cplusplus
22862 extern "C"
22863 {
22864 #endif
22865 /* We use char because int might match the return type of a gcc2
22866    builtin and then its argument prototype would still apply.  */
22867 char mprotect ();
22868 /* The GNU C library defines this for functions which it implements
22869     to always fail with ENOSYS.  Some functions are actually named
22870     something starting with __ and the normal name is an alias.  */
22871 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22872 choke me
22873 #else
22874 char (*f) () = mprotect;
22875 #endif
22876 #ifdef __cplusplus
22877 }
22878 #endif
22879
22880 int
22881 main ()
22882 {
22883 return f != mprotect;
22884   ;
22885   return 0;
22886 }
22887 _ACEOF
22888 rm -f conftest.$ac_objext conftest$ac_exeext
22889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22890   (eval $ac_link) 2>&5
22891   ac_status=$?
22892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); } &&
22894          { ac_try='test -s conftest$ac_exeext'
22895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896   (eval $ac_try) 2>&5
22897   ac_status=$?
22898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899   (exit $ac_status); }; }; then
22900   ac_cv_func_mprotect=yes
22901 else
22902   echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22904
22905 ac_cv_func_mprotect=no
22906 fi
22907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22908 fi
22909 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22910 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22911 if test $ac_cv_func_mprotect = yes; then
22912   :
22913 else
22914   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22915 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22916    { (exit 1); exit 1; }; }
22917 fi
22918
22919
22920
22921 # Check whether --enable-purify or --disable-purify was given.
22922 if test "${enable_purify+set}" = set; then
22923   enableval="$enable_purify"
22924
22925 else
22926   enableval="no"
22927 fi;
22928 if test ${enableval} = "no"
22929 then
22930         ENABLE_PURIFY=
22931
22932 else
22933         ENABLE_PURIFY=ENABLE_PURIFY=1
22934
22935 fi
22936
22937 # Check whether --enable-optimized or --disable-optimized was given.
22938 if test "${enable_optimized+set}" = set; then
22939   enableval="$enable_optimized"
22940
22941 else
22942   enableval=no
22943 fi;
22944 if test ${enableval} = "no"
22945 then
22946         ENABLE_OPTIMIZED=
22947
22948 else
22949         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22950
22951 fi
22952
22953 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22954 if test "${enable_spec2000+set}" = set; then
22955   enableval="$enable_spec2000"
22956
22957 else
22958   enableval=no
22959 fi;
22960 if test ${enableval} = "no"
22961 then
22962         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22963         then
22964                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22965
22966                 USE_SPEC=USE_SPEC=1
22967
22968         else
22969                 USE_SPEC=
22970
22971
22972         fi
22973 else
22974         if test ${enableval} = ""
22975         then
22976                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22977
22978         else
22979                 SPEC_ROOT=${enableval}
22980
22981         fi
22982         USE_SPEC=USE_SPEC=1
22983
22984 fi
22985
22986 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22987 if test "${enable_precompiled_bytecode+set}" = set; then
22988   enableval="$enable_precompiled_bytecode"
22989
22990 else
22991   enableval=no
22992 fi;
22993 if test ${enableval} = "no"
22994 then
22995         UPB=
22996
22997 else
22998         UPB=USE_PRECOMPILED_BYTECODE=1
22999
23000 fi
23001
23002
23003 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23004 if test "${enable_llc_diffs+set}" = set; then
23005   enableval="$enable_llc_diffs"
23006
23007 else
23008   enableval=yes
23009 fi;
23010 if test ${enableval} = "no"
23011 then
23012         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23013
23014 else
23015         DISABLE_LLC_DIFFS=
23016
23017 fi
23018
23019 # Check whether --enable-jit or --disable-jit was given.
23020 if test "${enable_jit+set}" = set; then
23021   enableval="$enable_jit"
23022
23023 else
23024   enableval=default
23025 fi;
23026
23027 if test ${enableval} = "no"
23028 then
23029         JIT=
23030
23031 else
23032         case $target in
23033                 *i*86*)
23034                         JIT=TARGET_HAS_JIT=1
23035
23036                         ;;
23037                 *sparc*)
23038                         JIT=TARGET_HAS_JIT=1
23039
23040                         ;;
23041                 *)
23042                         JIT=
23043
23044                         ;;
23045         esac
23046 fi
23047
23048
23049
23050 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23051 if test "${with_llvmgccdir+set}" = set; then
23052   withval="$with_llvmgccdir"
23053   LLVMGCCDIR=$withval
23054
23055 fi;
23056
23057
23058 # Check whether --with-bcrepos or --without-bcrepos was given.
23059 if test "${with_bcrepos+set}" = set; then
23060   withval="$with_bcrepos"
23061   BCR=$withval
23062
23063 else
23064   BCR=/home/vadve/lattner/LLVMPrograms
23065
23066 fi;
23067
23068
23069 # Check whether --with-papi or --without-papi was given.
23070 if test "${with_papi+set}" = set; then
23071   withval="$with_papi"
23072   PAPIDIR=$withval
23073
23074 else
23075   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23076
23077 fi;
23078
23079
23080 # Check whether --with-purify or --without-purify was given.
23081 if test "${with_purify+set}" = set; then
23082   withval="$with_purify"
23083   PURIFY=$withval
23084
23085 fi;
23086
23087
23088           ac_config_files="$ac_config_files Makefile.config"
23089 cat >confcache <<\_ACEOF
23090 # This file is a shell script that caches the results of configure
23091 # tests run on this system so they can be shared between configure
23092 # scripts and configure runs, see configure's option --config-cache.
23093 # It is not useful on other systems.  If it contains results you don't
23094 # want to keep, you may remove or edit it.
23095 #
23096 # config.status only pays attention to the cache file if you give it
23097 # the --recheck option to rerun configure.
23098 #
23099 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23100 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23101 # following values.
23102
23103 _ACEOF
23104
23105 # The following way of writing the cache mishandles newlines in values,
23106 # but we know of no workaround that is simple, portable, and efficient.
23107 # So, don't put newlines in cache variables' values.
23108 # Ultrix sh set writes to stderr and can't be redirected directly,
23109 # and sets the high bit in the cache file unless we assign to the vars.
23110 {
23111   (set) 2>&1 |
23112     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23113     *ac_space=\ *)
23114       # `set' does not quote correctly, so add quotes (double-quote
23115       # substitution turns \\\\ into \\, and sed turns \\ into \).
23116       sed -n \
23117         "s/'/'\\\\''/g;
23118           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23119       ;;
23120     *)
23121       # `set' quotes correctly as required by POSIX, so do not add quotes.
23122       sed -n \
23123         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23124       ;;
23125     esac;
23126 } |
23127   sed '
23128      t clear
23129      : clear
23130      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23131      t end
23132      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23133      : end' >>confcache
23134 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23135   if test -w $cache_file; then
23136     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23137     cat confcache >$cache_file
23138   else
23139     echo "not updating unwritable cache $cache_file"
23140   fi
23141 fi
23142 rm -f confcache
23143
23144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23145 # Let make expand exec_prefix.
23146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23147
23148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23150 # trailing colons and then remove the whole line if VPATH becomes empty
23151 # (actually we leave an empty line to preserve line numbers).
23152 if test "x$srcdir" = x.; then
23153   ac_vpsub='/^[         ]*VPATH[        ]*=/{
23154 s/:*\$(srcdir):*/:/;
23155 s/:*\${srcdir}:*/:/;
23156 s/:*@srcdir@:*/:/;
23157 s/^\([^=]*=[    ]*\):*/\1/;
23158 s/:*$//;
23159 s/^[^=]*=[      ]*$//;
23160 }'
23161 fi
23162
23163 DEFS=-DHAVE_CONFIG_H
23164
23165 ac_libobjs=
23166 ac_ltlibobjs=
23167 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23168   # 1. Remove the extension, and $U if already installed.
23169   ac_i=`echo "$ac_i" |
23170          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23171   # 2. Add them.
23172   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23173   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23174 done
23175 LIBOBJS=$ac_libobjs
23176
23177 LTLIBOBJS=$ac_ltlibobjs
23178
23179
23180
23181 : ${CONFIG_STATUS=./config.status}
23182 ac_clean_files_save=$ac_clean_files
23183 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23184 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23185 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23186 cat >$CONFIG_STATUS <<_ACEOF
23187 #! $SHELL
23188 # Generated by $as_me.
23189 # Run this file to recreate the current configuration.
23190 # Compiler output produced by configure, useful for debugging
23191 # configure, is in config.log if it exists.
23192
23193 debug=false
23194 ac_cs_recheck=false
23195 ac_cs_silent=false
23196 SHELL=\${CONFIG_SHELL-$SHELL}
23197 _ACEOF
23198
23199 cat >>$CONFIG_STATUS <<\_ACEOF
23200 ## --------------------- ##
23201 ## M4sh Initialization.  ##
23202 ## --------------------- ##
23203
23204 # Be Bourne compatible
23205 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23206   emulate sh
23207   NULLCMD=:
23208   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23209   # is contrary to our usage.  Disable this feature.
23210   alias -g '${1+"$@"}'='"$@"'
23211 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23212   set -o posix
23213 fi
23214
23215 # Support unset when possible.
23216 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23217   as_unset=unset
23218 else
23219   as_unset=false
23220 fi
23221
23222
23223 # Work around bugs in pre-3.0 UWIN ksh.
23224 $as_unset ENV MAIL MAILPATH
23225 PS1='$ '
23226 PS2='> '
23227 PS4='+ '
23228
23229 # NLS nuisances.
23230 for as_var in \
23231   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23232   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23233   LC_TELEPHONE LC_TIME
23234 do
23235   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23236     eval $as_var=C; export $as_var
23237   else
23238     $as_unset $as_var
23239   fi
23240 done
23241
23242 # Required to use basename.
23243 if expr a : '\(a\)' >/dev/null 2>&1; then
23244   as_expr=expr
23245 else
23246   as_expr=false
23247 fi
23248
23249 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23250   as_basename=basename
23251 else
23252   as_basename=false
23253 fi
23254
23255
23256 # Name of the executable.
23257 as_me=`$as_basename "$0" ||
23258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23259          X"$0" : 'X\(//\)$' \| \
23260          X"$0" : 'X\(/\)$' \| \
23261          .     : '\(.\)' 2>/dev/null ||
23262 echo X/"$0" |
23263     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23264           /^X\/\(\/\/\)$/{ s//\1/; q; }
23265           /^X\/\(\/\).*/{ s//\1/; q; }
23266           s/.*/./; q'`
23267
23268
23269 # PATH needs CR, and LINENO needs CR and PATH.
23270 # Avoid depending upon Character Ranges.
23271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23274 as_cr_digits='0123456789'
23275 as_cr_alnum=$as_cr_Letters$as_cr_digits
23276
23277 # The user is always right.
23278 if test "${PATH_SEPARATOR+set}" != set; then
23279   echo "#! /bin/sh" >conf$$.sh
23280   echo  "exit 0"   >>conf$$.sh
23281   chmod +x conf$$.sh
23282   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23283     PATH_SEPARATOR=';'
23284   else
23285     PATH_SEPARATOR=:
23286   fi
23287   rm -f conf$$.sh
23288 fi
23289
23290
23291   as_lineno_1=$LINENO
23292   as_lineno_2=$LINENO
23293   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23294   test "x$as_lineno_1" != "x$as_lineno_2" &&
23295   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23296   # Find who we are.  Look in the path if we contain no path at all
23297   # relative or not.
23298   case $0 in
23299     *[\\/]* ) as_myself=$0 ;;
23300     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23301 for as_dir in $PATH
23302 do
23303   IFS=$as_save_IFS
23304   test -z "$as_dir" && as_dir=.
23305   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23306 done
23307
23308        ;;
23309   esac
23310   # We did not find ourselves, most probably we were run as `sh COMMAND'
23311   # in which case we are not to be found in the path.
23312   if test "x$as_myself" = x; then
23313     as_myself=$0
23314   fi
23315   if test ! -f "$as_myself"; then
23316     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23317 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23318    { (exit 1); exit 1; }; }
23319   fi
23320   case $CONFIG_SHELL in
23321   '')
23322     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23323 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23324 do
23325   IFS=$as_save_IFS
23326   test -z "$as_dir" && as_dir=.
23327   for as_base in sh bash ksh sh5; do
23328          case $as_dir in
23329          /*)
23330            if ("$as_dir/$as_base" -c '
23331   as_lineno_1=$LINENO
23332   as_lineno_2=$LINENO
23333   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23334   test "x$as_lineno_1" != "x$as_lineno_2" &&
23335   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23336              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23337              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23338              CONFIG_SHELL=$as_dir/$as_base
23339              export CONFIG_SHELL
23340              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23341            fi;;
23342          esac
23343        done
23344 done
23345 ;;
23346   esac
23347
23348   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23349   # uniformly replaced by the line number.  The first 'sed' inserts a
23350   # line-number line before each line; the second 'sed' does the real
23351   # work.  The second script uses 'N' to pair each line-number line
23352   # with the numbered line, and appends trailing '-' during
23353   # substitution so that $LINENO is not a special case at line end.
23354   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23355   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23356   sed '=' <$as_myself |
23357     sed '
23358       N
23359       s,$,-,
23360       : loop
23361       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23362       t loop
23363       s,-$,,
23364       s,^['$as_cr_digits']*\n,,
23365     ' >$as_me.lineno &&
23366   chmod +x $as_me.lineno ||
23367     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23368 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23369    { (exit 1); exit 1; }; }
23370
23371   # Don't try to exec as it changes $[0], causing all sort of problems
23372   # (the dirname of $[0] is not the place where we might find the
23373   # original and so on.  Autoconf is especially sensible to this).
23374   . ./$as_me.lineno
23375   # Exit status is that of the last command.
23376   exit
23377 }
23378
23379
23380 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23381   *c*,-n*) ECHO_N= ECHO_C='
23382 ' ECHO_T='      ' ;;
23383   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23384   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23385 esac
23386
23387 if expr a : '\(a\)' >/dev/null 2>&1; then
23388   as_expr=expr
23389 else
23390   as_expr=false
23391 fi
23392
23393 rm -f conf$$ conf$$.exe conf$$.file
23394 echo >conf$$.file
23395 if ln -s conf$$.file conf$$ 2>/dev/null; then
23396   # We could just check for DJGPP; but this test a) works b) is more generic
23397   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23398   if test -f conf$$.exe; then
23399     # Don't use ln at all; we don't have any links
23400     as_ln_s='cp -p'
23401   else
23402     as_ln_s='ln -s'
23403   fi
23404 elif ln conf$$.file conf$$ 2>/dev/null; then
23405   as_ln_s=ln
23406 else
23407   as_ln_s='cp -p'
23408 fi
23409 rm -f conf$$ conf$$.exe conf$$.file
23410
23411 if mkdir -p . 2>/dev/null; then
23412   as_mkdir_p=:
23413 else
23414   as_mkdir_p=false
23415 fi
23416
23417 as_executable_p="test -f"
23418
23419 # Sed expression to map a string onto a valid CPP name.
23420 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23421
23422 # Sed expression to map a string onto a valid variable name.
23423 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23424
23425
23426 # IFS
23427 # We need space, tab and new line, in precisely that order.
23428 as_nl='
23429 '
23430 IFS="   $as_nl"
23431
23432 # CDPATH.
23433 $as_unset CDPATH
23434
23435 exec 6>&1
23436
23437 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23438 # report actual input values of CONFIG_FILES etc. instead of their
23439 # values after options handling.  Logging --version etc. is OK.
23440 exec 5>>config.log
23441 {
23442   echo
23443   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23444 ## Running $as_me. ##
23445 _ASBOX
23446 } >&5
23447 cat >&5 <<_CSEOF
23448
23449 This file was extended by [LLVM] $as_me [1.0], which was
23450 generated by GNU Autoconf 2.57.  Invocation command line was
23451
23452   CONFIG_FILES    = $CONFIG_FILES
23453   CONFIG_HEADERS  = $CONFIG_HEADERS
23454   CONFIG_LINKS    = $CONFIG_LINKS
23455   CONFIG_COMMANDS = $CONFIG_COMMANDS
23456   $ $0 $@
23457
23458 _CSEOF
23459 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23460 echo >&5
23461 _ACEOF
23462
23463 # Files that config.status was made for.
23464 if test -n "$ac_config_files"; then
23465   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23466 fi
23467
23468 if test -n "$ac_config_headers"; then
23469   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23470 fi
23471
23472 if test -n "$ac_config_links"; then
23473   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23474 fi
23475
23476 if test -n "$ac_config_commands"; then
23477   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23478 fi
23479
23480 cat >>$CONFIG_STATUS <<\_ACEOF
23481
23482 ac_cs_usage="\
23483 \`$as_me' instantiates files from templates according to the
23484 current configuration.
23485
23486 Usage: $0 [OPTIONS] [FILE]...
23487
23488   -h, --help       print this help, then exit
23489   -V, --version    print version number, then exit
23490   -q, --quiet      do not print progress messages
23491   -d, --debug      don't remove temporary files
23492       --recheck    update $as_me by reconfiguring in the same conditions
23493   --file=FILE[:TEMPLATE]
23494                    instantiate the configuration file FILE
23495   --header=FILE[:TEMPLATE]
23496                    instantiate the configuration header FILE
23497
23498 Configuration files:
23499 $config_files
23500
23501 Configuration headers:
23502 $config_headers
23503
23504 Configuration commands:
23505 $config_commands
23506
23507 Report bugs to <bug-autoconf@gnu.org>."
23508 _ACEOF
23509
23510 cat >>$CONFIG_STATUS <<_ACEOF
23511 ac_cs_version="\\
23512 [LLVM] config.status [1.0]
23513 configured by $0, generated by GNU Autoconf 2.57,
23514   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23515
23516 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23517 Free Software Foundation, Inc.
23518 This config.status script is free software; the Free Software Foundation
23519 gives unlimited permission to copy, distribute and modify it."
23520 srcdir=$srcdir
23521 INSTALL="$INSTALL"
23522 _ACEOF
23523
23524 cat >>$CONFIG_STATUS <<\_ACEOF
23525 # If no file are specified by the user, then we need to provide default
23526 # value.  By we need to know if files were specified by the user.
23527 ac_need_defaults=:
23528 while test $# != 0
23529 do
23530   case $1 in
23531   --*=*)
23532     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23533     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23534     ac_shift=:
23535     ;;
23536   -*)
23537     ac_option=$1
23538     ac_optarg=$2
23539     ac_shift=shift
23540     ;;
23541   *) # This is not an option, so the user has probably given explicit
23542      # arguments.
23543      ac_option=$1
23544      ac_need_defaults=false;;
23545   esac
23546
23547   case $ac_option in
23548   # Handling of the options.
23549 _ACEOF
23550 cat >>$CONFIG_STATUS <<\_ACEOF
23551   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23552     ac_cs_recheck=: ;;
23553   --version | --vers* | -V )
23554     echo "$ac_cs_version"; exit 0 ;;
23555   --he | --h)
23556     # Conflict between --help and --header
23557     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23558 Try \`$0 --help' for more information." >&5
23559 echo "$as_me: error: ambiguous option: $1
23560 Try \`$0 --help' for more information." >&2;}
23561    { (exit 1); exit 1; }; };;
23562   --help | --hel | -h )
23563     echo "$ac_cs_usage"; exit 0 ;;
23564   --debug | --d* | -d )
23565     debug=: ;;
23566   --file | --fil | --fi | --f )
23567     $ac_shift
23568     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23569     ac_need_defaults=false;;
23570   --header | --heade | --head | --hea )
23571     $ac_shift
23572     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23573     ac_need_defaults=false;;
23574   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23575   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23576     ac_cs_silent=: ;;
23577
23578   # This is an error.
23579   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23580 Try \`$0 --help' for more information." >&5
23581 echo "$as_me: error: unrecognized option: $1
23582 Try \`$0 --help' for more information." >&2;}
23583    { (exit 1); exit 1; }; } ;;
23584
23585   *) ac_config_targets="$ac_config_targets $1" ;;
23586
23587   esac
23588   shift
23589 done
23590
23591 ac_configure_extra_args=
23592
23593 if $ac_cs_silent; then
23594   exec 6>/dev/null
23595   ac_configure_extra_args="$ac_configure_extra_args --silent"
23596 fi
23597
23598 _ACEOF
23599 cat >>$CONFIG_STATUS <<_ACEOF
23600 if \$ac_cs_recheck; then
23601   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23602   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23603 fi
23604
23605 _ACEOF
23606
23607 cat >>$CONFIG_STATUS <<_ACEOF
23608 #
23609 # INIT-COMMANDS section.
23610 #
23611
23612 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23613 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23614 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23615 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23616 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23617 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23618 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23619 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23620 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23621 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23622 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23623 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23624 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23625 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23626 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23627 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23628 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23629 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23630 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23631 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23632 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23633 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23634 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23635 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23636 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23637 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23638 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23639 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23640 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23641 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23642 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23643 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23644 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23645 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23646 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23647 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23648 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23649 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23650 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23651 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23652 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23653 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23654 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23655 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23656 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23657 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23658 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23659 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23660 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23661 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libprofile/Makefile`
23662 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23663 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23664 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23665 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23666 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23667 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23668 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23669 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23670 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23671 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23672 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23673 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23674 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23675 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23676 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23677 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23678 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23679 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23680 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23681 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23682 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23683 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23684 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23685 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23686 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
23687 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23688 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23689 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23690 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23691 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23692 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23693 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23694 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23695 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23696 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23697 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23698 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
23699 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23700 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23701 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23702 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23703 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23704 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23705 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23706 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23707 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23708 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23709 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23710 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23711 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23712 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23713 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23714 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23715 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23716 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23717 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23718 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23719 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23720 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23721 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23722 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23723 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23724 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23725 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23726 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23727 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23728 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23729 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23730 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23731 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23732 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23733 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23734 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23735 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23736 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23737 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23738 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23739 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23740 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23741 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23742 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23743 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23744 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23745 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23746 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23747 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23748 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23749 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23750 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23751 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23752 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23753 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23754 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23755 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23756 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23757 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23758 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23759 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23760 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23761 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23762 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23763 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23764 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23765 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23766 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23767 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23768 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23769 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23770 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23771 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
23772 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-prof/Makefile`
23773 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23774 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23775 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23776 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23777 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23778 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23779 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23780 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23781 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23782 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23783
23784 _ACEOF
23785
23786
23787
23788 cat >>$CONFIG_STATUS <<\_ACEOF
23789 for ac_config_target in $ac_config_targets
23790 do
23791   case "$ac_config_target" in
23792   # Handling of arguments.
23793   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23794   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23795   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23796   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23797   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23798   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23799   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23800   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23801   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23802   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23803   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23804   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23805   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23806   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23807   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23808   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23809   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23810   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23811   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23812   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23813   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23814   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23815   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23816   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23817   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23818   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23819   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23820   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23821   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23822   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23823   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23824   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23825   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23826   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23827   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23828   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23829   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23830   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23831   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23832   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23833   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23834   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23835   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23836   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23837   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23838   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23839   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23840   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23841   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23842   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23843   "runtime/libprofile/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libprofile/Makefile" ;;
23844   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23845   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23846   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23847   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23848   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23849   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23850   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23851   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23852   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23853   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23854   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23855   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23856   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23857   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23858   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23859   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23860   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23861   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23862   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23863   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23864   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23865   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23866   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23867   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23868   "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
23869   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23870   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23871   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23872   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23873   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23874   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23875   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23876   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23877   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23878   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23879   "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23880   "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
23881   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23882   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23883   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23884   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23885   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23886   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23887   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23888   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23889   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23890   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23891   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23892   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23893   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23894   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23895   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23896   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23897   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23898   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23899   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23900   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23901   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23902   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23903   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23904   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23905   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23906   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23907   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23908   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23909   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23910   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23911   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23912   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23913   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23914   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23915   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23916   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23917   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23918   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23919   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23920   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23921   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23922   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23923   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23924   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23925   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23926   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23927   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23928   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23929   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23930   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23931   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23932   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23933   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23934   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23935   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23936   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23937   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23938   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23939   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23940   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23941   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23942   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23943   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23944   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23945   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23946   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23947   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23948   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23949   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23950   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23951   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23952   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23953   "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
23954   "tools/llvm-prof/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-prof/Makefile" ;;
23955   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23956   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23957   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23958   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23959   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23960   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23961   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23962   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23963   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23964   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23965   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23966   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23968    { (exit 1); exit 1; }; };;
23969   esac
23970 done
23971
23972 # If the user did not use the arguments to specify the items to instantiate,
23973 # then the envvar interface is used.  Set only those that are not.
23974 # We use the long form for the default assignment because of an extremely
23975 # bizarre bug on SunOS 4.1.3.
23976 if $ac_need_defaults; then
23977   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23978   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23979   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23980 fi
23981
23982 # Have a temporary directory for convenience.  Make it in the build tree
23983 # simply because there is no reason to put it here, and in addition,
23984 # creating and moving files from /tmp can sometimes cause problems.
23985 # Create a temporary directory, and hook for its removal unless debugging.
23986 $debug ||
23987 {
23988   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23989   trap '{ (exit 1); exit 1; }' 1 2 13 15
23990 }
23991
23992 # Create a (secure) tmp directory for tmp files.
23993
23994 {
23995   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23996   test -n "$tmp" && test -d "$tmp"
23997 }  ||
23998 {
23999   tmp=./confstat$$-$RANDOM
24000   (umask 077 && mkdir $tmp)
24001 } ||
24002 {
24003    echo "$me: cannot create a temporary directory in ." >&2
24004    { (exit 1); exit 1; }
24005 }
24006
24007 _ACEOF
24008
24009 cat >>$CONFIG_STATUS <<_ACEOF
24010
24011 #
24012 # CONFIG_FILES section.
24013 #
24014
24015 # No need to generate the scripts if there are no CONFIG_FILES.
24016 # This happens for instance when ./config.status config.h
24017 if test -n "\$CONFIG_FILES"; then
24018   # Protect against being on the right side of a sed subst in config.status.
24019   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24020    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24021 s,@SHELL@,$SHELL,;t t
24022 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24023 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24024 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24025 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24026 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24027 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24028 s,@exec_prefix@,$exec_prefix,;t t
24029 s,@prefix@,$prefix,;t t
24030 s,@program_transform_name@,$program_transform_name,;t t
24031 s,@bindir@,$bindir,;t t
24032 s,@sbindir@,$sbindir,;t t
24033 s,@libexecdir@,$libexecdir,;t t
24034 s,@datadir@,$datadir,;t t
24035 s,@sysconfdir@,$sysconfdir,;t t
24036 s,@sharedstatedir@,$sharedstatedir,;t t
24037 s,@localstatedir@,$localstatedir,;t t
24038 s,@libdir@,$libdir,;t t
24039 s,@includedir@,$includedir,;t t
24040 s,@oldincludedir@,$oldincludedir,;t t
24041 s,@infodir@,$infodir,;t t
24042 s,@mandir@,$mandir,;t t
24043 s,@build_alias@,$build_alias,;t t
24044 s,@host_alias@,$host_alias,;t t
24045 s,@target_alias@,$target_alias,;t t
24046 s,@DEFS@,$DEFS,;t t
24047 s,@ECHO_C@,$ECHO_C,;t t
24048 s,@ECHO_N@,$ECHO_N,;t t
24049 s,@ECHO_T@,$ECHO_T,;t t
24050 s,@LIBS@,$LIBS,;t t
24051 s,@subdirs@,$subdirs,;t t
24052 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24053 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24054 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24055 s,@build@,$build,;t t
24056 s,@build_cpu@,$build_cpu,;t t
24057 s,@build_vendor@,$build_vendor,;t t
24058 s,@build_os@,$build_os,;t t
24059 s,@host@,$host,;t t
24060 s,@host_cpu@,$host_cpu,;t t
24061 s,@host_vendor@,$host_vendor,;t t
24062 s,@host_os@,$host_os,;t t
24063 s,@target@,$target,;t t
24064 s,@target_cpu@,$target_cpu,;t t
24065 s,@target_vendor@,$target_vendor,;t t
24066 s,@target_os@,$target_os,;t t
24067 s,@OS@,$OS,;t t
24068 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24069 s,@ARCH@,$ARCH,;t t
24070 s,@CXX@,$CXX,;t t
24071 s,@CXXFLAGS@,$CXXFLAGS,;t t
24072 s,@LDFLAGS@,$LDFLAGS,;t t
24073 s,@CPPFLAGS@,$CPPFLAGS,;t t
24074 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24075 s,@EXEEXT@,$EXEEXT,;t t
24076 s,@OBJEXT@,$OBJEXT,;t t
24077 s,@CC@,$CC,;t t
24078 s,@CFLAGS@,$CFLAGS,;t t
24079 s,@ac_ct_CC@,$ac_ct_CC,;t t
24080 s,@CPP@,$CPP,;t t
24081 s,@ifGNUmake@,$ifGNUmake,;t t
24082 s,@LEX@,$LEX,;t t
24083 s,@LEXLIB@,$LEXLIB,;t t
24084 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24085 s,@YACC@,$YACC,;t t
24086 s,@EGREP@,$EGREP,;t t
24087 s,@LN_S@,$LN_S,;t t
24088 s,@ECHO@,$ECHO,;t t
24089 s,@AR@,$AR,;t t
24090 s,@ac_ct_AR@,$ac_ct_AR,;t t
24091 s,@RANLIB@,$RANLIB,;t t
24092 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24093 s,@STRIP@,$STRIP,;t t
24094 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24095 s,@CXXCPP@,$CXXCPP,;t t
24096 s,@F77@,$F77,;t t
24097 s,@FFLAGS@,$FFLAGS,;t t
24098 s,@ac_ct_F77@,$ac_ct_F77,;t t
24099 s,@LIBTOOL@,$LIBTOOL,;t t
24100 s,@RPWD@,$RPWD,;t t
24101 s,@SED@,$SED,;t t
24102 s,@RM@,$RM,;t t
24103 s,@MKDIR@,$MKDIR,;t t
24104 s,@DATE@,$DATE,;t t
24105 s,@MV@,$MV,;t t
24106 s,@DOT@,$DOT,;t t
24107 s,@ETAGS@,$ETAGS,;t t
24108 s,@PYTHON@,$PYTHON,;t t
24109 s,@QMTEST@,$QMTEST,;t t
24110 s,@ALLOCA@,$ALLOCA,;t t
24111 s,@LIBOBJS@,$LIBOBJS,;t t
24112 s,@MMAP_FILE@,$MMAP_FILE,;t t
24113 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
24114 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24115 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
24116 s,@USE_SPEC@,$USE_SPEC,;t t
24117 s,@UPB@,$UPB,;t t
24118 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24119 s,@JIT@,$JIT,;t t
24120 s,@BCR@,$BCR,;t t
24121 s,@PAPIDIR@,$PAPIDIR,;t t
24122 s,@PURIFY@,$PURIFY,;t t
24123 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24124 CEOF
24125
24126 _ACEOF
24127
24128   cat >>$CONFIG_STATUS <<\_ACEOF
24129   # Split the substitutions into bite-sized pieces for seds with
24130   # small command number limits, like on Digital OSF/1 and HP-UX.
24131   ac_max_sed_lines=48
24132   ac_sed_frag=1 # Number of current file.
24133   ac_beg=1 # First line for current file.
24134   ac_end=$ac_max_sed_lines # Line after last line for current file.
24135   ac_more_lines=:
24136   ac_sed_cmds=
24137   while $ac_more_lines; do
24138     if test $ac_beg -gt 1; then
24139       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24140     else
24141       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24142     fi
24143     if test ! -s $tmp/subs.frag; then
24144       ac_more_lines=false
24145     else
24146       # The purpose of the label and of the branching condition is to
24147       # speed up the sed processing (if there are no `@' at all, there
24148       # is no need to browse any of the substitutions).
24149       # These are the two extra sed commands mentioned above.
24150       (echo ':t
24151   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24152       if test -z "$ac_sed_cmds"; then
24153         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24154       else
24155         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24156       fi
24157       ac_sed_frag=`expr $ac_sed_frag + 1`
24158       ac_beg=$ac_end
24159       ac_end=`expr $ac_end + $ac_max_sed_lines`
24160     fi
24161   done
24162   if test -z "$ac_sed_cmds"; then
24163     ac_sed_cmds=cat
24164   fi
24165 fi # test -n "$CONFIG_FILES"
24166
24167 _ACEOF
24168 cat >>$CONFIG_STATUS <<\_ACEOF
24169 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24170   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24171   case $ac_file in
24172   - | *:- | *:-:* ) # input from stdin
24173         cat >$tmp/stdin
24174         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24175         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24176   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24177         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24178   * )   ac_file_in=$ac_file.in ;;
24179   esac
24180
24181   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24182   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24184          X"$ac_file" : 'X\(//\)[^/]' \| \
24185          X"$ac_file" : 'X\(//\)$' \| \
24186          X"$ac_file" : 'X\(/\)' \| \
24187          .     : '\(.\)' 2>/dev/null ||
24188 echo X"$ac_file" |
24189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24190           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24191           /^X\(\/\/\)$/{ s//\1/; q; }
24192           /^X\(\/\).*/{ s//\1/; q; }
24193           s/.*/./; q'`
24194   { if $as_mkdir_p; then
24195     mkdir -p "$ac_dir"
24196   else
24197     as_dir="$ac_dir"
24198     as_dirs=
24199     while test ! -d "$as_dir"; do
24200       as_dirs="$as_dir $as_dirs"
24201       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24203          X"$as_dir" : 'X\(//\)[^/]' \| \
24204          X"$as_dir" : 'X\(//\)$' \| \
24205          X"$as_dir" : 'X\(/\)' \| \
24206          .     : '\(.\)' 2>/dev/null ||
24207 echo X"$as_dir" |
24208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24209           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24210           /^X\(\/\/\)$/{ s//\1/; q; }
24211           /^X\(\/\).*/{ s//\1/; q; }
24212           s/.*/./; q'`
24213     done
24214     test ! -n "$as_dirs" || mkdir $as_dirs
24215   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24216 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24217    { (exit 1); exit 1; }; }; }
24218
24219   ac_builddir=.
24220
24221 if test "$ac_dir" != .; then
24222   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24223   # A "../" for each directory in $ac_dir_suffix.
24224   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24225 else
24226   ac_dir_suffix= ac_top_builddir=
24227 fi
24228
24229 case $srcdir in
24230   .)  # No --srcdir option.  We are building in place.
24231     ac_srcdir=.
24232     if test -z "$ac_top_builddir"; then
24233        ac_top_srcdir=.
24234     else
24235        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24236     fi ;;
24237   [\\/]* | ?:[\\/]* )  # Absolute path.
24238     ac_srcdir=$srcdir$ac_dir_suffix;
24239     ac_top_srcdir=$srcdir ;;
24240   *) # Relative path.
24241     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24242     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24243 esac
24244 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24245 # absolute.
24246 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24247 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24248 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24249 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24250
24251
24252   case $INSTALL in
24253   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24254   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24255   esac
24256
24257   if test x"$ac_file" != x-; then
24258     { echo "$as_me:$LINENO: creating $ac_file" >&5
24259 echo "$as_me: creating $ac_file" >&6;}
24260     rm -f "$ac_file"
24261   fi
24262   # Let's still pretend it is `configure' which instantiates (i.e., don't
24263   # use $as_me), people would be surprised to read:
24264   #    /* config.h.  Generated by config.status.  */
24265   if test x"$ac_file" = x-; then
24266     configure_input=
24267   else
24268     configure_input="$ac_file.  "
24269   fi
24270   configure_input=$configure_input"Generated from `echo $ac_file_in |
24271                                      sed 's,.*/,,'` by configure."
24272
24273   # First look for the input files in the build tree, otherwise in the
24274   # src tree.
24275   ac_file_inputs=`IFS=:
24276     for f in $ac_file_in; do
24277       case $f in
24278       -) echo $tmp/stdin ;;
24279       [\\/$]*)
24280          # Absolute (can't be DOS-style, as IFS=:)
24281          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24282 echo "$as_me: error: cannot find input file: $f" >&2;}
24283    { (exit 1); exit 1; }; }
24284          echo $f;;
24285       *) # Relative
24286          if test -f "$f"; then
24287            # Build tree
24288            echo $f
24289          elif test -f "$srcdir/$f"; then
24290            # Source tree
24291            echo $srcdir/$f
24292          else
24293            # /dev/null tree
24294            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24295 echo "$as_me: error: cannot find input file: $f" >&2;}
24296    { (exit 1); exit 1; }; }
24297          fi;;
24298       esac
24299     done` || { (exit 1); exit 1; }
24300 _ACEOF
24301 cat >>$CONFIG_STATUS <<_ACEOF
24302   sed "$ac_vpsub
24303 $extrasub
24304 _ACEOF
24305 cat >>$CONFIG_STATUS <<\_ACEOF
24306 :t
24307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24308 s,@configure_input@,$configure_input,;t t
24309 s,@srcdir@,$ac_srcdir,;t t
24310 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24311 s,@top_srcdir@,$ac_top_srcdir,;t t
24312 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24313 s,@builddir@,$ac_builddir,;t t
24314 s,@abs_builddir@,$ac_abs_builddir,;t t
24315 s,@top_builddir@,$ac_top_builddir,;t t
24316 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24317 s,@INSTALL@,$ac_INSTALL,;t t
24318 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24319   rm -f $tmp/stdin
24320   if test x"$ac_file" != x-; then
24321     mv $tmp/out $ac_file
24322   else
24323     cat $tmp/out
24324     rm -f $tmp/out
24325   fi
24326
24327 done
24328 _ACEOF
24329 cat >>$CONFIG_STATUS <<\_ACEOF
24330
24331 #
24332 # CONFIG_HEADER section.
24333 #
24334
24335 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24336 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24337 #
24338 # ac_d sets the value in "#define NAME VALUE" lines.
24339 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24340 ac_dB='[        ].*$,\1#\2'
24341 ac_dC=' '
24342 ac_dD=',;t'
24343 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24344 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24345 ac_uB='$,\1#\2define\3'
24346 ac_uC=' '
24347 ac_uD=',;t'
24348
24349 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24350   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24351   case $ac_file in
24352   - | *:- | *:-:* ) # input from stdin
24353         cat >$tmp/stdin
24354         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24355         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24356   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24357         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24358   * )   ac_file_in=$ac_file.in ;;
24359   esac
24360
24361   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24362 echo "$as_me: creating $ac_file" >&6;}
24363
24364   # First look for the input files in the build tree, otherwise in the
24365   # src tree.
24366   ac_file_inputs=`IFS=:
24367     for f in $ac_file_in; do
24368       case $f in
24369       -) echo $tmp/stdin ;;
24370       [\\/$]*)
24371          # Absolute (can't be DOS-style, as IFS=:)
24372          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24373 echo "$as_me: error: cannot find input file: $f" >&2;}
24374    { (exit 1); exit 1; }; }
24375          echo $f;;
24376       *) # Relative
24377          if test -f "$f"; then
24378            # Build tree
24379            echo $f
24380          elif test -f "$srcdir/$f"; then
24381            # Source tree
24382            echo $srcdir/$f
24383          else
24384            # /dev/null tree
24385            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24386 echo "$as_me: error: cannot find input file: $f" >&2;}
24387    { (exit 1); exit 1; }; }
24388          fi;;
24389       esac
24390     done` || { (exit 1); exit 1; }
24391   # Remove the trailing spaces.
24392   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24393
24394 _ACEOF
24395
24396 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24397 # `conftest.undefs', that substitutes the proper values into
24398 # config.h.in to produce config.h.  The first handles `#define'
24399 # templates, and the second `#undef' templates.
24400 # And first: Protect against being on the right side of a sed subst in
24401 # config.status.  Protect against being in an unquoted here document
24402 # in config.status.
24403 rm -f conftest.defines conftest.undefs
24404 # Using a here document instead of a string reduces the quoting nightmare.
24405 # Putting comments in sed scripts is not portable.
24406 #
24407 # `end' is used to avoid that the second main sed command (meant for
24408 # 0-ary CPP macros) applies to n-ary macro definitions.
24409 # See the Autoconf documentation for `clear'.
24410 cat >confdef2sed.sed <<\_ACEOF
24411 s/[\\&,]/\\&/g
24412 s,[\\$`],\\&,g
24413 t clear
24414 : clear
24415 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24416 t end
24417 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24418 : end
24419 _ACEOF
24420 # If some macros were called several times there might be several times
24421 # the same #defines, which is useless.  Nevertheless, we may not want to
24422 # sort them, since we want the *last* AC-DEFINE to be honored.
24423 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24424 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24425 rm -f confdef2sed.sed
24426
24427 # This sed command replaces #undef with comments.  This is necessary, for
24428 # example, in the case of _POSIX_SOURCE, which is predefined and required
24429 # on some systems where configure will not decide to define it.
24430 cat >>conftest.undefs <<\_ACEOF
24431 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24432 _ACEOF
24433
24434 # Break up conftest.defines because some shells have a limit on the size
24435 # of here documents, and old seds have small limits too (100 cmds).
24436 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24437 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24438 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24439 echo '  :' >>$CONFIG_STATUS
24440 rm -f conftest.tail
24441 while grep . conftest.defines >/dev/null
24442 do
24443   # Write a limited-size here document to $tmp/defines.sed.
24444   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24445   # Speed up: don't consider the non `#define' lines.
24446   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24447   # Work around the forget-to-reset-the-flag bug.
24448   echo 't clr' >>$CONFIG_STATUS
24449   echo ': clr' >>$CONFIG_STATUS
24450   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24451   echo 'CEOF
24452   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24453   rm -f $tmp/in
24454   mv $tmp/out $tmp/in
24455 ' >>$CONFIG_STATUS
24456   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24457   rm -f conftest.defines
24458   mv conftest.tail conftest.defines
24459 done
24460 rm -f conftest.defines
24461 echo '  fi # grep' >>$CONFIG_STATUS
24462 echo >>$CONFIG_STATUS
24463
24464 # Break up conftest.undefs because some shells have a limit on the size
24465 # of here documents, and old seds have small limits too (100 cmds).
24466 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24467 rm -f conftest.tail
24468 while grep . conftest.undefs >/dev/null
24469 do
24470   # Write a limited-size here document to $tmp/undefs.sed.
24471   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24472   # Speed up: don't consider the non `#undef'
24473   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24474   # Work around the forget-to-reset-the-flag bug.
24475   echo 't clr' >>$CONFIG_STATUS
24476   echo ': clr' >>$CONFIG_STATUS
24477   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24478   echo 'CEOF
24479   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24480   rm -f $tmp/in
24481   mv $tmp/out $tmp/in
24482 ' >>$CONFIG_STATUS
24483   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24484   rm -f conftest.undefs
24485   mv conftest.tail conftest.undefs
24486 done
24487 rm -f conftest.undefs
24488
24489 cat >>$CONFIG_STATUS <<\_ACEOF
24490   # Let's still pretend it is `configure' which instantiates (i.e., don't
24491   # use $as_me), people would be surprised to read:
24492   #    /* config.h.  Generated by config.status.  */
24493   if test x"$ac_file" = x-; then
24494     echo "/* Generated by configure.  */" >$tmp/config.h
24495   else
24496     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24497   fi
24498   cat $tmp/in >>$tmp/config.h
24499   rm -f $tmp/in
24500   if test x"$ac_file" != x-; then
24501     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24502       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24503 echo "$as_me: $ac_file is unchanged" >&6;}
24504     else
24505       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24506 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24507          X"$ac_file" : 'X\(//\)[^/]' \| \
24508          X"$ac_file" : 'X\(//\)$' \| \
24509          X"$ac_file" : 'X\(/\)' \| \
24510          .     : '\(.\)' 2>/dev/null ||
24511 echo X"$ac_file" |
24512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24513           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24514           /^X\(\/\/\)$/{ s//\1/; q; }
24515           /^X\(\/\).*/{ s//\1/; q; }
24516           s/.*/./; q'`
24517       { if $as_mkdir_p; then
24518     mkdir -p "$ac_dir"
24519   else
24520     as_dir="$ac_dir"
24521     as_dirs=
24522     while test ! -d "$as_dir"; do
24523       as_dirs="$as_dir $as_dirs"
24524       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24526          X"$as_dir" : 'X\(//\)[^/]' \| \
24527          X"$as_dir" : 'X\(//\)$' \| \
24528          X"$as_dir" : 'X\(/\)' \| \
24529          .     : '\(.\)' 2>/dev/null ||
24530 echo X"$as_dir" |
24531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24532           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24533           /^X\(\/\/\)$/{ s//\1/; q; }
24534           /^X\(\/\).*/{ s//\1/; q; }
24535           s/.*/./; q'`
24536     done
24537     test ! -n "$as_dirs" || mkdir $as_dirs
24538   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24539 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24540    { (exit 1); exit 1; }; }; }
24541
24542       rm -f $ac_file
24543       mv $tmp/config.h $ac_file
24544     fi
24545   else
24546     cat $tmp/config.h
24547     rm -f $tmp/config.h
24548   fi
24549 done
24550 _ACEOF
24551 cat >>$CONFIG_STATUS <<\_ACEOF
24552
24553 #
24554 # CONFIG_COMMANDS section.
24555 #
24556 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24557   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24558   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24559   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24560 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24561          X"$ac_dest" : 'X\(//\)[^/]' \| \
24562          X"$ac_dest" : 'X\(//\)$' \| \
24563          X"$ac_dest" : 'X\(/\)' \| \
24564          .     : '\(.\)' 2>/dev/null ||
24565 echo X"$ac_dest" |
24566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24567           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24568           /^X\(\/\/\)$/{ s//\1/; q; }
24569           /^X\(\/\).*/{ s//\1/; q; }
24570           s/.*/./; q'`
24571   ac_builddir=.
24572
24573 if test "$ac_dir" != .; then
24574   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24575   # A "../" for each directory in $ac_dir_suffix.
24576   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24577 else
24578   ac_dir_suffix= ac_top_builddir=
24579 fi
24580
24581 case $srcdir in
24582   .)  # No --srcdir option.  We are building in place.
24583     ac_srcdir=.
24584     if test -z "$ac_top_builddir"; then
24585        ac_top_srcdir=.
24586     else
24587        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24588     fi ;;
24589   [\\/]* | ?:[\\/]* )  # Absolute path.
24590     ac_srcdir=$srcdir$ac_dir_suffix;
24591     ac_top_srcdir=$srcdir ;;
24592   *) # Relative path.
24593     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24594     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24595 esac
24596 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24597 # absolute.
24598 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24599 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24600 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24601 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24602
24603
24604   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24605 echo "$as_me: executing $ac_dest commands" >&6;}
24606   case $ac_dest in
24607     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24608     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24609     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24610     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24611     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24612     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24613     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24614     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24615     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24616     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24617     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24618     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24619     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24620     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24621     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24622     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24623     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24624     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24625     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24626     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24627     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24628     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24629     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24630     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24631     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24632     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24633     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24634     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24635     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24636     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24637     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24638     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24639     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24640     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24641     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24642     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24643     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24644     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24645     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24646     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24647     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24648     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24649     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24650     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24651     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24652     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24653     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24654     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24655     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24656     runtime/libprofile/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libprofile/Makefile runtime/libprofile/Makefile ;;
24657     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24658     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24659     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24660     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24661     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24662     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24663     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24664     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24665     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24666     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24667     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24668     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24669     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24670     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24671     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24672     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24673     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24674     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24675     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24676     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24677     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24678     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24679     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 ;;
24680     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 ;;
24681     test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/177.mesa/Makefile test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ;;
24682     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 ;;
24683     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 ;;
24684     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 ;;
24685     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 ;;
24686     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 ;;
24687     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 ;;
24688     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 ;;
24689     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 ;;
24690     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 ;;
24691     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 ;;
24692     test/Programs/External/SPEC/CINT2000/252.eon/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/252.eon/Makefile test/Programs/External/SPEC/CINT2000/252.eon/Makefile ;;
24693     test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ;;
24694     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 ;;
24695     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 ;;
24696     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 ;;
24697     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 ;;
24698     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24699     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24700     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24701     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24702     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 ;;
24703     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 ;;
24704     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 ;;
24705     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24706     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 ;;
24707     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 ;;
24708     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 ;;
24709     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 ;;
24710     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 ;;
24711     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 ;;
24712     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 ;;
24713     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 ;;
24714     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 ;;
24715     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 ;;
24716     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 ;;
24717     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 ;;
24718     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 ;;
24719     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 ;;
24720     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 ;;
24721     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 ;;
24722     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 ;;
24723     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 ;;
24724     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 ;;
24725     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 ;;
24726     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 ;;
24727     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 ;;
24728     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 ;;
24729     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 ;;
24730     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 ;;
24731     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 ;;
24732     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 ;;
24733     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 ;;
24734     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 ;;
24735     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 ;;
24736     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 ;;
24737     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 ;;
24738     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24739     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24740     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24741     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24742     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 ;;
24743     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 ;;
24744     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 ;;
24745     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 ;;
24746     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24747     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24748     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 ;;
24749     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24750     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 ;;
24751     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 ;;
24752     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 ;;
24753     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24754     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24755     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24756     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24757     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24758     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24759     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24760     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24761     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24762     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24763     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24764     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24765     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24766     tools/llvm-nm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-nm/Makefile tools/llvm-nm/Makefile ;;
24767     tools/llvm-prof/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-prof/Makefile tools/llvm-prof/Makefile ;;
24768     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24769     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24770     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24771     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24772     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24773     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24774     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24775     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24776     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24777     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24778   esac
24779 done
24780 _ACEOF
24781
24782 cat >>$CONFIG_STATUS <<\_ACEOF
24783
24784 { (exit 0); exit 0; }
24785 _ACEOF
24786 chmod +x $CONFIG_STATUS
24787 ac_clean_files=$ac_clean_files_save
24788
24789
24790 # configure is writing to config.log, and then calls config.status.
24791 # config.status does its own redirection, appending to config.log.
24792 # Unfortunately, on DOS this fails, as config.log is still kept open
24793 # by configure, so config.status won't be able to write to it; its
24794 # output is simply discarded.  So we exec the FD to /dev/null,
24795 # effectively closing config.log, so it can be properly (re)opened and
24796 # appended to by config.status.  When coming back to configure, we
24797 # need to make the FD available again.
24798 if test "$no_create" != yes; then
24799   ac_cs_success=:
24800   ac_config_status_args=
24801   test "$silent" = yes &&
24802     ac_config_status_args="$ac_config_status_args --quiet"
24803   exec 5>/dev/null
24804   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24805   exec 5>>config.log
24806   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24807   # would make configure fail if this is the last instruction.
24808   $ac_cs_success || { (exit 1); exit 1; }
24809 fi
24810
24811 #
24812 # CONFIG_SUBDIRS section.
24813 #
24814 if test "$no_recursion" != yes; then
24815
24816   # Remove --cache-file and --srcdir arguments so they do not pile up.
24817   ac_sub_configure_args=
24818   ac_prev=
24819   for ac_arg in $ac_configure_args; do
24820     if test -n "$ac_prev"; then
24821       ac_prev=
24822       continue
24823     fi
24824     case $ac_arg in
24825     -cache-file | --cache-file | --cache-fil | --cache-fi \
24826     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24827       ac_prev=cache_file ;;
24828     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24829     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24830     | --c=*)
24831       ;;
24832     --config-cache | -C)
24833       ;;
24834     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24835       ac_prev=srcdir ;;
24836     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24837       ;;
24838     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24839       ac_prev=prefix ;;
24840     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24841       ;;
24842     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24843     esac
24844   done
24845
24846   # Always prepend --prefix to ensure using the same prefix
24847   # in subdir configurations.
24848   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24849
24850   ac_popdir=`pwd`
24851   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24852
24853     # Do not complain, so a configure script can configure whichever
24854     # parts of a large source tree are present.
24855     test -d $srcdir/$ac_dir || continue
24856
24857     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24858 echo "$as_me: configuring in $ac_dir" >&6;}
24859     { if $as_mkdir_p; then
24860     mkdir -p "$ac_dir"
24861   else
24862     as_dir="$ac_dir"
24863     as_dirs=
24864     while test ! -d "$as_dir"; do
24865       as_dirs="$as_dir $as_dirs"
24866       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24868          X"$as_dir" : 'X\(//\)[^/]' \| \
24869          X"$as_dir" : 'X\(//\)$' \| \
24870          X"$as_dir" : 'X\(/\)' \| \
24871          .     : '\(.\)' 2>/dev/null ||
24872 echo X"$as_dir" |
24873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24875           /^X\(\/\/\)$/{ s//\1/; q; }
24876           /^X\(\/\).*/{ s//\1/; q; }
24877           s/.*/./; q'`
24878     done
24879     test ! -n "$as_dirs" || mkdir $as_dirs
24880   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24881 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24882    { (exit 1); exit 1; }; }; }
24883
24884     ac_builddir=.
24885
24886 if test "$ac_dir" != .; then
24887   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24888   # A "../" for each directory in $ac_dir_suffix.
24889   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24890 else
24891   ac_dir_suffix= ac_top_builddir=
24892 fi
24893
24894 case $srcdir in
24895   .)  # No --srcdir option.  We are building in place.
24896     ac_srcdir=.
24897     if test -z "$ac_top_builddir"; then
24898        ac_top_srcdir=.
24899     else
24900        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24901     fi ;;
24902   [\\/]* | ?:[\\/]* )  # Absolute path.
24903     ac_srcdir=$srcdir$ac_dir_suffix;
24904     ac_top_srcdir=$srcdir ;;
24905   *) # Relative path.
24906     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24907     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24908 esac
24909 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24910 # absolute.
24911 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24912 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24913 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24914 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24915
24916
24917     cd $ac_dir
24918
24919     # Check for guested configure; otherwise get Cygnus style configure.
24920     if test -f $ac_srcdir/configure.gnu; then
24921       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24922     elif test -f $ac_srcdir/configure; then
24923       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24924     elif test -f $ac_srcdir/configure.in; then
24925       ac_sub_configure=$ac_configure
24926     else
24927       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24928 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24929       ac_sub_configure=
24930     fi
24931
24932     # The recursion is here.
24933     if test -n "$ac_sub_configure"; then
24934       # Make the cache file name correct relative to the subdirectory.
24935       case $cache_file in
24936       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24937       *) # Relative path.
24938         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24939       esac
24940
24941       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24942 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24943       # The eval makes quoting arguments work.
24944       eval $ac_sub_configure $ac_sub_configure_args \
24945            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24946         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24947 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24948    { (exit 1); exit 1; }; }
24949     fi
24950
24951     cd $ac_popdir
24952   done
24953 fi
24954